bank-validator 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b555b0a31162c5401f195c2347a9ab24136f7b69
4
- data.tar.gz: c858334dcf134a1b6b0e6a10add483c3c6f37554
3
+ metadata.gz: 2c14e9da0b53505c9756e5cafa8c02180b932912
4
+ data.tar.gz: 20f832a454a4f5ebfd0e2a333db90119fd97be2a
5
5
  SHA512:
6
- metadata.gz: 18dd893ad4cc4c58c0f504ba001910e34a28f8ec916f024b956950d6f6bfdd465436542454faa36782aab33bb6ce35546f3f7c557dcaf91cf397b35a0902a0f1
7
- data.tar.gz: 57b602770bccd01665d4a93df66d75357ed87f3eed0672177eb7c8b17489f4185f6996030eeffb1f7ac4f03e27e5dd6766cbabab30d040403d153e3a390f798d
6
+ metadata.gz: 699cbf55abc1bfea2a67436404e46a4dc9a8a05d7b1dfee241dc97cbe3ee010b49d6c3c8fe43059b5eb0fdebd53aaf21baf752a53e148fac0771ac554e550dc9
7
+ data.tar.gz: a7f936c57b827f58632ebb7774fa68dbf86e60fa3817499d0d9e90551a16e6cf73910e700bcc3c274b63026da584fb6f89c8cdae4dbd5570908f0cbe0f721e53
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bank-validator 0.3.0 ruby lib
5
+ # stub: bank-validator 0.3.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bank-validator"
9
- s.version = "0.3.0"
9
+ s.version = "0.3.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Adam Bahlke"]
14
- s.date = "2016-01-28"
14
+ s.date = "2016-02-08"
15
15
  s.description = "Validates IBAN and BIC account numbers. Still a work in progress"
16
16
  s.email = "adam.bahlke@hitfoxgroup.com"
17
17
  s.extra_rdoc_files = [
@@ -11,7 +11,7 @@ module BankValidator
11
11
  end
12
12
 
13
13
  def self.valid_format?(bic)
14
- bic =~ /[A-Z]{6}[A-Z0-9]{2,}/ ? true : false
14
+ bic =~ /[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}/ ? true : false
15
15
  end
16
16
  end
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bank-validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Bahlke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-28 00:00:00.000000000 Z
11
+ date: 2016-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel