latinum 0.5.5 → 0.5.6
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 +2 -0
- data/lib/latinum/version.rb +1 -1
- data/spec/latinum/resource_spec.rb +9 -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: b5a04f37290c238dda1763d8a9df4a0a858def89
|
4
|
+
data.tar.gz: 3afb2e8848f66d1ac4807808ab7981fea0ae4ac0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fb26870f5d89b03ebb5f06870fda36f8db2d05d76e9ff9f9ca535ba661d0f11824b3797bf60e3c0102e7fe1e0ef8ed5363c08e76761dbbeaf159aed54e9dadf
|
7
|
+
data.tar.gz: 0af553ebbef75f2fe4faa3efc70a7e68ebf9a7916548e3cc6ce7f3c5cfae2da23db96323a5f7d84c3a6942b73d59919083afc09b7fbab43fd65d08c60494d5da
|
data/lib/latinum/resource.rb
CHANGED
data/lib/latinum/version.rb
CHANGED
@@ -72,5 +72,14 @@ module Latinum::ResourceSpec
|
|
72
72
|
|
73
73
|
expect(original_price / 2.0).to be == Latinum::Resource.load("5 NZD")
|
74
74
|
end
|
75
|
+
|
76
|
+
it "should compare with nil" do
|
77
|
+
a = Latinum::Resource.load("10 NZD")
|
78
|
+
|
79
|
+
expect{a <=> nil}.to_not raise_exception
|
80
|
+
expect{a == nil}.to_not raise_exception
|
81
|
+
expect(a <=> nil).to be == nil
|
82
|
+
expect(a == nil).to be == false
|
83
|
+
end
|
75
84
|
end
|
76
85
|
end
|
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.5.
|
4
|
+
version: 0.5.6
|
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-08-
|
11
|
+
date: 2015-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|