rate_center 0.1.2 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/.release-please-manifest.json +1 -1
  3. data/CHANGELOG.md +14 -0
  4. data/README.md +14 -15
  5. data/data/cities/us/ak.yml +1077 -3221
  6. data/data/cities/us/al.yml +1790 -5358
  7. data/data/cities/us/ar.yml +1892 -5712
  8. data/data/cities/us/az.yml +1422 -4236
  9. data/data/cities/us/ca.yml +5539 -16077
  10. data/data/cities/us/co.yml +2019 -5477
  11. data/data/cities/us/ct.yml +576 -1714
  12. data/data/cities/us/dc.yml +1 -3
  13. data/data/cities/us/de.yml +237 -711
  14. data/data/cities/us/fl.yml +2904 -8670
  15. data/data/cities/us/ga.yml +2010 -6030
  16. data/data/cities/us/hi.yml +474 -1422
  17. data/data/cities/us/ia.yml +3095 -9585
  18. data/data/cities/us/id.yml +726 -2178
  19. data/data/cities/us/il.yml +4724 -13974
  20. data/data/cities/us/in.yml +2955 -8835
  21. data/data/cities/us/ks.yml +2384 -6982
  22. data/data/cities/us/ky.yml +1665 -4987
  23. data/data/cities/us/la.yml +1464 -4392
  24. data/data/cities/us/ma.yml +381 -1143
  25. data/data/cities/us/md.yml +2087 -5859
  26. data/data/cities/us/me.yml +200 -598
  27. data/data/cities/us/mi.yml +2294 -6954
  28. data/data/cities/us/mn.yml +2730 -8232
  29. data/data/cities/us/mo.yml +4292 -11840
  30. data/data/cities/us/ms.yml +1316 -3918
  31. data/data/cities/us/mt.yml +1485 -4575
  32. data/data/cities/us/nc.yml +2401 -7169
  33. data/data/cities/us/nd.yml +1217 -3685
  34. data/data/cities/us/ne.yml +1770 -5310
  35. data/data/cities/us/nh.yml +123 -369
  36. data/data/cities/us/nj.yml +1984 -5942
  37. data/data/cities/us/nm.yml +1557 -4671
  38. data/data/cities/us/nv.yml +511 -1437
  39. data/data/cities/us/ny.yml +3107 -9163
  40. data/data/cities/us/oh.yml +3802 -11404
  41. data/data/cities/us/ok.yml +2548 -7610
  42. data/data/cities/us/or.yml +1287 -3851
  43. data/data/cities/us/pa.yml +5564 -16534
  44. data/data/cities/us/pr.yml +843 -2529
  45. data/data/cities/us/ri.yml +93 -279
  46. data/data/cities/us/sc.yml +1474 -4482
  47. data/data/cities/us/sd.yml +1466 -4412
  48. data/data/cities/us/tn.yml +1700 -4898
  49. data/data/cities/us/tx.yml +7453 -20437
  50. data/data/cities/us/ut.yml +1144 -3304
  51. data/data/cities/us/va.yml +2071 -6175
  52. data/data/cities/us/vt.yml +318 -954
  53. data/data/cities/us/wa.yml +2088 -6138
  54. data/data/cities/us/wi.yml +2489 -7407
  55. data/data/cities/us/wv.yml +1355 -4029
  56. data/data/cities/us/wy.yml +612 -1836
  57. data/data/rate_centers/us/ak.yml +254 -762
  58. data/data/rate_centers/us/al.yml +517 -1145
  59. data/data/rate_centers/us/ar.yml +824 -1620
  60. data/data/rate_centers/us/az.yml +160 -480
  61. data/data/rate_centers/us/ca.yml +763 -2273
  62. data/data/rate_centers/us/co.yml +245 -699
  63. data/data/rate_centers/us/ct.yml +198 -388
  64. data/data/rate_centers/us/dc.yml +1 -3
  65. data/data/rate_centers/us/de.yml +30 -90
  66. data/data/rate_centers/us/fl.yml +299 -885
  67. data/data/rate_centers/us/ga.yml +386 -1134
  68. data/data/rate_centers/us/hi.yml +6 -18
  69. data/data/rate_centers/us/ia.yml +822 -2716
  70. data/data/rate_centers/us/id.yml +177 -545
  71. data/data/rate_centers/us/il.yml +1094 -3164
  72. data/data/rate_centers/us/in.yml +699 -1757
  73. data/data/rate_centers/us/ks.yml +641 -1875
  74. data/data/rate_centers/us/ky.yml +384 -1128
  75. data/data/rate_centers/us/la.yml +312 -880
  76. data/data/rate_centers/us/ma.yml +267 -799
  77. data/data/rate_centers/us/md.yml +210 -558
  78. data/data/rate_centers/us/me.yml +251 -753
  79. data/data/rate_centers/us/mi.yml +755 -2093
  80. data/data/rate_centers/us/mn.yml +669 -2023
  81. data/data/rate_centers/us/mo.yml +1362 -3020
  82. data/data/rate_centers/us/ms.yml +253 -739
  83. data/data/rate_centers/us/mt.yml +260 -934
  84. data/data/rate_centers/us/nc.yml +930 -1826
  85. data/data/rate_centers/us/nd.yml +311 -957
  86. data/data/rate_centers/us/ne.yml +486 -1420
  87. data/data/rate_centers/us/nh.yml +156 -450
  88. data/data/rate_centers/us/nj.yml +358 -776
  89. data/data/rate_centers/us/nm.yml +163 -489
  90. data/data/rate_centers/us/nv.yml +115 -327
  91. data/data/rate_centers/us/ny.yml +843 -2303
  92. data/data/rate_centers/us/oh.yml +1107 -2623
  93. data/data/rate_centers/us/ok.yml +537 -1601
  94. data/data/rate_centers/us/or.yml +266 -798
  95. data/data/rate_centers/us/pa.yml +1346 -2914
  96. data/data/rate_centers/us/pr.yml +86 -254
  97. data/data/rate_centers/us/ri.yml +29 -79
  98. data/data/rate_centers/us/sc.yml +296 -854
  99. data/data/rate_centers/us/sd.yml +278 -844
  100. data/data/rate_centers/us/tn.yml +408 -1124
  101. data/data/rate_centers/us/tx.yml +1761 -4639
  102. data/data/rate_centers/us/ut.yml +154 -454
  103. data/data/rate_centers/us/va.yml +610 -1352
  104. data/data/rate_centers/us/vt.yml +141 -423
  105. data/data/rate_centers/us/wa.yml +296 -888
  106. data/data/rate_centers/us/wi.yml +888 -2106
  107. data/data/rate_centers/us/wv.yml +229 -687
  108. data/data/rate_centers/us/wy.yml +95 -281
  109. data/lib/rate_center/city.rb +3 -4
  110. data/lib/rate_center/data_prep.rb +3 -9
  111. data/lib/rate_center/data_source/local_calling_guide.rb +1 -1
  112. data/lib/rate_center/distance.rb +1 -1
  113. data/lib/rate_center/rate_center.rb +3 -4
  114. data/lib/rate_center/version.rb +1 -1
  115. metadata +2 -3
  116. data/lib/rate_center/vector.rb +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9db3ac1a24873d160945edd60490f3af04715c4858f232a73c408cd48783a5d3
4
- data.tar.gz: 8223be2c58e26f85eab8c48f7e688184ad328718a5227295dfcfe143522c3bed
3
+ metadata.gz: 04524fec832c31eea0955005a2526dc46bfbabdab0c4b4f41977201431793699
4
+ data.tar.gz: 66692d5c60906d649f7d54d64b314f96068870b1edb9eb6177d3631e98e462c5
5
5
  SHA512:
6
- metadata.gz: d27eec5024e6119026e587230de98ae8fafa0312bae05809c39d7a937163595babaa0fdf8bbf112a527c334dcae6c89e6df0be61b3fd98552f35a3d437630d62
7
- data.tar.gz: 7e1e1fa432a40960500f0d45a4322300a533bc43b5997a976297ee244988c52b887d04149676398839f9e26cc0431612337a89fb69c2ecfaa0da4c45328e717b
6
+ metadata.gz: b1b0e6f8b8a7e5abe6851f6cee862e8b3268e8541ec5d3abbe7c95d129174cb750007c241546a830a1eeb4ac09693521fadcfc49b7042a571235f1afac4ecbb4
7
+ data.tar.gz: df889d5ced25b9b9b8c620670d0c670ce6afe2a38bec7f05467f522cc8e962997df009a6904547e1a3579778e54d8416b585b0e680429ed2a42e9fb9fea540eb
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.1.2"
2
+ ".": "0.1.4"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.4](https://github.com/somleng/rate_center/compare/v0.1.3...v0.1.4) (2024-10-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Capitalize rate center names ([#14](https://github.com/somleng/rate_center/issues/14)) ([68b9746](https://github.com/somleng/rate_center/commit/68b97465808069dbc3a09e66e0d8eeec83149a57))
9
+
10
+ ## [0.1.3](https://github.com/somleng/rate_center/compare/v0.1.2...v0.1.3) (2024-10-07)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Add cron to update data ([#12](https://github.com/somleng/rate_center/issues/12)) ([8f02fee](https://github.com/somleng/rate_center/commit/8f02feef2f766a2b7f7dc46ee4a2e5da01f0d444))
16
+
3
17
  ## [0.1.2](https://github.com/somleng/rate_center/compare/v0.1.1...v0.1.2) (2024-10-05)
4
18
 
5
19
 
data/README.md CHANGED
@@ -40,8 +40,7 @@ rate_center.ilec_name # "VERIZON NEW YORK, INC."
40
40
  rate_center.lat # "40.739362"
41
41
  rate_center.long # "-73.991043"
42
42
  rate_center.closest_city.name # "Manhattan"
43
- rate_center.closest_city.distance.value # 5.33
44
- rate_center.closest_city.distance.units # km
43
+ rate_center.closest_city.distance_km # 5.33
45
44
  ```
46
45
 
47
46
  ### Working with Cities
@@ -59,22 +58,22 @@ city = RateCenter::City.find_by!(country: "US", region: "NY", name: "New York")
59
58
  city.lat # "40.6943"
60
59
  city.log # "-73.9249"
61
60
  city.nearby_rate_centers.each do |rate_center|
62
- puts "Rate Center: #{rate_center.name}, Distance: #{rate_center.distance.value} #{rate_center.distance.units}"
61
+ puts "Rate Center: #{rate_center.name}, Distance: #{rate_center.distance_km} km"
63
62
  end
64
- # Rate Center: NWYRCYZN14, Distance: 7.5 km
65
- # Rate Center: NWYRCYZN15, Distance: 7.5 km
66
- # Rate Center: NWYRCYZN11, Distance: 7.5 km
67
- # Rate Center: NWYRCYZN10, Distance: 7.5 km
68
- # Rate Center: NWYRCYZN13, Distance: 7.5 km
69
- # Rate Center: NWYRCYZN09, Distance: 7.5 km
70
- # Rate Center: NWYRCYZN08, Distance: 7.5 km
71
- # Rate Center: NWYRCYZN07, Distance: 7.5 km
72
- # Rate Center: NWYRCYZN06, Distance: 7.5 km
63
+ # Rate Center: NWYRCYZN01, Distance: 7.5 km
64
+ # Rate Center: NWYRCYZN03, Distance: 7.5 km
65
+ # Rate Center: NWYRCYZN04, Distance: 7.5 km
73
66
  # Rate Center: NWYRCYZN05, Distance: 7.5 km
67
+ # Rate Center: NWYRCYZN06, Distance: 7.5 km
68
+ # Rate Center: NWYRCYZN07, Distance: 7.5 km
69
+ # Rate Center: NWYRCYZN08, Distance: 7.5 km
70
+ # Rate Center: NWYRCYZN09, Distance: 7.5 km
71
+ # Rate Center: NWYRCYZN10, Distance: 7.5 km
72
+ # Rate Center: NWYRCYZN11, Distance: 7.5 km
74
73
  # Rate Center: NWYRCYZN12, Distance: 7.5 km
75
- # Rate Center: NWYRCYZN04, Distance: 7.5 km
76
- # Rate Center: NWYRCYZN03, Distance: 7.5 km
77
- # Rate Center: NWYRCYZN01, Distance: 7.5 km
74
+ # Rate Center: NWYRCYZN13, Distance: 7.5 km
75
+ # Rate Center: NWYRCYZN14, Distance: 7.5 km
76
+ # Rate Center: NWYRCYZN15, Distance: 7.5 km
78
77
  # Rate Center: NASSAUZN02, Distance: 18.96 km
79
78
  # Rate Center: NASSAUZN03, Distance: 20.16 km
80
79
  ```