popcap 0.9.5 → 0.9.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b3b58f3733fa6dda024a590f0fa0ddbcf580fad
|
4
|
+
data.tar.gz: 9f0dbfbe989d23335c673342dbe0522f4a71a3a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ea0fa3e0723b96961452df6bff16bafa4b38c89d17b0487f3584049389992c8f33ca6117825870684921431665bc0125d4812a5bd88139ab92dbb67494218bb
|
7
|
+
data.tar.gz: b4cd2de89a68a9c37f90382a2c500860a59a95effb2244d001da960967f11c442942fd4db3c5533f63ed55aa523ac566588902d172dc3cc1455670815fc33db2
|
data/lib/pop_cap/version.rb
CHANGED
@@ -29,6 +29,15 @@ module PopCap
|
|
29
29
|
unformatted = UnformattedHash.new(json)
|
30
30
|
expect(unformatted.hash).to eq({filesize: '10', artist: 'artist'})
|
31
31
|
end
|
32
|
+
|
33
|
+
context "JSON does not contain 'tags' element" do
|
34
|
+
let(:json) { '{"format":{"size":"10"}}' }
|
35
|
+
|
36
|
+
it "returns a valid #unformatted hash" do
|
37
|
+
unformatted = UnformattedHash.new(json)
|
38
|
+
expect(unformatted.hash).to eq({filesize: '10'})
|
39
|
+
end
|
40
|
+
end
|
32
41
|
end
|
33
42
|
|
34
43
|
describe '.hash' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: popcap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Culley Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: reek
|