usa 0.4.2 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 548ccad376f01003a206b1c4a9691fac0beba122f699b3215171aff74ad7bc6f
4
- data.tar.gz: dc17540f0361f124ae91a6af8888c3af063cf290416e7abb9cc39e7a852548f2
3
+ metadata.gz: 2707b3fe18bf4a4fdae243b275aeb461fd7ba718d823113fa09dca14d0382dfe
4
+ data.tar.gz: 691f3b092fde66aa2b4e86d1ddde26b29cd400f4d6be2438db742771d060fff0
5
5
  SHA512:
6
- metadata.gz: fda77e35c1d90e41334f16203e7156ce1739b50a1fba3bab650ab894ce853c171d0054745736f77b1dea45afd6936b4886ed47ff33c7da5e0ad67e42adacf44f
7
- data.tar.gz: 025b0c17a446ec5da6f19e6821e5c93e0ae3f9ecccc0d99bbc7198b6efd33df0e819bafb6a6e1f6f634e275cd7874ae7539c25b9a5660167d0ad04f2efd5719b
6
+ metadata.gz: 8359f96adff74824619827434ea047406be32b70ff6bd46429f9e0d97a16a3a8e16fd60264cbcf4efd5375984b0605861a74f8155c1a559158aabb8c07236eda
7
+ data.tar.gz: 0d3993ee56c28eaecc17d948e768e69f9cb9ec81b65426af63bb461a7e1d072e659260e635ad6f9f9bfe1842a789a063ca0860431f25d0b3c90c2ac2568c8b02
data/CHANGELOG.md CHANGED
@@ -7,6 +7,15 @@ For more information about changelogs, check [Keep a Changelog](http://keepachan
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## 0.5.0 - 2026-09-16
11
+
12
+ * [Feature] `google_place_id` filled for the last three rows that had none: the District of
13
+ Columbia, Broomfield County and Wrangell City and Borough. 0.2.0 read their blank as Google
14
+ having no place of the row's own kind, since a component lookup for each answers with the city
15
+ standing where the state or the county should. Google does hold all three, reachable the other
16
+ way around: reverse geocoding a point inside one, asked for `administrative_area_level_1` or
17
+ `_2`, names the place. Every state and every county now carries an ID
18
+
10
19
  ## 0.4.2 - 2026-09-16
11
20
 
12
21
  * [Fix] The check that refuses a host's own class where one of these models should be asks the
data/README.md CHANGED
@@ -12,7 +12,7 @@ To install on your system, run
12
12
 
13
13
  To use inside a bundled Ruby project, add this line to the `Gemfile`:
14
14
 
15
- gem 'usa', '~> 0.4.2'
15
+ gem 'usa', '~> 0.5.0'
16
16
 
17
17
  Below 1.0 the pin stops at the next minor rather than the next major, because that is where a
18
18
  breaking change may still land. It becomes `~> 1.0` once the API is settled on purpose.
@@ -70,10 +70,8 @@ city is the exception, keeping every county it lies in, which is why `city.count
70
70
  more than one.
71
71
 
72
72
  Every one of the four also has a `google_place_id`, the ID Google gives the place, which is what
73
- draws a table of them as a map. It is filled for every state, county and ZIP that Google keeps
74
- as an area of its kind, and blank for the few it keeps only as a city -- the District of
75
- Columbia, Broomfield County, Wrangell -- for the ZIPs it folds into a neighbor's, and for every
76
- city until a release fills them.
73
+ draws a table of them as a map. It is filled for every state and every county, and blank for the
74
+ ZIPs Google folds into a neighbor's and for every city until a release fills them.
77
75
 
78
76
  Two counter caches are kept by the seed rather than by a callback: `states.counties_count` and
79
77
  `counties.zips_count`.
@@ -93,7 +93,7 @@ fips,name,state,google_place_id
93
93
  02220,Sitka City and Borough,AK,ChIJuWN1b4NmBFQRdBzIn0jaQSU
94
94
  02230,Skagway Municipality,AK,ChIJfW5sY0WsqlYRfXwDxtKQkQs
95
95
  02240,Southeast Fairbanks Census Area,AK,ChIJc2MxnobtNFERV6pifSHbErk
96
- 02275,Wrangell City and Borough,AK,
96
+ 02275,Wrangell City and Borough,AK,ChIJm8DoiZa4CFQRjDkWmJTwDtU
97
97
  02282,Yakutat City and Borough,AK,ChIJAz4GIST0qVYRyXlvZrEutfo
98
98
  02290,Yukon-Koyukuk Census Area,AK,ChIJazQyT-72LFERFWgM8TE0_n8
99
99
  04001,Apache County,AZ,ChIJ-WDLw6lhJYcRcrSQ4ttk6sE
@@ -251,7 +251,7 @@ fips,name,state,google_place_id
251
251
  08009,Baca County,CO,ChIJE4x0XaNFDocR2V3dJYpGjC8
252
252
  08011,Bent County,CO,ChIJIcJGzccUDocRhlZ_e14CyHg
253
253
  08013,Boulder County,CO,ChIJxXGuYuzba4cRzUewqXMASX8
254
- 08014,Broomfield County,CO,
254
+ 08014,Broomfield County,CO,ChIJJflQ5p_1a4cR07Jtsi8Xw1Y
255
255
  08015,Chaffee County,CO,ChIJNaOtETj-FIcRupOoGYAIuuQ
256
256
  08017,Cheyenne County,CO,ChIJ06Mi_fHvDIcRDEW5WOdybNY
257
257
  08019,Clear Creek County,CO,ChIJr3DC7TOla4cRP3Q6xF1Y7wU
data/db/seeds/states.csv CHANGED
@@ -7,7 +7,7 @@ CA,06,California,ChIJPV4oX_65j4ARVW8IJ6IJUYs
7
7
  CO,08,Colorado,ChIJt1YYm3QUQIcR_6eQSTGDVMc
8
8
  CT,09,Connecticut,ChIJpVER8hFT5okR5XBhBVttmq4
9
9
  DE,10,Delaware,ChIJO9YMTXYFx4kReOgEjBItHZQ
10
- DC,11,District of Columbia,
10
+ DC,11,District of Columbia,ChIJW-T2Wt7Gt4kRmKFUAsCO4tY
11
11
  FL,12,Florida,ChIJvypWkWV2wYgR0E7HW9MTLvc
12
12
  GA,13,Georgia,ChIJV4FfHcU28YgR5xBP7BC8hGY
13
13
  HI,15,Hawaii,ChIJBeB5Twbb_3sRKIbMdNKCd0s
data/lib/usa/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module USA
2
2
  # The version of this gem, as RubyGems knows it.
3
- VERSION = '0.4.2'
3
+ VERSION = '0.5.0'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Baccigalupo