limited_sessions 5.0.0 → 5.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: 372dbf49775aefdb7902b765bc5727c9506f6df46251d890e5a31e957ba70962
4
- data.tar.gz: d2d4e1684ec8f9b183a5cdf3d4722e73d8ac8bd7d1b656b41c3fd0f3d2ed6a62
3
+ metadata.gz: 674470930a6fd00be6f99e2dfe77d2d05b7b1fafe04884ad4fe010b397f2263e
4
+ data.tar.gz: eb45de10203109c45547a6a62c13e13227064a6ddb0f59f438740336dbe35d0a
5
5
  SHA512:
6
- metadata.gz: 92285992bce470310c88b656caf2a62d26bfa9315656d13bab944e44241743eb1a7bb86d912f837a13328be682a402c021d89552124577ce26e6212d84c1dba6
7
- data.tar.gz: 176aea0865080e0399d2cd5f17cd3a04bb3daeccc06e5be982ed4c422bbeee6b2c1b47aaa73d7ff3a514468dcda0a39adee855916d955ecb48ec43b39b098425
6
+ metadata.gz: d82667a443ff52b46f1d696639ebfd5c1a0626bf9a533dcfe850decb8f162ecf47dd9f01ddf9a594b4783c6586188b4049f9ea95e0931b1005f35a79e8a729f3
7
+ data.tar.gz: 5e4941bdd35f7a616c4f331617e1b926f9096d901582302ddc95329216863230337b802f0a1b983793d99522b0c55d71051dac232defa145b03a772d49eacef0
data/CHANGELOG CHANGED
@@ -1,3 +1,11 @@
1
+ * 2023-oct-07 - v5.0.2
2
+
3
+ - Support Rails 7.1 & Rack 3
4
+
5
+ * 2022-aug-10 - v5.0.1
6
+
7
+ - Fix for deprecation warning in Rails 7
8
+
1
9
  * 2021-apr-20 - v5.0.0
2
10
 
3
11
  - Drop support for Rack <= 2.0.8 and Rails < 5.2
@@ -23,7 +31,7 @@
23
31
  - v4.0.0 - Rails 4 compatibility. Use v3.x.x for Rails 3 apps.
24
32
  - For non-ActiveRecord session stores, no change is required from the
25
33
  previous version.
26
- - For ActiveRecord session stores, you must add the
34
+ - For ActiveRecord session stores, you must add the
27
35
  'activerecord-session_store' gem to your Gemfile and it must be
28
36
  above limited_sessions so that it will be auto-detected properly.
29
37
  This is the only change required.
@@ -37,7 +45,7 @@
37
45
 
38
46
  - LimitedSessions has been broken up into two parts:
39
47
  - Rack-compatible middleware that handles session time limits. This
40
- *should* work for all session stores. Just requires Rack, not
48
+ *should* work for all session stores. Just requires Rack, not
41
49
  necessarily Rails.
42
50
  - Rails 3 specific enhancement to the ActiveRecord Session Store
43
51
  that also cleans up stale session records.
@@ -50,13 +58,13 @@
50
58
  * 2010-jul-20 - IPv6, replay attack mitigation, more non-AR support
51
59
 
52
60
  - IPv6 now works for subnet matching.
53
- - New options to configure the allowed subnet size (both IPv4 and
61
+ - New options to configure the allowed subnet size (both IPv4 and
54
62
  IPv6) added.
55
63
  - Plugin now enhances reset_session to clear old session data from
56
- the DB; this prevents session_id replay attacks when using
64
+ the DB; this prevents session_id replay attacks when using
57
65
  DB-backed session storage.
58
66
  - Session activity and hard limits now work with non-ActiveRecord
59
- session stores. Configuration is done differently depending on
67
+ session stores. Configuration is done differently depending on
60
68
  which session store is in use.
61
69
 
62
70
  * 2009-apr-22 - update to support rails 2.3
@@ -64,13 +72,13 @@
64
72
  - Rails 2.3 changed the internal session code substantially. This new
65
73
  version now supports rails 2.3. Note that is no longer supports any
66
74
  version of rails prior to 2.3 -- see the README for where to find
67
- an older version of this plugin for rails 2.2 and earlier.
75
+ an older version of this plugin for rails 2.2 and earlier.
68
76
  - CONFIGURATION OPTIONS HAVE CHANGED. This is required by the new
69
77
  support for rails 2.3. See the README for more information.
70
78
 
71
- * 2008-jul-23 - update to improve rails 2.1 compatibility
72
-
79
+ * 2008-jul-23 - update to improve rails 2.1 compatibility
80
+
73
81
  - disable partial-updates for the session table
74
82
  (thanks to eilonon erkki for bringing the problem to my attention)
75
-
83
+
76
84
  * 2007-sep-06 - initial release
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2007-2021 t.e.morgan
1
+ Copyright 2007-2023 t.e.morgan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -31,7 +31,7 @@ LimitedSessions provides two distinct features, each in a separate part:
31
31
 
32
32
  ## Compatibility
33
33
 
34
- The middleware should be compatible with any framework using a recent version of Rack. It has been tested with Rack 2.x and Rails 5.2-6.1.
34
+ The middleware should be compatible with any framework using a recent version of Rack. It has been tested with Rack 2-3 and Rails 5.2-7.1.
35
35
 
36
36
  The optional ActiveRecord Session Store extension requires Rails.
37
37
 
@@ -160,7 +160,7 @@ gem 'limited_sessions', '~> 5'
160
160
 
161
161
  The middleware adds one or two keys to the session data: `:last_visit` and/or `:first_visit`.
162
162
 
163
- The AR enhancement uses `updated_a`t and possibly `created_at`.
163
+ The AR enhancement uses `updated_at` and possibly `created_at`.
164
164
 
165
165
  * How is this different from using the session cookie's own expires= value?
166
166
 
@@ -193,7 +193,7 @@ gem 'limited_sessions', '~> 5'
193
193
 
194
194
  ## Contributing
195
195
 
196
- 1. Fork it ( https://github.com/zarqman/smart_assets/fork )
196
+ 1. Fork it ( https://github.com/zarqman/limited_sessions/fork )
197
197
  2. Create your feature branch (`git checkout -b my-new-feature`)
198
198
  3. Commit your changes (`git commit -am 'Add some feature'`)
199
199
  4. Push to the branch (`git push origin my-new-feature`)
@@ -2,7 +2,11 @@ module LimitedSessions
2
2
  class SelfCleaningSession < ActiveRecord::SessionStore::Session
3
3
 
4
4
  # disable short circuit by Dirty module; ensures :updated_at is kept updated
5
- self.partial_writes = false
5
+ if Rails::VERSION::MAJOR >= 7
6
+ self.partial_updates = false
7
+ else
8
+ self.partial_writes = false
9
+ end
6
10
 
7
11
  self.table_name = 'sessions'
8
12
 
@@ -1,3 +1,3 @@
1
1
  module LimitedSessions
2
- VERSION = '5.0.0'
2
+ VERSION = '5.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: limited_sessions
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - t.e.morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-20 00:00:00.000000000 Z
11
+ date: 2023-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 2.0.9
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '3'
22
+ version: '4'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 2.0.9
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '3'
32
+ version: '4'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: sqlite3
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +53,7 @@ dependencies:
53
53
  version: '5.2'
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
- version: '6.2'
56
+ version: '7.2'
57
57
  type: :development
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -63,11 +63,11 @@ dependencies:
63
63
  version: '5.2'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
- version: '6.2'
66
+ version: '7.2'
67
67
  description: 'LimitedSessions provides two core features to handle cookie-based session
68
68
  expiry: 1) Rack Middleware for most session stores and 2) an ActiveRecord extension
69
69
  for AR-based session stores. Sessions can be expired on inactivity and/or overall
70
- session length.'
70
+ session length. Works with and without Rails.'
71
71
  email:
72
72
  - tm@iprog.com
73
73
  executables: []
@@ -106,7 +106,6 @@ files:
106
106
  - test/dummy/config/initializers/wrap_parameters.rb
107
107
  - test/dummy/config/locales/en.yml
108
108
  - test/dummy/config/routes.rb
109
- - test/dummy/log/test.log
110
109
  - test/dummy/public/404.html
111
110
  - test/dummy/public/422.html
112
111
  - test/dummy/public/500.html
@@ -115,8 +114,10 @@ files:
115
114
  - test/limited_sessions_test.rb
116
115
  - test/test_helper.rb
117
116
  homepage: https://iprog.com/projects#limited_sessions
118
- licenses: []
119
- metadata: {}
117
+ licenses:
118
+ - MIT
119
+ metadata:
120
+ source_code_uri: https://github.com/zarqman/limited_sessions
120
121
  post_install_message:
121
122
  rdoc_options: []
122
123
  require_paths:
@@ -132,39 +133,38 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
133
  - !ruby/object:Gem::Version
133
134
  version: '0'
134
135
  requirements: []
135
- rubygems_version: 3.0.9
136
+ rubygems_version: 3.4.10
136
137
  signing_key:
137
138
  specification_version: 4
138
139
  summary: Server-side session expiry via either Rack Middleware or ActiveRecord extension
139
140
  test_files:
140
- - test/dummy/app/controllers/application_controller.rb
141
- - test/dummy/app/views/layouts/application.html.erb
141
+ - test/dummy/README.rdoc
142
+ - test/dummy/Rakefile
142
143
  - test/dummy/app/assets/javascripts/application.js
143
144
  - test/dummy/app/assets/stylesheets/application.css
145
+ - test/dummy/app/controllers/application_controller.rb
144
146
  - test/dummy/app/helpers/application_helper.rb
145
- - test/dummy/config/routes.rb
146
- - test/dummy/config/locales/en.yml
147
- - test/dummy/config/environments/production.rb
148
- - test/dummy/config/environments/development.rb
149
- - test/dummy/config/environments/test.rb
150
- - test/dummy/config/environment.rb
147
+ - test/dummy/app/views/layouts/application.html.erb
151
148
  - test/dummy/config/application.rb
152
- - test/dummy/config/database.yml
153
149
  - test/dummy/config/boot.rb
150
+ - test/dummy/config/database.yml
151
+ - test/dummy/config/environment.rb
152
+ - test/dummy/config/environments/development.rb
153
+ - test/dummy/config/environments/production.rb
154
+ - test/dummy/config/environments/test.rb
154
155
  - test/dummy/config/initializers/backtrace_silencers.rb
156
+ - test/dummy/config/initializers/inflections.rb
155
157
  - test/dummy/config/initializers/mime_types.rb
158
+ - test/dummy/config/initializers/secret_token.rb
156
159
  - test/dummy/config/initializers/session_store.rb
157
160
  - test/dummy/config/initializers/wrap_parameters.rb
158
- - test/dummy/config/initializers/secret_token.rb
159
- - test/dummy/config/initializers/inflections.rb
161
+ - test/dummy/config/locales/en.yml
162
+ - test/dummy/config/routes.rb
160
163
  - test/dummy/config.ru
161
- - test/dummy/script/rails
162
- - test/dummy/Rakefile
163
- - test/dummy/public/favicon.ico
164
+ - test/dummy/public/404.html
164
165
  - test/dummy/public/422.html
165
166
  - test/dummy/public/500.html
166
- - test/dummy/public/404.html
167
- - test/dummy/log/test.log
168
- - test/dummy/README.rdoc
167
+ - test/dummy/public/favicon.ico
168
+ - test/dummy/script/rails
169
169
  - test/limited_sessions_test.rb
170
170
  - test/test_helper.rb
@@ -1,3 +0,0 @@
1
- Connecting to database specified by database.yml
2
-  (0.3ms) begin transaction
3
-  (0.0ms) rollback transaction