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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71530145a6fb4cb77dd89fad3f46cdc4fd2b9e41
4
- data.tar.gz: 750abf3795f0054d428c3828be181ac21d49bcf7
3
+ metadata.gz: fb3e4f97124f0008e36bda7cfa07f473fdedd0d7
4
+ data.tar.gz: cbc1a78ee7336b6d19bb76cfdbec13edfb3fc772
5
5
  SHA512:
6
- metadata.gz: 5d2c8a60cf4a1bfe4e8211c87390511bd669ead31f91586220ec703fc75509caa97b71323cba382d96b0475f71f2d1c49b806d241ef79624addb95385aaef824
7
- data.tar.gz: 10992a6a4a9212228dc236ce8ed33dea2323e49712f0164b67a5c0c85497dd00b59125c70dc2ae9593e94f131a7d4b3de311a482e2ddae01bd7ca426622105e2
6
+ metadata.gz: cf3693e395da38284d063141f7680e76ac8c738a10d0df00acabfba58ac5de595678a9252331ffd83c38a19a4d8a2622054ca99c58bdeebd3dc59586fa1f307f
7
+ data.tar.gz: 3059e7f95c0adb675c312ff209c026a2e00450c8c45e71a9f2c5c2ef85af48d1c126e29ca6fd1ed0d51ea643220ddda424d3d750906617daeaa2bacd3dd08307
@@ -5,7 +5,8 @@ module Aceitafacil
5
5
  include ActiveModel::Validations
6
6
  include ActiveModel::Model
7
7
 
8
- validates :customer_id, :cvv, presence: true
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
@@ -1,3 +1,3 @@
1
1
  module Aceitafacil
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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.7
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-06-11 00:00:00.000000000 Z
11
+ date: 2014-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json