middleman 1.1.0.alpha.1 → 1.1.0.alpha.2
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/lib/middleman/server.rb +4 -2
- data/lib/middleman/version.rb +1 -1
- data/middleman.gemspec +2 -2
- metadata +12 -61
data/lib/middleman/server.rb
CHANGED
@@ -97,7 +97,7 @@ module Middleman
|
|
97
97
|
def self.page(url, options={}, &block)
|
98
98
|
url << settings.index_file if url.match(%r{/$})
|
99
99
|
|
100
|
-
options[:layout]
|
100
|
+
options[:layout] = current_layout if options[:layout].nil?
|
101
101
|
get(url) do
|
102
102
|
return yield if block_given?
|
103
103
|
process_request(options)
|
@@ -119,7 +119,9 @@ module Middleman
|
|
119
119
|
|
120
120
|
old_layout = settings.current_layout
|
121
121
|
settings.layout(options[:layout]) if !options[:layout].nil?
|
122
|
-
|
122
|
+
layout = settings.fetch_layout_path.to_sym
|
123
|
+
layout = false if options[:layout] == false or path =~ /\.(css|js)$/
|
124
|
+
result = render(path, :layout => layout, :layout_engine => options[:layout_engine])
|
123
125
|
settings.layout(old_layout)
|
124
126
|
|
125
127
|
if result
|
data/lib/middleman/version.rb
CHANGED
data/middleman.gemspec
CHANGED
@@ -28,9 +28,9 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.add_runtime_dependency("padrino-helpers", ["~> 0.9.0"])
|
29
29
|
s.add_runtime_dependency("rack-test", ["~> 0.5.0"])
|
30
30
|
s.add_runtime_dependency("yui-compressor", ["~> 0.9.0"])
|
31
|
-
s.add_runtime_dependency("haml", ["3.
|
31
|
+
s.add_runtime_dependency("haml", ["~> 3.0"])
|
32
32
|
s.add_runtime_dependency("sass", ["3.1.0.alpha.214"])
|
33
|
-
s.add_runtime_dependency("compass", ["0.11.alpha.4"])
|
33
|
+
s.add_runtime_dependency("compass", ["0.11.0.alpha.4"])
|
34
34
|
s.add_runtime_dependency("json_pure", ["~> 1.4.0"])
|
35
35
|
s.add_runtime_dependency("smusher", ["~> 0.4.5"])
|
36
36
|
s.add_runtime_dependency("compass-slickmap", ["~> 0.4.0"])
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -3702664344
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
9
|
- 0
|
10
10
|
- alpha
|
11
|
-
-
|
12
|
-
version: 1.1.0.alpha.
|
11
|
+
- 2
|
12
|
+
version: 1.1.0.alpha.2
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Thomas Reynolds
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-01-
|
20
|
+
date: 2011-01-05 00:00:00 -08:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -183,16 +183,13 @@ dependencies:
|
|
183
183
|
requirement: &id011 !ruby/object:Gem::Requirement
|
184
184
|
none: false
|
185
185
|
requirements:
|
186
|
-
- -
|
186
|
+
- - ~>
|
187
187
|
- !ruby/object:Gem::Version
|
188
|
-
hash:
|
188
|
+
hash: 7
|
189
189
|
segments:
|
190
190
|
- 3
|
191
|
-
- 1
|
192
191
|
- 0
|
193
|
-
|
194
|
-
- 147
|
195
|
-
version: 3.1.0.alpha.147
|
192
|
+
version: "3.0"
|
196
193
|
type: :runtime
|
197
194
|
version_requirements: *id011
|
198
195
|
- !ruby/object:Gem::Dependency
|
@@ -221,13 +218,14 @@ dependencies:
|
|
221
218
|
requirements:
|
222
219
|
- - "="
|
223
220
|
- !ruby/object:Gem::Version
|
224
|
-
hash: -
|
221
|
+
hash: -3702664220
|
225
222
|
segments:
|
226
223
|
- 0
|
227
224
|
- 11
|
225
|
+
- 0
|
228
226
|
- alpha
|
229
227
|
- 4
|
230
|
-
version: 0.11.alpha.4
|
228
|
+
version: 0.11.0.alpha.4
|
231
229
|
type: :runtime
|
232
230
|
version_requirements: *id013
|
233
231
|
- !ruby/object:Gem::Dependency
|
@@ -473,52 +471,5 @@ rubygems_version: 1.4.1
|
|
473
471
|
signing_key:
|
474
472
|
specification_version: 3
|
475
473
|
summary: A static site generator utilizing Haml, Sass and providing YUI compression and cache busting
|
476
|
-
test_files:
|
477
|
-
|
478
|
-
- features/coffee-script.feature
|
479
|
-
- features/generator.feature
|
480
|
-
- features/helpers_auto_stylesheet_link_tag.feature
|
481
|
-
- features/helpers_page_classes.feature
|
482
|
-
- features/less-css.feature
|
483
|
-
- features/minify_css.feature
|
484
|
-
- features/minify_javascript.feature
|
485
|
-
- features/padrino_helpers.feature
|
486
|
-
- features/page_alias_and_layouts.feature
|
487
|
-
- features/scss-support.feature
|
488
|
-
- features/step_definitions/asset_host_steps.rb
|
489
|
-
- features/step_definitions/builder_steps.rb
|
490
|
-
- features/step_definitions/env.rb
|
491
|
-
- features/step_definitions/generator_steps.rb
|
492
|
-
- features/step_definitions/middleman_steps.rb
|
493
|
-
- features/step_definitions/page_layout_steps.rb
|
494
|
-
- features/w_asset_host.feature
|
495
|
-
- features/x_automatic_image_sizes.feature
|
496
|
-
- features/y_cache_buster.feature
|
497
|
-
- features/z_relative_assets.feature
|
498
|
-
- fixtures/test-app/config.rb
|
499
|
-
- fixtures/test-app/public/images/blank.gif
|
500
|
-
- fixtures/test-app/public/static.html
|
501
|
-
- fixtures/test-app/public/stylesheets/auto-css.css
|
502
|
-
- fixtures/test-app/public/stylesheets/static.css
|
503
|
-
- fixtures/test-app/public/stylesheets/sub1/auto-css.css
|
504
|
-
- fixtures/test-app/public/stylesheets/sub1/sub2/auto-css.css
|
505
|
-
- fixtures/test-app/views/_partial.haml
|
506
|
-
- fixtures/test-app/views/asset_host.html.haml
|
507
|
-
- fixtures/test-app/views/auto-css.html.haml
|
508
|
-
- fixtures/test-app/views/auto-image-sizes.html.haml
|
509
|
-
- fixtures/test-app/views/cache-buster.html.haml
|
510
|
-
- fixtures/test-app/views/custom-layout.html.haml
|
511
|
-
- fixtures/test-app/views/index.html.haml
|
512
|
-
- fixtures/test-app/views/inline-css.html.haml
|
513
|
-
- fixtures/test-app/views/inline-js.html.haml
|
514
|
-
- fixtures/test-app/views/javascripts/coffee_test.js.coffee
|
515
|
-
- fixtures/test-app/views/layout.haml
|
516
|
-
- fixtures/test-app/views/layouts/custom.haml
|
517
|
-
- fixtures/test-app/views/padrino_test.html.haml
|
518
|
-
- fixtures/test-app/views/page-classes.html.haml
|
519
|
-
- fixtures/test-app/views/services/index.html.haml
|
520
|
-
- fixtures/test-app/views/stylesheets/asset_host.css.sass
|
521
|
-
- fixtures/test-app/views/stylesheets/relative_assets.css.sass
|
522
|
-
- fixtures/test-app/views/stylesheets/site.css.sass
|
523
|
-
- fixtures/test-app/views/stylesheets/site_scss.css.scss
|
524
|
-
- fixtures/test-app/views/stylesheets/test_less.css.less
|
474
|
+
test_files: []
|
475
|
+
|