iban_bic 1.4.1 → 1.4.2

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
  SHA1:
3
- metadata.gz: 38a619312e6705eacf447c6a99e53c17248dec59
4
- data.tar.gz: ef5eb8a721913d59c7b73e8bb42230119917ce00
3
+ metadata.gz: 79d54adf9bc8b595fc9f7694432b98b4691cb961
4
+ data.tar.gz: 188d724bc1d08a24915e56a9a66daf3164657968
5
5
  SHA512:
6
- metadata.gz: bc838ce23198c4566aea393512a5913f18bc0d3168ae0eabf1fd27dfaae66d0181d5b48a4b9071c67e08bc98d0b9cd78a7bc7b990e7ca98767d7b3f2e873fccb
7
- data.tar.gz: 45bfbd9492b070f24c7c7fb99a79b975dd8b0b9f0dcd1fd878181776a1897b55e0d60cdd8d34b62da32e2373b66774919a2b9c10cbf913a6fea1868bb66d08f5
6
+ metadata.gz: 4ba5148098f2477779407e6fc309ce4c4a24492a4f31b70c7adf994cc6f85e5fe8fa0583dbd573465f9a658a368757e701bb686d6870942f6a3add6b466f0114
7
+ data.tar.gz: 589012935320b25bfe476a84fc2d6ed6cd722eee088c260d4221eca7324d77a00f5e5f0dce1ff065f2914bf826815986e7fb3c42e2331b6c2ba925bb03707cc2
data/README.md CHANGED
@@ -140,6 +140,10 @@ $ bundle exec rails generate iban_bic:install --with-static-data
140
140
  4. Customize initializer if needed, adding validations for new countries, or overriding YAML files.
141
141
 
142
142
  ## Changelog
143
+ #### 1.4.2
144
+
145
+ * Dependencies security update.
146
+
143
147
  #### 1.4.1
144
148
 
145
149
  * Fixed BIC validation, don't allow less 1 or 2 characters for the office code and don't allow to add extra characters at the begining or at the end of the string.
@@ -10,9 +10,7 @@ module ActiveModel
10
10
  class BicValidator < ActiveModel::EachValidator
11
11
  def validate_each(record, attribute, value)
12
12
  country_field = options[:country] ? record[options[:country]] : "[A-Z]{2}"
13
- unless /^[A-Z]{4}#{country_field}[0-9A-Z]{2}([0-9A-Z]{3})?$/.match? value.upcase
14
- record.errors.add(attribute, :invalid_format)
15
- end
13
+ record.errors.add(attribute, :invalid_format) unless /^[A-Z]{4}#{country_field}[0-9A-Z]{2}([0-9A-Z]{3})?$/.match? value.upcase
16
14
  end
17
15
  end
18
16
  end
@@ -8,7 +8,7 @@ module IbanBic
8
8
  class InstallGenerator < ::Rails::Generators::Base
9
9
  include ::Rails::Generators::Migration
10
10
 
11
- source_root File.expand_path("../templates", __FILE__)
11
+ source_root File.expand_path("templates", __dir__)
12
12
 
13
13
  class_option(
14
14
  :with_static_bics,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IbanBic
4
- VERSION = "1.4.1"
4
+ VERSION = "1.4.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iban_bic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonardo Diez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-01 00:00:00.000000000 Z
11
+ date: 2018-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0.50'
89
+ version: 0.54.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0.50'
96
+ version: 0.54.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: sqlite3
99
99
  requirement: !ruby/object:Gem::Requirement