Skip to content

Commit

Permalink
Merge pull request #214 from gocardless/dependabot/bundler/gc_rubocon…
Browse files Browse the repository at this point in the history
…fig-tw-2.32.0

Update gc_ruboconfig requirement from ~> 2.31.0 to ~> 2.32.0
  • Loading branch information
thekeshavgoel authored Feb 9, 2022
2 parents f24548f + d851226 commit 3abc490
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ibandit.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require File.expand_path("lib/ibandit/version", __dir__)

Gem::Specification.new do |gem|
gem.add_development_dependency "gc_ruboconfig", "~> 2.31.0"
gem.add_development_dependency "gc_ruboconfig", "~> 2.32.0"
gem.add_development_dependency "nokogiri", "~> 1.6"
gem.add_development_dependency "pry", "~> 0.13"
gem.add_development_dependency "pry-byebug", "~> 3.9"
Expand All @@ -28,4 +28,5 @@ Gem::Specification.new do |gem|
gem.require_paths = ["lib"]
gem.summary = "Convert national banking details into IBANs, and vice-versa."
gem.version = Ibandit::VERSION.dup
gem.metadata["rubygems_mfa_required"] = "true"
end
2 changes: 1 addition & 1 deletion lib/ibandit/check_digit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def self.italian(string)
end
end

(scaled_values.sum % 26 + 65).chr
((scaled_values.sum % 26) + 65).chr
end
end
end
6 changes: 3 additions & 3 deletions lib/ibandit/iban.rb
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,9 @@ def bank_code_passes_checksum_test?
code_digits = swift_bank_code.chars.map(&:to_i)
mod =
(
3 * (code_digits[0] + code_digits[3] + code_digits[6]) +
7 * (code_digits[1] + code_digits[4] + code_digits[7]) +
1 * (code_digits[2] + code_digits[5] + code_digits[8])
(3 * (code_digits[0] + code_digits[3] + code_digits[6])) +
(7 * (code_digits[1] + code_digits[4] + code_digits[7])) +
(1 * (code_digits[2] + code_digits[5] + code_digits[8]))
) % 10

@errors[:bank_code] = Ibandit.translate(:is_invalid) unless mod.zero?
Expand Down

0 comments on commit 3abc490

Please sign in to comment.