postal_code 0.3.3 → 0.3.4

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: 2bc841293567c8576c9b55b968a22c7af1f37f4b
4
- data.tar.gz: fe640c7f242de6fc4b1efcf761374023e1ab3ec3
3
+ metadata.gz: c13a2fb2a219e99e1ad01009729fc6fc949f8bba
4
+ data.tar.gz: 12eb88ec692d1d9c0cf000fccd10a671d6067ced
5
5
  SHA512:
6
- metadata.gz: 4074565f9eae66c7e4ae972b5a2c7c3452cfe6f2e395e96f79dec32ee68a8f4244ed3d35b48c092de1ac77999796dfe718e8d767cca3909fcb3cc2bfca303eec
7
- data.tar.gz: 3f9b8d2497e15174cd15d2e35b9fabefa4d83e673429c2e9c5c2b28f1425cf0106f1d6963ad750320394197df8c3fa3778166bbdf5e4d84c617ebe7d5e07566a
6
+ metadata.gz: b4aab528b794ffdf3e8bf0185298e07e2017448042ccd3a787897ba26b4d6ffdf4b98255321fd7f9e1535b898d5469a9f43639327881dc3b7ced5cbea2c37836
7
+ data.tar.gz: 24411c0cf392f8dd3a1c4f0d7a47c843d16a7041322eefb809fc6c2473d43c4e43639d8e77ee4444a5ddc736265f174bb37a7937c788de19d551c7c53866c5d3
data/README.rdoc CHANGED
@@ -112,7 +112,7 @@ completeness or accuracy of their data.
112
112
 
113
113
  == Links
114
114
 
115
- Homepage :: http://ecentryx.com/gems/postal_code
115
+ Homepage :: https://ecentryx.com/gems/postal_code
116
116
  Ruby Gem :: https://rubygems.org/gems/postal_code
117
117
  Source Code :: https://bitbucket.org/pachl/postal_code/src
118
118
  Bug Tracker :: https://bitbucket.org/pachl/postal_code/issues
@@ -142,12 +142,15 @@ Bug Tracker :: https://bitbucket.org/pachl/postal_code/issues
142
142
  6. 2017-04-07, v0.3.3
143
143
  * Update US database. (427 additions and 468 deletions)
144
144
 
145
+ 7. 2017-06-03, v0.3.4
146
+ * Fix deprecated test code.
147
+
145
148
 
146
149
  == License
147
150
 
148
- ({ISC License}[http://opensource.org/licenses/ISC])
151
+ ({ISC License}[https://opensource.org/licenses/ISC])
149
152
 
150
- Copyright (c) 2015, Clint Pachl <pachl@ecentryx.com>
153
+ Copyright (c) 2017, Clint Pachl <pachl@ecentryx.com>
151
154
 
152
155
  Permission to use, copy, modify, and/or distribute this software for any purpose
153
156
  with or without fee is hereby granted, provided that the above copyright notice
data/lib/postal_code.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module PostalCode
2
2
 
3
- VERSION = '0.3.3'
3
+ VERSION = '0.3.4'
4
4
 
5
5
  CityOffset = 0
6
6
  StateOffset = 1
@@ -43,8 +43,8 @@ class PostalCodeTest < Minitest::Unit::TestCase
43
43
 
44
44
  def test_postal_code_not_found_in_any_city
45
45
  pcode = '99999'
46
- assert_equal nil, PostalCode.city(pcode)
47
- assert_equal nil, PostalCode.state(pcode)
46
+ assert_nil PostalCode.city(pcode)
47
+ assert_nil PostalCode.state(pcode)
48
48
  end
49
49
 
50
50
  def test_reactive_cache
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postal_code
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clint Pachl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-08 00:00:00.000000000 Z
11
+ date: 2017-06-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Resolves a postal code to a corresponding city or state.
14
14
  email: pachl@ecentryx.com
@@ -44,7 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
44
44
  version: '0'
45
45
  requirements: []
46
46
  rubyforge_project:
47
- rubygems_version: 2.5.1
47
+ rubygems_version: 2.6.11
48
48
  signing_key:
49
49
  specification_version: 4
50
50
  summary: Postal Code Resolver