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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7dd0209b90a101e98586e5dbc8c1828fb54552e0
4
- data.tar.gz: 4c5a23c98fba032b63f914e27eca0cafc139602f
3
+ metadata.gz: 929bf083589cbbd2e0c130a06fd8c3a528dc9be8
4
+ data.tar.gz: 87faf2c9c2276b06057647e99ab856d19ae3e1cb
5
5
  SHA512:
6
- metadata.gz: 25ac8156e0bf67173e12ff95c683fe5ad7805946b8baf503e6821db164e19c7477af4fbc4384f620ff5f9cd917439a89d3ffeb2ae326f6cd582897e0162b38b2
7
- data.tar.gz: 8d437551f99263d8b4bc636e4a3de57adff4816505d271d60e096661c06e74f0d812d67e95fb6e32f2598d5a28aa6148cc1cc8912a4799a630f288fd1623b169
6
+ metadata.gz: 88961b6e91bcc5f16e4e0d62440a03e16cb783ec57c953300a971d327d02f52871e8a0826fec6695711ddf6dda0894f2a1abf213d8bca8c5a8d5a68b7b6abe11
7
+ data.tar.gz: 250a379b175d515ca5a34c8f85fe50a3b9af881c367783756e72ff20fb34cc2a492c646af0b31f1c53c78beaff6fd690253a14a44dbf70f03671403025c9c512
@@ -1,5 +1,10 @@
1
1
  **Master**
2
2
 
3
+ **3.5.2** (December 8, 2015)
4
+
5
+ * Fix JRuby bug with concurrent-ruby.
6
+ * Fix disabling gzip generation in cached environments.
7
+
3
8
  **3.5.1** (December 5, 2015)
4
9
 
5
10
  * Fix gzip asset generation for assets already on disk.
@@ -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
@@ -1,7 +1,7 @@
1
1
  require 'json'
2
2
  require 'time'
3
3
 
4
- require 'concurrent/future'
4
+ require 'concurrent'
5
5
 
6
6
  require 'sprockets/manifest_utils'
7
7
  require 'sprockets/utils/gzip'
@@ -1,3 +1,3 @@
1
1
  module Sprockets
2
- VERSION = "3.5.1"
2
+ VERSION = "3.5.2"
3
3
  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: 3.5.1
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-05 00:00:00.000000000 Z
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.0
335
+ rubygems_version: 2.4.5.1
336
336
  signing_key:
337
337
  specification_version: 4
338
338
  summary: Rack-based asset packaging system