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 +5 -0
- data/lib/sprockets/asset_attributes.rb +9 -6
- data/lib/sprockets/manifest.rb +2 -2
- data/lib/sprockets/processing.rb +1 -1
- data/lib/sprockets/processor.rb +1 -1
- data/lib/sprockets/version.rb +1 -1
- metadata +245 -213
- checksums.yaml +0 -7
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
|
-
|
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 !
|
24
|
-
paths <<
|
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 <<
|
29
|
+
paths << path_without_extension.join("component.json").to_s
|
27
30
|
end
|
28
31
|
|
29
|
-
if pathname.basename(
|
30
|
-
paths <<
|
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
|
data/lib/sprockets/manifest.rb
CHANGED
data/lib/sprockets/processing.rb
CHANGED
@@ -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
|
#
|
data/lib/sprockets/processor.rb
CHANGED
data/lib/sprockets/version.rb
CHANGED
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
|
-
|
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
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
24
|
-
|
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
|
-
|
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
|
-
|
38
|
-
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
39
43
|
- - ~>
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
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
|
-
|
52
|
-
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
53
58
|
- - ~>
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
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
|
-
|
69
|
-
|
70
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
72
|
+
requirements:
|
70
73
|
- - ~>
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
|
73
|
-
|
74
|
-
|
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
|
-
|
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
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
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
|
-
|
100
|
-
|
107
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
101
110
|
- - ~>
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
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
|
-
|
114
|
-
|
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
|
-
|
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
|
-
|
128
|
-
|
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
|
-
|
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
|
-
|
142
|
-
|
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
|
-
|
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
|
-
|
156
|
-
|
167
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
168
|
+
none: false
|
169
|
+
requirements:
|
157
170
|
- - ~>
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
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
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
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
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
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
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
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
|
-
|
212
|
-
|
224
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
225
|
+
none: false
|
226
|
+
requirements:
|
213
227
|
- - ~>
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
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
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
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
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
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
|
-
|
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
|
-
|
323
|
+
|
324
|
+
require_paths:
|
303
325
|
- lib
|
304
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
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:
|
347
|
+
rubygems_version: 1.6.2
|
317
348
|
signing_key:
|
318
|
-
specification_version:
|
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
|