killbill 7.0.6 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +0 -6
  3. data/Gemfile.lock +13 -15
  4. data/Jarfile +10 -9
  5. data/Jarfile.lock +53 -50
  6. data/NEWS +0 -4
  7. data/README.md +13 -1
  8. data/generators/active_merchant/templates/spec/spec_helper.rb +5 -9
  9. data/killbill.gemspec +0 -1
  10. data/lib/killbill/gen/api/account.rb +26 -1
  11. data/lib/killbill/gen/api/dry_run_arguments.rb +4 -7
  12. data/lib/killbill/gen/api/entitlement.rb +7 -1
  13. data/lib/killbill/gen/api/entitlement_api.rb +42 -84
  14. data/lib/killbill/gen/api/immutable_account_data.rb +26 -1
  15. data/lib/killbill/gen/api/invoice_user_api.rb +52 -12
  16. data/lib/killbill/gen/api/killbill_nodes_api.rb +30 -13
  17. data/lib/killbill/gen/api/migration_plan.rb +19 -12
  18. data/lib/killbill/gen/api/osgi_killbill.rb +8 -1
  19. data/lib/killbill/gen/api/payment_api.rb +51 -0
  20. data/lib/killbill/gen/api/plan.rb +19 -12
  21. data/lib/killbill/gen/api/require_gen.rb +1 -0
  22. data/lib/killbill/gen/api/subscription.rb +7 -1
  23. data/lib/killbill/gen/api/subscription_api.rb +279 -164
  24. data/lib/killbill/gen/api/subscription_event.rb +1 -12
  25. data/lib/killbill/gen/api/subscription_usage_record.rb +8 -2
  26. data/lib/killbill/gen/api/usage_api_exception.rb +68 -0
  27. data/lib/killbill/gen/plugin-api/blocking_state_metadata.rb +137 -0
  28. data/lib/killbill/gen/plugin-api/entitlement_context.rb +26 -8
  29. data/lib/killbill/gen/plugin-api/prior_entitlement_result.rb +26 -8
  30. data/lib/killbill/gen/plugin-api/require_gen.rb +1 -0
  31. data/lib/killbill/helpers/active_merchant/active_record/models/response.rb +1 -0
  32. data/lib/killbill/helpers/active_merchant/payment_plugin.rb +1 -6
  33. data/lib/killbill/migration.rb +2 -13
  34. data/lib/killbill/version.rb +1 -1
  35. data/spec/killbill/helpers/payment_method_spec.rb +8 -8
  36. data/spec/killbill/helpers/response_spec.rb +4 -4
  37. data/spec/spec_helper.rb +1 -1
  38. metadata +102 -82
@@ -1,3 +1,3 @@
1
1
  module Killbill
2
- VERSION = '7.0.6'
2
+ VERSION = '8.0.0'
3
3
  end
@@ -182,22 +182,22 @@ describe Killbill::Plugin::ActiveMerchant::ActiveRecord::PaymentMethod do
182
182
 
183
183
  it 'should generate the right SQL query' do
184
184
  # Check count query (search query numeric)
185
- expected_query = /SELECT COUNT\(DISTINCT #{q('test_payment_methods')}.#{q('id')}\) FROM #{q('test_payment_methods')} WHERE \(\(\(\(\(\(\(\(\(\(\(\(\(\(#{q('test_payment_methods')}.#{q('kb_account_id')} = '1234' OR #{q('test_payment_methods')}.#{q('kb_payment_method_id')} = '1234'\) OR #{q('test_payment_methods')}.#{q('token')} = '1234'\) OR #{q('test_payment_methods')}.#{q('cc_type')} = '1234'\) OR #{q('test_payment_methods')}.#{q('state')} = '1234'\) OR #{q('test_payment_methods')}.#{q('zip')} = '1234'\) OR #{q('test_payment_methods')}.#{q('cc_first_name')} I?LIKE '%1234%'\) OR #{q('test_payment_methods')}.#{q('cc_last_name')} I?LIKE '%1234%'\) OR #{q('test_payment_methods')}.#{q('address1')} I?LIKE '%1234%'\) OR #{q('test_payment_methods')}.#{q('address2')} I?LIKE '%1234%'\) OR #{q('test_payment_methods')}.#{q('city')} I?LIKE '%1234%'\) OR #{q('test_payment_methods')}.#{q('country')} I?LIKE '%1234%'\) OR #{q('test_payment_methods')}.#{q('cc_exp_month')} = '1234'\) OR #{q('test_payment_methods')}.#{q('cc_exp_year')} = '1234'\) OR #{q('test_payment_methods')}.#{q('cc_last_4')} = '1234'\) AND #{q('test_payment_methods')}.#{q('kb_tenant_id')} = '11-22-33'/
185
+ expected_query = "SELECT COUNT(DISTINCT #{q('test_payment_methods')}.#{q('id')}) FROM #{q('test_payment_methods')} WHERE ((((((((((((((#{q('test_payment_methods')}.#{q('kb_account_id')} = '1234' OR #{q('test_payment_methods')}.#{q('kb_payment_method_id')} = '1234') OR #{q('test_payment_methods')}.#{q('token')} = '1234') OR #{q('test_payment_methods')}.#{q('cc_type')} = '1234') OR #{q('test_payment_methods')}.#{q('state')} = '1234') OR #{q('test_payment_methods')}.#{q('zip')} = '1234') OR #{q('test_payment_methods')}.#{q('cc_first_name')} LIKE '%1234%') OR #{q('test_payment_methods')}.#{q('cc_last_name')} LIKE '%1234%') OR #{q('test_payment_methods')}.#{q('address1')} LIKE '%1234%') OR #{q('test_payment_methods')}.#{q('address2')} LIKE '%1234%') OR #{q('test_payment_methods')}.#{q('city')} LIKE '%1234%') OR #{q('test_payment_methods')}.#{q('country')} LIKE '%1234%') OR #{q('test_payment_methods')}.#{q('cc_exp_month')} = '1234') OR #{q('test_payment_methods')}.#{q('cc_exp_year')} = '1234') OR #{q('test_payment_methods')}.#{q('cc_last_4')} = '1234') AND #{q('test_payment_methods')}.#{q('kb_tenant_id')} = '11-22-33'"
186
186
  # Note that Kill Bill will pass a String, even for numeric types
187
- ::Killbill::Test::TestPaymentMethod.search_query('1234', '11-22-33').to_sql.should match(expected_query)
187
+ ::Killbill::Test::TestPaymentMethod.search_query('1234', '11-22-33').to_sql.should == expected_query
188
188
 
189
189
  # Check query with results (search query numeric)
190
- expected_query = /SELECT DISTINCT #{q('test_payment_methods')}.* FROM #{q('test_payment_methods')} WHERE \(\(\(\(\(\(\(\(\(\(\(\(\(\(#{q('test_payment_methods')}.#{q('kb_account_id')} = '1234' OR #{q('test_payment_methods')}.#{q('kb_payment_method_id')} = '1234'\) OR #{q('test_payment_methods')}.#{q('token')} = '1234'\) OR #{q('test_payment_methods')}.#{q('cc_type')} = '1234'\) OR #{q('test_payment_methods')}.#{q('state')} = '1234'\) OR #{q('test_payment_methods')}.#{q('zip')} = '1234'\) OR #{q('test_payment_methods')}.#{q('cc_first_name')} I?LIKE '%1234%'\) OR #{q('test_payment_methods')}.#{q('cc_last_name')} I?LIKE '%1234%'\) OR #{q('test_payment_methods')}.#{q('address1')} I?LIKE '%1234%'\) OR #{q('test_payment_methods')}.#{q('address2')} I?LIKE '%1234%'\) OR #{q('test_payment_methods')}.#{q('city')} I?LIKE '%1234%'\) OR #{q('test_payment_methods')}.#{q('country')} I?LIKE '%1234%'\) OR #{q('test_payment_methods')}.#{q('cc_exp_month')} = '1234'\) OR #{q('test_payment_methods')}.#{q('cc_exp_year')} = '1234'\) OR #{q('test_payment_methods')}.#{q('cc_last_4')} = '1234'\) AND #{q('test_payment_methods')}.#{q('kb_tenant_id')} = '11-22-33' ORDER BY #{q('test_payment_methods')}.#{q('id')} LIMIT 10 OFFSET 0/
190
+ expected_query = "SELECT DISTINCT #{q('test_payment_methods')}.* FROM #{q('test_payment_methods')} WHERE ((((((((((((((#{q('test_payment_methods')}.#{q('kb_account_id')} = '1234' OR #{q('test_payment_methods')}.#{q('kb_payment_method_id')} = '1234') OR #{q('test_payment_methods')}.#{q('token')} = '1234') OR #{q('test_payment_methods')}.#{q('cc_type')} = '1234') OR #{q('test_payment_methods')}.#{q('state')} = '1234') OR #{q('test_payment_methods')}.#{q('zip')} = '1234') OR #{q('test_payment_methods')}.#{q('cc_first_name')} LIKE '%1234%') OR #{q('test_payment_methods')}.#{q('cc_last_name')} LIKE '%1234%') OR #{q('test_payment_methods')}.#{q('address1')} LIKE '%1234%') OR #{q('test_payment_methods')}.#{q('address2')} LIKE '%1234%') OR #{q('test_payment_methods')}.#{q('city')} LIKE '%1234%') OR #{q('test_payment_methods')}.#{q('country')} LIKE '%1234%') OR #{q('test_payment_methods')}.#{q('cc_exp_month')} = '1234') OR #{q('test_payment_methods')}.#{q('cc_exp_year')} = '1234') OR #{q('test_payment_methods')}.#{q('cc_last_4')} = '1234') AND #{q('test_payment_methods')}.#{q('kb_tenant_id')} = '11-22-33' ORDER BY #{q('test_payment_methods')}.#{q('id')} LIMIT 10 OFFSET 0"
191
191
  # Note that Kill Bill will pass a String, even for numeric types
192
- ::Killbill::Test::TestPaymentMethod.search_query('1234', '11-22-33', 0, 10).to_sql.should match(expected_query)
192
+ ::Killbill::Test::TestPaymentMethod.search_query('1234', '11-22-33', 0, 10).to_sql.should == expected_query
193
193
 
194
194
  # Check count query (search query string)
195
- expected_query = /SELECT COUNT\(DISTINCT #{q('test_payment_methods')}.#{q('id')}\) FROM #{q('test_payment_methods')} WHERE \(\(\(\(\(\(\(\(\(\(\(#{q('test_payment_methods')}.#{q('kb_account_id')} = 'XXX' OR #{q('test_payment_methods')}.#{q('kb_payment_method_id')} = 'XXX'\) OR #{q('test_payment_methods')}.#{q('token')} = 'XXX'\) OR #{q('test_payment_methods')}.#{q('cc_type')} = 'XXX'\) OR #{q('test_payment_methods')}.#{q('state')} = 'XXX'\) OR #{q('test_payment_methods')}.#{q('zip')} = 'XXX'\) OR #{q('test_payment_methods')}.#{q('cc_first_name')} I?LIKE '%XXX%'\) OR #{q('test_payment_methods')}.#{q('cc_last_name')} I?LIKE '%XXX%'\) OR #{q('test_payment_methods')}.#{q('address1')} I?LIKE '%XXX%'\) OR #{q('test_payment_methods')}.#{q('address2')} I?LIKE '%XXX%'\) OR #{q('test_payment_methods')}.#{q('city')} I?LIKE '%XXX%'\) OR #{q('test_payment_methods')}.#{q('country')} I?LIKE '%XXX%'\) AND #{q('test_payment_methods')}.#{q('kb_tenant_id')} = '11-22-33'/
196
- ::Killbill::Test::TestPaymentMethod.search_query('XXX', '11-22-33').to_sql.should match(expected_query)
195
+ expected_query = "SELECT COUNT(DISTINCT #{q('test_payment_methods')}.#{q('id')}) FROM #{q('test_payment_methods')} WHERE (((((((((((#{q('test_payment_methods')}.#{q('kb_account_id')} = 'XXX' OR #{q('test_payment_methods')}.#{q('kb_payment_method_id')} = 'XXX') OR #{q('test_payment_methods')}.#{q('token')} = 'XXX') OR #{q('test_payment_methods')}.#{q('cc_type')} = 'XXX') OR #{q('test_payment_methods')}.#{q('state')} = 'XXX') OR #{q('test_payment_methods')}.#{q('zip')} = 'XXX') OR #{q('test_payment_methods')}.#{q('cc_first_name')} LIKE '%XXX%') OR #{q('test_payment_methods')}.#{q('cc_last_name')} LIKE '%XXX%') OR #{q('test_payment_methods')}.#{q('address1')} LIKE '%XXX%') OR #{q('test_payment_methods')}.#{q('address2')} LIKE '%XXX%') OR #{q('test_payment_methods')}.#{q('city')} LIKE '%XXX%') OR #{q('test_payment_methods')}.#{q('country')} LIKE '%XXX%') AND #{q('test_payment_methods')}.#{q('kb_tenant_id')} = '11-22-33'"
196
+ ::Killbill::Test::TestPaymentMethod.search_query('XXX', '11-22-33').to_sql.should == expected_query
197
197
 
198
198
  # Check query with results (search query string)
199
- expected_query = /SELECT DISTINCT #{q('test_payment_methods')}.* FROM #{q('test_payment_methods')} WHERE \(\(\(\(\(\(\(\(\(\(\(#{q('test_payment_methods')}.#{q('kb_account_id')} = 'XXX' OR #{q('test_payment_methods')}.#{q('kb_payment_method_id')} = 'XXX'\) OR #{q('test_payment_methods')}.#{q('token')} = 'XXX'\) OR #{q('test_payment_methods')}.#{q('cc_type')} = 'XXX'\) OR #{q('test_payment_methods')}.#{q('state')} = 'XXX'\) OR #{q('test_payment_methods')}.#{q('zip')} = 'XXX'\) OR #{q('test_payment_methods')}.#{q('cc_first_name')} I?LIKE '%XXX%'\) OR #{q('test_payment_methods')}.#{q('cc_last_name')} I?LIKE '%XXX%'\) OR #{q('test_payment_methods')}.#{q('address1')} I?LIKE '%XXX%'\) OR #{q('test_payment_methods')}.#{q('address2')} I?LIKE '%XXX%'\) OR #{q('test_payment_methods')}.#{q('city')} I?LIKE '%XXX%'\) OR #{q('test_payment_methods')}.#{q('country')} I?LIKE '%XXX%'\) AND #{q('test_payment_methods')}.#{q('kb_tenant_id')} = '11-22-33' ORDER BY #{q('test_payment_methods')}.#{q('id')} LIMIT 10 OFFSET 0/
200
- ::Killbill::Test::TestPaymentMethod.search_query('XXX', '11-22-33', 0, 10).to_sql.should match(expected_query)
199
+ expected_query = "SELECT DISTINCT #{q('test_payment_methods')}.* FROM #{q('test_payment_methods')} WHERE (((((((((((#{q('test_payment_methods')}.#{q('kb_account_id')} = 'XXX' OR #{q('test_payment_methods')}.#{q('kb_payment_method_id')} = 'XXX') OR #{q('test_payment_methods')}.#{q('token')} = 'XXX') OR #{q('test_payment_methods')}.#{q('cc_type')} = 'XXX') OR #{q('test_payment_methods')}.#{q('state')} = 'XXX') OR #{q('test_payment_methods')}.#{q('zip')} = 'XXX') OR #{q('test_payment_methods')}.#{q('cc_first_name')} LIKE '%XXX%') OR #{q('test_payment_methods')}.#{q('cc_last_name')} LIKE '%XXX%') OR #{q('test_payment_methods')}.#{q('address1')} LIKE '%XXX%') OR #{q('test_payment_methods')}.#{q('address2')} LIKE '%XXX%') OR #{q('test_payment_methods')}.#{q('city')} LIKE '%XXX%') OR #{q('test_payment_methods')}.#{q('country')} LIKE '%XXX%') AND #{q('test_payment_methods')}.#{q('kb_tenant_id')} = '11-22-33' ORDER BY #{q('test_payment_methods')}.#{q('id')} LIMIT 10 OFFSET 0"
200
+ ::Killbill::Test::TestPaymentMethod.search_query('XXX', '11-22-33', 0, 10).to_sql.should == expected_query
201
201
  end
202
202
 
203
203
  it 'should search all fields' do
@@ -137,21 +137,21 @@ describe Killbill::Plugin::ActiveMerchant::ActiveRecord::Response do
137
137
 
138
138
  it 'should generate the right SQL query' do
139
139
  # Check count query (search query numeric)
140
- expected_query = "SELECT COUNT(DISTINCT #{q('test_responses')}.#{q('id')}) FROM #{q('test_responses')} WHERE (((#{q('test_responses')}.#{q('kb_payment_id')} = '1234' OR #{q('test_responses')}.#{q('kb_payment_transaction_id')} = '1234') OR #{q('test_responses')}.#{q('message')} = '1234') OR #{q('test_responses')}.#{q('authorization')} = '1234') AND #{q('test_responses')}.#{q('success')} = #{qtrue} AND #{q('test_responses')}.#{q('kb_tenant_id')} = '11-22-33'"
140
+ expected_query = "SELECT COUNT(DISTINCT #{q('test_responses')}.#{q('id')}) FROM #{q('test_responses')} WHERE ((((#{q('test_responses')}.#{q('kb_payment_id')} = '1234' OR #{q('test_responses')}.#{q('kb_payment_transaction_id')} = '1234') OR #{q('test_responses')}.#{q('message')} = '1234') OR #{q('test_responses')}.#{q('authorization')} = '1234') OR #{q('test_responses')}.#{q('fraud_review')} = '1234') AND #{q('test_responses')}.#{q('success')} = #{qtrue} AND #{q('test_responses')}.#{q('kb_tenant_id')} = '11-22-33'"
141
141
  # Note that Kill Bill will pass a String, even for numeric types
142
142
  ::Killbill::Test::TestResponse.search_query('1234', '11-22-33').to_sql.should == expected_query
143
143
 
144
144
  # Check query with results (search query numeric)
145
- expected_query = "SELECT DISTINCT #{q('test_responses')}.* FROM #{q('test_responses')} WHERE (((#{q('test_responses')}.#{q('kb_payment_id')} = '1234' OR #{q('test_responses')}.#{q('kb_payment_transaction_id')} = '1234') OR #{q('test_responses')}.#{q('message')} = '1234') OR #{q('test_responses')}.#{q('authorization')} = '1234') AND #{q('test_responses')}.#{q('success')} = #{qtrue} AND #{q('test_responses')}.#{q('kb_tenant_id')} = '11-22-33' ORDER BY #{q('test_responses')}.#{q('id')} LIMIT 10 OFFSET 0"
145
+ expected_query = "SELECT DISTINCT #{q('test_responses')}.* FROM #{q('test_responses')} WHERE ((((#{q('test_responses')}.#{q('kb_payment_id')} = '1234' OR #{q('test_responses')}.#{q('kb_payment_transaction_id')} = '1234') OR #{q('test_responses')}.#{q('message')} = '1234') OR #{q('test_responses')}.#{q('authorization')} = '1234') OR #{q('test_responses')}.#{q('fraud_review')} = '1234') AND #{q('test_responses')}.#{q('success')} = #{qtrue} AND #{q('test_responses')}.#{q('kb_tenant_id')} = '11-22-33' ORDER BY #{q('test_responses')}.#{q('id')} LIMIT 10 OFFSET 0"
146
146
  # Note that Kill Bill will pass a String, even for numeric types
147
147
  ::Killbill::Test::TestResponse.search_query('1234', '11-22-33', 0, 10).to_sql.should == expected_query
148
148
 
149
149
  # Check count query (search query string)
150
- expected_query = "SELECT COUNT(DISTINCT #{q('test_responses')}.#{q('id')}) FROM #{q('test_responses')} WHERE (((#{q('test_responses')}.#{q('kb_payment_id')} = 'XXX' OR #{q('test_responses')}.#{q('kb_payment_transaction_id')} = 'XXX') OR #{q('test_responses')}.#{q('message')} = 'XXX') OR #{q('test_responses')}.#{q('authorization')} = 'XXX') AND #{q('test_responses')}.#{q('success')} = #{qtrue} AND #{q('test_responses')}.#{q('kb_tenant_id')} = '11-22-33'"
150
+ expected_query = "SELECT COUNT(DISTINCT #{q('test_responses')}.#{q('id')}) FROM #{q('test_responses')} WHERE ((((#{q('test_responses')}.#{q('kb_payment_id')} = 'XXX' OR #{q('test_responses')}.#{q('kb_payment_transaction_id')} = 'XXX') OR #{q('test_responses')}.#{q('message')} = 'XXX') OR #{q('test_responses')}.#{q('authorization')} = 'XXX') OR #{q('test_responses')}.#{q('fraud_review')} = 'XXX') AND #{q('test_responses')}.#{q('success')} = #{qtrue} AND #{q('test_responses')}.#{q('kb_tenant_id')} = '11-22-33'"
151
151
  ::Killbill::Test::TestResponse.search_query('XXX', '11-22-33').to_sql.should == expected_query
152
152
 
153
153
  # Check query with results (search query string)
154
- expected_query = "SELECT DISTINCT #{q('test_responses')}.* FROM #{q('test_responses')} WHERE (((#{q('test_responses')}.#{q('kb_payment_id')} = 'XXX' OR #{q('test_responses')}.#{q('kb_payment_transaction_id')} = 'XXX') OR #{q('test_responses')}.#{q('message')} = 'XXX') OR #{q('test_responses')}.#{q('authorization')} = 'XXX') AND #{q('test_responses')}.#{q('success')} = #{qtrue} AND #{q('test_responses')}.#{q('kb_tenant_id')} = '11-22-33' ORDER BY #{q('test_responses')}.#{q('id')} LIMIT 10 OFFSET 0"
154
+ expected_query = "SELECT DISTINCT #{q('test_responses')}.* FROM #{q('test_responses')} WHERE ((((#{q('test_responses')}.#{q('kb_payment_id')} = 'XXX' OR #{q('test_responses')}.#{q('kb_payment_transaction_id')} = 'XXX') OR #{q('test_responses')}.#{q('message')} = 'XXX') OR #{q('test_responses')}.#{q('authorization')} = 'XXX') OR #{q('test_responses')}.#{q('fraud_review')} = 'XXX') AND #{q('test_responses')}.#{q('success')} = #{qtrue} AND #{q('test_responses')}.#{q('kb_tenant_id')} = '11-22-33' ORDER BY #{q('test_responses')}.#{q('id')} LIMIT 10 OFFSET 0"
155
155
  ::Killbill::Test::TestResponse.search_query('XXX', '11-22-33', 0, 10).to_sql.should == expected_query
156
156
  end
157
157
 
data/spec/spec_helper.rb CHANGED
@@ -80,7 +80,7 @@ module Killbill
80
80
  require File.expand_path(File.dirname(__FILE__) + '/killbill/helpers/test_schema.rb')
81
81
 
82
82
  # Required to have MySQL store milliseconds
83
- Time::DATE_FORMATS.merge!({ db: '%Y-%m-%d %H:%M:%S.%3N' }) if %w(mariadb mysql).include?(ENV['AR_ADAPTER'])
83
+ Time::DATE_FORMATS.merge!({ db: '%Y-%m-%d %H:%M:%S.%3N' })
84
84
  end
85
85
  end
86
86
  end
metadata CHANGED
@@ -1,256 +1,241 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.6
4
+ version: 8.0.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: 2016-06-22 00:00:00.000000000 Z
11
+ date: 2016-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: sinatra
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: 1.3.4
20
14
  requirement: !ruby/object:Gem::Requirement
21
15
  requirements:
22
16
  - - ~>
23
17
  - !ruby/object:Gem::Version
24
18
  version: 1.3.4
19
+ name: sinatra
25
20
  prerelease: false
26
21
  type: :runtime
27
- - !ruby/object:Gem::Dependency
28
- name: rack
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
23
  requirements:
31
- - - '>='
24
+ - - ~>
32
25
  - !ruby/object:Gem::Version
33
- version: 1.5.2
26
+ version: 1.3.4
27
+ - !ruby/object:Gem::Dependency
34
28
  requirement: !ruby/object:Gem::Requirement
35
29
  requirements:
36
30
  - - '>='
37
31
  - !ruby/object:Gem::Version
38
32
  version: 1.5.2
33
+ name: rack
39
34
  prerelease: false
40
35
  type: :runtime
41
- - !ruby/object:Gem::Dependency
42
- name: typhoeus
43
36
  version_requirements: !ruby/object:Gem::Requirement
44
37
  requirements:
45
- - - ~>
38
+ - - '>='
46
39
  - !ruby/object:Gem::Version
47
- version: 0.6.9
40
+ version: 1.5.2
41
+ - !ruby/object:Gem::Dependency
48
42
  requirement: !ruby/object:Gem::Requirement
49
43
  requirements:
50
44
  - - ~>
51
45
  - !ruby/object:Gem::Version
52
46
  version: 0.6.9
47
+ name: typhoeus
53
48
  prerelease: false
54
49
  type: :runtime
55
- - !ruby/object:Gem::Dependency
56
- name: tzinfo
57
50
  version_requirements: !ruby/object:Gem::Requirement
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
61
- version: 1.2.0
54
+ version: 0.6.9
55
+ - !ruby/object:Gem::Dependency
62
56
  requirement: !ruby/object:Gem::Requirement
63
57
  requirements:
64
58
  - - ~>
65
59
  - !ruby/object:Gem::Version
66
60
  version: 1.2.0
61
+ name: tzinfo
67
62
  prerelease: false
68
63
  type: :runtime
69
- - !ruby/object:Gem::Dependency
70
- name: thread_safe
71
64
  version_requirements: !ruby/object:Gem::Requirement
72
65
  requirements:
73
66
  - - ~>
74
67
  - !ruby/object:Gem::Version
75
- version: 0.3.4
68
+ version: 1.2.0
69
+ - !ruby/object:Gem::Dependency
76
70
  requirement: !ruby/object:Gem::Requirement
77
71
  requirements:
78
72
  - - ~>
79
73
  - !ruby/object:Gem::Version
80
74
  version: 0.3.4
75
+ name: thread_safe
81
76
  prerelease: false
82
77
  type: :development
83
- - !ruby/object:Gem::Dependency
84
- name: activerecord
85
78
  version_requirements: !ruby/object:Gem::Requirement
86
79
  requirements:
87
80
  - - ~>
88
81
  - !ruby/object:Gem::Version
89
- version: 4.1.0
82
+ version: 0.3.4
83
+ - !ruby/object:Gem::Dependency
90
84
  requirement: !ruby/object:Gem::Requirement
91
85
  requirements:
92
86
  - - ~>
93
87
  - !ruby/object:Gem::Version
94
88
  version: 4.1.0
89
+ name: activerecord
95
90
  prerelease: false
96
91
  type: :development
97
- - !ruby/object:Gem::Dependency
98
- name: activerecord-bogacs
99
92
  version_requirements: !ruby/object:Gem::Requirement
100
93
  requirements:
101
94
  - - ~>
102
95
  - !ruby/object:Gem::Version
103
- version: '0.3'
96
+ version: 4.1.0
97
+ - !ruby/object:Gem::Dependency
104
98
  requirement: !ruby/object:Gem::Requirement
105
99
  requirements:
106
100
  - - ~>
107
101
  - !ruby/object:Gem::Version
108
102
  version: '0.3'
103
+ name: activerecord-bogacs
109
104
  prerelease: false
110
105
  type: :development
111
- - !ruby/object:Gem::Dependency
112
- name: activerecord-jdbc-adapter
113
106
  version_requirements: !ruby/object:Gem::Requirement
114
107
  requirements:
115
108
  - - ~>
116
109
  - !ruby/object:Gem::Version
117
- version: '1.3'
110
+ version: '0.3'
111
+ - !ruby/object:Gem::Dependency
118
112
  requirement: !ruby/object:Gem::Requirement
119
113
  requirements:
120
114
  - - ~>
121
115
  - !ruby/object:Gem::Version
122
116
  version: '1.3'
117
+ name: activerecord-jdbc-adapter
123
118
  prerelease: false
124
119
  type: :development
125
- - !ruby/object:Gem::Dependency
126
- name: jdbc-mariadb
127
120
  version_requirements: !ruby/object:Gem::Requirement
128
121
  requirements:
129
122
  - - ~>
130
123
  - !ruby/object:Gem::Version
131
- version: 1.1.8
124
+ version: '1.3'
125
+ - !ruby/object:Gem::Dependency
132
126
  requirement: !ruby/object:Gem::Requirement
133
127
  requirements:
134
128
  - - ~>
135
129
  - !ruby/object:Gem::Version
136
130
  version: 1.1.8
131
+ name: jdbc-mariadb
137
132
  prerelease: false
138
133
  type: :development
139
- - !ruby/object:Gem::Dependency
140
- name: jdbc-postgres
141
134
  version_requirements: !ruby/object:Gem::Requirement
142
135
  requirements:
143
136
  - - ~>
144
137
  - !ruby/object:Gem::Version
145
- version: '9.4'
138
+ version: 1.1.8
139
+ - !ruby/object:Gem::Dependency
146
140
  requirement: !ruby/object:Gem::Requirement
147
141
  requirements:
148
142
  - - ~>
149
143
  - !ruby/object:Gem::Version
150
- version: '9.4'
144
+ version: 4.1.0
145
+ name: actionpack
151
146
  prerelease: false
152
147
  type: :development
153
- - !ruby/object:Gem::Dependency
154
- name: actionpack
155
148
  version_requirements: !ruby/object:Gem::Requirement
156
149
  requirements:
157
150
  - - ~>
158
151
  - !ruby/object:Gem::Version
159
152
  version: 4.1.0
153
+ - !ruby/object:Gem::Dependency
160
154
  requirement: !ruby/object:Gem::Requirement
161
155
  requirements:
162
156
  - - ~>
163
157
  - !ruby/object:Gem::Version
164
158
  version: 4.1.0
159
+ name: actionview
165
160
  prerelease: false
166
161
  type: :development
167
- - !ruby/object:Gem::Dependency
168
- name: actionview
169
162
  version_requirements: !ruby/object:Gem::Requirement
170
163
  requirements:
171
164
  - - ~>
172
165
  - !ruby/object:Gem::Version
173
166
  version: 4.1.0
167
+ - !ruby/object:Gem::Dependency
174
168
  requirement: !ruby/object:Gem::Requirement
175
169
  requirements:
176
170
  - - ~>
177
171
  - !ruby/object:Gem::Version
178
- version: 4.1.0
172
+ version: 1.48.0
173
+ name: activemerchant
179
174
  prerelease: false
180
175
  type: :development
181
- - !ruby/object:Gem::Dependency
182
- name: activemerchant
183
176
  version_requirements: !ruby/object:Gem::Requirement
184
177
  requirements:
185
178
  - - ~>
186
179
  - !ruby/object:Gem::Version
187
180
  version: 1.48.0
181
+ - !ruby/object:Gem::Dependency
188
182
  requirement: !ruby/object:Gem::Requirement
189
183
  requirements:
190
184
  - - ~>
191
185
  - !ruby/object:Gem::Version
192
- version: 1.48.0
186
+ version: 2.1.0
187
+ name: offsite_payments
193
188
  prerelease: false
194
189
  type: :development
195
- - !ruby/object:Gem::Dependency
196
- name: offsite_payments
197
190
  version_requirements: !ruby/object:Gem::Requirement
198
191
  requirements:
199
192
  - - ~>
200
193
  - !ruby/object:Gem::Version
201
194
  version: 2.1.0
195
+ - !ruby/object:Gem::Dependency
202
196
  requirement: !ruby/object:Gem::Requirement
203
197
  requirements:
204
198
  - - ~>
205
199
  - !ruby/object:Gem::Version
206
- version: 2.1.0
200
+ version: 1.1.0
201
+ name: monetize
207
202
  prerelease: false
208
203
  type: :development
209
- - !ruby/object:Gem::Dependency
210
- name: monetize
211
204
  version_requirements: !ruby/object:Gem::Requirement
212
205
  requirements:
213
206
  - - ~>
214
207
  - !ruby/object:Gem::Version
215
208
  version: 1.1.0
209
+ - !ruby/object:Gem::Dependency
216
210
  requirement: !ruby/object:Gem::Requirement
217
211
  requirements:
218
212
  - - ~>
219
213
  - !ruby/object:Gem::Version
220
- version: 1.1.0
214
+ version: 6.5.1
215
+ name: money
221
216
  prerelease: false
222
217
  type: :development
223
- - !ruby/object:Gem::Dependency
224
- name: money
225
218
  version_requirements: !ruby/object:Gem::Requirement
226
219
  requirements:
227
220
  - - ~>
228
221
  - !ruby/object:Gem::Version
229
222
  version: 6.5.1
223
+ - !ruby/object:Gem::Dependency
230
224
  requirement: !ruby/object:Gem::Requirement
231
225
  requirements:
232
226
  - - ~>
233
227
  - !ruby/object:Gem::Version
234
- version: 6.5.1
228
+ version: 0.9.2
229
+ name: jbundler
235
230
  prerelease: false
236
231
  type: :development
237
- - !ruby/object:Gem::Dependency
238
- name: jbundler
239
232
  version_requirements: !ruby/object:Gem::Requirement
240
233
  requirements:
241
234
  - - ~>
242
235
  - !ruby/object:Gem::Version
243
236
  version: 0.9.2
244
- requirement: !ruby/object:Gem::Requirement
245
- requirements:
246
- - - ~>
247
- - !ruby/object:Gem::Version
248
- version: 0.9.2
249
- prerelease: false
250
- type: :development
251
237
  - !ruby/object:Gem::Dependency
252
- name: rake
253
- version_requirements: !ruby/object:Gem::Requirement
238
+ requirement: !ruby/object:Gem::Requirement
254
239
  requirements:
255
240
  - - '>='
256
241
  - !ruby/object:Gem::Version
@@ -258,7 +243,10 @@ dependencies:
258
243
  - - <
259
244
  - !ruby/object:Gem::Version
260
245
  version: 11.0.0
261
- requirement: !ruby/object:Gem::Requirement
246
+ name: rake
247
+ prerelease: false
248
+ type: :development
249
+ version_requirements: !ruby/object:Gem::Requirement
262
250
  requirements:
263
251
  - - '>='
264
252
  - !ruby/object:Gem::Version
@@ -266,50 +254,48 @@ dependencies:
266
254
  - - <
267
255
  - !ruby/object:Gem::Version
268
256
  version: 11.0.0
269
- prerelease: false
270
- type: :development
271
257
  - !ruby/object:Gem::Dependency
272
- name: rspec
273
- version_requirements: !ruby/object:Gem::Requirement
274
- requirements:
275
- - - ~>
276
- - !ruby/object:Gem::Version
277
- version: 2.12.0
278
258
  requirement: !ruby/object:Gem::Requirement
279
259
  requirements:
280
260
  - - ~>
281
261
  - !ruby/object:Gem::Version
282
262
  version: 2.12.0
263
+ name: rspec
283
264
  prerelease: false
284
265
  type: :development
285
- - !ruby/object:Gem::Dependency
286
- name: thor
287
266
  version_requirements: !ruby/object:Gem::Requirement
288
267
  requirements:
289
268
  - - ~>
290
269
  - !ruby/object:Gem::Version
291
- version: 0.19.1
270
+ version: 2.12.0
271
+ - !ruby/object:Gem::Dependency
292
272
  requirement: !ruby/object:Gem::Requirement
293
273
  requirements:
294
274
  - - ~>
295
275
  - !ruby/object:Gem::Version
296
276
  version: 0.19.1
277
+ name: thor
297
278
  prerelease: false
298
279
  type: :development
299
- - !ruby/object:Gem::Dependency
300
- name: jdbc-sqlite3
301
280
  version_requirements: !ruby/object:Gem::Requirement
302
281
  requirements:
303
282
  - - ~>
304
283
  - !ruby/object:Gem::Version
305
- version: '3.7'
284
+ version: 0.19.1
285
+ - !ruby/object:Gem::Dependency
306
286
  requirement: !ruby/object:Gem::Requirement
307
287
  requirements:
308
288
  - - ~>
309
289
  - !ruby/object:Gem::Version
310
290
  version: '3.7'
291
+ name: jdbc-sqlite3
311
292
  prerelease: false
312
293
  type: :development
294
+ version_requirements: !ruby/object:Gem::Requirement
295
+ requirements:
296
+ - - ~>
297
+ - !ruby/object:Gem::Version
298
+ version: '3.7'
313
299
  description: Base classes to write plugins.
314
300
  email: killbilling-users@googlegroups.com
315
301
  executables:
@@ -501,8 +487,10 @@ files:
501
487
  - lib/killbill/gen/api/unit.rb
502
488
  - lib/killbill/gen/api/unit_usage_record.rb
503
489
  - lib/killbill/gen/api/usage.rb
490
+ - lib/killbill/gen/api/usage_api_exception.rb
504
491
  - lib/killbill/gen/api/usage_record.rb
505
492
  - lib/killbill/gen/api/usage_user_api.rb
493
+ - lib/killbill/gen/plugin-api/blocking_state_metadata.rb
506
494
  - lib/killbill/gen/plugin-api/broadcast_metadata.rb
507
495
  - lib/killbill/gen/plugin-api/catalog_plugin_api.rb
508
496
  - lib/killbill/gen/plugin-api/control_result.rb
@@ -621,4 +609,36 @@ rubygems_version: 2.4.6
621
609
  signing_key:
622
610
  specification_version: 4
623
611
  summary: Framework to write Kill Bill plugins in Ruby.
624
- test_files: []
612
+ test_files:
613
+ - spec/killbill/base_plugin_spec.rb
614
+ - spec/killbill/config_test.ru
615
+ - spec/killbill/gen_conversions_spec.rb
616
+ - spec/killbill/helpers/configuration_spec.rb
617
+ - spec/killbill/helpers/connection_spec.rb
618
+ - spec/killbill/helpers/killbill_spec_helper_spec.rb
619
+ - spec/killbill/helpers/payment_method_spec.rb
620
+ - spec/killbill/helpers/payment_plugin_spec.rb
621
+ - spec/killbill/helpers/private_payment_plugin_spec.rb
622
+ - spec/killbill/helpers/response_spec.rb
623
+ - spec/killbill/helpers/streamy_result_set_spec.rb
624
+ - spec/killbill/helpers/test_payment_method.rb
625
+ - spec/killbill/helpers/test_response.rb
626
+ - spec/killbill/helpers/test_schema.rb
627
+ - spec/killbill/helpers/test_transaction.rb
628
+ - spec/killbill/helpers/transaction_spec.rb
629
+ - spec/killbill/helpers/utils_spec.rb
630
+ - spec/killbill/invoice_plugin_api_spec.rb
631
+ - spec/killbill/invoice_plugin_spec.rb
632
+ - spec/killbill/invoice_test.rb
633
+ - spec/killbill/killbill_integration_spec.rb
634
+ - spec/killbill/killbill_logger_spec.rb
635
+ - spec/killbill/killbillapi_spec.rb
636
+ - spec/killbill/notification_plugin_api_spec.rb
637
+ - spec/killbill/notification_plugin_spec.rb
638
+ - spec/killbill/notification_test.rb
639
+ - spec/killbill/payment_plugin_api_spec.rb
640
+ - spec/killbill/payment_plugin_spec.rb
641
+ - spec/killbill/payment_test.rb
642
+ - spec/killbill/rack_handler_spec.rb
643
+ - spec/killbill/remote/active_merchant_typhoeus_connection_spec.rb
644
+ - spec/spec_helper.rb