latinum 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46d2e7bdd92b6bb30e4c4c7138c3293ffdfbe790
4
- data.tar.gz: f6269a07e59743f8f15851b4030d16d5a31d44e9
3
+ metadata.gz: 995a66ac306c3adf34324d0e1447dea9df94f16f
4
+ data.tar.gz: 52277f8cc0847a25babc7ea0631075684c82e452
5
5
  SHA512:
6
- metadata.gz: 4061f01691a05c6e760335350970f3ecfe722c3833ff9f5632b1e0bd0cf624959d7c2b0d285dbf8965b2ccdf2122c7607065051782282b4acbbe41f47eb07ff7
7
- data.tar.gz: fd05ce3b6bfd61e5a1c97c5cad97580a5bc47e1bec959b5cb40f0ed6dbea1e8e4b6b5f595a7fa38158b1800ab96b288392de6dd047af7bcbcc56a1e1a7e36bf7
6
+ metadata.gz: 1ab641ec952d92003b562c8cb605e9957b7e06d8c650d351ed237ea61e2f60ee6be321da12ae12a290e7f0723b7ba5f44d300a2b2e0114fafbffb73e891bfb13
7
+ data.tar.gz: 99b1af25e00450dc0ed9a2be09034bac442e25fa1af3b6b644371ffe30b3af14508fb1f05e6a127533bd507cc077c74ef533d42c78ecd2a8fdd3d54178a016dd
@@ -67,7 +67,7 @@ module Latinum
67
67
  end
68
68
 
69
69
  def inspect
70
- "<#{self.class.name} #{self.to_s.dump}>"
70
+ "#<#{self.class.name} #{self.to_s.dump}>"
71
71
  end
72
72
 
73
73
  def <=> other
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Latinum
22
- VERSION = "0.5.2"
22
+ VERSION = "0.5.3"
23
23
  end
@@ -40,5 +40,11 @@ module Latinum::ResourceSpec
40
40
  expect(Latinum::Resource.load(nil)).to be nil
41
41
  expect(Latinum::Resource.dump(nil)).to be nil
42
42
  end
43
+
44
+ it "should inspect nicely" do
45
+ resource = Latinum::Resource.load("10 NZD")
46
+
47
+ expect(resource.inspect).to be == '#<Latinum::Resource "10.0 NZD">'
48
+ end
43
49
  end
44
50
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: latinum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams