bic_validation 0.2.1 → 0.3.0

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.
data/.travis.yml CHANGED
@@ -5,11 +5,5 @@ rvm:
5
5
  - ruby-head
6
6
  - jruby-19mode
7
7
  - jruby-head
8
- - rbx-19mode
9
- - rbx-2.0.0
10
- - rbx-head
11
- matrix:
12
- allow_failures:
13
- - rvm: rbx-2.0.0
14
- - rvm: rbx-head
8
+ - rbx-2.1.1
15
9
  script: rspec
@@ -27,4 +27,9 @@ Gem::Specification.new do |gem|
27
27
  gem.add_development_dependency 'coveralls'
28
28
  gem.add_development_dependency 'pry'
29
29
  gem.add_development_dependency 'rubocop'
30
+
31
+ if ENV['RUBY_VERSION'] =~ /rbx/
32
+ gem.add_dependency 'rubysl'
33
+ gem.add_development_dependency 'rubinius-coverage'
34
+ end
30
35
  end
@@ -4,7 +4,7 @@ module BicValidation
4
4
  bic = Bic.new(value)
5
5
  if bic.valid?
6
6
  unless bic.known?
7
- record.errors.add attribute, :unknown
7
+ record.errors.add attribute, :unknown_bic
8
8
  end
9
9
  else
10
10
  record.errors.add attribute, :invalid
@@ -1,3 +1,3 @@
1
1
  module BicValidation
2
- VERSION = '0.2.1'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -8,3 +8,5 @@ module BicValidation
8
8
  end
9
9
 
10
10
  ActiveModel::Validations.send(:include, BicValidation)
11
+ I18n.load_path += Dir[File.expand_path(File.join(File.dirname(__FILE__),
12
+ '../locales', '*.yml')).to_s]
data/locales/de.yml ADDED
@@ -0,0 +1,4 @@
1
+ de:
2
+ errors:
3
+ messages:
4
+ unknown_bic: ist unbekannt
data/locales/en.yml ADDED
@@ -0,0 +1,4 @@
1
+ en:
2
+ errors:
3
+ messages:
4
+ unknown_bic: not known
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bic_validation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-25 00:00:00.000000000 Z
12
+ date: 2013-11-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -145,6 +145,8 @@ files:
145
145
  - lib/bic_validation/bic_validator.rb
146
146
  - lib/bic_validation/country_codes.yml
147
147
  - lib/bic_validation/version.rb
148
+ - locales/de.yml
149
+ - locales/en.yml
148
150
  - spec/bic_validation/bic_spec.rb
149
151
  - spec/bic_validation/bic_validator_spec.rb
150
152
  - spec/spec_helper.rb