limited_sessions 5.0.0 → 5.0.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 +4 -4
- data/CHANGELOG +4 -0
- data/MIT-LICENSE +1 -1
- data/README.md +3 -3
- data/lib/limited_sessions/self_cleaning_session.rb +5 -1
- data/lib/limited_sessions/version.rb +1 -1
- metadata +27 -25
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: e49ec43bc1c4f86c591c152081196467df00bf82949d2ec838506e6d2c71e033
         | 
| 4 | 
            +
              data.tar.gz: 6d88ce0966c834298391d13493482b047394a75764342aa735c7703005eef181
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: f78ee40a5c1158c5aa886d23d670da59529d5f27d9fb5f64533a686bc5e362e6288a5db15a5ecdaafee5922f7f45ce030ca6d33729d5535ead5ca5fc69748798
         | 
| 7 | 
            +
              data.tar.gz: 9da570b7fd00bebea9acb009e33657823d69b4e6ae855cf90907afe08bb9b06250429721fd078d7565e53b5ef1f645709507c4ad24e2bc0231b33b6d1f8d3e61
         | 
    
        data/CHANGELOG
    CHANGED
    
    
    
        data/MIT-LICENSE
    CHANGED
    
    
    
        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- | 
| 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 ` | 
| 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/ | 
| 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 | 
            -
                 | 
| 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 |  | 
    
        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. | 
| 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:  | 
| 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: ' | 
| 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: ' | 
| 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 | 
            -
             | 
| 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. | 
| 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/ | 
| 141 | 
            -
            - test/dummy/ | 
| 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/ | 
| 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/ | 
| 159 | 
            -
            - test/dummy/config/ | 
| 162 | 
            +
            - test/dummy/config/locales/en.yml
         | 
| 163 | 
            +
            - test/dummy/config/routes.rb
         | 
| 160 164 | 
             
            - test/dummy/config.ru
         | 
| 161 | 
            -
            - test/dummy/ | 
| 162 | 
            -
            - test/dummy/ | 
| 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/ | 
| 167 | 
            -
            - test/dummy/ | 
| 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
         |