killbill 7.0.1 → 7.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/NEWS +3 -0
- data/generators/active_merchant/templates/LICENSE.rb +1 -1
- data/generators/active_merchant/templates/db/ddl.sql.rb +2 -0
- data/generators/active_merchant/templates/db/schema.rb +3 -0
- data/generators/active_merchant/templates/plugin.gemspec.rb +3 -2
- data/generators/active_merchant/templates/pom.xml.rb +1 -1
- data/lib/killbill/helpers/active_merchant/active_record/models/payment_method.rb +1 -1
- data/lib/killbill/helpers/active_merchant/payment_plugin.rb +1 -1
- data/lib/killbill/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00abb7d62cbbd3b1acc310c30aa019e49b77d97b
|
4
|
+
data.tar.gz: 24147e06c6b475e35445ff4e6d4ff2854adc22ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
@@ -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
|
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', '~>
|
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
|
-
|
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
|
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],
|
data/lib/killbill/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|