killbill-cybersource 3.2.0 → 3.3.0

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: 950d43cbe1c9ee42d76be9c94189d221f0af7031
4
- data.tar.gz: e4ece8048f20cbc213ac36fe6c04474eb95c6d3c
3
+ metadata.gz: c2d37e65ee9d3acaaac4c660e0ddc9236e02f1cc
4
+ data.tar.gz: 7f3ce57e4d99791a099b4f13f239b8f3bee5f088
5
5
  SHA512:
6
- metadata.gz: d5ae87ca50bc360957b908acd356960d3b89e986c1bd8692127cb754ae3c51c0cac86b7141bb2f84b7b212e16cd52a13dc68e75d670873758d48b1916cb08559
7
- data.tar.gz: 55eb701e46ed22387387d1846ce8678205ad3e1ed4c6e616ffe746f836d95bf9da57ebd603b2d0921260c03899b25e0785f43e7582e799df3eaeda14e9c4599b
6
+ metadata.gz: 256d147d0d079d7ff5e7a1cf1bca4ff7fecd12cf9ef9e626ba9de684231982b1c9eb8a30a1f8079870ee21be92b3d89dddf8a7beaf7b62469b28035720d5ae12
7
+ data.tar.gz: 5e89701f55c38d154be6ccc56f9edc907a01c9c3a06530cff0c27f7c6f3752b0f64b207eebec558a79f0a507a6a4f32814bb193cf9c366693bf3e4e5c0afa14c
data/Gemfile CHANGED
@@ -1,3 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+ #gem 'killbill', :github => 'killbill/killbill-plugin-framework-ruby'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killbill-cybersource (3.2.0)
4
+ killbill-cybersource (3.3.0)
5
5
  actionpack (~> 4.1.0)
6
6
  actionview (~> 4.1.0)
7
7
  activemerchant (~> 1.48.0)
@@ -9,7 +9,7 @@ PATH
9
9
  activerecord-bogacs (~> 0.3)
10
10
  activerecord-jdbc-adapter (~> 1.3)
11
11
  jruby-openssl (~> 0.9.6)
12
- killbill (~> 6.1.0)
12
+ killbill (~> 6.5.0)
13
13
  monetize (~> 1.1.0)
14
14
  money (~> 6.5.1)
15
15
  offsite_payments (~> 2.1.0)
@@ -63,11 +63,11 @@ GEM
63
63
  jbundler (0.4.3)
64
64
  maven-tools (~> 0.32.1)
65
65
  ruby-maven (~> 3.0.4)
66
- jdbc-mariadb (1.1.8)
67
- jdbc-sqlite3 (3.8.10.1)
66
+ jdbc-mariadb (1.2.3)
67
+ jdbc-sqlite3 (3.8.11.2)
68
68
  jruby-openssl (0.9.12-java)
69
69
  json (1.8.3-java)
70
- killbill (6.1.0)
70
+ killbill (6.5.0)
71
71
  rack (>= 1.5.2)
72
72
  sinatra (~> 1.3.4)
73
73
  typhoeus (~> 0.6.9)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.0
1
+ 3.3.0
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.rdoc_options << '--exclude' << '.'
24
24
 
25
- s.add_dependency 'killbill', '~> 6.1.0'
25
+ s.add_dependency 'killbill', '~> 6.5.0'
26
26
 
27
27
  s.add_dependency 'sinatra', '~> 1.3.4'
28
28
  s.add_dependency 'thread_safe', '~> 0.3.4'
@@ -239,6 +239,8 @@ module Killbill #:nodoc:
239
239
  end
240
240
 
241
241
  def should_credit?(kb_payment_id, context, options = {})
242
+
243
+
242
244
  # Transform refunds on old payments into credits automatically unless the disable_auto_credit property is passed
243
245
  return false if Killbill::Plugin::ActiveMerchant::Utils.normalized(options, :disable_auto_credit)
244
246
 
@@ -246,8 +248,10 @@ module Killbill #:nodoc:
246
248
  return false if transaction.nil?
247
249
 
248
250
  threshold = (Killbill::Plugin::ActiveMerchant::Utils.normalized(options, :auto_credit_threshold) || SIXTY_DAYS_AGO).to_i
249
- # Note: we cannot use Kill Bill clock yet (see https://github.com/killbill/killbill-platform/issues/4)
250
- (Time.now - transaction.created_at) >= threshold
251
+
252
+ # we might want a 'util' function to make the conversion joda DateTime to a ruby Time object
253
+ now = Time.parse(@clock.get_clock.get_utc_now.to_s)
254
+ (now - transaction.created_at) >= threshold
251
255
  end
252
256
 
253
257
  # Make calls idempotent
data/pom.xml CHANGED
@@ -25,7 +25,7 @@
25
25
  <groupId>org.kill-bill.billing.plugin.ruby</groupId>
26
26
  <artifactId>cybersource-plugin</artifactId>
27
27
  <packaging>pom</packaging>
28
- <version>3.2.0</version>
28
+ <version>3.3.0</version>
29
29
  <name>cybersource-plugin</name>
30
30
  <url>http://github.com/killbill/killbill-cybersource-plugin</url>
31
31
  <description>Plugin for accessing Cybersource as a payment gateway</description>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-cybersource
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kill Bill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-04 00:00:00.000000000 Z
11
+ date: 2015-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: killbill
@@ -16,12 +16,12 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 6.1.0
19
+ version: 6.5.0
20
20
  requirement: !ruby/object:Gem::Requirement
21
21
  requirements:
22
22
  - - ~>
23
23
  - !ruby/object:Gem::Version
24
- version: 6.1.0
24
+ version: 6.5.0
25
25
  prerelease: false
26
26
  type: :runtime
27
27
  - !ruby/object:Gem::Dependency