spree_core 2.2.8 → 2.2.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8f179eed81a4a5773fe95c383a4a48610e3019b
|
4
|
+
data.tar.gz: 2ef4dd915925f516a00cb89356de314a2a6b42fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a4195bf3e8539dbde5ba0f11c71e28b9308d4dcc51447fa7186ece83f55eb682952431471f009a7f1d1b15e6636ae85619fa3d9be8bc7289c2250ccf4bec66d
|
7
|
+
data.tar.gz: 17b1db2c5d929d68840834625dafae8239af8e6af3cd02cde1af73e068044fb205416ed17b2cb396d9725fa76f7d9e9b2eb527312715bf9823a9e4c6ff7c5e45
|
@@ -135,8 +135,8 @@ module Spree
|
|
135
135
|
if month.to_i < 1 || month.to_i > 12
|
136
136
|
errors.add(:base, :expiry_invalid)
|
137
137
|
else
|
138
|
-
|
139
|
-
if
|
138
|
+
current = Time.current
|
139
|
+
if year.to_i < current.year or (year.to_i == current.year and month.to_i < current.month)
|
140
140
|
errors.add(:base, :card_expired)
|
141
141
|
end
|
142
142
|
end
|
data/lib/spree/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|