killbill 7.0.1 → 7.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbad6a58f042a015aede5807c95e57ac86d66fdc
4
- data.tar.gz: 85594f0640bc24e2c653f5fe5dfe4901c8b8b069
3
+ metadata.gz: 00abb7d62cbbd3b1acc310c30aa019e49b77d97b
4
+ data.tar.gz: 24147e06c6b475e35445ff4e6d4ff2854adc22ef
5
5
  SHA512:
6
- metadata.gz: 62361ea463e1bede2da261aa960bef3454647f9b6d39822dd327bb3fca96740568ced1caf72497c12320dd4913d33dc868ef5c17e73f8297171a48d4120a76d0
7
- data.tar.gz: 76ca4e94b266214e9b0e4b3e068a70cbf8a0ac39d7cb66d22e14cec88c348162815f19f392d92be97ad489b671cd90385f585c9b68ce7918526fc7e4d76eb02e
6
+ metadata.gz: 8dea0afb1b1749936bd9571c4b033b67ad5832d98dcafaa0ef67763c13a66a0881115d6a15cfa98f4249ac279d3b5ab6b286451dca9454edf2835229562e544c
7
+ data.tar.gz: 50d34ba943202a7de31eaa8f2576825bc16da05625a6cb1a819f5b835d42ab95f1eec044a9d97c762229ef7a5a39df73943552d51314d4df7a008ca8e8392464
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killbill (7.0.1)
4
+ killbill (7.0.2)
5
5
  rack (>= 1.5.2)
6
6
  sinatra (~> 1.3.4)
7
7
  typhoeus (~> 0.6.9)
@@ -56,7 +56,7 @@ GEM
56
56
  diff-lcs (1.1.3)
57
57
  equalizer (0.0.11)
58
58
  erubis (2.7.0)
59
- ethon (0.8.0)
59
+ ethon (0.8.1)
60
60
  ffi (>= 1.3.0)
61
61
  ffi (1.9.10-java)
62
62
  i18n (0.7.0)
data/NEWS CHANGED
@@ -1,3 +1,6 @@
1
+ 7.0.2
2
+ Handle blank tokens
3
+
1
4
  7.0.1
2
5
  Update ActiveMerchant config helper to retrieve per-tenant configuration
3
6
  Improve exception logging in ActiveMerchant
@@ -186,7 +186,7 @@ Apache License
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2015 The Billing Project, LLC
189
+ Copyright 2016 The Billing Project, LLC
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
@@ -48,6 +48,7 @@ CREATE TABLE <%= identifier %>_transactions (
48
48
  PRIMARY KEY (id)
49
49
  ) /*! ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin */;
50
50
  CREATE INDEX index_<%= identifier %>_transactions_kb_payment_id ON <%= identifier %>_transactions(kb_payment_id);
51
+ CREATE INDEX index_<%= identifier %>_transactions_<%= identifier %>_response_id ON <%= identifier %>_transactions(<%= identifier %>_response_id);
51
52
 
52
53
  CREATE TABLE <%= identifier %>_responses (
53
54
  id serial UNIQUE,
@@ -73,3 +74,4 @@ CREATE TABLE <%= identifier %>_responses (
73
74
  kb_tenant_id varchar(255) DEFAULT NULL,
74
75
  PRIMARY KEY (id)
75
76
  ) /*! ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin */;
77
+ CREATE INDEX index_<%= identifier %>_responses_kb_payment_id_kb_tenant_id ON <%= identifier %>_responses(kb_payment_id, kb_tenant_id);
@@ -50,6 +50,7 @@ ActiveRecord::Schema.define(:version => 20140410153635) do
50
50
  end
51
51
 
52
52
  add_index(:<%= identifier %>_transactions, :kb_payment_id)
53
+ add_index(:<%= identifier %>_transactions, :<%= identifier %>_response_id)
53
54
 
54
55
  create_table "<%= identifier %>_responses", :force => true do |t|
55
56
  t.string "api_call", :null => false
@@ -73,4 +74,6 @@ ActiveRecord::Schema.define(:version => 20140410153635) do
73
74
  t.string "kb_account_id"
74
75
  t.string "kb_tenant_id"
75
76
  end
77
+
78
+ add_index(:<%= identifier %>_responses, [:kb_payment_id, :kb_tenant_id])
76
79
  end
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.rdoc_options << '--exclude' << '.'
24
24
 
25
- s.add_dependency 'killbill', '~> 4'
25
+ s.add_dependency 'killbill', '~> 7.0'
26
26
 
27
27
  s.add_dependency 'sinatra', '~> 1.3.4'
28
28
  s.add_dependency 'thread_safe', '~> 0.3.4'
@@ -34,7 +34,8 @@ Gem::Specification.new do |s|
34
34
  end
35
35
  s.add_dependency 'actionpack', '~> 4.1.0'
36
36
  s.add_dependency 'actionview', '~> 4.1.0'
37
- s.add_dependency 'activemerchant', '~> 1.48.0'
37
+ # 1.56.0 and above requires Ruby 2.0
38
+ s.add_dependency 'activemerchant', '~> 1.55.0'
38
39
  s.add_dependency 'offsite_payments', '~> 2.1.0'
39
40
  s.add_dependency 'monetize', '~> 1.1.0'
40
41
  s.add_dependency 'money', '~> 6.5.1'
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!--
3
- ~ Copyright 2015 The Billing Project, LLC
3
+ ~ Copyright 2016 The Billing Project, LLC
4
4
  ~
5
5
  ~ The Billing Project licenses this file to you under the Apache License, version 2.0
6
6
  ~ (the "License"); you may not use this file except in compliance with the
@@ -24,7 +24,7 @@ module Killbill
24
24
  :kb_account_id => kb_account_id,
25
25
  :kb_payment_method_id => kb_payment_method_id,
26
26
  :kb_tenant_id => kb_tenant_id,
27
- :token => cc_or_token.kind_of?(::ActiveMerchant::Billing::CreditCard) ? response.authorization : (cc_or_token || response.authorization),
27
+ :token => cc_or_token.kind_of?(::ActiveMerchant::Billing::CreditCard) ? response.authorization.presence : (cc_or_token || response.authorization).presence,
28
28
  :cc_first_name => cc_or_token.kind_of?(::ActiveMerchant::Billing::CreditCard) ? cc_or_token.first_name : extra_params[:cc_first_name],
29
29
  :cc_last_name => cc_or_token.kind_of?(::ActiveMerchant::Billing::CreditCard) ? cc_or_token.last_name : extra_params[:cc_last_name],
30
30
  :cc_type => cc_or_token.kind_of?(::ActiveMerchant::Billing::CreditCard) ? cc_or_token.brand : extra_params[:cc_type],
@@ -499,7 +499,7 @@ module Killbill
499
499
 
500
500
  if cc_number.blank? && !pm.nil?
501
501
  # Lookup existing token
502
- if pm.token.nil?
502
+ if pm.token.blank?
503
503
  # Real credit card
504
504
  cc_or_token = build_am_credit_card(pm.cc_number, attributes, pm)
505
505
  else
@@ -1,3 +1,3 @@
1
1
  module Killbill
2
- VERSION = '7.0.1'
2
+ VERSION = '7.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.1
4
+ version: 7.0.2
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: 2016-02-17 00:00:00.000000000 Z
11
+ date: 2016-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra