middleman 1.0.3 → 1.1.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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] = current_layout if options[:layout].nil?
100
+ options[:layout] ||= current_layout
101
101
  get(url) do
102
102
  return yield if block_given?
103
103
  process_request(options)
@@ -119,9 +119,7 @@ module Middleman
119
119
 
120
120
  old_layout = settings.current_layout
121
121
  settings.layout(options[:layout]) if !options[:layout].nil?
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])
122
+ result = render(path, :layout => settings.fetch_layout_path.to_sym)
125
123
  settings.layout(old_layout)
126
124
 
127
125
  if result
@@ -1,3 +1,3 @@
1
1
  module Middleman
2
- VERSION = "1.0.3"
2
+ VERSION = "1.1.0.alpha.1"
3
3
  end
data/middleman.gemspec CHANGED
@@ -28,8 +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.0"])
32
- s.add_runtime_dependency("compass", ["~> 0.10.0"])
31
+ s.add_runtime_dependency("haml", ["3.1.0.alpha.147"])
32
+ s.add_runtime_dependency("sass", ["3.1.0.alpha.214"])
33
+ s.add_runtime_dependency("compass", ["0.11.alpha.4"])
33
34
  s.add_runtime_dependency("json_pure", ["~> 1.4.0"])
34
35
  s.add_runtime_dependency("smusher", ["~> 0.4.5"])
35
36
  s.add_runtime_dependency("compass-slickmap", ["~> 0.4.0"])
metadata CHANGED
@@ -1,13 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease:
4
+ hash: -3702664338
5
+ prerelease: 6
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 3
10
- version: 1.0.3
10
+ - alpha
11
+ - 1
12
+ version: 1.1.0.alpha.1
11
13
  platform: ruby
12
14
  authors:
13
15
  - Thomas Reynolds
@@ -15,7 +17,7 @@ autorequire:
15
17
  bindir: bin
16
18
  cert_chain: []
17
19
 
18
- date: 2011-01-05 00:00:00 -08:00
20
+ date: 2011-01-01 00:00:00 -08:00
19
21
  default_executable:
20
22
  dependencies:
21
23
  - !ruby/object:Gem::Dependency
@@ -181,35 +183,57 @@ dependencies:
181
183
  requirement: &id011 !ruby/object:Gem::Requirement
182
184
  none: false
183
185
  requirements:
184
- - - ~>
186
+ - - "="
185
187
  - !ruby/object:Gem::Version
186
- hash: 7
188
+ hash: -3702664694
187
189
  segments:
188
190
  - 3
191
+ - 1
189
192
  - 0
190
- version: "3.0"
193
+ - alpha
194
+ - 147
195
+ version: 3.1.0.alpha.147
191
196
  type: :runtime
192
197
  version_requirements: *id011
193
198
  - !ruby/object:Gem::Dependency
194
- name: compass
199
+ name: sass
195
200
  prerelease: false
196
201
  requirement: &id012 !ruby/object:Gem::Requirement
197
202
  none: false
198
203
  requirements:
199
- - - ~>
204
+ - - "="
200
205
  - !ruby/object:Gem::Version
201
- hash: 55
206
+ hash: -3702664576
202
207
  segments:
208
+ - 3
209
+ - 1
203
210
  - 0
204
- - 10
205
- - 0
206
- version: 0.10.0
211
+ - alpha
212
+ - 214
213
+ version: 3.1.0.alpha.214
207
214
  type: :runtime
208
215
  version_requirements: *id012
209
216
  - !ruby/object:Gem::Dependency
210
- name: json_pure
217
+ name: compass
211
218
  prerelease: false
212
219
  requirement: &id013 !ruby/object:Gem::Requirement
220
+ none: false
221
+ requirements:
222
+ - - "="
223
+ - !ruby/object:Gem::Version
224
+ hash: -3702664196
225
+ segments:
226
+ - 0
227
+ - 11
228
+ - alpha
229
+ - 4
230
+ version: 0.11.alpha.4
231
+ type: :runtime
232
+ version_requirements: *id013
233
+ - !ruby/object:Gem::Dependency
234
+ name: json_pure
235
+ prerelease: false
236
+ requirement: &id014 !ruby/object:Gem::Requirement
213
237
  none: false
214
238
  requirements:
215
239
  - - ~>
@@ -221,11 +245,11 @@ dependencies:
221
245
  - 0
222
246
  version: 1.4.0
223
247
  type: :runtime
224
- version_requirements: *id013
248
+ version_requirements: *id014
225
249
  - !ruby/object:Gem::Dependency
226
250
  name: smusher
227
251
  prerelease: false
228
- requirement: &id014 !ruby/object:Gem::Requirement
252
+ requirement: &id015 !ruby/object:Gem::Requirement
229
253
  none: false
230
254
  requirements:
231
255
  - - ~>
@@ -237,11 +261,11 @@ dependencies:
237
261
  - 5
238
262
  version: 0.4.5
239
263
  type: :runtime
240
- version_requirements: *id014
264
+ version_requirements: *id015
241
265
  - !ruby/object:Gem::Dependency
242
266
  name: compass-slickmap
243
267
  prerelease: false
244
- requirement: &id015 !ruby/object:Gem::Requirement
268
+ requirement: &id016 !ruby/object:Gem::Requirement
245
269
  none: false
246
270
  requirements:
247
271
  - - ~>
@@ -253,11 +277,11 @@ dependencies:
253
277
  - 0
254
278
  version: 0.4.0
255
279
  type: :runtime
256
- version_requirements: *id015
280
+ version_requirements: *id016
257
281
  - !ruby/object:Gem::Dependency
258
282
  name: coffee-script
259
283
  prerelease: false
260
- requirement: &id016 !ruby/object:Gem::Requirement
284
+ requirement: &id017 !ruby/object:Gem::Requirement
261
285
  none: false
262
286
  requirements:
263
287
  - - ~>
@@ -269,11 +293,11 @@ dependencies:
269
293
  - 0
270
294
  version: 2.1.0
271
295
  type: :runtime
272
- version_requirements: *id016
296
+ version_requirements: *id017
273
297
  - !ruby/object:Gem::Dependency
274
298
  name: less
275
299
  prerelease: false
276
- requirement: &id017 !ruby/object:Gem::Requirement
300
+ requirement: &id018 !ruby/object:Gem::Requirement
277
301
  none: false
278
302
  requirements:
279
303
  - - ~>
@@ -285,11 +309,11 @@ dependencies:
285
309
  - 0
286
310
  version: 1.2.0
287
311
  type: :runtime
288
- version_requirements: *id017
312
+ version_requirements: *id018
289
313
  - !ruby/object:Gem::Dependency
290
314
  name: cucumber
291
315
  prerelease: false
292
- requirement: &id018 !ruby/object:Gem::Requirement
316
+ requirement: &id019 !ruby/object:Gem::Requirement
293
317
  none: false
294
318
  requirements:
295
319
  - - ">="
@@ -299,11 +323,11 @@ dependencies:
299
323
  - 0
300
324
  version: "0"
301
325
  type: :development
302
- version_requirements: *id018
326
+ version_requirements: *id019
303
327
  - !ruby/object:Gem::Dependency
304
328
  name: rspec
305
329
  prerelease: false
306
- requirement: &id019 !ruby/object:Gem::Requirement
330
+ requirement: &id020 !ruby/object:Gem::Requirement
307
331
  none: false
308
332
  requirements:
309
333
  - - ">="
@@ -313,7 +337,7 @@ dependencies:
313
337
  - 0
314
338
  version: "0"
315
339
  type: :development
316
- version_requirements: *id019
340
+ version_requirements: *id020
317
341
  description:
318
342
  email:
319
343
  - tdreyno@gmail.com
@@ -434,12 +458,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
434
458
  required_rubygems_version: !ruby/object:Gem::Requirement
435
459
  none: false
436
460
  requirements:
437
- - - ">="
461
+ - - ">"
438
462
  - !ruby/object:Gem::Version
439
- hash: 3
463
+ hash: 25
440
464
  segments:
441
- - 0
442
- version: "0"
465
+ - 1
466
+ - 3
467
+ - 1
468
+ version: 1.3.1
443
469
  requirements: []
444
470
 
445
471
  rubyforge_project: middleman
@@ -447,5 +473,52 @@ rubygems_version: 1.4.1
447
473
  signing_key:
448
474
  specification_version: 3
449
475
  summary: A static site generator utilizing Haml, Sass and providing YUI compression and cache busting
450
- test_files: []
451
-
476
+ test_files:
477
+ - features/builder.feature
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