aceitafacil 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aceitafacil/payment.rb +2 -1
- data/lib/aceitafacil/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb3e4f97124f0008e36bda7cfa07f473fdedd0d7
|
4
|
+
data.tar.gz: cbc1a78ee7336b6d19bb76cfdbec13edfb3fc772
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf3693e395da38284d063141f7680e76ac8c738a10d0df00acabfba58ac5de595678a9252331ffd83c38a19a4d8a2622054ca99c58bdeebd3dc59586fa1f307f
|
7
|
+
data.tar.gz: 3059e7f95c0adb675c312ff209c026a2e00450c8c45e71a9f2c5c2ef85af48d1c126e29ca6fd1ed0d51ea643220ddda424d3d750906617daeaa2bacd3dd08307
|
data/lib/aceitafacil/payment.rb
CHANGED
@@ -5,7 +5,8 @@ module Aceitafacil
|
|
5
5
|
include ActiveModel::Validations
|
6
6
|
include ActiveModel::Model
|
7
7
|
|
8
|
-
validates :
|
8
|
+
validates :cvv, presence: true, :if => Proc.new{|p| p.paymentmethod_id == 1 }
|
9
|
+
validates :customer_id, presence: true
|
9
10
|
validates :paymentmethod_id, :total_amount, presence: true
|
10
11
|
|
11
12
|
attr_accessor :card_token, :cvv, :customer_id, :customer_name, :customer_email, :customer_email_language
|
data/lib/aceitafacil/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aceitafacil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wilbert Ribeiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|