asset_manifest 1.0.0.pre.rc1 → 1.0.0.pre.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asset_manifest/version.rb +1 -1
- data/lib/asset_manifest.rb +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a0f6b6cde441c3b7be6227843b40b3ff53c09c4
|
4
|
+
data.tar.gz: 394e37f6a598e5a71f8418b53a58b841df140215
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63b47c66b9ae393d2c182b0d03348d071b1a11ff9571d72999b37a5861d9c2d49ad9a9ad95186858590c6660362e6cd90aa6c44ab928bcd33293d614f6ada2a5
|
7
|
+
data.tar.gz: 1afaf14557151c8c0796582f7029c1c91b264461154d80c0e44e064977f59a40a9470307df843deaeb90d08a64a0d163e142e972ca8d9ccd627a91c636a1aa92
|
data/lib/asset_manifest.rb
CHANGED
@@ -123,9 +123,13 @@ module AssetManifest
|
|
123
123
|
cors: "anonymous")
|
124
124
|
minify = (minify if minify) # Ensure `false` gets converted to `nil`
|
125
125
|
@path = base_path(path, minify)
|
126
|
-
@manifest = manifest
|
127
|
-
@integrity = integrity || @manifest.fetch("integrity")
|
128
|
-
|
126
|
+
@manifest = manifest.fetch(@path, {})
|
127
|
+
@integrity = integrity || @manifest.fetch("integrity") do
|
128
|
+
fail KeyError, "No integrity information for `#{path}` in the manifest"
|
129
|
+
end
|
130
|
+
@checksum = checksum || @manifest.fetch("checksum") do
|
131
|
+
fail KeyError, "No checksum information for `#{path}` in the manifest"
|
132
|
+
end
|
129
133
|
@minify = minify
|
130
134
|
@host = host
|
131
135
|
@cors = cors if cors?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asset_manifest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.
|
4
|
+
version: 1.0.0.pre.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Sanguinetti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cutest
|