sprockets 2.10.0 → 2.10.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sprockets might be problematic. Click here for more details.

data/README.md CHANGED
@@ -336,6 +336,11 @@ source file before any subsequent `require` or `include` directives.
336
336
  including it in the bundle. This is useful when you need to expire an
337
337
  asset's cache in response to a change in another file.
338
338
 
339
+ ### The `depend_on_asset` Directive ###
340
+
341
+ `depend_on_asset` *path* works like `depend_on`, but operates
342
+ recursively reading the the file and following the directives found.
343
+
339
344
  ### The `stub` Directive ###
340
345
 
341
346
  `stub` *path* allows dependency to be excluded from the asset bundle.
@@ -17,17 +17,20 @@ module Sprockets
17
17
  def search_paths
18
18
  paths = [pathname.to_s]
19
19
 
20
- path_without_extensions = extensions.inject(pathname) { |p, ext| p.sub(ext, '') }
20
+ extension = format_extension
21
+ path_without_extension = extension ?
22
+ pathname.sub(extension, '') :
23
+ pathname
21
24
 
22
25
  # optimization: bower.json can only be nested one level deep
23
- if !path_without_extensions.to_s.index('/')
24
- paths << path_without_extensions.join("bower.json").to_s
26
+ if !path_without_extension.to_s.index('/')
27
+ paths << path_without_extension.join("bower.json").to_s
25
28
  # DEPRECATED bower configuration file
26
- paths << path_without_extensions.join("component.json").to_s
29
+ paths << path_without_extension.join("component.json").to_s
27
30
  end
28
31
 
29
- if pathname.basename(extensions.join).to_s != 'index'
30
- paths << path_without_extensions.join("index#{extensions.join}").to_s
32
+ if pathname.basename(extension.to_s).to_s != 'index'
33
+ paths << path_without_extension.join("index#{extension}").to_s
31
34
  end
32
35
 
33
36
  paths
@@ -135,10 +135,10 @@ module Sprockets
135
135
  asset.write_to "#{target}.gz" if asset.is_a?(BundledAsset)
136
136
  end
137
137
 
138
- save
139
- asset
140
138
  end
141
139
  end
140
+ save
141
+ paths
142
142
  end
143
143
 
144
144
  # Removes file from directory and from manifest. `filename` must
@@ -161,7 +161,7 @@ module Sprockets
161
161
  #
162
162
  # A block can be passed for to create a shorthand processor.
163
163
  #
164
- # register_bundle_processor :my_processor do |context, data|
164
+ # register_bundle_processor 'text/css', :my_processor do |context, data|
165
165
  # data.gsub(...)
166
166
  # end
167
167
  #
@@ -3,7 +3,7 @@ require 'tilt'
3
3
  module Sprockets
4
4
  # `Processor` creates an anonymous processor class from a block.
5
5
  #
6
- # register_preprocessor :my_processor do |context, data|
6
+ # register_preprocessor 'text/css', :my_processor do |context, data|
7
7
  # # ...
8
8
  # end
9
9
  #
@@ -1,3 +1,3 @@
1
1
  module Sprockets
2
- VERSION = "2.10.0"
2
+ VERSION = "2.10.1"
3
3
  end
metadata CHANGED
@@ -1,256 +1,277 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sprockets
3
- version: !ruby/object:Gem::Version
4
- version: 2.10.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 37
5
+ prerelease:
6
+ segments:
7
+ - 2
8
+ - 10
9
+ - 1
10
+ version: 2.10.1
5
11
  platform: ruby
6
- authors:
12
+ authors:
7
13
  - Sam Stephenson
8
14
  - Joshua Peek
9
15
  autorequire:
10
16
  bindir: bin
11
17
  cert_chain: []
12
- date: 2013-05-24 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
18
+
19
+ date: 2013-11-22 00:00:00 -08:00
20
+ default_executable:
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
15
23
  name: hike
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - ~>
19
- - !ruby/object:Gem::Version
20
- version: '1.2'
21
- type: :runtime
22
24
  prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ~>
26
- - !ruby/object:Gem::Version
27
- version: '1.2'
28
- - !ruby/object:Gem::Dependency
29
- name: multi_json
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
32
28
  - - ~>
33
- - !ruby/object:Gem::Version
34
- version: '1.0'
29
+ - !ruby/object:Gem::Version
30
+ hash: 11
31
+ segments:
32
+ - 1
33
+ - 2
34
+ version: "1.2"
35
35
  type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: multi_json
36
39
  prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
39
43
  - - ~>
40
- - !ruby/object:Gem::Version
41
- version: '1.0'
42
- - !ruby/object:Gem::Dependency
43
- name: rack
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ~>
47
- - !ruby/object:Gem::Version
48
- version: '1.0'
44
+ - !ruby/object:Gem::Version
45
+ hash: 15
46
+ segments:
47
+ - 1
48
+ - 0
49
+ version: "1.0"
49
50
  type: :runtime
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: rack
50
54
  prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
53
58
  - - ~>
54
- - !ruby/object:Gem::Version
55
- version: '1.0'
56
- - !ruby/object:Gem::Dependency
57
- name: tilt
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - ~>
61
- - !ruby/object:Gem::Version
62
- version: '1.1'
63
- - - '!='
64
- - !ruby/object:Gem::Version
65
- version: 1.3.0
59
+ - !ruby/object:Gem::Version
60
+ hash: 15
61
+ segments:
62
+ - 1
63
+ - 0
64
+ version: "1.0"
66
65
  type: :runtime
66
+ version_requirements: *id003
67
+ - !ruby/object:Gem::Dependency
68
+ name: tilt
67
69
  prerelease: false
68
- version_requirements: !ruby/object:Gem::Requirement
69
- requirements:
70
+ requirement: &id004 !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
70
73
  - - ~>
71
- - !ruby/object:Gem::Version
72
- version: '1.1'
73
- - - '!='
74
- - !ruby/object:Gem::Version
74
+ - !ruby/object:Gem::Version
75
+ hash: 13
76
+ segments:
77
+ - 1
78
+ - 1
79
+ version: "1.1"
80
+ - - "!="
81
+ - !ruby/object:Gem::Version
82
+ hash: 27
83
+ segments:
84
+ - 1
85
+ - 3
86
+ - 0
75
87
  version: 1.3.0
76
- - !ruby/object:Gem::Dependency
88
+ type: :runtime
89
+ version_requirements: *id004
90
+ - !ruby/object:Gem::Dependency
77
91
  name: closure-compiler
78
- requirement: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- type: :development
84
92
  prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- - !ruby/object:Gem::Dependency
91
- name: coffee-script
92
- requirement: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ~>
95
- - !ruby/object:Gem::Version
96
- version: '2.0'
93
+ requirement: &id005 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ hash: 3
99
+ segments:
100
+ - 0
101
+ version: "0"
97
102
  type: :development
103
+ version_requirements: *id005
104
+ - !ruby/object:Gem::Dependency
105
+ name: coffee-script
98
106
  prerelease: false
99
- version_requirements: !ruby/object:Gem::Requirement
100
- requirements:
107
+ requirement: &id006 !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
101
110
  - - ~>
102
- - !ruby/object:Gem::Version
103
- version: '2.0'
104
- - !ruby/object:Gem::Dependency
105
- name: coffee-script-source
106
- requirement: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ~>
109
- - !ruby/object:Gem::Version
110
- version: '1.2'
111
+ - !ruby/object:Gem::Version
112
+ hash: 3
113
+ segments:
114
+ - 2
115
+ - 0
116
+ version: "2.0"
111
117
  type: :development
118
+ version_requirements: *id006
119
+ - !ruby/object:Gem::Dependency
120
+ name: coffee-script-source
112
121
  prerelease: false
113
- version_requirements: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ~>
116
- - !ruby/object:Gem::Version
117
- version: '1.2'
118
- - !ruby/object:Gem::Dependency
119
- name: eco
120
- requirement: !ruby/object:Gem::Requirement
121
- requirements:
122
+ requirement: &id007 !ruby/object:Gem::Requirement
123
+ none: false
124
+ requirements:
122
125
  - - ~>
123
- - !ruby/object:Gem::Version
124
- version: '1.0'
126
+ - !ruby/object:Gem::Version
127
+ hash: 11
128
+ segments:
129
+ - 1
130
+ - 2
131
+ version: "1.2"
125
132
  type: :development
133
+ version_requirements: *id007
134
+ - !ruby/object:Gem::Dependency
135
+ name: eco
126
136
  prerelease: false
127
- version_requirements: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ~>
130
- - !ruby/object:Gem::Version
131
- version: '1.0'
132
- - !ruby/object:Gem::Dependency
133
- name: ejs
134
- requirement: !ruby/object:Gem::Requirement
135
- requirements:
137
+ requirement: &id008 !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
136
140
  - - ~>
137
- - !ruby/object:Gem::Version
138
- version: '1.0'
141
+ - !ruby/object:Gem::Version
142
+ hash: 15
143
+ segments:
144
+ - 1
145
+ - 0
146
+ version: "1.0"
139
147
  type: :development
148
+ version_requirements: *id008
149
+ - !ruby/object:Gem::Dependency
150
+ name: ejs
140
151
  prerelease: false
141
- version_requirements: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ~>
144
- - !ruby/object:Gem::Version
145
- version: '1.0'
146
- - !ruby/object:Gem::Dependency
147
- name: execjs
148
- requirement: !ruby/object:Gem::Requirement
149
- requirements:
152
+ requirement: &id009 !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
150
155
  - - ~>
151
- - !ruby/object:Gem::Version
152
- version: '1.0'
156
+ - !ruby/object:Gem::Version
157
+ hash: 15
158
+ segments:
159
+ - 1
160
+ - 0
161
+ version: "1.0"
153
162
  type: :development
163
+ version_requirements: *id009
164
+ - !ruby/object:Gem::Dependency
165
+ name: execjs
154
166
  prerelease: false
155
- version_requirements: !ruby/object:Gem::Requirement
156
- requirements:
167
+ requirement: &id010 !ruby/object:Gem::Requirement
168
+ none: false
169
+ requirements:
157
170
  - - ~>
158
- - !ruby/object:Gem::Version
159
- version: '1.0'
160
- - !ruby/object:Gem::Dependency
161
- name: json
162
- requirement: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - '>='
165
- - !ruby/object:Gem::Version
166
- version: '0'
171
+ - !ruby/object:Gem::Version
172
+ hash: 15
173
+ segments:
174
+ - 1
175
+ - 0
176
+ version: "1.0"
167
177
  type: :development
178
+ version_requirements: *id010
179
+ - !ruby/object:Gem::Dependency
180
+ name: json
168
181
  prerelease: false
169
- version_requirements: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - '>='
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- - !ruby/object:Gem::Dependency
175
- name: rack-test
176
- requirement: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - '>='
179
- - !ruby/object:Gem::Version
180
- version: '0'
182
+ requirement: &id011 !ruby/object:Gem::Requirement
183
+ none: false
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ hash: 3
188
+ segments:
189
+ - 0
190
+ version: "0"
181
191
  type: :development
192
+ version_requirements: *id011
193
+ - !ruby/object:Gem::Dependency
194
+ name: rack-test
182
195
  prerelease: false
183
- version_requirements: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - '>='
186
- - !ruby/object:Gem::Version
187
- version: '0'
188
- - !ruby/object:Gem::Dependency
189
- name: rake
190
- requirement: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - '>='
193
- - !ruby/object:Gem::Version
194
- version: '0'
196
+ requirement: &id012 !ruby/object:Gem::Requirement
197
+ none: false
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ hash: 3
202
+ segments:
203
+ - 0
204
+ version: "0"
195
205
  type: :development
206
+ version_requirements: *id012
207
+ - !ruby/object:Gem::Dependency
208
+ name: rake
196
209
  prerelease: false
197
- version_requirements: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - '>='
200
- - !ruby/object:Gem::Version
201
- version: '0'
202
- - !ruby/object:Gem::Dependency
203
- name: sass
204
- requirement: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - ~>
207
- - !ruby/object:Gem::Version
208
- version: '3.1'
210
+ requirement: &id013 !ruby/object:Gem::Requirement
211
+ none: false
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ hash: 3
216
+ segments:
217
+ - 0
218
+ version: "0"
209
219
  type: :development
220
+ version_requirements: *id013
221
+ - !ruby/object:Gem::Dependency
222
+ name: sass
210
223
  prerelease: false
211
- version_requirements: !ruby/object:Gem::Requirement
212
- requirements:
224
+ requirement: &id014 !ruby/object:Gem::Requirement
225
+ none: false
226
+ requirements:
213
227
  - - ~>
214
- - !ruby/object:Gem::Version
215
- version: '3.1'
216
- - !ruby/object:Gem::Dependency
217
- name: uglifier
218
- requirement: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - '>='
221
- - !ruby/object:Gem::Version
222
- version: '0'
228
+ - !ruby/object:Gem::Version
229
+ hash: 5
230
+ segments:
231
+ - 3
232
+ - 1
233
+ version: "3.1"
223
234
  type: :development
235
+ version_requirements: *id014
236
+ - !ruby/object:Gem::Dependency
237
+ name: uglifier
224
238
  prerelease: false
225
- version_requirements: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - '>='
228
- - !ruby/object:Gem::Version
229
- version: '0'
230
- - !ruby/object:Gem::Dependency
231
- name: yui-compressor
232
- requirement: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - '>='
235
- - !ruby/object:Gem::Version
236
- version: '0'
239
+ requirement: &id015 !ruby/object:Gem::Requirement
240
+ none: false
241
+ requirements:
242
+ - - ">="
243
+ - !ruby/object:Gem::Version
244
+ hash: 3
245
+ segments:
246
+ - 0
247
+ version: "0"
237
248
  type: :development
249
+ version_requirements: *id015
250
+ - !ruby/object:Gem::Dependency
251
+ name: yui-compressor
238
252
  prerelease: false
239
- version_requirements: !ruby/object:Gem::Requirement
240
- requirements:
241
- - - '>='
242
- - !ruby/object:Gem::Version
243
- version: '0'
244
- description: Sprockets is a Rack-based asset packaging system that concatenates and
245
- serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.
246
- email:
253
+ requirement: &id016 !ruby/object:Gem::Requirement
254
+ none: false
255
+ requirements:
256
+ - - ">="
257
+ - !ruby/object:Gem::Version
258
+ hash: 3
259
+ segments:
260
+ - 0
261
+ version: "0"
262
+ type: :development
263
+ version_requirements: *id016
264
+ description: Sprockets is a Rack-based asset packaging system that concatenates and serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.
265
+ email:
247
266
  - sstephenson@gmail.com
248
267
  - josh@joshpeek.com
249
- executables:
268
+ executables:
250
269
  - sprockets
251
270
  extensions: []
271
+
252
272
  extra_rdoc_files: []
253
- files:
273
+
274
+ files:
254
275
  - README.md
255
276
  - LICENSE
256
277
  - lib/rake/sprocketstask.rb
@@ -293,28 +314,39 @@ files:
293
314
  - lib/sprockets/yui_compressor.rb
294
315
  - lib/sprockets.rb
295
316
  - bin/sprockets
317
+ has_rdoc: true
296
318
  homepage: http://getsprockets.org/
297
- licenses:
319
+ licenses:
298
320
  - MIT
299
- metadata: {}
300
321
  post_install_message:
301
322
  rdoc_options: []
302
- require_paths:
323
+
324
+ require_paths:
303
325
  - lib
304
- required_ruby_version: !ruby/object:Gem::Requirement
305
- requirements:
306
- - - '>='
307
- - !ruby/object:Gem::Version
308
- version: '0'
309
- required_rubygems_version: !ruby/object:Gem::Requirement
310
- requirements:
311
- - - '>='
312
- - !ruby/object:Gem::Version
313
- version: '0'
326
+ required_ruby_version: !ruby/object:Gem::Requirement
327
+ none: false
328
+ requirements:
329
+ - - ">="
330
+ - !ruby/object:Gem::Version
331
+ hash: 3
332
+ segments:
333
+ - 0
334
+ version: "0"
335
+ required_rubygems_version: !ruby/object:Gem::Requirement
336
+ none: false
337
+ requirements:
338
+ - - ">="
339
+ - !ruby/object:Gem::Version
340
+ hash: 3
341
+ segments:
342
+ - 0
343
+ version: "0"
314
344
  requirements: []
345
+
315
346
  rubyforge_project: sprockets
316
- rubygems_version: 2.0.0
347
+ rubygems_version: 1.6.2
317
348
  signing_key:
318
- specification_version: 4
349
+ specification_version: 3
319
350
  summary: Rack-based asset packaging system
320
351
  test_files: []
352
+
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: c90e3417598a1b64c0be6d72a414197353e0b788
4
- data.tar.gz: 2af70c60e64be9dae58a09a6187eb75eb53f3462
5
- SHA512:
6
- metadata.gz: 306b16c0e46699a7a38027db68081e5a33991961a6da1c95dc0ff25a3b0d3f0716c32a93f4895467588b28fa188da72c1f4ac3b2d314298f0d2b6fe914793dfd
7
- data.tar.gz: b05e30570a5ad91f01dff636a5d3ffe00d3c3a5feb752a53e558932b8783a68c565b88da395673acbc3e2fd94274b177e3815a22b3b45359dc4f4090035fe681