ibandit 1.8.1 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
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.31.0"
6
+ gem.add_development_dependency "gc_ruboconfig", "~> 3.0.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"
@@ -28,4 +28,5 @@ Gem::Specification.new do |gem|
28
28
  gem.require_paths = ["lib"]
29
29
  gem.summary = "Convert national banking details into IBANs, and vice-versa."
30
30
  gem.version = Ibandit::VERSION.dup
31
+ gem.metadata["rubygems_mfa_required"] = "true"
31
32
  end
@@ -46,7 +46,7 @@ module Ibandit
46
46
  end
47
47
  end
48
48
 
49
- (scaled_values.sum % 26 + 65).chr
49
+ ((scaled_values.sum % 26) + 65).chr
50
50
  end
51
51
  end
52
52
  end
data/lib/ibandit/iban.rb CHANGED
@@ -405,9 +405,9 @@ module Ibandit
405
405
  code_digits = swift_bank_code.chars.map(&:to_i)
406
406
  mod =
407
407
  (
408
- 3 * (code_digits[0] + code_digits[3] + code_digits[6]) +
409
- 7 * (code_digits[1] + code_digits[4] + code_digits[7]) +
410
- 1 * (code_digits[2] + code_digits[5] + code_digits[8])
408
+ (3 * (code_digits[0] + code_digits[3] + code_digits[6])) +
409
+ (7 * (code_digits[1] + code_digits[4] + code_digits[7])) +
410
+ (1 * (code_digits[2] + code_digits[5] + code_digits[8]))
411
411
  ) % 10
412
412
 
413
413
  @errors[:bank_code] = Ibandit.translate(:is_invalid) unless mod.zero?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ibandit
4
- VERSION = "1.8.1"
4
+ VERSION = "1.9.0"
5
5
  end
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.1
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-08 00:00:00.000000000 Z
11
+ date: 2022-02-16 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.31.0
19
+ version: 3.0.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.31.0
26
+ version: 3.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -210,7 +210,8 @@ files:
210
210
  homepage: https://github.com/gocardless/ibandit
211
211
  licenses:
212
212
  - MIT
213
- metadata: {}
213
+ metadata:
214
+ rubygems_mfa_required: 'true'
214
215
  post_install_message:
215
216
  rdoc_options: []
216
217
  require_paths: