workarea-gift_cards 3.4.8 → 3.4.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
  SHA256:
3
- metadata.gz: bd0164da5d9c0553559c21c54ca0761d93651c4e4ed038648fa52b8f921f2d5e
4
- data.tar.gz: a9ab76f17b56afc9b40014014b7a46952d1ab2b85edaf4515ec44cadbc5f7a8b
3
+ metadata.gz: aa37a378f39896cbf645c5f1e685063a9fb0d841094e513bb09c2a0045cdb153
4
+ data.tar.gz: 6f18732444f3eee6ab068378de1e79200cbde8f79eb2d95cad2b1d94be08e29c
5
5
  SHA512:
6
- metadata.gz: 4440e71c419bd0c1330a8cec7662f6d0a6608682a6bd855663ee5e2c33d745d3a56d1e90be3dc7a4c64a06987a90f0b3550910c8238c0e7e84d3c70a7ffc3512
7
- data.tar.gz: 6323498d1021cc2bb34d1f2c349f2839906e5c8bf44500eb9a774e68b1cd2c14c05927bbabf0c005272719e2ab42742a23b1c1283c1332aa13ac7bf280f6dff2
6
+ metadata.gz: 83e84100e694ecde878b6e4fbd31d6b8c6c47072f855c8753cb5df35b4b111daed844a9ca2910abd888bf4f779a8f736ae28c3526fcf9894ee63236b04a2e2bc
7
+ data.tar.gz: b1d4735c284e9688c14d5061ffc9bd0da2bc7d5e629fb0b64929f80e6aae81d4f81028ec10a98de9c8688974d9b254bed05394d69d0bc8a3c831ebbc71631403
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ Workarea Gift Cards 3.4.9 (2020-01-21)
2
+ --------------------------------------------------------------------------------
3
+
4
+ * Fix Tests for 2020
5
+
6
+ Update all tests so that they no longer depend on the year 2020 as an
7
+ expiration year. Instead, use the method provided by Workarea.
8
+
9
+ GIFTCARDS-6
10
+ Tom Scott
11
+
12
+
13
+
1
14
  Workarea Gift Cards 3.4.7 (2019-09-04)
2
15
  --------------------------------------------------------------------------------
3
16
 
data/Rakefile CHANGED
@@ -38,13 +38,12 @@ desc "Release version #{Workarea::GiftCards::VERSION} of the gem"
38
38
  task :release do
39
39
  host = "https://#{ENV['BUNDLE_GEMS__WEBLINC__COM']}@gems.weblinc.com"
40
40
 
41
- #Rake::Task['workarea:changelog'].execute
42
- #system 'git add CHANGELOG.md'
43
- #system 'git commit -m "Update CHANGELOG"'
44
- #system 'git push origin HEAD'
41
+ Rake::Task['workarea:changelog'].execute
42
+ system 'git add CHANGELOG.md'
43
+ system 'git commit -m "Update CHANGELOG"'
45
44
 
46
45
  system "git tag -a v#{Workarea::GiftCards::VERSION} -m 'Tagging #{Workarea::GiftCards::VERSION}'"
47
- system 'git push --tags'
46
+ system 'git push origin HEAD --follow-tags'
48
47
 
49
48
  system 'gem build workarea-gift_cards.gemspec'
50
49
  system "gem push workarea-gift_cards-#{Workarea::GiftCards::VERSION}.gem"
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module GiftCards
3
- VERSION = '3.4.8'.freeze
3
+ VERSION = '3.4.9'.freeze
4
4
  end
5
5
  end
@@ -80,7 +80,7 @@ module Workarea
80
80
  credit_card: {
81
81
  number: '1',
82
82
  month: 1,
83
- year: 2020,
83
+ year: next_year,
84
84
  cvv: '999'
85
85
  }
86
86
  }
@@ -121,7 +121,7 @@ module Workarea
121
121
  assert_equal('Test Card', payment.credit_card.issuer)
122
122
  assert_equal('XXXX-XXXX-XXXX-1', payment.credit_card.display_number)
123
123
  assert_equal(1, payment.credit_card.month)
124
- assert_equal(2020, payment.credit_card.year)
124
+ assert_equal(next_year, payment.credit_card.year)
125
125
  assert_equal(13.19.to_m, payment.credit_card.amount)
126
126
  assert(payment.credit_card.token.present?)
127
127
  assert(payment.credit_card.saved_card_id.blank?)
@@ -190,7 +190,7 @@ module Workarea
190
190
  credit_card: {
191
191
  number: '1',
192
192
  month: 1,
193
- year: 2020,
193
+ year: next_year,
194
194
  cvv: '999'
195
195
  }
196
196
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-gift_cards
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.8
4
+ version: 3.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - bcrouse