non-stupid-digest-assets 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/non-stupid-digest-assets.rb +6 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c07fb1f5166712c69d13198904f8c3335dd092a
|
4
|
+
data.tar.gz: 8d0640fea0f880f5d1c07c9a57ee92e136c05d0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 262ed49c461a1a8da384014100b50ddf8c19ef6d15c834f8a53cc55bb81b627a28b72a79532ee2584586305bca5a1651c30c0d465bbc1cfe354f140e6dee3f17
|
7
|
+
data.tar.gz: 58701d5a12688d15425b5d0c77b8f8dd2b1a463508a411efb7efa224e3320cde92b7d16cd4e85f5e8bcbeaefd70c020d913d8519b38c91c5a6dc19e6e0283de7
|
@@ -5,9 +5,15 @@ module Sprockets
|
|
5
5
|
|
6
6
|
files.each do |(digest_path, info)|
|
7
7
|
full_digest_path = File.join dir, digest_path
|
8
|
+
full_digest_gz_path = "#{full_digest_path}.gz"
|
8
9
|
full_non_digest_path = File.join dir, info['logical_path']
|
10
|
+
full_non_digest_gz_path = "#{full_non_digest_path}.gz"
|
9
11
|
logger.info "Writing #{full_non_digest_path}"
|
10
12
|
FileUtils.cp full_digest_path, full_non_digest_path
|
13
|
+
if File.exists? full_digest_gz_path
|
14
|
+
logger.info "Writing #{full_non_digest_gz_path}"
|
15
|
+
FileUtils.cp full_digest_gz_path, full_non_digest_gz_path
|
16
|
+
end
|
11
17
|
end
|
12
18
|
end
|
13
19
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: non-stupid-digest-assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Speller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
Rails 4, much to everyone's annoyance, provides no option to generate both digest
|
@@ -34,12 +34,12 @@ require_paths:
|
|
34
34
|
- lib
|
35
35
|
required_ruby_version: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- -
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '0'
|
40
40
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
|
-
- -
|
42
|
+
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: '0'
|
45
45
|
requirements: []
|