killbill-aviate 1.1.0.pre.10 → 2.0.0

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: d12256eb8b726d2bbc764827f1d7dcf6c879113b94b9f4479026c729222893d4
4
+ data.tar.gz: a3b8670cfd86fe4c2e62d4cf9b219b6c8ea4df4b72524dead379dd51aa923af4
5
5
  SHA512:
6
- metadata.gz: 13dd895c57d803c1a6428bf527c66306af8c57627c866b3a1a39a405b8c75003b8ff259814827c8c36df3b797d658893a8d00e1cb19e10944f0ee8f20cccc6e4
7
- data.tar.gz: 20fefe710ecae0b6f391d5e6ec5e218cadac2c443da1b3b1ebf8e6db40ad3ad70755a7eb7d704b9d094cea24382aa1b251ff3d2025c55ddc675b0e4cab36b4a3
6
+ metadata.gz: f2df8830445b0427aeec0138c75301bb2a530dc86bd9a70e03077a505119386550f88c9bb89b5673a85d132178f1debb82d29134870816fffd8ea7f393263bc9
7
+ data.tar.gz: 9ea2b72a57b541988f0693e300538a52541d01406b4634ad9a061d753e07f140c7c39b8f769ccc4d340121915bf07e697885d8a699eda260951b218b348968eb
@@ -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
@@ -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.0.0'
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.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: 2025-11-11 00:00:00.000000000 Z
11
+ date: 2025-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: killbill-assets-ui
@@ -114,9 +114,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ">"
117
+ - - ">="
118
118
  - !ruby/object:Gem::Version
119
- version: 1.3.1
119
+ version: '0'
120
120
  requirements: []
121
121
  rubygems_version: 3.4.10
122
122
  signing_key: