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: 6b73bd3f46e6bd9cfc689f140effc4ede5519a3b
4
- data.tar.gz: a7a057abf5b07c6466fcec44e86c8e37963034f7
3
+ metadata.gz: f8f179eed81a4a5773fe95c383a4a48610e3019b
4
+ data.tar.gz: 2ef4dd915925f516a00cb89356de314a2a6b42fc
5
5
  SHA512:
6
- metadata.gz: 69aa75e1cd8482f78b60ef5147ea8ee14d06cf6bb7704644c48e8d4bd050a9089233897bf3dd6ca651144627963078ecfffa5ade3dd046b0307cea73ba8bac35
7
- data.tar.gz: decfc477a40be132e0435894a4edf740332c5e6c0241ece23bd0f12defc1e5610f118b8914069cb0f9f1f0300d5be4b69a86d7626e8b4df5f0f493864df78bf5
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
- time = Time.zone.parse("#{year}-#{month}-1")
139
- if time < Time.zone.now.to_time.beginning_of_month
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
@@ -1,5 +1,5 @@
1
1
  module Spree
2
2
  def self.version
3
- "2.2.8"
3
+ "2.2.9"
4
4
  end
5
5
  end
@@ -2,7 +2,7 @@ FactoryGirl.define do
2
2
  factory :credit_card, class: Spree::CreditCard do
3
3
  verification_value 123
4
4
  month 12
5
- year { Time.now.year }
5
+ year { 1.year.from_now.year }
6
6
  number '4111111111111111'
7
7
  name 'Spree Commerce'
8
8
  end
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.8
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-05 00:00:00.000000000 Z
11
+ date: 2014-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant