rate_center 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 617b5925f132706d1fd5245def9f97e56effbef07af847d374e407ea02787c8b
4
- data.tar.gz: b145da647fb5c002721e5ef7a937c0f3233f3f0e1efe72571beaa95f10469446
3
+ metadata.gz: 6d63a9cce3d7ea1f632ac0b0899d78f460c7af7a5078b5a2d4ec2ba223dd5146
4
+ data.tar.gz: d579c3d21f3fec830e89ba5e65063b5b15f664e4aaa0d2e1608a9282cb4847e4
5
5
  SHA512:
6
- metadata.gz: 3a37132aa23d869d3da309f2659d3c4cc1b8363e357d6c1b3c7d9a2daf299d9202cfb9b0bd6feaa2a6ca99655080bb04aa9ba108c924fff1d8ffcd6aad46753c
7
- data.tar.gz: 8f7d5acc82e7bd1bb52c303a86029b956d7c68c909e5a154aa3720632c5b64810f551ab98f74ae493357ac51d962c240c7501732ac6a54835f23a332b67f491f
6
+ metadata.gz: fb90be13773099b837bf950d45764f9d6cacb159a061f2da3ad1f9ecaaa2fb7a8a4cf3fb23a40f06b499b4df5ed39acd5875dc3a33281391b061651e26d75a6b
7
+ data.tar.gz: c6a3d5d1462883befc58ebd86fe8703ad67c3170890f277e1a17a2f91f10ae428062a21a01bc505d6d770271f2ddbac0665322123f81e79417f486933a8a514a
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.3.0"
2
+ ".": "0.3.1"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.1](https://github.com/somleng/rate_center/compare/v0.3.0...v0.3.1) (2024-11-03)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Don't allow duplicate rate centers ([#36](https://github.com/somleng/rate_center/issues/36)) ([999ded0](https://github.com/somleng/rate_center/commit/999ded0ed2e077e21b1c2d721dc2634c74e0041d))
9
+
3
10
  ## [0.3.0](https://github.com/somleng/rate_center/compare/v0.2.0...v0.3.0) (2024-10-31)
4
11
 
5
12
 
@@ -97,6 +97,8 @@ module RateCenter
97
97
  SPECIAL_CASE_LATAS.select { |lata| lata.region == region }.each do |lata|
98
98
  rate_centers.concat(client.fetch_rate_center_data(region:, lata: lata.code).data)
99
99
  end
100
+ rate_centers.uniq!(&:exch)
101
+
100
102
  next if rate_centers.empty?
101
103
 
102
104
  data = rate_centers.sort_by { |rc| [ (rc.rcshort || rc.rc), rc.exch ] }.map do |rate_center|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RateCenter
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rate_center
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Wilkie
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-31 00:00:00.000000000 Z
11
+ date: 2024-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_xml