killbill-payment-test-ui 2.1.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -1
- data/app/assets/javascripts/application.js +1 -2
- data/app/assets/stylesheets/application.css +1 -0
- data/app/controllers/payment_test/payments_controller.rb +1 -1
- data/app/views/payment_test/layouts/payment_test_application.html.erb +29 -26
- data/lib/payment_test/client.rb +3 -3
- data/lib/payment_test/engine.rb +1 -2
- data/lib/payment_test/version.rb +1 -1
- metadata +5 -34
- data/app/assets/stylesheets/bootstrap_and_overrides.css +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3aef8875e096e24df710e938a5c88269ee5a35aadb48cf256059ab4822a819e4
|
4
|
+
data.tar.gz: 4d6b5412c2bdac0454d30e9096d93542a75750a7e5fb95a0a621c7192fb8f39c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 650c27229c591dd19f0bce556decbbb5bb403342a138a63b55fb9bbc7313e3c6606860ecf4656a7de1d60ee0575c8e54b96d3f3553f3087db252d5b6ae979802
|
7
|
+
data.tar.gz: 1f1cbb65197e115844d7fd04031175b451ed0a3eac834d7ea06730b79acaf003304bf20eb585a1696b3c2570b5a4daa5b8c6207833d45b8c1d23cbfa7522538d
|
data/README.md
CHANGED
@@ -13,7 +13,8 @@ Kill Bill compatibility
|
|
13
13
|
| 0.0.y | 0.18.z (Rails 4) |
|
14
14
|
| 0.1.y | 0.18.z (Rails 5) |
|
15
15
|
| 1.x.y | 0.20.z (Rails 5) |
|
16
|
-
| 2.
|
16
|
+
| 2.0.y | 0.22.z (Rails 5) |
|
17
|
+
| 2.1.y | 0.24.z (Rails 6) |
|
17
18
|
| 3.x.y | 0.24.z (Rails 7) |
|
18
19
|
|
19
20
|
Testing
|
@@ -31,3 +32,13 @@ To run tests:
|
|
31
32
|
```
|
32
33
|
rails t
|
33
34
|
```
|
35
|
+
|
36
|
+
This plugin is using [killbill-assets-ui](https://github.com/killbill/killbill-assets-ui) to load the common assets.
|
37
|
+
If you want to override the assets you can add it to ```app/assets/stylesheet/payment_test``` or ```app/assets/javascripts/payment_test```
|
38
|
+
|
39
|
+
For integrate run with [killbill-admin-ui-standalone](https://github.com/killbill/killbill-admin-ui-standalone), please update the Gemfile to use killbill-payment-test-ui locally
|
40
|
+
|
41
|
+
```
|
42
|
+
# gem 'killbill-payment-test-ui'
|
43
|
+
gem 'killbill-payment-test-ui', :path => '../killbill-payment-test-ui'
|
44
|
+
```
|
@@ -39,7 +39,7 @@ module PaymentTest
|
|
39
39
|
|
40
40
|
def set_failed_state
|
41
41
|
new_state = params.require(:state)
|
42
|
-
target_method = "set_status_#{new_state.to_s.downcase}"
|
42
|
+
target_method = "set_status_#{new_state.to_s.downcase}"
|
43
43
|
|
44
44
|
begin
|
45
45
|
::Killbill::PaymentTest::PaymentTestClient.send(target_method, nil, options_for_klient)
|
@@ -1,31 +1,34 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
|
-
<head>
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
</head>
|
10
|
-
<
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
3
|
+
<head>
|
4
|
+
<title>PaymentTest</title>
|
5
|
+
<%= yield :scripts %>
|
6
|
+
<%= stylesheet_link_tag 'application', :media => 'all' %>
|
7
|
+
<%= javascript_include_tag 'application' %>
|
8
|
+
<%= csrf_meta_tags %>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<div class="container">
|
12
|
+
<div class="container-fluid">
|
13
|
+
<%- # :alert used by devise -%>
|
14
|
+
<% [:error, :alert].each do |key| %>
|
15
|
+
<% if flash[key] %>
|
16
|
+
<div class="row">
|
17
|
+
<div class="col-md-10 col-md-offset-2">
|
18
|
+
<div class="alert alert-error"><%= flash[key] %></div>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<% end %>
|
22
|
+
<% end %>
|
23
|
+
<% if flash[:notice] %>
|
24
|
+
<div class="row">
|
25
|
+
<div class="col-md-10 col-md-offset-2">
|
26
|
+
<div class="alert alert-info"><%= flash[:notice] %></div>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
<% end %>
|
30
|
+
<%= yield %>
|
25
31
|
</div>
|
26
32
|
</div>
|
27
|
-
|
28
|
-
<%= yield %>
|
29
|
-
</div>
|
30
|
-
</body>
|
33
|
+
</body>
|
31
34
|
</html>
|
data/lib/payment_test/client.rb
CHANGED
@@ -35,11 +35,11 @@ module Killbill
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def set_status_null(methods, options = {})
|
38
|
-
configure('
|
38
|
+
configure('RETURN_NIL', nil, methods, options)
|
39
39
|
end
|
40
40
|
|
41
41
|
def reset(methods, options = {})
|
42
|
-
configure('
|
42
|
+
configure('ACTION_CLEAR', nil, methods, options)
|
43
43
|
end
|
44
44
|
|
45
45
|
private
|
@@ -49,7 +49,7 @@ module Killbill
|
|
49
49
|
'CONFIGURE_ACTION' => action
|
50
50
|
}
|
51
51
|
|
52
|
-
body['SLEEP_TIME_SEC'] = arg if action == '
|
52
|
+
body['SLEEP_TIME_SEC'] = arg if action == 'ACTION_CLEAR'
|
53
53
|
|
54
54
|
body['METHODS'] = methods.nil? ? nil : methods.join(',')
|
55
55
|
|
data/lib/payment_test/engine.rb
CHANGED
@@ -6,8 +6,7 @@
|
|
6
6
|
# We need to explicitly require all of our dependencies listed in payment_test.gemspec
|
7
7
|
#
|
8
8
|
# See also https://github.com/carlhuda/bundler/issues/49
|
9
|
-
require '
|
10
|
-
require 'font-awesome-rails'
|
9
|
+
require 'killbill_assets_ui'
|
11
10
|
require 'killbill_client'
|
12
11
|
|
13
12
|
module PaymentTest
|
data/lib/payment_test/version.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill-payment-test-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.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:
|
11
|
+
date: 2024-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: killbill-assets-ui
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: jquery-rails
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 4.5.1
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 4.5.1
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: killbill-client
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,28 +44,14 @@ dependencies:
|
|
58
44
|
requirements:
|
59
45
|
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
47
|
+
version: '7.0'
|
62
48
|
type: :runtime
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
52
|
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: sass-rails
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
54
|
+
version: '7.0'
|
83
55
|
description: Rails UI plugin for the payment-test plugin.
|
84
56
|
email: killbilling-users@googlegroups.com
|
85
57
|
executables: []
|
@@ -93,7 +65,6 @@ files:
|
|
93
65
|
- app/assets/javascripts/application.js
|
94
66
|
- app/assets/javascripts/payment_test/payment_test.js
|
95
67
|
- app/assets/stylesheets/application.css
|
96
|
-
- app/assets/stylesheets/bootstrap_and_overrides.css
|
97
68
|
- app/assets/stylesheets/payment_test/payment_test.css
|
98
69
|
- app/controllers/payment_test/engine_controller.rb
|
99
70
|
- app/controllers/payment_test/payments_controller.rb
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/* Override Bootstrap 3 font locations */
|
2
|
-
@font-face {
|
3
|
-
font-family: 'Glyphicons Halflings';
|
4
|
-
src: url('../assets/glyphicons-halflings-regular.eot');
|
5
|
-
src: url('../assets/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
|
6
|
-
url('../assets/glyphicons-halflings-regular.woff') format('woff'),
|
7
|
-
url('../assets/glyphicons-halflings-regular.ttf') format('truetype'),
|
8
|
-
url('../assets/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
|
9
|
-
}
|