killbill-aviate 1.1.0.pre.10 → 2.1.0.pre.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa2e0c4fb56dbc1e68e1b242cdabe39e96c501b8ea3bf0c698118925342ad1f2
4
- data.tar.gz: 726929ae9e51c34ab221fde63802771ef3c9aefa03f06748656f741b7952bb2c
3
+ metadata.gz: 13feb10ef4470cfa4d3675f72a4a7e756e81e52eb50896131dd072bc4b62dc6d
4
+ data.tar.gz: 99d8dd2243a9ff1e52f5483513161dd0fe3d7b393b919322b026294693fa375b
5
5
  SHA512:
6
- metadata.gz: 13dd895c57d803c1a6428bf527c66306af8c57627c866b3a1a39a405b8c75003b8ff259814827c8c36df3b797d658893a8d00e1cb19e10944f0ee8f20cccc6e4
7
- data.tar.gz: 20fefe710ecae0b6f391d5e6ec5e218cadac2c443da1b3b1ebf8e6db40ad3ad70755a7eb7d704b9d094cea24382aa1b251ff3d2025c55ddc675b0e4cab36b4a3
6
+ metadata.gz: 415b149e5cfc199e87ca845cb6f1d14482e0ea50e0758d5b6c70c7383b227b4c86b8fbddd6839a48c911384449be7e5f03a8e0fc9b1d5981b2b1de9e52a72e39
7
+ data.tar.gz: 3aeaa4fd6034f0aab84a1d50073d8438e261171dccaff59e05e53e054dd4f86b8a70d0a51718513b3a591b9ed349bfa51d1b128ea8f2fff1a0cb576aad0cb9d8
@@ -16,7 +16,7 @@ module Aviate
16
16
 
17
17
  if response.is_a?(Hash) && response['token']
18
18
  # Store JWT in encrypted cookie
19
- cookies.encrypted[:jwt_token] = {
19
+ cookies[:jwt_token] = {
20
20
  value: response['token'],
21
21
  httponly: true,
22
22
  secure: request.ssl?,
@@ -34,10 +34,7 @@ module Aviate
34
34
  def session_destroy
35
35
  # Delete JWT cookie
36
36
  cookies.delete(:jwt_token)
37
-
38
- # Clean up any existing session references
39
- session.delete(:aviate_token_ref)
40
-
37
+
41
38
  flash[:notice] = t('aviate.configuration.logout_success')
42
39
  redirect_to aviate_root_path
43
40
  end
@@ -69,10 +69,10 @@ module Aviate
69
69
  def options_for_klient
70
70
  # Get the base options from parent class
71
71
  base_options = super
72
-
72
+
73
73
  # Add JWT token from cookies if available
74
- if cookies.encrypted[:jwt_token].present?
75
- base_options.merge(jwt_token: cookies.encrypted[:jwt_token])
74
+ if cookies[:jwt_token].present?
75
+ base_options.merge(jwt_token: cookies[:jwt_token])
76
76
  else
77
77
  base_options
78
78
  end
data/config/routes.rb CHANGED
@@ -5,7 +5,7 @@ Aviate::Engine.routes.draw do
5
5
 
6
6
  scope '/configuration' do
7
7
  match '/session_create' => 'configuration#session_create', :via => :post, :as => 'aviate_session_create'
8
- match '/session_destroy' => 'configuration#session_destroy', :via => [:get, :delete], :as => 'aviate_session_destroy'
8
+ match '/session_destroy' => 'configuration#session_destroy', :via => %i[get delete], :as => 'aviate_session_destroy'
9
9
  end
10
10
 
11
11
  resources :accounts, param: :account_id do
data/lib/aviate/client.rb CHANGED
@@ -21,7 +21,7 @@ module Killbill
21
21
  nodes_info = KillBillClient::Model::NodesInfo.nodes_info(options) || []
22
22
  plugins_info = nodes_info.empty? ? [] : (nodes_info.first.plugins_info || [])
23
23
 
24
- return [true, nil] if plugins_info.any? { |plugin| plugin.plugin_name == 'aviate-plugin' }
24
+ return [true, nil] if plugins_info.any? { |plugin| (plugin.plugin_name.include? 'aviate') && plugin.state == 'RUNNING' }
25
25
 
26
26
  [false, nil]
27
27
  rescue KillBillClient::API::ResponseError => e
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Aviate
4
- VERSION = '1.1.0.pre.10'
4
+ VERSION = '2.1.0.pre.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-aviate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.pre.10
4
+ version: 2.1.0.pre.1
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: 2025-11-11 00:00:00.000000000 Z
11
+ date: 2025-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: killbill-assets-ui