killbill-payment-test-ui 3.0.1 → 3.0.2

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
  SHA256:
3
- metadata.gz: 9d225762d47bf1de188bd99e490fb48218df9dc0b88ab57ddc06c656c5eeb859
4
- data.tar.gz: f6bdfef44971f70047f7c40e204802041b29318eebc80613561ff8584dff8479
3
+ metadata.gz: 3aef8875e096e24df710e938a5c88269ee5a35aadb48cf256059ab4822a819e4
4
+ data.tar.gz: 4d6b5412c2bdac0454d30e9096d93542a75750a7e5fb95a0a621c7192fb8f39c
5
5
  SHA512:
6
- metadata.gz: 4dfdf6c69ff851878c6a4669740e10e6ae12a138e1155d7e71da40b877c9119401d00a6d2f621fcd6fb03d6e83981348f164f4498ac7cdd2eaa71cfcaf7ec93f
7
- data.tar.gz: 88bb62780f42eeae2d94cbb1d99b33c80be1544de23a8d4f31fbe8de2af845c570eee0aca10c95393d1ce5400ad0d5847d29ed6d3a964e4c7f64e2deec5d0808
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.x.y | 0.22.z (Rails 5) |
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
+ ```
@@ -10,6 +10,5 @@
10
10
  // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
11
  // about supported directives.
12
12
  //
13
- //= require jquery
14
- //= require jquery_ujs
15
13
  //= require payment_test/payment_test
14
+ //= require assets/common
@@ -12,4 +12,5 @@
12
12
  *
13
13
  *= require_self
14
14
  *= require payment_test/payment_test
15
+ *= require assets/common
15
16
  */
@@ -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}".to_sym
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
- <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
- <div class="container-fluid">
11
- <%- # :alert used by devise -%>
12
- <% [:error, :alert].each do |key| %>
13
- <% if flash[key] %>
14
- <div class="row">
15
- <div class="col-md-10 col-md-offset-2">
16
- <div class="alert alert-error"><%= flash[key] %></div>
17
- </div>
18
- </div>
19
- <% end %>
20
- <% end %>
21
- <% if flash[:notice] %>
22
- <div class="row">
23
- <div class="col-md-10 col-md-offset-2">
24
- <div class="alert alert-info"><%= flash[:notice] %></div>
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
- <% end %>
28
- <%= yield %>
29
- </div>
30
- </body>
33
+ </body>
31
34
  </html>
@@ -35,11 +35,11 @@ module Killbill
35
35
  end
36
36
 
37
37
  def set_status_null(methods, options = {})
38
- configure('ACTION_RETURN_NIL', nil, methods, options)
38
+ configure('RETURN_NIL', nil, methods, options)
39
39
  end
40
40
 
41
41
  def reset(methods, options = {})
42
- configure('ACTION_RESET', nil, methods, options)
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 == 'ACTION_RESET'
52
+ body['SLEEP_TIME_SEC'] = arg if action == 'ACTION_CLEAR'
53
53
 
54
54
  body['METHODS'] = methods.nil? ? nil : methods.join(',')
55
55
 
@@ -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 'jquery-rails'
10
- require 'font-awesome-rails'
9
+ require 'killbill_assets_ui'
11
10
  require 'killbill_client'
12
11
 
13
12
  module PaymentTest
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PaymentTest
4
- VERSION = '3.0.1'
4
+ VERSION = '3.0.2'
5
5
  end
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: 3.0.1
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: 2023-06-22 00:00:00.000000000 Z
11
+ date: 2024-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: font-awesome-rails
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
@@ -66,20 +52,6 @@ dependencies:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
54
  version: '7.0'
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'
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
- }