bs2_api 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/bs2_api/util/bank_service.rb +3 -2
- data/lib/bs2_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7d62522bd2aeb109e16d4368148a1d80dfc2f4947200c7202231e504f956a64
|
4
|
+
data.tar.gz: beb4089bb67e67c3d793454a8f0d1cbeb0e810d96edea8935fad67658ffef670
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c617ebe5b2680b38e82af5315b9ec49ba2c1ecdce62b0ecc1025ae747bed77438d532953db2df97959beff2ddc855f25ab967d2b6c1331eac4b7fdf6089b67f5
|
7
|
+
data.tar.gz: 9a6f3d3a16b17cf7bdeb09089e72da5e2888e0217b0f4e89dccfed24630f96363d56c1d7cde4aeda850666bb158c871a4f6a1544e61298afcdb7c574d9d5db75
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bs2_api (1.1.
|
4
|
+
bs2_api (1.1.5)
|
5
5
|
activesupport
|
6
6
|
builder
|
7
7
|
bundler
|
@@ -37,7 +37,7 @@ GEM
|
|
37
37
|
method_source (1.0.0)
|
38
38
|
mime-types (3.4.1)
|
39
39
|
mime-types-data (~> 3.2015)
|
40
|
-
mime-types-data (3.
|
40
|
+
mime-types-data (3.2022.0105)
|
41
41
|
minitest (5.15.0)
|
42
42
|
multi_xml (0.6.0)
|
43
43
|
pry (0.13.1)
|
@@ -7,9 +7,10 @@ module Bs2Api
|
|
7
7
|
class BankService
|
8
8
|
class << self
|
9
9
|
def find_by_code code
|
10
|
-
code = code.to_s.strip
|
11
|
-
bank = bank_list.find {|b| b["code"] == code }
|
10
|
+
code = code.to_s.strip.to_i
|
11
|
+
bank = bank_list.find {|b| b["code"].to_i == code }
|
12
12
|
raise Bs2Api::Errors::MissingBank, "Bank with code '#{code}' not registered into configuration file" if bank.blank?
|
13
|
+
|
13
14
|
bank
|
14
15
|
end
|
15
16
|
|
data/lib/bs2_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bs2_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kim Pastro
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|