ibandit 1.8.0 → 1.8.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: '08226e85893b75b353a9a6de43cbf9b91101fdbde782f075f99e5e79cf215610'
4
- data.tar.gz: 28f725e3bc6f3f9137e22bb25706d4a2a1134c5d5dabb1a71d64d14f2c45df49
3
+ metadata.gz: 60f06c33b8f9799988090e2e8fb454fd0767d22c0c58c2672e67164b5a10a225
4
+ data.tar.gz: be47e73dcafacd2a78ceb949b0378483e38ddc98a680fe01e549c8ee0c666d46
5
5
  SHA512:
6
- metadata.gz: 1d14ccc4c5f1942bccea74ed0fdcb3b6e6d4a27caab8176bcbc4ef3dafe37f56480f5f690aa0ef5d14ebbeeb751b3e8eba26c12ca38baa0219a9dd9e7061b602
7
- data.tar.gz: ce6011161b74a0ea546aa6059873df86233400dbea058a22dd063abe7fb56fa96eb418b924b12f7fad7404ad5e870cbdc0b198eb88f403434e10f96cf5b019fd
6
+ metadata.gz: 21158adc7ffbd16047041367875d18410c2ff364bfb28b45d0c278e8d016caba7722db606bb96b6868657c1f4e7be4d7d2e5cd26ff6597fb94597418c11bcc80
7
+ data.tar.gz: f5fab7c111475bd3e7dff669902604ce879d426b3075baee766453f7fb0d2c724e98ae5958c10870bf18584a765598dc298df0f0ad3484e5dc2640554fc3173b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.8.1 - February 8, 2022
2
+
3
+ - Fix issue with structure loading - thanks @shaicoleman
4
+
1
5
  ## 1.8.0 - January 7, 2022
2
6
 
3
7
  - Add Ruby 3.1 support
@@ -154,7 +154,7 @@ if __FILE__ == $PROGRAM_NAME
154
154
  )
155
155
 
156
156
  structure_additions = YAML.safe_load(
157
- Pathname.new(__dir__).join("../data/raw/structure_additions.yml").read,
157
+ File.read(File.expand_path("../data/raw/structure_additions.yml", __dir__)),
158
158
  permitted_classes: [Range, Symbol],
159
159
  )
160
160
 
data/ibandit.gemspec CHANGED
@@ -3,7 +3,7 @@
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.30.0"
6
+ gem.add_development_dependency "gc_ruboconfig", "~> 2.31.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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ibandit
4
- VERSION = "1.8.0"
4
+ VERSION = "1.8.1"
5
5
  end
data/lib/ibandit.rb CHANGED
@@ -31,7 +31,7 @@ module Ibandit
31
31
 
32
32
  def structures
33
33
  @structures ||= YAML.safe_load(
34
- Pathname.new(__dir__).join("../data/structures.yml").read,
34
+ File.read(File.expand_path("../data/structures.yml", __dir__)),
35
35
  permitted_classes: [Range, Symbol],
36
36
  )
37
37
  end
@@ -3,7 +3,7 @@
3
3
  require "spec_helper"
4
4
 
5
5
  describe "structures.yml" do
6
- structure_file = Pathname.new(__dir__).join("../../data/structures.yml").read
6
+ structure_file = File.read(File.expand_path("../../data/structures.yml", __dir__))
7
7
  structures = YAML.safe_load(structure_file, permitted_classes: [Range, Symbol])
8
8
 
9
9
  structures.each do |country, rules|
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.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-07 00:00:00.000000000 Z
11
+ date: 2022-02-08 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.30.0
19
+ version: 2.31.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.30.0
26
+ version: 2.31.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement