sprockets 3.5.1 → 3.5.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/CHANGELOG.md +5 -0
- data/lib/sprockets.rb +2 -1
- data/lib/sprockets/compressing.rb +20 -15
- data/lib/sprockets/manifest.rb +1 -1
- data/lib/sprockets/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 929bf083589cbbd2e0c130a06fd8c3a528dc9be8
|
4
|
+
data.tar.gz: 87faf2c9c2276b06057647e99ab856d19ae3e1cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88961b6e91bcc5f16e4e0d62440a03e16cb783ec57c953300a971d327d02f52871e8a0826fec6695711ddf6dda0894f2a1abf213d8bca8c5a8d5a68b7b6abe11
|
7
|
+
data.tar.gz: 250a379b175d515ca5a34c8f85fe50a3b9af881c367783756e72ff20fb34cc2a492c646af0b31f1c53c78beaff6fd690253a14a44dbf70f03671403025c9c512
|
data/CHANGELOG.md
CHANGED
data/lib/sprockets.rb
CHANGED
@@ -33,7 +33,8 @@ module Sprockets
|
|
33
33
|
registered_transformers: Hash.new { |h, k| {}.freeze }.freeze,
|
34
34
|
root: File.expand_path('..', __FILE__).freeze,
|
35
35
|
transformers: Hash.new { |h, k| {}.freeze }.freeze,
|
36
|
-
version: ""
|
36
|
+
version: "",
|
37
|
+
gzip_enabled: true
|
37
38
|
}.freeze
|
38
39
|
self.computed_config = {}
|
39
40
|
|
@@ -51,21 +51,6 @@ module Sprockets
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
def gzip?
|
55
|
-
return @gzip if defined?(@gzip)
|
56
|
-
true
|
57
|
-
end
|
58
|
-
|
59
|
-
def skip_gzip?
|
60
|
-
!gzip?
|
61
|
-
end
|
62
|
-
|
63
|
-
# Enable or disable the creation of gzip files,
|
64
|
-
# on by default.
|
65
|
-
def gzip=(gzip)
|
66
|
-
@gzip = gzip
|
67
|
-
end
|
68
|
-
|
69
54
|
# Assign a compressor to run on `application/javascript` assets.
|
70
55
|
#
|
71
56
|
# The compressor object must respond to `compress`.
|
@@ -85,5 +70,25 @@ module Sprockets
|
|
85
70
|
|
86
71
|
register_bundle_processor 'application/javascript', klass
|
87
72
|
end
|
73
|
+
|
74
|
+
# Public: Checks if Gzip is enabled.
|
75
|
+
def gzip?
|
76
|
+
config[:gzip_enabled]
|
77
|
+
end
|
78
|
+
|
79
|
+
# Public: Checks if Gzip is disabled.
|
80
|
+
def skip_gzip?
|
81
|
+
!gzip?
|
82
|
+
end
|
83
|
+
|
84
|
+
# Public: Enable or disable the creation of Gzip files.
|
85
|
+
#
|
86
|
+
# Defaults to true.
|
87
|
+
#
|
88
|
+
# environment.gzip = false
|
89
|
+
#
|
90
|
+
def gzip=(gzip)
|
91
|
+
self.config = config.merge(gzip_enabled: gzip).freeze
|
92
|
+
end
|
88
93
|
end
|
89
94
|
end
|
data/lib/sprockets/manifest.rb
CHANGED
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: 3.5.
|
4
|
+
version: 3.5.2
|
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: 2015-12-
|
12
|
+
date: 2015-12-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
@@ -332,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
332
332
|
version: '0'
|
333
333
|
requirements: []
|
334
334
|
rubyforge_project: sprockets
|
335
|
-
rubygems_version: 2.5.
|
335
|
+
rubygems_version: 2.4.5.1
|
336
336
|
signing_key:
|
337
337
|
specification_version: 4
|
338
338
|
summary: Rack-based asset packaging system
|