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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 034067fe0fa40bcabd92bfbc36651eb7d91a795a
4
- data.tar.gz: 15805278962fcf3306dbcc6d99b633a2e3d4d27e
3
+ metadata.gz: 4c07fb1f5166712c69d13198904f8c3335dd092a
4
+ data.tar.gz: 8d0640fea0f880f5d1c07c9a57ee92e136c05d0b
5
5
  SHA512:
6
- metadata.gz: c031696bbf8b17c29047135123e801b0d2f3c1c8363cb28ba50b5571f71e3557a944bb3c2917cbc27940f2bf453bbf323dfcaaf0cc834890cc9a8375d7fa7c81
7
- data.tar.gz: 29622297ff236eda07436324bdf842d6ea76c4d0d99781f2441b0c70399176cd9d5d199c42596b83bda5467e3193a4931229da1a12dfdd1b808ef9bdac7ca28f
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.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-09-20 00:00:00.000000000 Z
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: []