latinum 1.0.0 → 1.1.0
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 +4 -4
- data/lib/latinum/collection.rb +8 -0
- data/lib/latinum/version.rb +1 -1
- data/spec/latinum/collection_spec.rb +13 -0
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 1d25caed111068113305cf5449f8827c264b0cae
         | 
| 4 | 
            +
              data.tar.gz: 173082ed719b3c01d3f8ca0695015f43e5d73f9b
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 3c471f206c325bee3ebb24bb6d5a25cdf97962c9061e28c02befe5ba223dd7a6b0a46635590ed3b033622bfd4a989f61061734b3c4571fbca9ea3ee002e5e5d3
         | 
| 7 | 
            +
              data.tar.gz: 919248b516aa585221b428cbc462127d3e0fd94074359ccd12e74c2f3b65030ad8f32b683dd68fef8f2443b3f3d4d8fbab382191ed386949c41c519acf13787a
         | 
    
        data/lib/latinum/collection.rb
    CHANGED
    
    
    
        data/lib/latinum/version.rb
    CHANGED
    
    
| @@ -81,5 +81,18 @@ module Latinum::CollectionSpec | |
| 81 81 | 
             
            			expect(subject["AUD"]).to be == Latinum::Resource.load("20 AUD")
         | 
| 82 82 | 
             
            			expect(subject["USD"]).to be == Latinum::Resource.load("20 USD")
         | 
| 83 83 | 
             
            		end
         | 
| 84 | 
            +
            		
         | 
| 85 | 
            +
            		it "can enumerate resources" do
         | 
| 86 | 
            +
            			resources = [
         | 
| 87 | 
            +
            				Latinum::Resource.new("10", "NZD"),
         | 
| 88 | 
            +
            				Latinum::Resource.new("10", "AUD"),
         | 
| 89 | 
            +
            				Latinum::Resource.new("10", "USD"),
         | 
| 90 | 
            +
            			]
         | 
| 91 | 
            +
            			
         | 
| 92 | 
            +
            			collection = Latinum::Collection.new
         | 
| 93 | 
            +
            			collection << resources
         | 
| 94 | 
            +
            			
         | 
| 95 | 
            +
            			expect(collection.each.to_a).to be == resources
         | 
| 96 | 
            +
            		end
         | 
| 84 97 | 
             
            	end
         | 
| 85 98 | 
             
            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: 1. | 
| 4 | 
            +
              version: 1.1.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Samuel Williams
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2017-02-10 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 99 99 | 
             
                  version: '0'
         | 
| 100 100 | 
             
            requirements: []
         | 
| 101 101 | 
             
            rubyforge_project: 
         | 
| 102 | 
            -
            rubygems_version: 2. | 
| 102 | 
            +
            rubygems_version: 2.6.10
         | 
| 103 103 | 
             
            signing_key: 
         | 
| 104 104 | 
             
            specification_version: 4
         | 
| 105 105 | 
             
            summary: Latinum is a simple gem for managing resource computations, including money
         |