non-stupid-digest-assets 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -5
- data/lib/non-stupid-digest-assets.rb +5 -8
- 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: 62f2f015180c0c53dfefcb3672e9d9e512966bcc
|
4
|
+
data.tar.gz: 31a894fba1cfa256a4ad48a2dd8710770b8dc26c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79f1eae6ba6c2171c57939c66527fc79fc91a04ed6e2093e9e585da60942e18ce73f129d5354ca77bb57704c85a8502c090c62fb6ecaca31eed3409dd6bd69f0
|
7
|
+
data.tar.gz: 05d63fe9b4fbecfd2d1778e7d332225bd88f84ecf8b559dd238ba1e12e33e55f8f321aca9ca0dbe022e31cfaa8581941a5cc27e7da56f6091a83954860487e29
|
data/README.md
CHANGED
@@ -6,11 +6,6 @@ What is it?
|
|
6
6
|
|
7
7
|
In Rails 4, there is no way to by default compile both digest and non-digest assets. This is a pain in the arse for almost everyone developing a Rails 4 app. This gem solves the problem with the minimum possible effort.
|
8
8
|
|
9
|
-
Compatibility
|
10
|
-
-------------
|
11
|
-
|
12
|
-
Currently this gem does not work with rails 4.2 beta. Pull requests welcome!
|
13
|
-
|
14
9
|
How do I install it?
|
15
10
|
--------------------
|
16
11
|
|
@@ -20,13 +20,10 @@ module NonStupidDigestAssets
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
23
|
-
end
|
24
|
-
|
25
|
-
module Sprockets
|
26
|
-
class Manifest
|
27
|
-
def compile_with_non_digest *args
|
28
|
-
paths = compile_without_non_digest *args
|
29
23
|
|
24
|
+
module CompileWithNonDigest
|
25
|
+
def compile *args
|
26
|
+
paths = super
|
30
27
|
NonStupidDigestAssets.files(files).each do |(digest_path, info)|
|
31
28
|
full_digest_path = File.join dir, digest_path
|
32
29
|
full_digest_gz_path = "#{full_digest_path}.gz"
|
@@ -48,7 +45,7 @@ module Sprockets
|
|
48
45
|
end
|
49
46
|
paths
|
50
47
|
end
|
51
|
-
|
52
|
-
alias_method_chain :compile, :non_digest
|
53
48
|
end
|
54
49
|
end
|
50
|
+
|
51
|
+
Sprockets::Manifest.prepend NonStupidDigestAssets::CompileWithNonDigest
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Speller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sprockets
|
@@ -50,7 +50,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0'
|
53
|
+
version: '2.0'
|
54
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
56
|
- - ">="
|