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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60c88f2d480fea688ec26e7780f523915238f9824929e85fa6ec4668f57d7381
4
- data.tar.gz: 8c32a7922b83497b645afc3ac488d8a273235ed574a92ebe49893fe5f06ae7b0
3
+ metadata.gz: b7d62522bd2aeb109e16d4368148a1d80dfc2f4947200c7202231e504f956a64
4
+ data.tar.gz: beb4089bb67e67c3d793454a8f0d1cbeb0e810d96edea8935fad67658ffef670
5
5
  SHA512:
6
- metadata.gz: 6ba29f3666fd16c78e2645c77e97ed3e140dba0667e72a80dddbe7e2aae814cde2338755b4cc60bd8a82a567690c61d250f71442239c8bc9b4e0095301df827e
7
- data.tar.gz: 6108044eb09759b2e94eb3f1f159497e47460d1ed43412368c0f767d668d3f5f8c4d4e8540b1115394b919f8701622107da86044ffd58e0826e4d07e251c915c
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.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.2021.1115)
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bs2Api
4
- VERSION = "1.1.5"
4
+ VERSION = "1.1.6"
5
5
  end
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.5
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-14 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder