middleman 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -25,10 +25,6 @@ begin
25
25
  gem.add_development_dependency("sdoc")
26
26
  end
27
27
 
28
- Jeweler::RubyforgeTasks.new do |rubyforge|
29
- rubyforge.doc_task = "rdoc"
30
- end
31
-
32
28
  Jeweler::GemcutterTasks.new
33
29
  rescue LoadError
34
30
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.2
1
+ 0.10.3
@@ -70,6 +70,8 @@ module Middleman
70
70
  path << options.index_file if path.match(%r{/$})
71
71
  path.gsub!(%r{^/}, '')
72
72
 
73
+ # layout(:"layout.html") # Insert the .html into the layout name like the rest of the templates
74
+
73
75
  # If the enabled renderers succeed, return the content, mime-type and an HTTP 200
74
76
  if content = render_path(path)
75
77
  content_type media_type(File.extname(path)), :charset => 'utf-8'
@@ -1,4 +1,4 @@
1
1
  - content_for :head do
2
- %title Custom head title
2
+ %title The Middleman!
3
3
 
4
4
  %h1 The Middleman is watching.
@@ -1,7 +1,9 @@
1
1
  %html
2
2
  %head
3
- %title The Middleman!
3
+ // Comment in layout
4
+ = stylesheet_link_tag "site.css"
4
5
  = yield_content :head
5
6
 
6
7
  %body
7
- = yield
8
+ #frame
9
+ = yield
@@ -1 +1,11 @@
1
- @import compass/reset.sass
1
+ @import compass.sass
2
+ @import blueprint/modules/grid.sass
3
+ @import blueprint/modules/typography.sass
4
+
5
+ +global-reset
6
+ +blueprint-typography
7
+
8
+ #frame
9
+ padding: 50px
10
+ text-align: center
11
+ +container
data/middleman.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{middleman}
8
- s.version = "0.10.2"
8
+ s.version = "0.10.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Thomas Reynolds"]
@@ -18,6 +18,13 @@ describe "Generator" do
18
18
  FileUtils.rm_rf(@root_dir)
19
19
  end
20
20
 
21
+ it "should use layout file" do
22
+ build_cmd = project_file("bin", "mm-build")
23
+ `cd #{@root_dir} && #{build_cmd}`
24
+ File.exists?("#{@root_dir}/build/index.html").should be_true
25
+ File.read("#{@root_dir}/build/index.html").should include("Comment in layout")
26
+ end
27
+
21
28
  it "should copy template files" do
22
29
  template_dir = project_file("lib", "template", "**/*")
23
30
  Dir[template_dir].each do |f|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds