middleman 2.0.10-x86-mingw32 → 2.0.11.pre-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
@@ -124,12 +124,12 @@ module Middleman::Base
124
124
  module ClassMethods
125
125
  # Override Sinatra's set to accept a block
126
126
  # Specifically for the asset_host feature
127
- def set(option, value=self, &block)
127
+ def set(option, value = (not_set = true), ignore_setter = false, &block)
128
128
  if block_given?
129
129
  value = Proc.new { block }
130
130
  end
131
131
 
132
- super(option, value, &nil)
132
+ super(option, value, ignore_setter, &nil)
133
133
  end
134
134
 
135
135
  def before_processing(name=:unnamed, idx=-1, &block)
@@ -150,6 +150,10 @@ module Middleman::Base
150
150
  end
151
151
 
152
152
  module InstanceMethods
153
+ def forward
154
+ raise ::Sinatra::NotFound
155
+ end
156
+
153
157
  # Internal method to look for templates and evaluate them if found
154
158
  def process_request(options={})
155
159
  if !settings.views.include?(settings.root)
@@ -20,7 +20,7 @@
20
20
  # activate MyExtension
21
21
  #
22
22
  # This will call the `registered` method in your extension and provide you
23
- # with the `app` parameter which is a Middleman::Server context. From here
23
+ # with the `app` parameter which is a Middleman::Base context. From here
24
24
  # you can choose to respond to requests for certain paths or simply attach
25
25
  # Rack middleware to the stack.
26
26
  #
@@ -19,7 +19,7 @@ module Middleman::Features::MinifyJavascript
19
19
  if env["PATH_INFO"].match(/\.html$/)
20
20
  compressor = ::Uglifier.new
21
21
 
22
- if response.is_a?(::Rack::File) or response.is_a?(::Sinatra::Helpers::StaticFile)
22
+ if response.is_a?(::Rack::File)# or response.is_a?(::Sinatra::Helpers::StaticFile)
23
23
  uncompressed_source = File.read(response.path)
24
24
  else
25
25
  uncompressed_source = response.join
@@ -1,3 +1,3 @@
1
1
  module Middleman
2
- VERSION = "2.0.10"
2
+ VERSION = "2.0.11.pre"
3
3
  end
@@ -42,7 +42,7 @@ eos
42
42
  s.add_dependency("thor", ["~> 0.14.0"])
43
43
  s.add_dependency("tilt", ["~> 1.3.1"])
44
44
  s.add_dependency("maruku", ["~> 0.6.0"])
45
- s.add_dependency("sinatra", ["~> 1.2.6"])
45
+ s.add_dependency("sinatra", ["~> 1.3.0"])
46
46
  s.add_dependency("rack-test", ["~> 0.6.1"])
47
47
  s.add_dependency("uglifier", ["~> 1.0.0"])
48
48
  s.add_dependency("slim", ["~> 1.0.2"])
@@ -51,17 +51,12 @@ eos
51
51
  s.add_dependency("compass", ["~> 0.11.3"])
52
52
  s.add_dependency("coffee-script", ["~> 2.2.0"])
53
53
  s.add_dependency("sprockets", ["~> 2.0.0"])
54
- s.add_dependency("padrino-core", ["~> 0.10.2"])
55
- s.add_dependency("padrino-helpers", ["~> 0.10.2"])
54
+ s.add_dependency("padrino-core", ["~> 0.10.3"])
55
+ s.add_dependency("padrino-helpers", ["~> 0.10.3"])
56
56
 
57
- # case s.platform.to_s
58
- # when %r{mingw}
59
- s.add_dependency("eventmachine", ["1.0.0.beta.3"])
60
- s.add_dependency("win32-process", ["~> 0.6.5"])
61
- s.add_dependency("rb-fchange")
62
- # else
63
- # s.add_dependency("rb-fsevent", ["~> 0.4.2"])
64
- # end
57
+ s.add_dependency("eventmachine", ["1.0.0.beta.3"])
58
+ s.add_dependency("win32-process", ["~> 0.6.5"])
59
+ s.add_dependency("rb-fchange")
65
60
 
66
61
  s.add_dependency("guard", ["~> 0.6.2"])
67
62
  s.add_dependency("middleman-livereload", ["~> 0.2.0"])
data/middleman.gemspec CHANGED
@@ -42,7 +42,7 @@ eos
42
42
  s.add_dependency("thor", ["~> 0.14.0"])
43
43
  s.add_dependency("tilt", ["~> 1.3.1"])
44
44
  s.add_dependency("maruku", ["~> 0.6.0"])
45
- s.add_dependency("sinatra", ["~> 1.2.6"])
45
+ s.add_dependency("sinatra", ["~> 1.3.0"])
46
46
  # s.add_dependency("sinatra-synchrony", ["~> 0.2.1"])
47
47
  s.add_dependency("rack-test", ["~> 0.6.1"])
48
48
  s.add_dependency("uglifier", ["~> 1.0.0"])
@@ -52,24 +52,13 @@ eos
52
52
  s.add_dependency("compass", ["~> 0.11.3"])
53
53
  s.add_dependency("coffee-script", ["~> 2.2.0"])
54
54
  s.add_dependency("sprockets", ["~> 2.0.0"])
55
- s.add_dependency("padrino-core", ["~> 0.10.2"])
56
- s.add_dependency("padrino-helpers", ["~> 0.10.2"])
57
-
58
- # case s.platform.to_s
59
- # when %r{mingw}
60
- # s.add_dependency("eventmachine", ["1.0.0.beta.3"])
61
- # s.add_dependency("win32-process", ["~> 0.6.5"])
62
- # s.add_dependency("rb-fchange")
63
- # else
64
- # s.add_dependency("rb-fsevent", ["~> 0.4.2"])
65
- # s.add_dependency("therubyracer", ["~> 0.9.4"])
66
- # end
55
+ s.add_dependency("padrino-core", ["~> 0.10.3"])
56
+ s.add_dependency("padrino-helpers", ["~> 0.10.3"])
67
57
 
68
58
  s.add_dependency("guard", ["~> 0.6.2"])
69
59
  s.add_dependency("middleman-livereload", ["~> 0.2.0"])
70
60
 
71
61
  # Development and test
72
- # s.add_development_dependency("jquery-rails")
73
62
  s.add_development_dependency("coffee-filter", ["~> 0.1.1"])
74
63
  s.add_development_dependency("liquid", ["~> 2.2.0"])
75
64
  s.add_development_dependency("cucumber", ["~> 1.0.2"])
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease:
4
+ hash: 961915976
5
+ prerelease: 7
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 10
10
- version: 2.0.10
9
+ - 11
10
+ - pre
11
+ version: 2.0.11.pre
11
12
  platform: x86-mingw32
12
13
  authors:
13
14
  - Thomas Reynolds
@@ -15,10 +16,11 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-09-27 00:00:00 -07:00
19
+ date: 2011-10-04 00:00:00 -07:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
23
+ prerelease: false
22
24
  requirement: &id001 !ruby/object:Gem::Requirement
23
25
  none: false
24
26
  requirements:
@@ -30,11 +32,11 @@ dependencies:
30
32
  - 3
31
33
  - 0
32
34
  version: 1.3.0
33
- version_requirements: *id001
34
- name: rack
35
- prerelease: false
36
35
  type: :runtime
36
+ name: rack
37
+ version_requirements: *id001
37
38
  - !ruby/object:Gem::Dependency
39
+ prerelease: false
38
40
  requirement: &id002 !ruby/object:Gem::Requirement
39
41
  none: false
40
42
  requirements:
@@ -46,11 +48,11 @@ dependencies:
46
48
  - 2
47
49
  - 11
48
50
  version: 1.2.11
49
- version_requirements: *id002
50
- name: thin
51
- prerelease: false
52
51
  type: :runtime
52
+ name: thin
53
+ version_requirements: *id002
53
54
  - !ruby/object:Gem::Dependency
55
+ prerelease: false
54
56
  requirement: &id003 !ruby/object:Gem::Requirement
55
57
  none: false
56
58
  requirements:
@@ -62,11 +64,11 @@ dependencies:
62
64
  - 14
63
65
  - 0
64
66
  version: 0.14.0
65
- version_requirements: *id003
66
- name: thor
67
- prerelease: false
68
67
  type: :runtime
68
+ name: thor
69
+ version_requirements: *id003
69
70
  - !ruby/object:Gem::Dependency
71
+ prerelease: false
70
72
  requirement: &id004 !ruby/object:Gem::Requirement
71
73
  none: false
72
74
  requirements:
@@ -78,11 +80,11 @@ dependencies:
78
80
  - 3
79
81
  - 1
80
82
  version: 1.3.1
81
- version_requirements: *id004
82
- name: tilt
83
- prerelease: false
84
83
  type: :runtime
84
+ name: tilt
85
+ version_requirements: *id004
85
86
  - !ruby/object:Gem::Dependency
87
+ prerelease: false
86
88
  requirement: &id005 !ruby/object:Gem::Requirement
87
89
  none: false
88
90
  requirements:
@@ -94,27 +96,27 @@ dependencies:
94
96
  - 6
95
97
  - 0
96
98
  version: 0.6.0
97
- version_requirements: *id005
98
- name: maruku
99
- prerelease: false
100
99
  type: :runtime
100
+ name: maruku
101
+ version_requirements: *id005
101
102
  - !ruby/object:Gem::Dependency
103
+ prerelease: false
102
104
  requirement: &id006 !ruby/object:Gem::Requirement
103
105
  none: false
104
106
  requirements:
105
107
  - - ~>
106
108
  - !ruby/object:Gem::Version
107
- hash: 19
109
+ hash: 27
108
110
  segments:
109
111
  - 1
110
- - 2
111
- - 6
112
- version: 1.2.6
113
- version_requirements: *id006
114
- name: sinatra
115
- prerelease: false
112
+ - 3
113
+ - 0
114
+ version: 1.3.0
116
115
  type: :runtime
116
+ name: sinatra
117
+ version_requirements: *id006
117
118
  - !ruby/object:Gem::Dependency
119
+ prerelease: false
118
120
  requirement: &id007 !ruby/object:Gem::Requirement
119
121
  none: false
120
122
  requirements:
@@ -126,11 +128,11 @@ dependencies:
126
128
  - 6
127
129
  - 1
128
130
  version: 0.6.1
129
- version_requirements: *id007
130
- name: rack-test
131
- prerelease: false
132
131
  type: :runtime
132
+ name: rack-test
133
+ version_requirements: *id007
133
134
  - !ruby/object:Gem::Dependency
135
+ prerelease: false
134
136
  requirement: &id008 !ruby/object:Gem::Requirement
135
137
  none: false
136
138
  requirements:
@@ -142,11 +144,11 @@ dependencies:
142
144
  - 0
143
145
  - 0
144
146
  version: 1.0.0
145
- version_requirements: *id008
146
- name: uglifier
147
- prerelease: false
148
147
  type: :runtime
148
+ name: uglifier
149
+ version_requirements: *id008
149
150
  - !ruby/object:Gem::Dependency
151
+ prerelease: false
150
152
  requirement: &id009 !ruby/object:Gem::Requirement
151
153
  none: false
152
154
  requirements:
@@ -158,11 +160,11 @@ dependencies:
158
160
  - 0
159
161
  - 2
160
162
  version: 1.0.2
161
- version_requirements: *id009
162
- name: slim
163
- prerelease: false
164
163
  type: :runtime
164
+ name: slim
165
+ version_requirements: *id009
165
166
  - !ruby/object:Gem::Dependency
167
+ prerelease: false
166
168
  requirement: &id010 !ruby/object:Gem::Requirement
167
169
  none: false
168
170
  requirements:
@@ -174,11 +176,11 @@ dependencies:
174
176
  - 1
175
177
  - 0
176
178
  version: 3.1.0
177
- version_requirements: *id010
178
- name: haml
179
- prerelease: false
180
179
  type: :runtime
180
+ name: haml
181
+ version_requirements: *id010
181
182
  - !ruby/object:Gem::Dependency
183
+ prerelease: false
182
184
  requirement: &id011 !ruby/object:Gem::Requirement
183
185
  none: false
184
186
  requirements:
@@ -190,11 +192,11 @@ dependencies:
190
192
  - 1
191
193
  - 7
192
194
  version: 3.1.7
193
- version_requirements: *id011
194
- name: sass
195
- prerelease: false
196
195
  type: :runtime
196
+ name: sass
197
+ version_requirements: *id011
197
198
  - !ruby/object:Gem::Dependency
199
+ prerelease: false
198
200
  requirement: &id012 !ruby/object:Gem::Requirement
199
201
  none: false
200
202
  requirements:
@@ -206,11 +208,11 @@ dependencies:
206
208
  - 11
207
209
  - 3
208
210
  version: 0.11.3
209
- version_requirements: *id012
210
- name: compass
211
- prerelease: false
212
211
  type: :runtime
212
+ name: compass
213
+ version_requirements: *id012
213
214
  - !ruby/object:Gem::Dependency
215
+ prerelease: false
214
216
  requirement: &id013 !ruby/object:Gem::Requirement
215
217
  none: false
216
218
  requirements:
@@ -222,11 +224,11 @@ dependencies:
222
224
  - 2
223
225
  - 0
224
226
  version: 2.2.0
225
- version_requirements: *id013
226
- name: coffee-script
227
- prerelease: false
228
227
  type: :runtime
228
+ name: coffee-script
229
+ version_requirements: *id013
229
230
  - !ruby/object:Gem::Dependency
231
+ prerelease: false
230
232
  requirement: &id014 !ruby/object:Gem::Requirement
231
233
  none: false
232
234
  requirements:
@@ -238,43 +240,43 @@ dependencies:
238
240
  - 0
239
241
  - 0
240
242
  version: 2.0.0
241
- version_requirements: *id014
242
- name: sprockets
243
- prerelease: false
244
243
  type: :runtime
244
+ name: sprockets
245
+ version_requirements: *id014
245
246
  - !ruby/object:Gem::Dependency
247
+ prerelease: false
246
248
  requirement: &id015 !ruby/object:Gem::Requirement
247
249
  none: false
248
250
  requirements:
249
251
  - - ~>
250
252
  - !ruby/object:Gem::Version
251
- hash: 51
253
+ hash: 49
252
254
  segments:
253
255
  - 0
254
256
  - 10
255
- - 2
256
- version: 0.10.2
257
- version_requirements: *id015
258
- name: padrino-core
259
- prerelease: false
257
+ - 3
258
+ version: 0.10.3
260
259
  type: :runtime
260
+ name: padrino-core
261
+ version_requirements: *id015
261
262
  - !ruby/object:Gem::Dependency
263
+ prerelease: false
262
264
  requirement: &id016 !ruby/object:Gem::Requirement
263
265
  none: false
264
266
  requirements:
265
267
  - - ~>
266
268
  - !ruby/object:Gem::Version
267
- hash: 51
269
+ hash: 49
268
270
  segments:
269
271
  - 0
270
272
  - 10
271
- - 2
272
- version: 0.10.2
273
- version_requirements: *id016
274
- name: padrino-helpers
275
- prerelease: false
273
+ - 3
274
+ version: 0.10.3
276
275
  type: :runtime
276
+ name: padrino-helpers
277
+ version_requirements: *id016
277
278
  - !ruby/object:Gem::Dependency
279
+ prerelease: false
278
280
  requirement: &id017 !ruby/object:Gem::Requirement
279
281
  none: false
280
282
  requirements:
@@ -288,11 +290,11 @@ dependencies:
288
290
  - beta
289
291
  - 3
290
292
  version: 1.0.0.beta.3
291
- version_requirements: *id017
292
- name: eventmachine
293
- prerelease: false
294
293
  type: :runtime
294
+ name: eventmachine
295
+ version_requirements: *id017
295
296
  - !ruby/object:Gem::Dependency
297
+ prerelease: false
296
298
  requirement: &id018 !ruby/object:Gem::Requirement
297
299
  none: false
298
300
  requirements:
@@ -304,11 +306,11 @@ dependencies:
304
306
  - 6
305
307
  - 5
306
308
  version: 0.6.5
307
- version_requirements: *id018
308
- name: win32-process
309
- prerelease: false
310
309
  type: :runtime
310
+ name: win32-process
311
+ version_requirements: *id018
311
312
  - !ruby/object:Gem::Dependency
313
+ prerelease: false
312
314
  requirement: &id019 !ruby/object:Gem::Requirement
313
315
  none: false
314
316
  requirements:
@@ -318,11 +320,11 @@ dependencies:
318
320
  segments:
319
321
  - 0
320
322
  version: "0"
321
- version_requirements: *id019
322
- name: rb-fchange
323
- prerelease: false
324
323
  type: :runtime
324
+ name: rb-fchange
325
+ version_requirements: *id019
325
326
  - !ruby/object:Gem::Dependency
327
+ prerelease: false
326
328
  requirement: &id020 !ruby/object:Gem::Requirement
327
329
  none: false
328
330
  requirements:
@@ -334,11 +336,11 @@ dependencies:
334
336
  - 6
335
337
  - 2
336
338
  version: 0.6.2
337
- version_requirements: *id020
338
- name: guard
339
- prerelease: false
340
339
  type: :runtime
340
+ name: guard
341
+ version_requirements: *id020
341
342
  - !ruby/object:Gem::Dependency
343
+ prerelease: false
342
344
  requirement: &id021 !ruby/object:Gem::Requirement
343
345
  none: false
344
346
  requirements:
@@ -350,11 +352,11 @@ dependencies:
350
352
  - 2
351
353
  - 0
352
354
  version: 0.2.0
353
- version_requirements: *id021
354
- name: middleman-livereload
355
- prerelease: false
356
355
  type: :runtime
356
+ name: middleman-livereload
357
+ version_requirements: *id021
357
358
  - !ruby/object:Gem::Dependency
359
+ prerelease: false
358
360
  requirement: &id022 !ruby/object:Gem::Requirement
359
361
  none: false
360
362
  requirements:
@@ -366,11 +368,11 @@ dependencies:
366
368
  - 1
367
369
  - 1
368
370
  version: 0.1.1
369
- version_requirements: *id022
370
- name: coffee-filter
371
- prerelease: false
372
371
  type: :development
372
+ name: coffee-filter
373
+ version_requirements: *id022
373
374
  - !ruby/object:Gem::Dependency
375
+ prerelease: false
374
376
  requirement: &id023 !ruby/object:Gem::Requirement
375
377
  none: false
376
378
  requirements:
@@ -382,11 +384,11 @@ dependencies:
382
384
  - 2
383
385
  - 0
384
386
  version: 2.2.0
385
- version_requirements: *id023
386
- name: liquid
387
- prerelease: false
388
387
  type: :development
388
+ name: liquid
389
+ version_requirements: *id023
389
390
  - !ruby/object:Gem::Dependency
391
+ prerelease: false
390
392
  requirement: &id024 !ruby/object:Gem::Requirement
391
393
  none: false
392
394
  requirements:
@@ -398,11 +400,11 @@ dependencies:
398
400
  - 0
399
401
  - 2
400
402
  version: 1.0.2
401
- version_requirements: *id024
402
- name: cucumber
403
- prerelease: false
404
403
  type: :development
404
+ name: cucumber
405
+ version_requirements: *id024
405
406
  - !ruby/object:Gem::Dependency
407
+ prerelease: false
406
408
  requirement: &id025 !ruby/object:Gem::Requirement
407
409
  none: false
408
410
  requirements:
@@ -414,11 +416,11 @@ dependencies:
414
416
  - 8
415
417
  - 7
416
418
  version: 0.8.7
417
- version_requirements: *id025
418
- name: rake
419
- prerelease: false
420
419
  type: :development
420
+ name: rake
421
+ version_requirements: *id025
421
422
  - !ruby/object:Gem::Dependency
423
+ prerelease: false
422
424
  requirement: &id026 !ruby/object:Gem::Requirement
423
425
  none: false
424
426
  requirements:
@@ -430,10 +432,9 @@ dependencies:
430
432
  - 6
431
433
  - 0
432
434
  version: 2.6.0
433
- version_requirements: *id026
434
- name: rspec
435
- prerelease: false
436
435
  type: :development
436
+ name: rspec
437
+ version_requirements: *id026
437
438
  description: A static site generator based on Sinatra. Providing dozens of templating languages (Haml, Sass, Compass, Slim, CoffeeScript, and more). Makes minification, compression, cache busting, Yaml data (and more) an easy part of your development cycle.
438
439
  email:
439
440
  - me@tdreyno.com
@@ -760,12 +761,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
760
761
  required_rubygems_version: !ruby/object:Gem::Requirement
761
762
  none: false
762
763
  requirements:
763
- - - ">="
764
+ - - ">"
764
765
  - !ruby/object:Gem::Version
765
- hash: 3
766
+ hash: 25
766
767
  segments:
767
- - 0
768
- version: "0"
768
+ - 1
769
+ - 3
770
+ - 1
771
+ version: 1.3.1
769
772
  requirements: []
770
773
 
771
774
  rubyforge_project: