latinum 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/latinum/resource.rb +6 -1
- data/lib/latinum/version.rb +1 -1
- data/spec/latinum/resource_spec.rb +8 -0
- 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: d6dd56393739d90d4d893817b978c8a14c3dc9c4
|
4
|
+
data.tar.gz: be685ba7796486a231c2483b417ed878c6100251
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5e2b2826c9726d94e73f6d2f97773a19493281725d175c45c8415d827d7a776bf8fac76c60e5926aa818c1f2c3ceb03c6c8064eb5aaaa79580850da98bdf1c5
|
7
|
+
data.tar.gz: 0e093fc3b2a171f38b91781450b4eb9cc70c991ec34d4a09308cc5c4d70b9deecac11e2874be6ab6bcad8b6ee7e3dd2f07d21a75a499e04b9e4f85895ae89aa1
|
data/lib/latinum/resource.rb
CHANGED
data/lib/latinum/version.rb
CHANGED
@@ -36,6 +36,14 @@ module Latinum::ResourceSpec
|
|
36
36
|
expect(Latinum::Resource.dump(nil)).to be nil
|
37
37
|
end
|
38
38
|
|
39
|
+
it "should handle empty strings correctly" do
|
40
|
+
expect(Latinum::Resource.load("")).to be nil
|
41
|
+
end
|
42
|
+
|
43
|
+
it "should handle whitespace strings correctly" do
|
44
|
+
expect(Latinum::Resource.load(" ")).to be nil
|
45
|
+
end
|
46
|
+
|
39
47
|
it "should load and dump resources correctly" do
|
40
48
|
resource = Latinum::Resource.new(10, 'NZD')
|
41
49
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: latinum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|