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 +4 -4
- data/lib/sprockets/asset.rb +3 -1
- data/lib/sprockets/base.rb +1 -1
- data/lib/sprockets/static_asset.rb +3 -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: aab0fa8d64dd9f600d048a514e4314c855391a8d
|
4
|
+
data.tar.gz: 5315f5b7c72857a265745d6bdeb61b54613be859
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43e45b508eeb02dae40f657b013adfa2769910e43ecf75d0ae3ccb0af09d7c25374880a78f9b98968b4bb2fedd5bbd56778b2e453ba1871a5ca4c15a89219fc6
|
7
|
+
data.tar.gz: fc695c06af4bd3e0fe69a60a63fc3e406be48afa978fde708f2bd88a628a6e3a0a4f99cf72611b936e0b63d6d8456aa7cd2bee44b087a006288f45ee5d9fcb9a
|
data/lib/sprockets/asset.rb
CHANGED
@@ -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
|
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
|
|
data/lib/sprockets/base.rb
CHANGED
@@ -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
|
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
|
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
|
|
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.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:
|
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.
|
316
|
+
rubygems_version: 2.4.5
|
317
317
|
signing_key:
|
318
318
|
specification_version: 4
|
319
319
|
summary: Rack-based asset packaging system
|