non-stupid-digest-assets 1.0.1 → 1.0.2

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: 4c07fb1f5166712c69d13198904f8c3335dd092a
4
- data.tar.gz: 8d0640fea0f880f5d1c07c9a57ee92e136c05d0b
3
+ metadata.gz: 4ee85f56051802bf315a0485cbb13143d35705f7
4
+ data.tar.gz: b3449ef41cf282ad1ad1acdaea5350967fc91740
5
5
  SHA512:
6
- metadata.gz: 262ed49c461a1a8da384014100b50ddf8c19ef6d15c834f8a53cc55bb81b627a28b72a79532ee2584586305bca5a1651c30c0d465bbc1cfe354f140e6dee3f17
7
- data.tar.gz: 58701d5a12688d15425b5d0c77b8f8dd2b1a463508a411efb7efa224e3320cde92b7d16cd4e85f5e8bcbeaefd70c020d913d8519b38c91c5a6dc19e6e0283de7
6
+ metadata.gz: 5c671d99fea5ff1b4a0a7c359811a7de681a8ee1e28efea67c5dea8782a5320c52272bfeb11a80aa6454502ee0a603c3b1136cdc21b91bb664a02141ecb78fa7
7
+ data.tar.gz: b00019b08209f4bf39277e0101d42bf7fec6a5db1bade193d4e01a32cf6d0e1942da96d4ace3685476dca8e9248e1671b21ee367f73ab3e2d90c27c487202c5b
@@ -8,11 +8,18 @@ module Sprockets
8
8
  full_digest_gz_path = "#{full_digest_path}.gz"
9
9
  full_non_digest_path = File.join dir, info['logical_path']
10
10
  full_non_digest_gz_path = "#{full_non_digest_path}.gz"
11
- logger.info "Writing #{full_non_digest_path}"
12
- FileUtils.cp full_digest_path, full_non_digest_path
11
+
12
+ if File.exists? full_digest_path
13
+ logger.info "Writing #{full_non_digest_path}"
14
+ FileUtils.cp full_digest_path, full_non_digest_path
15
+ else
16
+ logger.warn "Could not find: #{full_digest_path}"
17
+ end
13
18
  if File.exists? full_digest_gz_path
14
19
  logger.info "Writing #{full_non_digest_gz_path}"
15
20
  FileUtils.cp full_digest_gz_path, full_non_digest_gz_path
21
+ else
22
+ logger.warn "Could not find: #{full_digest_gz_path}"
16
23
  end
17
24
  end
18
25
  end
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.1
4
+ version: 1.0.2
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-12 00:00:00.000000000 Z
11
+ date: 2014-01-13 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,17 +34,17 @@ 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: []
46
46
  rubyforge_project:
47
- rubygems_version: 2.0.3
47
+ rubygems_version: 2.0.14
48
48
  signing_key:
49
49
  specification_version: 4
50
50
  summary: Fix the Rails 4 asset pipeline to generate non-digest along with digest assets