stored_session 0.3.0 → 0.4.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
  SHA256:
3
- metadata.gz: b333c6082b9de043817997036b78fc74c4ecfa424df7364a92956d1b11230b48
4
- data.tar.gz: cf2af8064116d9dbc4185cb2d32abc8348eeadfbdf58525e863093dd468fd743
3
+ metadata.gz: 0fdc7320b5869cf417a6f35aca5177abe2c45443962df8331dfffbd069a245c0
4
+ data.tar.gz: 0634dc8376279d46db4c4be0914dcc15e60eaad5d6b5a39d8962ccdff4cbf91d
5
5
  SHA512:
6
- metadata.gz: 3503e6824c9cef321bcda20887615fbcda29f59630c5e177b03fd90cb0b76d5b54db17cf6bddfc78ed0b4c6829e31b654192f9573cd38c99f1a21c3ac77290c0
7
- data.tar.gz: 19e3a0e647c8c38150847c9b787fb01f9d34840e1b123a03da91093827aebf200545c5634ec79d0916903a0a23e4686f0a89c9abc3a2262d437eef02977a2175
6
+ metadata.gz: 5c515410928dbca10c0ef9f6392bfa8b808cd5371ffd14eee0ebb04c49ce29cf01b9feaabd125c77c158f82e31e75256689bb26c298900561ee27d8384209877
7
+ data.tar.gz: eca89926f65686e00f9d6f7de2e968e8aff0dfc1b1d672caf50ea46438b7474a1f5e554fb75fc746d84a700a6167d719b619543b7b1a4c717af6ec00683c8c21
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## [0.4.0](https://github.com/tbhb/stored_session/releases/tag/v0.4.0)
6
+
7
+ - Update minimum Rails version to 8.0.0 (<https://github.com/tbhb/stored_session/pull/47>)
8
+
5
9
  ## [0.3.0](https://github.com/tbhb/stored_session/releases/tag/v0.3.0)
6
10
 
7
11
  - Add log subscriber events (<https://github.com/tbhb/stored_session/pull/22>)
data/README.md CHANGED
@@ -1,27 +1,33 @@
1
1
  # Stored Session
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/stored_session.svg)](https://badge.fury.io/rb/stored_session) [![Required Ruby Version](https://img.shields.io/badge/ruby-%3E%3D%203.2-ruby.svg)](https://www.ruby-lang.org/en/downloads/) [![Required Rails Version](https://img.shields.io/badge/rails-%3E%3D%208.0.0-brightgreen.svg)](https://edgeguides.rubyonrails.org/) [![CI](https://github.com/tbhb/stored_session/actions/workflows/ci.yml/badge.svg)](https://github.com/tbhb/stored_session/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
+
3
5
  Encrypted, database-backed [session store](https://guides.rubyonrails.org/security.html#session-storage) for [Rails](https://rubyonrails.org). It is a modernization of the [activerecord-session_store](https://github.com/rails/activerecord-session_store) gem that was previously extracted from Rails. Stored Session is encrypted by default and is tested with MySQL, PostgreSQL, and SQLite against Rails 8+.
4
6
 
5
7
  > [!WARNING]
6
- > This gem is currently in active development and should be considered alpha software. The API and functionality are subject to change without notice until a stable 1.0 release.
8
+ > This gem is currently in active development and should be considered alpha software. The API and functionality are subject to change without notice until a stable 1.0 release. See the [roadmap](https://github.com/users/tbhb/projects/6/views/1) for more details.
7
9
 
8
- ## Features and roadmap
10
+ ## Features
9
11
 
10
12
  - [x] Compact, encrypted serialization with [MessagePack](https://msgpack.org/) (inspired by [Solid Cache](https://github.com/rails/solid_cache))
11
- - [x] Built-in [ActiveJob](https://edgeguides.rubyonrails.org/active_job_basics.html) job for expiring inactive sessions
13
+ - [x] Built-in job for expiring inactive sessions
12
14
  - [x] Tested with MySQL, PostgreSQL, and SQLite
13
15
  - [x] Instrumentation with [ActiveSupport::Notifications](https://guides.rubyonrails.org/active_support_instrumentation.html)
14
- - [ ] Installation generator
15
- - [ ] Rake tasks for session maintenance
16
+ - [ ] Privacy-friendly, indexed session metadata (IP, user agent, geocoding)
17
+ - [ ] Callbacks for session operations
18
+ - [ ] Session statistics
16
19
  - [ ] Support for dedicated sessions database
17
- - [ ] Session metadata tracking (IP address, user agent, geocoding)
18
- - [ ] Integration test helpers for Minitest and RSpec
19
- - [ ] `stored_session_web` gem for monitoring and administration
20
+ - [ ] Testing framework helpers
21
+ - [ ] Installation generator
22
+ - [ ] Full demo application
23
+ - [ ] `stored_session_web` gem for monitoring and maintenance
24
+
25
+ See [the roadmap](https://github.com/users/tbhb/projects/6/views/1) for the complete list of planned and in-progress features.
20
26
 
21
27
  ## Prerequisites
22
28
 
23
29
  - Ruby >= 3.2.0
24
- - Rails >= 8.0.0.rc2
30
+ - Rails >= 8.0.0
25
31
 
26
32
  ## Installation
27
33
 
@@ -1,3 +1,22 @@
1
+ # :markup: markdown
2
+
1
3
  module StoredSession
2
- VERSION = "0.3.0".freeze
4
+ module VERSION
5
+ MAJOR = 0
6
+ MINOR = 4
7
+ TINY = 0
8
+ PRE = nil
9
+
10
+ STRING = [ MAJOR, MINOR, TINY, PRE ].compact.join(".")
11
+ end
12
+
13
+ # Returns the currently loaded version of Stored Session as a `Gem::Version`.
14
+ def self.gem_version
15
+ Gem::Version.new VERSION::STRING
16
+ end
17
+
18
+ # Returns the currently loaded version of Stored Session as a `String`.
19
+ def self.version
20
+ VERSION::STRING
21
+ end
3
22
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stored_session
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Burns
@@ -35,7 +35,7 @@ cert_chain:
35
35
  Gso2iuR/JK+nlYYHnXZSMQgPTNEv7urC3s3YBLkEeZAyKSzTub/yFiZ0f1rZECNq
36
36
  RdwSWsf01XE0bKBtz4/dixrX45mIFrPmGp1gobRN/q4Tq3lU
37
37
  -----END CERTIFICATE-----
38
- date: 2024-11-05 00:00:00.000000000 Z
38
+ date: 2024-11-08 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: actionpack
@@ -43,56 +43,56 @@ dependencies:
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 8.0.0.rc2
46
+ version: 8.0.0
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 8.0.0.rc2
53
+ version: 8.0.0
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: activejob
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 8.0.0.rc2
60
+ version: 8.0.0
61
61
  type: :runtime
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: 8.0.0.rc2
67
+ version: 8.0.0
68
68
  - !ruby/object:Gem::Dependency
69
69
  name: activerecord
70
70
  requirement: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
- version: 8.0.0.rc2
74
+ version: 8.0.0
75
75
  type: :runtime
76
76
  prerelease: false
77
77
  version_requirements: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: 8.0.0.rc2
81
+ version: 8.0.0
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: railties
84
84
  requirement: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: 8.0.0.rc2
88
+ version: 8.0.0
89
89
  type: :runtime
90
90
  prerelease: false
91
91
  version_requirements: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - ">="
94
94
  - !ruby/object:Gem::Version
95
- version: 8.0.0.rc2
95
+ version: 8.0.0
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: zeitwerk
98
98
  requirement: !ruby/object:Gem::Requirement
@@ -142,7 +142,6 @@ files:
142
142
  - lib/stored_session/configuration.rb
143
143
  - lib/stored_session/deprecator.rb
144
144
  - lib/stored_session/engine.rb
145
- - lib/stored_session/gem_version.rb
146
145
  - lib/stored_session/log_subscriber.rb
147
146
  - lib/stored_session/model.rb
148
147
  - lib/stored_session/store.rb
@@ -156,10 +155,10 @@ licenses:
156
155
  - MIT
157
156
  metadata:
158
157
  bug_tracker_uri: https://github.com/tbhb/stored_session/issues
159
- changelog_uri: https://github.com/tbhb/stored_session/blob/v0.3.0/CHANGELOG.md
158
+ changelog_uri: https://github.com/tbhb/stored_session/blob/v0.4.0/CHANGELOG.md
160
159
  documentation_uri: https://github.com/tbhb/stored_session
161
160
  mailing_list_uri: https://github.com/tbhb/stored_session/discussions
162
- source_code_uri: https://github.com/tbhb/stored_session/tree/v0.3.0
161
+ source_code_uri: https://github.com/tbhb/stored_session/tree/v0.4.0
163
162
  rubygems_mfa_required: 'true'
164
163
  post_install_message:
165
164
  rdoc_options: []
metadata.gz.sig CHANGED
Binary file
@@ -1,17 +0,0 @@
1
- # :markup: markdown
2
-
3
- module StoredSession
4
- # Returns the currently loaded version of Stored Session as a `Gem::Version`.
5
- def self.gem_version
6
- Gem::Version.new VERSION::STRING
7
- end
8
-
9
- module VERSION
10
- MAJOR = 0
11
- MINOR = 3
12
- TINY = 0
13
- PRE = "".freeze
14
-
15
- STRING = [ MAJOR, MINOR, TINY, PRE ].compact.join(".")
16
- end
17
- end