iban_bic 1.0.0 → 1.0.1

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: 868d6d3504a7634591fb05755ef16e2b7d97d0bf
4
- data.tar.gz: d7d92fa69d618d303c37447ab204c4aa7d7e166c
3
+ metadata.gz: 68c48ae5afb36bd1847be58d38a9125d42589b61
4
+ data.tar.gz: cc732e4d9ad931ba8a7f5f3d46cbc8b35d3e1c01
5
5
  SHA512:
6
- metadata.gz: 7543c3a4b9be73644d210d1e119f82c8efc907bcd86402b4920ae6f1be63e2393e7690222ed6f720931800b5f19d1ee23ee522fc1d6ed1a4a0fac387f7fa114a
7
- data.tar.gz: 7355d2ff4621e6a2574508cbf5987383084e5c0305c4c57f50b916c721904ec51c307805ab526409e5414967f58fa35d3fed10371c3deaf916556e2bdcea374e
6
+ metadata.gz: 0d5ac1c75182ec4af7137553b9f27cb697f36348cf7fae5c3b1a98b23d08f2171604d5d4c6514c925238d10644aa86cea784b1c214482177638f4b52da9e810f
7
+ data.tar.gz: 8b0b18a5389ba804cc824190234678d126e9f831ac33f1511ae00d7aad2ddc5aec2f6894bd2ae8819856ded0dd8d5a2fc4beeed72167df096d8361504451c2c1
data/README.md CHANGED
@@ -118,6 +118,10 @@ $ bundle exec rails generate iban_bic:install --with-static-data
118
118
 
119
119
  ## Changelog
120
120
 
121
+ #### 1.0.1
122
+
123
+ * Added presence validations in BIC model
124
+
121
125
  #### 1.0.0
122
126
 
123
127
  * Added IBAN fixing and random IBAN generator.
@@ -129,7 +133,7 @@ $ bundle exec rails generate iban_bic:install --with-static-data
129
133
  * First version.
130
134
 
131
135
  ## Contributing
132
- Contribution directions go here.
136
+ Issues and PRs are welcomed.
133
137
 
134
138
  ## License
135
139
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -3,6 +3,8 @@
3
3
  class Bic < ActiveRecord::Base
4
4
  self.table_name = IbanBic.configuration.bics_table_name
5
5
 
6
+ validates :country, :bank_code, :bic, presence: true
7
+
6
8
  after_commit do
7
9
  IbanBic.clear_cache
8
10
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IbanBic
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
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.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonardo Diez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-05 00:00:00.000000000 Z
11
+ date: 2017-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails