zipcoder 0.7.1 → 0.7.2

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: 2bf7c5fdd445f99eb575fd0c5fffe9ba2f49fca1
4
- data.tar.gz: a0c9d1ed80f14d1fc621fe7982a9d5d71423c73b
3
+ metadata.gz: 598d049180065e0c7881ad7c123d99e8030bba4d
4
+ data.tar.gz: 6b96e424fc1339d80c95ec2698a472f24485ac45
5
5
  SHA512:
6
- metadata.gz: 18cb90e891b0b82b88242e914ed441a524a1d5bb7c95072832bd3e2978df69a1573a95a1d0ff4c6abdb457282382c6bc467bd56d734a88f827d02ab2a7288208
7
- data.tar.gz: 84fd02dbb1f3b7c11528d6b9706a69f7f7ccf4656e8103ed9bef43ea2cdecdd1e1052b54eebe25760a4da15def99d20b6180bff5e8a5e5eaced12b1d87b47b80
6
+ metadata.gz: 52d58280a07b22c128ff7ce5361f4848d891da41e95a2ff007f3fe86db32a789bb54a82c917296a43c24a225f254dc64667837c200dcd18c144d0f40b6eaede9
7
+ data.tar.gz: 0e322a89ac181addbfc62b169bf140896e86231be363bcd5b754325fa7554d244a9a814e648c615869b8ac8c19487b8ed2b842046cd5e190c0809ef1d8f97827
data/README.md CHANGED
@@ -7,6 +7,8 @@ Gem for performing zip code lookup operations
7
7
 
8
8
  ## Revision History
9
9
 
10
+ - v0.7.2:
11
+ - minro bug fixes
10
12
  - v0.7.0:
11
13
  - added "zips_only" option to "city_info"
12
14
  - v0.6.1:
@@ -29,7 +29,7 @@ class String
29
29
  self.split(',').each do |zip_group|
30
30
  if zip_group.include? '-'
31
31
  components = zip_group.split('-')
32
- ((components[0].to_i)...(components[1].to_i)).each do |zip|
32
+ ((components[0].to_i)..(components[1].to_i)).each do |zip|
33
33
  zips.push(zip.to_s)
34
34
  end
35
35
  else
@@ -1,3 +1,3 @@
1
1
  module Zipcoder
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -284,8 +284,9 @@ describe Zipcoder do
284
284
  end
285
285
  it "only returns the zip codes" do
286
286
  zip_codes = "Austin, TX".city_info zips_only: true
287
- expect(zip_codes.count).to eq(41)
287
+ expect(zip_codes.count).to eq(47)
288
288
  expect(zip_codes[0]).to eq('78701')
289
+ expect(zip_codes[-1]).to eq('78799')
289
290
  end
290
291
  it "returns an nil when the city state is non-existent" do
291
292
  zip_codes = ", ".city_info
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zipcoder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Chapman