killbill-payment-test 3.0.0 → 3.1.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: 3080611d0a9f39e203c26b3340dbae6b7acf13e1
4
- data.tar.gz: e772f5e0762bf06f13b3c262a7152b93164660b2
3
+ metadata.gz: 81c83f34d421ac0ee2080a4cc8c3b03da740fb3c
4
+ data.tar.gz: 4294e879508dd24843eae7ae36c49574a22bbdba
5
5
  SHA512:
6
- metadata.gz: f45845d8bbfe954ef1e93fe818aed27ca0cd2351d29d24cef4d1a911c6be5d5ad77afb37eccaf4ad2e3bba40b38c3ed0f71c1d31a5d4fef9f729d58e6af925f1
7
- data.tar.gz: 846a7c125570289b9002a33626926edb91bc05541a0125e514314a2c1c06ebccb9388d20f91868d356b80ceebdf15ef39a56d4d62ec22db3ea377ffff5e762a4
6
+ metadata.gz: 62d65926c520616bf3294cde6e8d176bb1d25a85fca004e26f5125661430a6476f92f8847d5fafdf25e73cb011b16545fa1ee8cd08269db9370c6c2e0bb102e5
7
+ data.tar.gz: 2ddc372d6fc8f40397dee86fcc6b9a7f27ad1aa1e6d306562008da20e51d102b9fc9ed7392248005d2cff6d430b9dff7d218a51695bcf57d42edbcd30a845eab
data/Gemfile.lock CHANGED
@@ -1,25 +1,74 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killbill-payment-test (3.0.0)
4
+ killbill-payment-test (3.1.0)
5
+ actionpack (~> 4.1.0)
6
+ actionview (~> 4.1.0)
7
+ activemerchant (~> 1.53.0)
8
+ activerecord (~> 4.1.0)
9
+ activerecord-bogacs (~> 0.3)
10
+ activerecord-jdbc-adapter (~> 1.3)
11
+ jruby-openssl (~> 0.9.6)
5
12
  killbill (~> 7.0)
13
+ monetize (~> 1.1.0)
14
+ money (~> 6.5.1)
15
+ offsite_payments (~> 2.1.0)
16
+ sinatra (~> 1.3.4)
17
+ thread_safe (~> 0.3.4)
6
18
 
7
19
  GEM
8
20
  remote: https://rubygems.org/
9
21
  specs:
22
+ actionpack (4.1.14)
23
+ actionview (= 4.1.14)
24
+ activesupport (= 4.1.14)
25
+ rack (~> 1.5.2)
26
+ rack-test (~> 0.6.2)
27
+ actionview (4.1.14)
28
+ activesupport (= 4.1.14)
29
+ builder (~> 3.1)
30
+ erubis (~> 2.7.0)
31
+ active_utils (3.0.0)
32
+ activesupport (>= 3.2)
33
+ i18n
34
+ activemerchant (1.53.0)
35
+ activesupport (>= 3.2.14, < 5.0.0)
36
+ builder (>= 2.1.2, < 4.0.0)
37
+ i18n (>= 0.6.9)
38
+ nokogiri (~> 1.4)
39
+ activemodel (4.1.14)
40
+ activesupport (= 4.1.14)
41
+ builder (~> 3.1)
42
+ activerecord (4.1.14)
43
+ activemodel (= 4.1.14)
44
+ activesupport (= 4.1.14)
45
+ arel (~> 5.0.0)
46
+ activerecord-bogacs (0.4.1)
47
+ activerecord-jdbc-adapter (1.3.19)
48
+ activerecord (>= 2.2)
49
+ activesupport (4.1.14)
50
+ i18n (~> 0.6, >= 0.6.9)
51
+ json (~> 1.7, >= 1.7.7)
52
+ minitest (~> 5.1)
53
+ thread_safe (~> 0.1)
54
+ tzinfo (~> 1.1)
55
+ arel (5.0.1.20140414130214)
10
56
  axiom-types (0.1.1)
11
57
  descendants_tracker (~> 0.0.4)
12
58
  ice_nine (~> 0.11.0)
13
59
  thread_safe (~> 0.3, >= 0.3.1)
60
+ builder (3.2.2)
14
61
  coercible (1.0.0)
15
62
  descendants_tracker (~> 0.0.1)
16
63
  descendants_tracker (0.0.4)
17
64
  thread_safe (~> 0.3, >= 0.3.1)
18
65
  diff-lcs (1.1.3)
19
66
  equalizer (0.0.11)
67
+ erubis (2.7.0)
20
68
  ethon (0.8.0)
21
69
  ffi (>= 1.3.0)
22
70
  ffi (1.9.10-java)
71
+ i18n (0.7.0)
23
72
  ice_nine (0.11.1)
24
73
  jar-dependencies (0.3.1)
25
74
  jbundler (0.9.2)
@@ -27,6 +76,10 @@ GEM
27
76
  jar-dependencies (~> 0.2)
28
77
  maven-tools (~> 1.0.10)
29
78
  ruby-maven (~> 3.3, >= 3.3.3)
79
+ jdbc-mariadb (1.2.3)
80
+ jdbc-sqlite3 (3.8.11.2)
81
+ jruby-openssl (0.9.12-java)
82
+ json (1.8.3-java)
30
83
  killbill (7.0.0)
31
84
  rack (>= 1.5.2)
32
85
  sinatra (~> 1.3.4)
@@ -34,9 +87,25 @@ GEM
34
87
  tzinfo (~> 1.2.0)
35
88
  maven-tools (1.0.13)
36
89
  virtus (~> 1.0)
37
- rack (1.6.4)
90
+ minitest (5.8.3)
91
+ monetize (1.1.0)
92
+ money (~> 6.5.0)
93
+ money (6.5.1)
94
+ i18n (>= 0.6.4, <= 0.7.0)
95
+ nokogiri (1.6.7.1-java)
96
+ offsite_payments (2.1.0)
97
+ actionpack (>= 3.2.20, < 5.0.0)
98
+ active_utils (~> 3.0.0)
99
+ activesupport (>= 3.2.14, < 5.0.0)
100
+ builder (>= 2.1.2, < 4.0.0)
101
+ i18n (~> 0.5)
102
+ money (>= 5.0.0, < 7.0.0)
103
+ nokogiri (~> 1.4)
104
+ rack (1.5.5)
38
105
  rack-protection (1.5.3)
39
106
  rack
107
+ rack-test (0.6.3)
108
+ rack (>= 1.0)
40
109
  rake (10.4.2)
41
110
  rspec (2.12.0)
42
111
  rspec-core (~> 2.12.0)
@@ -70,6 +139,8 @@ PLATFORMS
70
139
 
71
140
  DEPENDENCIES
72
141
  jbundler (~> 0.9.2)
142
+ jdbc-mariadb (~> 1.1)
143
+ jdbc-sqlite3 (~> 3.7)
73
144
  killbill-payment-test!
74
145
  rake (>= 10.0.0)
75
146
  rspec (~> 2.12.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.0
1
+ 3.1.0
data/config.ru ADDED
@@ -0,0 +1,4 @@
1
+ require 'payment_test'
2
+ require 'payment_test/application'
3
+
4
+ run Sinatra::Application
@@ -24,7 +24,29 @@ Gem::Specification.new do |s|
24
24
 
25
25
  s.add_dependency 'killbill', '~> 7.0'
26
26
 
27
+ s.add_dependency 'sinatra', '~> 1.3.4'
28
+ s.add_dependency 'thread_safe', '~> 0.3.4'
29
+ s.add_dependency 'activerecord', '~> 4.1.0'
30
+ if defined?(JRUBY_VERSION)
31
+ s.add_dependency 'activerecord-bogacs', '~> 0.3'
32
+ s.add_dependency 'activerecord-jdbc-adapter', '~> 1.3'
33
+ # Required to avoid errors like java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DERBoolean
34
+ s.add_dependency 'jruby-openssl', '~> 0.9.6'
35
+ end
36
+ s.add_dependency 'actionpack', '~> 4.1.0'
37
+ s.add_dependency 'actionview', '~> 4.1.0'
38
+ s.add_dependency 'activemerchant', '~> 1.53.0'
39
+ s.add_dependency 'offsite_payments', '~> 2.1.0'
40
+ s.add_dependency 'monetize', '~> 1.1.0'
41
+ s.add_dependency 'money', '~> 6.5.1'
42
+
27
43
  s.add_development_dependency 'jbundler', '~> 0.9.2'
28
44
  s.add_development_dependency 'rake', '>= 10.0.0'
29
45
  s.add_development_dependency 'rspec', '~> 2.12.0'
46
+ if defined?(JRUBY_VERSION)
47
+ s.add_development_dependency 'jdbc-sqlite3', '~> 3.7'
48
+ s.add_development_dependency 'jdbc-mariadb', '~> 1.1'
49
+ else
50
+ s.add_development_dependency 'sqlite3', '~> 1.3.7'
51
+ end
30
52
  end
@@ -1,10 +1,13 @@
1
1
  require 'payment_test/api_beatrix'
2
2
  require 'payment_test/api_control'
3
3
  require 'payment_test/plugin_property_utils'
4
+ require 'payment_test/state'
4
5
 
5
6
  module PaymentTest
6
7
 
7
8
  class PaymentPlugin < Killbill::Plugin::Payment
9
+
10
+
8
11
  attr_reader :api_beatrix, :api_control
9
12
 
10
13
  #
@@ -33,6 +36,8 @@ module PaymentTest
33
36
  super
34
37
  @api_beatrix = PaymentPluginBeatrix.new(self)
35
38
  @api_control = PaymentPluginControl.new(self)
39
+
40
+ @state = PaymentTest::State.instance
36
41
  end
37
42
 
38
43
 
@@ -43,29 +48,37 @@ module PaymentTest
43
48
  # Let's be cautious..
44
49
  PluginPropertyUtils.validate_properties(properties)
45
50
 
46
- # Extract TEST_MODE property if it exists
47
- test_prop = PluginPropertyUtils::get_property_or_nil(properties, 'TEST_MODE')
48
-
49
- # Default to Beatrix (nil properties, no key specified, or explicit key)
50
- if test_prop.nil? ||
51
- test_prop.value == 'BEATRIX'
51
+ if is_beatrix_call(properties)
52
52
  @api_beatrix.send method, *args
53
53
  else
54
54
  # Check if we need to throw
55
- @api_control.throw_exception_if_required(properties)
55
+ @api_control.throw_exception_if_required(properties, @state.always_throw(method))
56
56
 
57
57
  # Check if we should return nil
58
- if @api_control.should_return_nil(properties)
58
+ if @api_control.should_return_nil(properties, @state.always_return_nil(method))
59
59
  return nil
60
60
  end
61
61
 
62
62
  # Check if we need to sleep
63
- @api_control.sleep_if_required(properties)
63
+ @api_control.sleep_if_required(properties, @state.sleep_time_sec(method))
64
64
 
65
65
  # Finally make the call
66
66
  @api_control.send method, *args
67
67
  end
68
68
  end
69
69
 
70
+
71
+
72
+ private
73
+
74
+ def is_beatrix_call(properties)
75
+ test_prop = PluginPropertyUtils::get_property_or_nil(properties, 'TEST_MODE')
76
+ # If a prop has been specified and is not BEATRIX
77
+ return false if test_prop && test_prop.value != 'BEATRIX'
78
+ # Default use case for backward compatible beatrix tests
79
+ return @state.is_clear
80
+ end
81
+
82
+
70
83
  end
71
84
  end
@@ -50,7 +50,7 @@ module PaymentTest
50
50
  end
51
51
 
52
52
  def get_payment_info(kb_account_id, kb_payment_id, properties, context)
53
- @payments[kb_payment_id].transactions
53
+ @payments[kb_payment_id] ? @payments[kb_payment_id].transactions : nil
54
54
  end
55
55
 
56
56
  def search_payments(search_key, offset, limit, properties, context)
@@ -96,21 +96,22 @@ module PaymentTest
96
96
  # Noop
97
97
  end
98
98
 
99
- def throw_exception_if_required(properties)
99
+ def throw_exception_if_required(properties, force_exception)
100
100
  exception = PluginPropertyUtils::get_property_or_nil(properties, 'THROW_EXCEPTION')
101
- if exception
102
- raise RuntimeError.new("throwing cause #{exception.value}")
101
+ if force_exception || exception
102
+ raise RuntimeError.new("throwing exception}")
103
103
  end
104
104
  end
105
105
 
106
- def should_return_nil(properties)
107
- PluginPropertyUtils::get_property_or_nil(properties, 'RETURN_NIL')
106
+ def should_return_nil(properties, force_nil)
107
+ force_nil || PluginPropertyUtils::get_property_or_nil(properties, 'RETURN_NIL')
108
108
  end
109
109
 
110
- def sleep_if_required(properties)
110
+ def sleep_if_required(properties, force_sleep_sec)
111
111
  sleep_prop = PluginPropertyUtils::get_property_or_nil(properties, 'SLEEP_TIME_SEC')
112
- if sleep_prop
113
- sleep_time = sleep_prop.value.to_f
112
+ resolved_sleep_sec = force_sleep_sec || sleep_prop
113
+ if resolved_sleep_sec
114
+ sleep_time = resolved_sleep_sec.value.to_f
114
115
  @parent.logger.info "PaymentPluginControl sleeping #{sleep_time}"
115
116
  sleep sleep_time
116
117
  end
@@ -0,0 +1,44 @@
1
+ # -- encoding : utf-8 --
2
+
3
+ #include Killbill::Plugin::ActiveMerchant::Sinatra
4
+
5
+ require 'sinatra'
6
+
7
+ configure do
8
+ end
9
+
10
+ helpers do
11
+ def state
12
+ PaymentTest::State.instance
13
+ end
14
+ end
15
+
16
+
17
+
18
+ post '/plugins/killbill-payment-test/configure', :provides => 'json' do
19
+
20
+
21
+ begin
22
+ data = JSON.parse request.body.read
23
+ rescue JSON::ParserError => e
24
+ halt 400, {'Content-Type' => 'text/plain'}, "Invalid payload: #{e}"
25
+ end
26
+
27
+ action = data['CONFIGURE_ACTION']
28
+ if action.nil?
29
+ halt 400, {'Content-Type' => 'text/plain'}, "Invalid json, need to specify one CONFIGURE_ACTION={ACTION_THROW_EXCEPTION|ACTION_RETURN_NIL|ACTION_SLEEP|ACTION_RESET}"
30
+ end
31
+
32
+
33
+ if action == 'ACTION_THROW_EXCEPTION'
34
+ state.configure_always_throw(data['METHODS'])
35
+ elsif action == 'ACTION_RETURN_NIL'
36
+ state.configure_return_nil(data['METHODS'])
37
+ elsif action == 'ACTION_SLEEP'
38
+ state.configure_sleep_time(data['SLEEP_TIME_SEC'], data['METHODS'])
39
+ else
40
+ state.reset_configuration
41
+ end
42
+ status 200
43
+ end
44
+
@@ -0,0 +1,72 @@
1
+ require 'singleton'
2
+
3
+ module PaymentTest
4
+ class State
5
+
6
+ include Singleton
7
+
8
+ def initialize
9
+ reset_configuration
10
+ end
11
+
12
+ def configure_always_throw(methods=nil)
13
+ configure_methods(methods)
14
+ @always_throw = true
15
+ log_current_state
16
+ end
17
+
18
+ def configure_return_nil(methods=nil)
19
+ configure_methods(methods)
20
+ @always_return_nil = true
21
+ log_current_state
22
+ end
23
+
24
+ def configure_sleep_time(sleep_time_sec, methods=nil)
25
+ configure_methods(methods)
26
+ @sleep_time_sec = sleep_time_sec
27
+ log_current_state
28
+ end
29
+
30
+ def reset_configuration
31
+ @always_throw = false
32
+ @always_return_nil = false
33
+ @sleep_time_sec = nil
34
+ @methods = nil
35
+ log_current_state
36
+ end
37
+
38
+ def always_throw(method)
39
+ @always_throw && is_for_method(method)
40
+ end
41
+
42
+ def always_return_nil(method)
43
+ @always_return_nil && is_for_method(method)
44
+ end
45
+
46
+ def sleep_time_sec(method)
47
+ return @sleep_time_sec if @sleep_time_sec && is_for_method(method)
48
+ nil
49
+ end
50
+
51
+ def is_clear
52
+ return !@always_throw && !@always_return_nil && @sleep_time_sec.nil?
53
+ end
54
+
55
+ def log_current_state
56
+ puts "PaymentTest:State : @always_throw = #{@always_throw}, @always_return_nil = #{@always_return_nil}, @sleep_time_sec = #{@sleep_time_sec}, @methods=#{@methods}"
57
+ end
58
+
59
+ private
60
+
61
+ def configure_methods(methods=nil)
62
+ @methods = methods.split(",")
63
+ end
64
+
65
+ def is_for_method(method)
66
+ # If no methods were configured, this apply to all of them
67
+ return true if @methods.nil?
68
+
69
+ @methods.include? method.to_s
70
+ end
71
+ end
72
+ end
data/lib/payment_test.rb CHANGED
@@ -1,2 +1,19 @@
1
+ require 'openssl'
2
+ require 'action_controller'
3
+ require 'active_record'
4
+ require 'action_view'
5
+ require 'active_merchant'
6
+ require 'active_support'
7
+ require 'bigdecimal'
8
+ require 'money'
9
+ require 'monetize'
10
+ require 'offsite_payments'
11
+ require 'pathname'
12
+ require 'sinatra'
13
+ require 'singleton'
14
+ require 'yaml'
15
+
1
16
  require 'killbill'
17
+ require 'killbill/helpers/active_merchant'
18
+
2
19
  require 'payment_test/api'
data/pom.xml CHANGED
@@ -27,7 +27,7 @@
27
27
  <groupId>org.kill-bill.billing.plugin.ruby</groupId>
28
28
  <artifactId>payment-test-plugin</artifactId>
29
29
  <packaging>pom</packaging>
30
- <version>3.0.0</version>
30
+ <version>3.1.0</version>
31
31
  <name>payment-test-plugin</name>
32
32
  <description></description>
33
33
  <scm>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-payment-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.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-18 00:00:00.000000000 Z
11
+ date: 2015-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: killbill
@@ -24,6 +24,174 @@ dependencies:
24
24
  version: '7.0'
25
25
  prerelease: false
26
26
  type: :runtime
27
+ - !ruby/object:Gem::Dependency
28
+ name: sinatra
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 1.3.4
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ~>
37
+ - !ruby/object:Gem::Version
38
+ version: 1.3.4
39
+ prerelease: false
40
+ type: :runtime
41
+ - !ruby/object:Gem::Dependency
42
+ name: thread_safe
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 0.3.4
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ~>
51
+ - !ruby/object:Gem::Version
52
+ version: 0.3.4
53
+ prerelease: false
54
+ type: :runtime
55
+ - !ruby/object:Gem::Dependency
56
+ name: activerecord
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 4.1.0
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ~>
65
+ - !ruby/object:Gem::Version
66
+ version: 4.1.0
67
+ prerelease: false
68
+ type: :runtime
69
+ - !ruby/object:Gem::Dependency
70
+ name: activerecord-bogacs
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '0.3'
76
+ requirement: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ~>
79
+ - !ruby/object:Gem::Version
80
+ version: '0.3'
81
+ prerelease: false
82
+ type: :runtime
83
+ - !ruby/object:Gem::Dependency
84
+ name: activerecord-jdbc-adapter
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '1.3'
90
+ requirement: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ~>
93
+ - !ruby/object:Gem::Version
94
+ version: '1.3'
95
+ prerelease: false
96
+ type: :runtime
97
+ - !ruby/object:Gem::Dependency
98
+ name: jruby-openssl
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: 0.9.6
104
+ requirement: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ~>
107
+ - !ruby/object:Gem::Version
108
+ version: 0.9.6
109
+ prerelease: false
110
+ type: :runtime
111
+ - !ruby/object:Gem::Dependency
112
+ name: actionpack
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: 4.1.0
118
+ requirement: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ~>
121
+ - !ruby/object:Gem::Version
122
+ version: 4.1.0
123
+ prerelease: false
124
+ type: :runtime
125
+ - !ruby/object:Gem::Dependency
126
+ name: actionview
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ~>
130
+ - !ruby/object:Gem::Version
131
+ version: 4.1.0
132
+ requirement: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ~>
135
+ - !ruby/object:Gem::Version
136
+ version: 4.1.0
137
+ prerelease: false
138
+ type: :runtime
139
+ - !ruby/object:Gem::Dependency
140
+ name: activemerchant
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ~>
144
+ - !ruby/object:Gem::Version
145
+ version: 1.53.0
146
+ requirement: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ~>
149
+ - !ruby/object:Gem::Version
150
+ version: 1.53.0
151
+ prerelease: false
152
+ type: :runtime
153
+ - !ruby/object:Gem::Dependency
154
+ name: offsite_payments
155
+ version_requirements: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ~>
158
+ - !ruby/object:Gem::Version
159
+ version: 2.1.0
160
+ requirement: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - ~>
163
+ - !ruby/object:Gem::Version
164
+ version: 2.1.0
165
+ prerelease: false
166
+ type: :runtime
167
+ - !ruby/object:Gem::Dependency
168
+ name: monetize
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: 1.1.0
174
+ requirement: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - ~>
177
+ - !ruby/object:Gem::Version
178
+ version: 1.1.0
179
+ prerelease: false
180
+ type: :runtime
181
+ - !ruby/object:Gem::Dependency
182
+ name: money
183
+ version_requirements: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ~>
186
+ - !ruby/object:Gem::Version
187
+ version: 6.5.1
188
+ requirement: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - ~>
191
+ - !ruby/object:Gem::Version
192
+ version: 6.5.1
193
+ prerelease: false
194
+ type: :runtime
27
195
  - !ruby/object:Gem::Dependency
28
196
  name: jbundler
29
197
  version_requirements: !ruby/object:Gem::Requirement
@@ -66,6 +234,34 @@ dependencies:
66
234
  version: 2.12.0
67
235
  prerelease: false
68
236
  type: :development
237
+ - !ruby/object:Gem::Dependency
238
+ name: jdbc-sqlite3
239
+ version_requirements: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ~>
242
+ - !ruby/object:Gem::Version
243
+ version: '3.7'
244
+ requirement: !ruby/object:Gem::Requirement
245
+ requirements:
246
+ - - ~>
247
+ - !ruby/object:Gem::Version
248
+ version: '3.7'
249
+ prerelease: false
250
+ type: :development
251
+ - !ruby/object:Gem::Dependency
252
+ name: jdbc-mariadb
253
+ version_requirements: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ~>
256
+ - !ruby/object:Gem::Version
257
+ version: '1.1'
258
+ requirement: !ruby/object:Gem::Requirement
259
+ requirements:
260
+ - - ~>
261
+ - !ruby/object:Gem::Version
262
+ version: '1.1'
263
+ prerelease: false
264
+ type: :development
69
265
  description: Kill Bill Plugin to test the payment plugin api.
70
266
  email: killbilling-users@googlegroups.com
71
267
  executables: []
@@ -82,13 +278,16 @@ files:
82
278
  - README.md
83
279
  - Rakefile
84
280
  - VERSION
281
+ - config.ru
85
282
  - killbill-payment-test.gemspec
86
283
  - killbill.properties
87
284
  - lib/payment_test.rb
88
285
  - lib/payment_test/api.rb
89
286
  - lib/payment_test/api_beatrix.rb
90
287
  - lib/payment_test/api_control.rb
288
+ - lib/payment_test/application.rb
91
289
  - lib/payment_test/plugin_property_utils.rb
290
+ - lib/payment_test/state.rb
92
291
  - pom.xml
93
292
  - release.sh
94
293
  - spec/payment_test/base_plugin_spec.rb
@@ -115,8 +314,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
314
  version: '0'
116
315
  requirements: []
117
316
  rubyforge_project:
118
- rubygems_version: 2.1.9
317
+ rubygems_version: 2.4.6
119
318
  signing_key:
120
319
  specification_version: 4
121
320
  summary: Plugin to test the payment plugin api.
122
- test_files: []
321
+ test_files:
322
+ - spec/payment_test/base_plugin_spec.rb
323
+ - spec/spec_helper.rb