kontoapi-rails 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/kontoapi-rails.gemspec +1 -1
- data/lib/kontoapi-rails/orm/active_record_extension.rb +4 -4
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/kontoapi-rails.gemspec
CHANGED
@@ -50,11 +50,11 @@ module KontoAPI
|
|
50
50
|
value = send(field)
|
51
51
|
return true if options[:allow_nil] && value.nil?
|
52
52
|
begin
|
53
|
-
|
53
|
+
errors.add(field, :invalid) unless KontoAPI::valid?( :iban => value )
|
54
54
|
rescue Timeout::Error => ex
|
55
55
|
case options[:on_timeout]
|
56
56
|
when :fail
|
57
|
-
|
57
|
+
errors.add(field, :timeout)
|
58
58
|
when :ignore
|
59
59
|
# nop
|
60
60
|
end
|
@@ -70,11 +70,11 @@ module KontoAPI
|
|
70
70
|
value = send(field)
|
71
71
|
return true if options[:allow_nil] && value.nil?
|
72
72
|
begin
|
73
|
-
|
73
|
+
errors.add(field, :invalid) unless KontoAPI::valid?( :bic => send(field) )
|
74
74
|
rescue Timeout::Error => ex
|
75
75
|
case options[:on_timeout]
|
76
76
|
when :fail
|
77
|
-
|
77
|
+
errors.add(field, :timeout)
|
78
78
|
when :ignore
|
79
79
|
# nop
|
80
80
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kontoapi-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jan Schwenzien
|