sprockets 2.12.1 → 2.12.2
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.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/sprockets/base.rb +1 -1
- data/lib/sprockets/sass_functions.rb +14 -14
- data/lib/sprockets/sass_importer.rb +1 -1
- data/lib/sprockets/version.rb +1 -1
- metadata +42 -43
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a18323da3c871b78a1aea7699a585578eca78d85
|
4
|
+
data.tar.gz: 3ab018646337e454e12463cdfef74467d74f016b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7737e045a3bf093a6000679d8868167277e13ba72aeb237cd207d467d4bc1d1b7b5bdc0d457d246868105b641f27a4209d0629cb9391e9c1fd31c2d1bc7f04c2
|
7
|
+
data.tar.gz: b5b52602169324755121be25cc7c99d03751ab014f46945228323f3fdae420ce4c94df1dc80748f3e9d6b0203a2977e0206993271edaa5aabbbf11982e13c11c
|
data/README.md
CHANGED
@@ -366,6 +366,13 @@ submit a pull request.
|
|
366
366
|
|
367
367
|
## Version History ##
|
368
368
|
|
369
|
+
**2.12.2** (September 5, 2014)
|
370
|
+
|
371
|
+
* Ensure internal asset lookups calls are still restricted to load paths within
|
372
|
+
asset compiles. Though, you should not depend on internal asset resolves to be
|
373
|
+
completely restricted for security reasons. Assets themselves should be
|
374
|
+
considered full scripting environments with filesystem access.
|
375
|
+
|
369
376
|
**2.12.1** (April 17, 2014)
|
370
377
|
|
371
378
|
* Fix making manifest target directory when its different than the output directory.
|
data/lib/sprockets/base.rb
CHANGED
@@ -261,7 +261,7 @@ module Sprockets
|
|
261
261
|
# Find asset by logical path or expanded path.
|
262
262
|
def find_asset(path, options = {})
|
263
263
|
logical_path = path
|
264
|
-
pathname = Pathname.new(path)
|
264
|
+
pathname = Pathname.new(path).cleanpath
|
265
265
|
|
266
266
|
if pathname.absolute?
|
267
267
|
return unless stat(pathname)
|
@@ -3,59 +3,59 @@ require 'sass'
|
|
3
3
|
module Sprockets
|
4
4
|
module SassFunctions
|
5
5
|
def asset_path(path)
|
6
|
-
Sass::Script::String.new(sprockets_context.asset_path(path.value), :string)
|
6
|
+
::Sass::Script::String.new(sprockets_context.asset_path(path.value), :string)
|
7
7
|
end
|
8
8
|
|
9
9
|
def asset_url(path)
|
10
|
-
Sass::Script::String.new("url(" + sprockets_context.asset_path(path.value) + ")")
|
10
|
+
::Sass::Script::String.new("url(" + sprockets_context.asset_path(path.value) + ")")
|
11
11
|
end
|
12
12
|
|
13
13
|
def image_path(path)
|
14
|
-
Sass::Script::String.new(sprockets_context.image_path(path.value), :string)
|
14
|
+
::Sass::Script::String.new(sprockets_context.image_path(path.value), :string)
|
15
15
|
end
|
16
16
|
|
17
17
|
def image_url(path)
|
18
|
-
Sass::Script::String.new("url(" + sprockets_context.image_path(path.value) + ")")
|
18
|
+
::Sass::Script::String.new("url(" + sprockets_context.image_path(path.value) + ")")
|
19
19
|
end
|
20
20
|
|
21
21
|
def video_path(path)
|
22
|
-
Sass::Script::String.new(sprockets_context.video_path(path.value), :string)
|
22
|
+
::Sass::Script::String.new(sprockets_context.video_path(path.value), :string)
|
23
23
|
end
|
24
24
|
|
25
25
|
def video_url(path)
|
26
|
-
Sass::Script::String.new("url(" + sprockets_context.video_path(path.value) + ")")
|
26
|
+
::Sass::Script::String.new("url(" + sprockets_context.video_path(path.value) + ")")
|
27
27
|
end
|
28
28
|
|
29
29
|
def audio_path(path)
|
30
|
-
Sass::Script::String.new(sprockets_context.audio_path(path.value), :string)
|
30
|
+
::Sass::Script::String.new(sprockets_context.audio_path(path.value), :string)
|
31
31
|
end
|
32
32
|
|
33
33
|
def audio_url(path)
|
34
|
-
Sass::Script::String.new("url(" + sprockets_context.audio_path(path.value) + ")")
|
34
|
+
::Sass::Script::String.new("url(" + sprockets_context.audio_path(path.value) + ")")
|
35
35
|
end
|
36
36
|
|
37
37
|
def font_path(path)
|
38
|
-
Sass::Script::String.new(sprockets_context.font_path(path.value), :string)
|
38
|
+
::Sass::Script::String.new(sprockets_context.font_path(path.value), :string)
|
39
39
|
end
|
40
40
|
|
41
41
|
def font_url(path)
|
42
|
-
Sass::Script::String.new("url(" + sprockets_context.font_path(path.value) + ")")
|
42
|
+
::Sass::Script::String.new("url(" + sprockets_context.font_path(path.value) + ")")
|
43
43
|
end
|
44
44
|
|
45
45
|
def javascript_path(path)
|
46
|
-
Sass::Script::String.new(sprockets_context.javascript_path(path.value), :string)
|
46
|
+
::Sass::Script::String.new(sprockets_context.javascript_path(path.value), :string)
|
47
47
|
end
|
48
48
|
|
49
49
|
def javascript_url(path)
|
50
|
-
Sass::Script::String.new("url(" + sprockets_context.javascript_path(path.value) + ")")
|
50
|
+
::Sass::Script::String.new("url(" + sprockets_context.javascript_path(path.value) + ")")
|
51
51
|
end
|
52
52
|
|
53
53
|
def stylesheet_path(path)
|
54
|
-
Sass::Script::String.new(sprockets_context.stylesheet_path(path.value), :string)
|
54
|
+
::Sass::Script::String.new(sprockets_context.stylesheet_path(path.value), :string)
|
55
55
|
end
|
56
56
|
|
57
57
|
def stylesheet_url(path)
|
58
|
-
Sass::Script::String.new("url(" + sprockets_context.stylesheet_path(path.value) + ")")
|
58
|
+
::Sass::Script::String.new("url(" + sprockets_context.stylesheet_path(path.value) + ")")
|
59
59
|
end
|
60
60
|
|
61
61
|
protected
|
@@ -3,7 +3,7 @@ require 'sass'
|
|
3
3
|
module Sprockets
|
4
4
|
# This custom importer that tracks all imported filenames during
|
5
5
|
# compile.
|
6
|
-
class SassImporter < Sass::Importers::Filesystem
|
6
|
+
class SassImporter < ::Sass::Importers::Filesystem
|
7
7
|
attr_reader :imported_filenames
|
8
8
|
|
9
9
|
def initialize(*args)
|
data/lib/sprockets/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprockets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.12.
|
4
|
+
version: 2.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Stephenson
|
@@ -9,236 +9,236 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-09-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hike
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '1.2'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - ~>
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '1.2'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: multi_json
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - ~>
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '1.0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - ~>
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '1.0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rack
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - ~>
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '1.0'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - ~>
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '1.0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: tilt
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - ~>
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '1.1'
|
63
|
-
- -
|
63
|
+
- - "!="
|
64
64
|
- !ruby/object:Gem::Version
|
65
65
|
version: 1.3.0
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
68
|
version_requirements: !ruby/object:Gem::Requirement
|
69
69
|
requirements:
|
70
|
-
- - ~>
|
70
|
+
- - "~>"
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '1.1'
|
73
|
-
- -
|
73
|
+
- - "!="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 1.3.0
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: closure-compiler
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
- !ruby/object:Gem::Dependency
|
91
91
|
name: coffee-script
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '2.0'
|
97
97
|
type: :development
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '2.0'
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: coffee-script-source
|
106
106
|
requirement: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - ~>
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '1.2'
|
111
111
|
type: :development
|
112
112
|
prerelease: false
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - ~>
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '1.2'
|
118
118
|
- !ruby/object:Gem::Dependency
|
119
119
|
name: eco
|
120
120
|
requirement: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - ~>
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '1.0'
|
125
125
|
type: :development
|
126
126
|
prerelease: false
|
127
127
|
version_requirements: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - ~>
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '1.0'
|
132
132
|
- !ruby/object:Gem::Dependency
|
133
133
|
name: ejs
|
134
134
|
requirement: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - ~>
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '1.0'
|
139
139
|
type: :development
|
140
140
|
prerelease: false
|
141
141
|
version_requirements: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - ~>
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '1.0'
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: execjs
|
148
148
|
requirement: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - ~>
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '1.0'
|
153
153
|
type: :development
|
154
154
|
prerelease: false
|
155
155
|
version_requirements: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - ~>
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '1.0'
|
160
160
|
- !ruby/object:Gem::Dependency
|
161
161
|
name: json
|
162
162
|
requirement: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
type: :development
|
168
168
|
prerelease: false
|
169
169
|
version_requirements: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- -
|
171
|
+
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0'
|
174
174
|
- !ruby/object:Gem::Dependency
|
175
175
|
name: rack-test
|
176
176
|
requirement: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- -
|
178
|
+
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
type: :development
|
182
182
|
prerelease: false
|
183
183
|
version_requirements: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- -
|
185
|
+
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
- !ruby/object:Gem::Dependency
|
189
189
|
name: rake
|
190
190
|
requirement: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- -
|
192
|
+
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
type: :development
|
196
196
|
prerelease: false
|
197
197
|
version_requirements: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- -
|
199
|
+
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
- !ruby/object:Gem::Dependency
|
203
203
|
name: sass
|
204
204
|
requirement: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- - ~>
|
206
|
+
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '3.1'
|
209
209
|
type: :development
|
210
210
|
prerelease: false
|
211
211
|
version_requirements: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- - ~>
|
213
|
+
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '3.1'
|
216
216
|
- !ruby/object:Gem::Dependency
|
217
217
|
name: uglifier
|
218
218
|
requirement: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
|
-
- -
|
220
|
+
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
223
|
type: :development
|
224
224
|
prerelease: false
|
225
225
|
version_requirements: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
|
-
- -
|
227
|
+
- - ">="
|
228
228
|
- !ruby/object:Gem::Version
|
229
229
|
version: '0'
|
230
230
|
- !ruby/object:Gem::Dependency
|
231
231
|
name: yui-compressor
|
232
232
|
requirement: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
|
-
- -
|
234
|
+
- - ">="
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: '0'
|
237
237
|
type: :development
|
238
238
|
prerelease: false
|
239
239
|
version_requirements: !ruby/object:Gem::Requirement
|
240
240
|
requirements:
|
241
|
-
- -
|
241
|
+
- - ">="
|
242
242
|
- !ruby/object:Gem::Version
|
243
243
|
version: '0'
|
244
244
|
description: Sprockets is a Rack-based asset packaging system that concatenates and
|
@@ -251,9 +251,11 @@ executables:
|
|
251
251
|
extensions: []
|
252
252
|
extra_rdoc_files: []
|
253
253
|
files:
|
254
|
-
- README.md
|
255
254
|
- LICENSE
|
255
|
+
- README.md
|
256
|
+
- bin/sprockets
|
256
257
|
- lib/rake/sprocketstask.rb
|
258
|
+
- lib/sprockets.rb
|
257
259
|
- lib/sprockets/asset.rb
|
258
260
|
- lib/sprockets/asset_attributes.rb
|
259
261
|
- lib/sprockets/base.rb
|
@@ -291,8 +293,6 @@ files:
|
|
291
293
|
- lib/sprockets/utils.rb
|
292
294
|
- lib/sprockets/version.rb
|
293
295
|
- lib/sprockets/yui_compressor.rb
|
294
|
-
- lib/sprockets.rb
|
295
|
-
- bin/sprockets
|
296
296
|
homepage: http://getsprockets.org/
|
297
297
|
licenses:
|
298
298
|
- MIT
|
@@ -303,19 +303,18 @@ require_paths:
|
|
303
303
|
- lib
|
304
304
|
required_ruby_version: !ruby/object:Gem::Requirement
|
305
305
|
requirements:
|
306
|
-
- -
|
306
|
+
- - ">="
|
307
307
|
- !ruby/object:Gem::Version
|
308
308
|
version: '0'
|
309
309
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
310
310
|
requirements:
|
311
|
-
- -
|
311
|
+
- - ">="
|
312
312
|
- !ruby/object:Gem::Version
|
313
313
|
version: '0'
|
314
314
|
requirements: []
|
315
315
|
rubyforge_project: sprockets
|
316
|
-
rubygems_version: 2.
|
316
|
+
rubygems_version: 2.2.2
|
317
317
|
signing_key:
|
318
318
|
specification_version: 4
|
319
319
|
summary: Rack-based asset packaging system
|
320
320
|
test_files: []
|
321
|
-
has_rdoc:
|