ziptz 3.0.9 → 3.0.10
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/Gemfile.lock +2 -1
 - data/LICENSE +1 -1
 - data/README.md +3 -3
 - data/lib/ziptz.rb +5 -1
 - data/spec/ziptz_spec.rb +14 -0
 - metadata +2 -3
 - data/Gemfile.travis +0 -7
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 4d22da9d5540716231ddc2f4ebefa1aa5ad1d72afcc389fdbf20958c424fec44
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: f1be4a8a2c1013726ab2fddd262063f6b9278c7bf7205b63028649f831d2797d
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 2a7af6d0000e89de00ef1235f36ad0667c275d34ef267161cd9674be45b1311a1c3855f5f08a10aa95b65801bd266aa238e8899e5f4966a7ae7fe885876ee7f5
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 8939eb2760a0f90a0930426b01c52742ce2e18abfda23c8f9d25898f15149b5faffa1c839e4fce57da5fd629e3e7387fc2c09b16da0483f8a1d89f142df74e81
         
     | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/LICENSE
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Ziptz
         
     | 
| 
       2 
2 
     | 
    
         
             
            [](https://rubygems.org/gems/ziptz)
         
     | 
| 
       3 
     | 
    
         
            -
            [](https://github.com/infused/ziptz/actions/workflows/build.yml)
         
     | 
| 
       4 
4 
     | 
    
         
             
            [](https://rubygems.org/gems/ziptz/)
         
     | 
| 
       5 
5 
     | 
    
         
             
            [](https://github.com/infused/ziptz)
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
         @@ -12,7 +12,7 @@ Get time zone, daylight saving time, and base offset for any US ZIP code. 
     | 
|
| 
       12 
12 
     | 
    
         | 
| 
       13 
13 
     | 
    
         
             
            Ziptz is tested to work with the following versions of Ruby:
         
     | 
| 
       14 
14 
     | 
    
         | 
| 
       15 
     | 
    
         
            -
            * Ruby 2.3.x, 2.4.x, 2.5.x, 2.6.x, 2.7.x, 3.x 
     | 
| 
      
 15 
     | 
    
         
            +
            * Ruby 2.3.x, 2.4.x, 2.5.x, 2.6.x, 2.7.x, 3.x
         
     | 
| 
       16 
16 
     | 
    
         | 
| 
       17 
17 
     | 
    
         
             
            ## Installation
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
         @@ -160,7 +160,7 @@ Time zone names now reflect standard tz-database names. 
     | 
|
| 
       160 
160 
     | 
    
         | 
| 
       161 
161 
     | 
    
         
             
            ## License
         
     | 
| 
       162 
162 
     | 
    
         | 
| 
       163 
     | 
    
         
            -
              Copyright (c) 2015- 
     | 
| 
      
 163 
     | 
    
         
            +
              Copyright (c) 2015-2022 Keith Morrison <<keithm@infused.org>>
         
     | 
| 
       164 
164 
     | 
    
         | 
| 
       165 
165 
     | 
    
         
             
              Permission is hereby granted, free of charge, to any person
         
     | 
| 
       166 
166 
     | 
    
         
             
              obtaining a copy of this software and associated documentation
         
     | 
    
        data/lib/ziptz.rb
    CHANGED
    
    
    
        data/spec/ziptz_spec.rb
    CHANGED
    
    | 
         @@ -106,4 +106,18 @@ RSpec.describe Ziptz do 
     | 
|
| 
       106 
106 
     | 
    
         
             
                  end
         
     | 
| 
       107 
107 
     | 
    
         
             
                end
         
     | 
| 
       108 
108 
     | 
    
         
             
              end
         
     | 
| 
      
 109 
     | 
    
         
            +
             
     | 
| 
      
 110 
     | 
    
         
            +
              describe '#instance' do
         
     | 
| 
      
 111 
     | 
    
         
            +
                context 'when given a 5 digit zip code' do
         
     | 
| 
      
 112 
     | 
    
         
            +
                  it 'matches the behavior of Ziptz.new' do
         
     | 
| 
      
 113 
     | 
    
         
            +
                    expect(Ziptz.instance.time_zone_name('97034')).to eq ziptz.time_zone_name('97034')
         
     | 
| 
      
 114 
     | 
    
         
            +
                  end
         
     | 
| 
      
 115 
     | 
    
         
            +
                end
         
     | 
| 
      
 116 
     | 
    
         
            +
             
     | 
| 
      
 117 
     | 
    
         
            +
                context 'when called twice' do
         
     | 
| 
      
 118 
     | 
    
         
            +
                  it 'returns identical instances' do
         
     | 
| 
      
 119 
     | 
    
         
            +
                    expect(Ziptz.instance.object_id).to eq Ziptz.instance.object_id
         
     | 
| 
      
 120 
     | 
    
         
            +
                  end
         
     | 
| 
      
 121 
     | 
    
         
            +
                end
         
     | 
| 
      
 122 
     | 
    
         
            +
              end
         
     | 
| 
       109 
123 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: ziptz
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 3.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 3.0.10
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Keith Morrison
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2022- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2022-06-15 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       13 
13 
     | 
    
         
             
            description: Get timezone info for all 5-digit US zip codes
         
     | 
| 
       14 
14 
     | 
    
         
             
            email: keithm@infused.org
         
     | 
| 
         @@ -20,7 +20,6 @@ extra_rdoc_files: 
     | 
|
| 
       20 
20 
     | 
    
         
             
            files:
         
     | 
| 
       21 
21 
     | 
    
         
             
            - Gemfile
         
     | 
| 
       22 
22 
     | 
    
         
             
            - Gemfile.lock
         
     | 
| 
       23 
     | 
    
         
            -
            - Gemfile.travis
         
     | 
| 
       24 
23 
     | 
    
         
             
            - Guardfile
         
     | 
| 
       25 
24 
     | 
    
         
             
            - LICENSE
         
     | 
| 
       26 
25 
     | 
    
         
             
            - README.md
         
     |