sprockets 2.12.3 → 2.12.4

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: 4ac3ec814692936eab4dc58704519ca15c383880
4
- data.tar.gz: 1888571f870ed8cb1a4e7a36dd78b2c7079991ed
3
+ metadata.gz: aab0fa8d64dd9f600d048a514e4314c855391a8d
4
+ data.tar.gz: 5315f5b7c72857a265745d6bdeb61b54613be859
5
5
  SHA512:
6
- metadata.gz: 5a11411a3911b1bb069ec8b350e3017d96377f70a7a41b62db3b8da1616186c57dd31a9d746f01cc7b16c1e717dd7dfcc1c513a2d92420a4ddbc7f1ee292bdb0
7
- data.tar.gz: 036a48e5dc1c97776e9aa455e6b254ecfcd83edbd0cabc1c999c1b23f4881685458f9e2683c35e38d9ad72946facbefe05b2bdef962d9cc2ab9fa73c74780b82
6
+ metadata.gz: 43e45b508eeb02dae40f657b013adfa2769910e43ecf75d0ae3ccb0af09d7c25374880a78f9b98968b4bb2fedd5bbd56778b2e453ba1871a5ca4c15a89219fc6
7
+ data.tar.gz: fc695c06af4bd3e0fe69a60a63fc3e406be48afa978fde708f2bd88a628a6e3a0a4f99cf72611b936e0b63d6d8456aa7cd2bee44b087a006288f45ee5d9fcb9a
@@ -139,7 +139,9 @@ module Sprockets
139
139
  # Save asset to disk.
140
140
  def write_to(filename, options = {})
141
141
  # Gzip contents if filename has '.gz'
142
- options[:compress] ||= File.extname(filename) == '.gz'
142
+ unless options.key?(:compress)
143
+ options[:compress] = File.extname(filename) == '.gz' && File.extname(logical_path) != '.gz'
144
+ end
143
145
 
144
146
  FileUtils.mkdir_p File.dirname(filename)
145
147
 
@@ -18,7 +18,7 @@ module Sprockets
18
18
  # Defaults to `Digest::MD5`.
19
19
  attr_reader :digest_class
20
20
 
21
- # Assign a `Digest` implementation class. This maybe any Ruby
21
+ # Assign a `Digest` implementation class. This may be any Ruby
22
22
  # `Digest::` implementation such as `Digest::MD5` or
23
23
  # `Digest::SHA1`.
24
24
  #
@@ -21,7 +21,9 @@ module Sprockets
21
21
  # Save asset to disk.
22
22
  def write_to(filename, options = {})
23
23
  # Gzip contents if filename has '.gz'
24
- options[:compress] ||= File.extname(filename) == '.gz'
24
+ unless options.key?(:compress)
25
+ options[:compress] = File.extname(filename) == '.gz' && File.extname(logical_path) != '.gz'
26
+ end
25
27
 
26
28
  FileUtils.mkdir_p File.dirname(filename)
27
29
 
@@ -1,3 +1,3 @@
1
1
  module Sprockets
2
- VERSION = "2.12.3"
2
+ VERSION = "2.12.4"
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: 2.12.3
4
+ version: 2.12.4
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: 2015-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hike
@@ -313,7 +313,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
313
313
  version: '0'
314
314
  requirements: []
315
315
  rubyforge_project: sprockets
316
- rubygems_version: 2.2.2
316
+ rubygems_version: 2.4.5
317
317
  signing_key:
318
318
  specification_version: 4
319
319
  summary: Rack-based asset packaging system