limited_sessions 5.0.0 → 5.0.1

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: e49ec43bc1c4f86c591c152081196467df00bf82949d2ec838506e6d2c71e033
4
+ data.tar.gz: 6d88ce0966c834298391d13493482b047394a75764342aa735c7703005eef181
5
5
  SHA512:
6
- metadata.gz: 92285992bce470310c88b656caf2a62d26bfa9315656d13bab944e44241743eb1a7bb86d912f837a13328be682a402c021d89552124577ce26e6212d84c1dba6
7
- data.tar.gz: 176aea0865080e0399d2cd5f17cd3a04bb3daeccc06e5be982ed4c422bbeee6b2c1b47aaa73d7ff3a514468dcda0a39adee855916d955ecb48ec43b39b098425
6
+ metadata.gz: f78ee40a5c1158c5aa886d23d670da59529d5f27d9fb5f64533a686bc5e362e6288a5db15a5ecdaafee5922f7f45ce030ca6d33729d5535ead5ca5fc69748798
7
+ data.tar.gz: 9da570b7fd00bebea9acb009e33657823d69b4e6ae855cf90907afe08bb9b06250429721fd078d7565e53b5ef1f645709507c4ad24e2bc0231b33b6d1f8d3e61
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ * 2022-aug-10 - v5.0.1
2
+
3
+ - Fix for deprecation warning in Rails 7
4
+
1
5
  * 2021-apr-20 - v5.0.0
2
6
 
3
7
  - Drop support for Rack <= 2.0.8 and Rails < 5.2
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2007-2021 t.e.morgan
1
+ Copyright 2007-2022 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.x and Rails 5.2-7.0.
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.1'
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.1
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: 2022-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -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.1'
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.1'
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: []
@@ -115,8 +115,10 @@ files:
115
115
  - test/limited_sessions_test.rb
116
116
  - test/test_helper.rb
117
117
  homepage: https://iprog.com/projects#limited_sessions
118
- licenses: []
119
- metadata: {}
118
+ licenses:
119
+ - MIT
120
+ metadata:
121
+ source_code_uri: https://github.com/zarqman/limited_sessions
120
122
  post_install_message:
121
123
  rdoc_options: []
122
124
  require_paths:
@@ -132,39 +134,39 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
134
  - !ruby/object:Gem::Version
133
135
  version: '0'
134
136
  requirements: []
135
- rubygems_version: 3.0.9
137
+ rubygems_version: 3.2.32
136
138
  signing_key:
137
139
  specification_version: 4
138
140
  summary: Server-side session expiry via either Rack Middleware or ActiveRecord extension
139
141
  test_files:
140
- - test/dummy/app/controllers/application_controller.rb
141
- - test/dummy/app/views/layouts/application.html.erb
142
+ - test/dummy/README.rdoc
143
+ - test/dummy/Rakefile
142
144
  - test/dummy/app/assets/javascripts/application.js
143
145
  - test/dummy/app/assets/stylesheets/application.css
146
+ - test/dummy/app/controllers/application_controller.rb
144
147
  - 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
148
+ - test/dummy/app/views/layouts/application.html.erb
151
149
  - test/dummy/config/application.rb
152
- - test/dummy/config/database.yml
153
150
  - test/dummy/config/boot.rb
151
+ - test/dummy/config/database.yml
152
+ - test/dummy/config/environment.rb
153
+ - test/dummy/config/environments/development.rb
154
+ - test/dummy/config/environments/production.rb
155
+ - test/dummy/config/environments/test.rb
154
156
  - test/dummy/config/initializers/backtrace_silencers.rb
157
+ - test/dummy/config/initializers/inflections.rb
155
158
  - test/dummy/config/initializers/mime_types.rb
159
+ - test/dummy/config/initializers/secret_token.rb
156
160
  - test/dummy/config/initializers/session_store.rb
157
161
  - test/dummy/config/initializers/wrap_parameters.rb
158
- - test/dummy/config/initializers/secret_token.rb
159
- - test/dummy/config/initializers/inflections.rb
162
+ - test/dummy/config/locales/en.yml
163
+ - test/dummy/config/routes.rb
160
164
  - test/dummy/config.ru
161
- - test/dummy/script/rails
162
- - test/dummy/Rakefile
163
- - test/dummy/public/favicon.ico
165
+ - test/dummy/log/test.log
166
+ - test/dummy/public/404.html
164
167
  - test/dummy/public/422.html
165
168
  - test/dummy/public/500.html
166
- - test/dummy/public/404.html
167
- - test/dummy/log/test.log
168
- - test/dummy/README.rdoc
169
+ - test/dummy/public/favicon.ico
170
+ - test/dummy/script/rails
169
171
  - test/limited_sessions_test.rb
170
172
  - test/test_helper.rb