ibandit 1.7.1 → 1.8.0

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: bfe40876f694824ec0cfe5614e4b351dd22889c101ab39c17e0270378db0dcea
4
- data.tar.gz: 92607278bbef999bf9fbd34a521687593dde4850f530bf40f24d712d74fa8f78
3
+ metadata.gz: '08226e85893b75b353a9a6de43cbf9b91101fdbde782f075f99e5e79cf215610'
4
+ data.tar.gz: 28f725e3bc6f3f9137e22bb25706d4a2a1134c5d5dabb1a71d64d14f2c45df49
5
5
  SHA512:
6
- metadata.gz: a6f5ddb8a03a3156f2fbbff6c23e84814fd1dad6b1cb30924a876f6c4633cec0884b6ac4a3fa038f3a22ae9605e6bd2aed88e45df3403d95178bfb71cf920277
7
- data.tar.gz: 53c5c84714ebec33df26da8dc40015b64784fd17d919ca78ffea1ba91a7fd742bbdeed7811f13dceaf4a0f693dfd910477cda693b9d5567c93590c3db2667b36
6
+ metadata.gz: 1d14ccc4c5f1942bccea74ed0fdcb3b6e6d4a27caab8176bcbc4ef3dafe37f56480f5f690aa0ef5d14ebbeeb751b3e8eba26c12ca38baa0219a9dd9e7061b602
7
+ data.tar.gz: ce6011161b74a0ea546aa6059873df86233400dbea058a22dd063abe7fb56fa96eb418b924b12f7fad7404ad5e870cbdc0b198eb88f403434e10f96cf5b019fd
data/.circleci/config.yml CHANGED
@@ -34,4 +34,4 @@ workflows:
34
34
  name: Ruby << matrix.ruby-version >>
35
35
  matrix:
36
36
  parameters:
37
- ruby-version: ["2.5.9", "2.6.7", "2.7.3", "3.0.1"]
37
+ ruby-version: ["2.6.7", "2.7.3", "3.0.1", "3.1.0"]
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.1
1
+ 3.1.0
data/CHANGELOG.md CHANGED
@@ -1,7 +1,12 @@
1
+ ## 1.8.0 - January 7, 2022
2
+
3
+ - Add Ruby 3.1 support
4
+ - Remove Ruby 2.5 support
5
+
1
6
  ## 1.7.1 - November 25, 2021
2
7
 
3
8
  - Update BLZ data - BLZ_20211206
4
-
9
+
5
10
  ## 1.7.0 - Sept 8, 2021
6
11
 
7
12
  - Stop padding out Australian account details to 10 digits
@@ -153,8 +153,9 @@ if __FILE__ == $PROGRAM_NAME
153
153
  iban_registry_file,
154
154
  )
155
155
 
156
- structure_additions = YAML.load_file(
157
- File.expand_path("../data/raw/structure_additions.yml", __dir__),
156
+ structure_additions = YAML.safe_load(
157
+ Pathname.new(__dir__).join("../data/raw/structure_additions.yml").read,
158
+ permitted_classes: [Range, Symbol],
158
159
  )
159
160
 
160
161
  complete_structures = merge_structures(iban_structures, structure_additions)
data/ibandit.gemspec CHANGED
@@ -3,13 +3,13 @@
3
3
  require File.expand_path("lib/ibandit/version", __dir__)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
- gem.add_development_dependency "gc_ruboconfig", "~> 2.29.0"
6
+ gem.add_development_dependency "gc_ruboconfig", "~> 2.30.0"
7
7
  gem.add_development_dependency "nokogiri", "~> 1.6"
8
8
  gem.add_development_dependency "pry", "~> 0.13"
9
9
  gem.add_development_dependency "pry-byebug", "~> 3.9"
10
10
  gem.add_development_dependency "rspec", "~> 3.3"
11
11
  gem.add_development_dependency "rspec-its", "~> 1.2"
12
- gem.add_development_dependency "rspec_junit_formatter", "~> 0.4.1"
12
+ gem.add_development_dependency "rspec_junit_formatter", "~> 0.5.0"
13
13
  gem.add_development_dependency "sax-machine", "~> 1.3"
14
14
 
15
15
  gem.add_runtime_dependency "i18n"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ibandit
4
- VERSION = "1.7.1"
4
+ VERSION = "1.8.0"
5
5
  end
data/lib/ibandit.rb CHANGED
@@ -30,8 +30,9 @@ module Ibandit
30
30
  end
31
31
 
32
32
  def structures
33
- @structures ||= YAML.load_file(
34
- File.expand_path("../data/structures.yml", __dir__),
33
+ @structures ||= YAML.safe_load(
34
+ Pathname.new(__dir__).join("../data/structures.yml").read,
35
+ permitted_classes: [Range, Symbol],
35
36
  )
36
37
  end
37
38
 
@@ -3,8 +3,8 @@
3
3
  require "spec_helper"
4
4
 
5
5
  describe "structures.yml" do
6
- structure_file = File.expand_path("../../data/structures.yml", __dir__)
7
- structures = YAML.load_file(structure_file)
6
+ structure_file = Pathname.new(__dir__).join("../../data/structures.yml").read
7
+ structures = YAML.safe_load(structure_file, permitted_classes: [Range, Symbol])
8
8
 
9
9
  structures.each do |country, rules|
10
10
  context country do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibandit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-29 00:00:00.000000000 Z
11
+ date: 2022-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gc_ruboconfig
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.29.0
19
+ version: 2.30.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.29.0
26
+ version: 2.30.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.4.1
103
+ version: 0.5.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.4.1
110
+ version: 0.5.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: sax-machine
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  - !ruby/object:Gem::Version
227
227
  version: '0'
228
228
  requirements: []
229
- rubygems_version: 3.2.15
229
+ rubygems_version: 3.3.3
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Convert national banking details into IBANs, and vice-versa.