credit_card_support 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/credit_card_support/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -18,7 +18,7 @@ credit_card_number.extend(CreditCardSupport::CreditCardNumber)
|
|
18
18
|
|
19
19
|
# or for all the Strings
|
20
20
|
class String
|
21
|
-
include CreditCardSupport::CreditCardNumber
|
21
|
+
include CreditCardSupport::CreditCardNumber
|
22
22
|
end
|
23
23
|
|
24
24
|
# Usage
|
@@ -75,7 +75,7 @@ class CreditCard
|
|
75
75
|
|
76
76
|
def initialize(opts={})
|
77
77
|
@errors = ActiveModel::Errors.new(self)
|
78
|
-
opts.each {|key, value| send(
|
78
|
+
opts.each {|key, value| send("#{key}=", value) }
|
79
79
|
end
|
80
80
|
|
81
81
|
validates :number, presence: true,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: credit_card_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
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: 2012-09-
|
12
|
+
date: 2012-09-26 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Detects issuer from a number, has ActiveModel validations and translations
|
15
15
|
support.
|