sprockets 2.2.3 → 2.12.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Sprockets
2
- VERSION = "2.2.3"
2
+ VERSION = "2.12.5"
3
3
  end
@@ -0,0 +1,27 @@
1
+ require 'tilt'
2
+
3
+ module Sprockets
4
+ class YUICompressor < Tilt::Template
5
+ def self.engine_initialized?
6
+ defined?(::YUI)
7
+ end
8
+
9
+ def initialize_engine
10
+ require_template_library 'yui/compressor'
11
+ end
12
+
13
+ def prepare
14
+ end
15
+
16
+ def evaluate(context, locals, &block)
17
+ case context.content_type
18
+ when 'application/javascript'
19
+ YUI::JavaScriptCompressor.new.compress(data)
20
+ when 'text/css'
21
+ YUI::CssCompressor.new.compress(data)
22
+ else
23
+ data
24
+ end
25
+ end
26
+ end
27
+ end
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.2.3
4
+ version: 2.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Stephenson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-28 00:00:00.000000000 Z
12
+ date: 2018-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hike
@@ -73,6 +73,20 @@ dependencies:
73
73
  - - "!="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 1.3.0
76
+ - !ruby/object:Gem::Dependency
77
+ name: closure-compiler
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
76
90
  - !ruby/object:Gem::Dependency
77
91
  name: coffee-script
78
92
  requirement: !ruby/object:Gem::Requirement
@@ -93,14 +107,14 @@ dependencies:
93
107
  requirements:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: 1.2.0
110
+ version: '1.2'
97
111
  type: :development
98
112
  prerelease: false
99
113
  version_requirements: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: 1.2.0
117
+ version: '1.2'
104
118
  - !ruby/object:Gem::Dependency
105
119
  name: eco
106
120
  requirement: !ruby/object:Gem::Requirement
@@ -185,6 +199,62 @@ dependencies:
185
199
  - - ">="
186
200
  - !ruby/object:Gem::Version
187
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'
209
+ type: :development
210
+ prerelease: false
211
+ version_requirements: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
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'
223
+ type: :development
224
+ 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'
237
+ type: :development
238
+ prerelease: false
239
+ version_requirements: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ - !ruby/object:Gem::Dependency
245
+ name: test-unit
246
+ requirement: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - "~>"
249
+ - !ruby/object:Gem::Version
250
+ version: '3.1'
251
+ type: :development
252
+ prerelease: false
253
+ version_requirements: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - "~>"
256
+ - !ruby/object:Gem::Version
257
+ version: '3.1'
188
258
  description: Sprockets is a Rack-based asset packaging system that concatenates and
189
259
  serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.
190
260
  email:
@@ -207,6 +277,8 @@ files:
207
277
  - lib/sprockets/cache/file_store.rb
208
278
  - lib/sprockets/caching.rb
209
279
  - lib/sprockets/charset_normalizer.rb
280
+ - lib/sprockets/closure_compressor.rb
281
+ - lib/sprockets/compressing.rb
210
282
  - lib/sprockets/context.rb
211
283
  - lib/sprockets/directive_processor.rb
212
284
  - lib/sprockets/eco_template.rb
@@ -218,17 +290,26 @@ files:
218
290
  - lib/sprockets/jst_processor.rb
219
291
  - lib/sprockets/manifest.rb
220
292
  - lib/sprockets/mime.rb
293
+ - lib/sprockets/paths.rb
221
294
  - lib/sprockets/processed_asset.rb
222
295
  - lib/sprockets/processing.rb
223
296
  - lib/sprockets/processor.rb
224
297
  - lib/sprockets/safety_colons.rb
298
+ - lib/sprockets/sass_cache_store.rb
299
+ - lib/sprockets/sass_compressor.rb
300
+ - lib/sprockets/sass_functions.rb
301
+ - lib/sprockets/sass_importer.rb
302
+ - lib/sprockets/sass_template.rb
303
+ - lib/sprockets/scss_template.rb
225
304
  - lib/sprockets/server.rb
226
305
  - lib/sprockets/static_asset.rb
227
- - lib/sprockets/trail.rb
306
+ - lib/sprockets/uglifier_compressor.rb
228
307
  - lib/sprockets/utils.rb
229
308
  - lib/sprockets/version.rb
309
+ - lib/sprockets/yui_compressor.rb
230
310
  homepage: http://getsprockets.org/
231
- licenses: []
311
+ licenses:
312
+ - MIT
232
313
  metadata: {}
233
314
  post_install_message:
234
315
  rdoc_options: []
@@ -246,7 +327,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
246
327
  version: '0'
247
328
  requirements: []
248
329
  rubyforge_project: sprockets
249
- rubygems_version: 2.2.2
330
+ rubygems_version: 2.7.6
250
331
  signing_key:
251
332
  specification_version: 4
252
333
  summary: Rack-based asset packaging system