asset_manifest 1.0.0.pre.rc1 → 1.0.0.pre.rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60c26b354f46bb76f50c8d4a1cbec0b81b34584a
4
- data.tar.gz: 19c9d5a20eded7714f188233edcd5d920d7a7b5d
3
+ metadata.gz: 3a0f6b6cde441c3b7be6227843b40b3ff53c09c4
4
+ data.tar.gz: 394e37f6a598e5a71f8418b53a58b841df140215
5
5
  SHA512:
6
- metadata.gz: 9b2f14e2cdae4e98842eb232089c9c38be813e24819b151a7e0f2a5e37c4e599334f106f58077d70ac2471b5620ea61c1d2a16f3b9e22aa03f7201064915ea05
7
- data.tar.gz: 81fba360287012e033e387c41a3ccabef024c8b20a17c8e3c6029cf0c6970c5ca2f38d16f2cc0db4c518683697cf8c66329bff8eb3bba9e27d1071e909694e1e
6
+ metadata.gz: 63b47c66b9ae393d2c182b0d03348d071b1a11ff9571d72999b37a5861d9c2d49ad9a9ad95186858590c6660362e6cd90aa6c44ab928bcd33293d614f6ada2a5
7
+ data.tar.gz: 1afaf14557151c8c0796582f7029c1c91b264461154d80c0e44e064977f59a40a9470307df843deaeb90d08a64a0d163e142e972ca8d9ccd627a91c636a1aa92
@@ -1,3 +1,3 @@
1
1
  module AssetManifest
2
- VERSION = "1.0.0.pre.rc1".freeze
2
+ VERSION = "1.0.0.pre.rc2".freeze
3
3
  end
@@ -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[@path]
127
- @integrity = integrity || @manifest.fetch("integrity")
128
- @checksum = checksum || @manifest.fetch("checksum")
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.rc1
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-03-21 00:00:00.000000000 Z
11
+ date: 2016-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cutest