Merge branch '3.0-stable' of github.com:middleman/middleman into 3.0-stable

This commit is contained in:
Thomas Reynolds 2012-10-13 14:04:02 -07:00
commit 4255ff8b00
3 changed files with 16 additions and 3 deletions

View file

@ -0,0 +1,14 @@
@encoding
Feature: Tilde directories
In order to support ~ characters in directories
Scenario: Build directories with containing ~ characters in their name
Given a fixture app "empty-app"
And a file named "source/~notexistinguser/index.html" with:
"""
It works!
"""
And the Server is running
When I go to "/~notexistinguser/index.html"
Then I should see "It works!"

View file

@ -127,8 +127,7 @@ module Middleman::CoreExtensions
# @param [String] path # @param [String] path
# @return [Array<Thor::CoreExt::HashWithIndifferentAccess, String>] # @return [Array<Thor::CoreExt::HashWithIndifferentAccess, String>]
def frontmatter_and_content(path) def frontmatter_and_content(path)
full_path = File.expand_path(path, @app.source_dir) full_path = File.expand_path(File.join(@app.source_dir, path))
content = File.read(full_path) content = File.read(full_path)
data = {} data = {}

View file

@ -1,5 +1,5 @@
module Middleman module Middleman
# Current Version # Current Version
# @return [String] # @return [String]
VERSION = '3.0.5' unless const_defined?(:VERSION) VERSION = '3.0.6' unless const_defined?(:VERSION)
end end