frikandel 2.2.2 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +55 -0
- data/.gitignore +1 -0
- data/README.md +13 -12
- data/frikandel.gemspec +3 -3
- data/{Gemfile.rails-5.2.x → gemfiles/rails-5.2.x.gemfile} +1 -3
- data/{Gemfile.rails-5.1.x → gemfiles/rails-6.0.x.gemfile} +2 -4
- data/{Gemfile.rails-5.0.x → gemfiles/rails-6.1.x.gemfile} +2 -4
- data/gemfiles/rails-7.0.x.gemfile +7 -0
- data/{Gemfile.rails-head → gemfiles/rails-head.gemfile} +1 -1
- data/lib/frikandel/version.rb +1 -1
- data/spec/dummy/app/assets/config/manifest.js +3 -0
- metadata +45 -57
- data/.travis.yml +0 -45
- data/Gemfile.rails-3.2.x +0 -9
- data/Gemfile.rails-4.0.x +0 -9
- data/Gemfile.rails-4.1.x +0 -9
- data/Gemfile.rails-4.2.x +0 -10
- data/spec/dummy/log/development.log +0 -0
- data/spec/dummy/log/test.log +0 -13769
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab53e25dc96af500e8da8b67c3aab3d48d5dbfb7f67c99077274dc04f7462d42
|
4
|
+
data.tar.gz: 5d22c5724967a74ad4e4178e66d9483abd0548e3ee250921aa5f23945ab6d7de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6960701acec493040ece657bce0d8983831c887868535d72685383d58aafdd1142c94156518ba46de42ed2bf46e026dc498523b1202e5d7c6c87944bf69e5974
|
7
|
+
data.tar.gz: aa188025d4e92d0afe563c2cadc2d76da0ce38a831b90bcbd9a8c1c2450aaa9413eeeeb8b454fc84ab0b09a0c739944d214dd47942c07bb7ef12e0e5e387808a
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: CI
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [main]
|
13
|
+
pull_request:
|
14
|
+
branches: [main]
|
15
|
+
schedule:
|
16
|
+
- cron: '30 5 * * *'
|
17
|
+
|
18
|
+
jobs:
|
19
|
+
test:
|
20
|
+
|
21
|
+
runs-on: ubuntu-latest
|
22
|
+
strategy:
|
23
|
+
fail-fast: false
|
24
|
+
matrix:
|
25
|
+
ruby-version: ['2.6', '2.7', '3.0', jruby, truffleruby]
|
26
|
+
gemfile: [rails-5.2.x, rails-6.0.x, rails-6.1.x, rails-7.0.x]
|
27
|
+
exclude:
|
28
|
+
# ruby 3 is not compatible with rails < 6
|
29
|
+
- ruby-version: '3.0'
|
30
|
+
gemfile: rails-5.2.x
|
31
|
+
- ruby-version: 'truffleruby'
|
32
|
+
gemfile: rails-5.2.x
|
33
|
+
# ruby < 2.7 is not compatible with rails 7
|
34
|
+
- ruby-version: '2.6'
|
35
|
+
gemfile: rails-7.0.x
|
36
|
+
- ruby-version: 'jruby'
|
37
|
+
gemfile: rails-7.0.x
|
38
|
+
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
|
39
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
40
|
+
|
41
|
+
name: test (ruby ${{ matrix.ruby-version }}, ${{ matrix.gemfile }})
|
42
|
+
|
43
|
+
steps:
|
44
|
+
- name: Checkout
|
45
|
+
uses: actions/checkout@v2
|
46
|
+
- name: Set up Ruby
|
47
|
+
# Using ruby/setup-ruby@v1 will automatically get bug fixes and new Ruby
|
48
|
+
# versions for ruby/setup-ruby (see
|
49
|
+
# https://github.com/ruby/setup-ruby#versioning).
|
50
|
+
uses: ruby/setup-ruby@v1
|
51
|
+
with:
|
52
|
+
ruby-version: ${{ matrix.ruby-version }}
|
53
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
54
|
+
- name: Run tests
|
55
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Frikandel
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/frikandel.png)](http://badge.fury.io/rb/frikandel)
|
3
|
-
[![Build Status](https://
|
3
|
+
[![Build Status](https://github.com/taktsoft/frikandel/actions/workflows/ci.yml/badge.svg)](https://github.com/taktsoft/frikandel/actions/workflows/ci.yml)
|
4
4
|
[![Code Climate](https://codeclimate.com/github/taktsoft/frikandel.png)](https://codeclimate.com/github/taktsoft/frikandel)
|
5
5
|
[![Dependency Status](https://gemnasium.com/taktsoft/frikandel.svg)](https://gemnasium.com/taktsoft/frikandel)
|
6
6
|
|
@@ -18,7 +18,7 @@ By adding a TTL the attack window gets smaller. An stolen has to be used within
|
|
18
18
|
|
19
19
|
## Requirements
|
20
20
|
|
21
|
-
Rails
|
21
|
+
Rails 5.2 and 6.x and 7.0 are currently supported.
|
22
22
|
|
23
23
|
|
24
24
|
## Installation
|
@@ -93,20 +93,21 @@ end
|
|
93
93
|
|
94
94
|
## Changes
|
95
95
|
|
96
|
-
|
97
|
-
|
96
|
+
* v3.0.1 -- Add support for Rails v7.x
|
97
|
+
* v3.0.0 -- Drop support for Rails < v5.2, add support for Rails v6.1 and switch from TravisCI to GithubActions
|
98
|
+
* v2.3.0 -- Add support for Rails v5.1 and Rails v6.0 and fix TravisCI builds
|
99
|
+
* v2.2.0 -- Add support for Rails v5.0 and update to RSpec 3
|
100
|
+
* v2.1.0 -- Reset session only once if using the combination of TTL and IP address binding.
|
101
|
+
* v2.0.0 -- Added IP address binding. Renamed callback from 'on_expired_session' to 'on_invalid_session'.
|
98
102
|
|
99
103
|
## Test
|
100
104
|
|
101
|
-
To run the test suite with different rails version by selecting the corresponding gemfile. You can use
|
105
|
+
To run the test suite with different rails version by selecting the corresponding gemfile. You can use these one liners:
|
102
106
|
|
103
|
-
$ export BUNDLE_GEMFILE=
|
104
|
-
$ export BUNDLE_GEMFILE=
|
105
|
-
$ export BUNDLE_GEMFILE=
|
106
|
-
$ export BUNDLE_GEMFILE=
|
107
|
-
$ export BUNDLE_GEMFILE=Gemfile.rails-5.0.x && bundle update && bundle exec rake spec
|
108
|
-
$ export BUNDLE_GEMFILE=Gemfile.rails-5.1.x && bundle update && bundle exec rake spec
|
109
|
-
$ export BUNDLE_GEMFILE=Gemfile.rails-5.2.x && bundle update && bundle exec rake spec
|
107
|
+
$ export BUNDLE_GEMFILE=gemfiles/rails-5.2.x.gemfile && bundle update && bundle exec rake spec
|
108
|
+
$ export BUNDLE_GEMFILE=gemfiles/rails-6.0.x.gemfile && bundle update && bundle exec rake spec
|
109
|
+
$ export BUNDLE_GEMFILE=gemfiles/rails-6.1.x.gemfile && bundle update && bundle exec rake spec
|
110
|
+
$ export BUNDLE_GEMFILE=gemfiles/rails-head.gemfile && bundle update && bundle exec rake spec
|
110
111
|
|
111
112
|
## Contributing
|
112
113
|
1. Fork it
|
data/frikandel.gemspec
CHANGED
@@ -21,15 +21,15 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.required_ruby_version = '>= 1.9.3'
|
22
22
|
spec.required_rubygems_version = ">= 1.3.6"
|
23
23
|
|
24
|
-
spec.add_development_dependency "bundler"
|
24
|
+
spec.add_development_dependency "bundler"
|
25
25
|
spec.add_development_dependency "rake"
|
26
26
|
spec.add_development_dependency "sqlite3" unless RUBY_PLATFORM == 'java'
|
27
27
|
spec.add_development_dependency "jdbc-sqlite3" if RUBY_PLATFORM == 'java'
|
28
28
|
spec.add_development_dependency "activerecord-jdbcsqlite3-adapter" if RUBY_PLATFORM == 'java'
|
29
|
-
spec.add_development_dependency "rspec-rails",
|
29
|
+
spec.add_development_dependency "rspec-rails", "> 3.0"
|
30
30
|
spec.add_development_dependency "guard-rspec"
|
31
31
|
spec.add_development_dependency "pry"
|
32
32
|
spec.add_development_dependency "test-unit"
|
33
33
|
|
34
|
-
spec.add_dependency "rails",
|
34
|
+
spec.add_dependency "rails", ">= 5.2.0", "< 8.0.0"
|
35
35
|
end
|
data/lib/frikandel/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frikandel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taktsoft
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,9 +59,6 @@ dependencies:
|
|
59
59
|
- - ">"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '3.0'
|
62
|
-
- - "<"
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: '3.6'
|
65
62
|
type: :development
|
66
63
|
prerelease: false
|
67
64
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -69,9 +66,6 @@ dependencies:
|
|
69
66
|
- - ">"
|
70
67
|
- !ruby/object:Gem::Version
|
71
68
|
version: '3.0'
|
72
|
-
- - "<"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '3.6'
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
70
|
name: guard-rspec
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,20 +114,20 @@ dependencies:
|
|
120
114
|
requirements:
|
121
115
|
- - ">="
|
122
116
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
117
|
+
version: 5.2.0
|
124
118
|
- - "<"
|
125
119
|
- !ruby/object:Gem::Version
|
126
|
-
version:
|
120
|
+
version: 8.0.0
|
127
121
|
type: :runtime
|
128
122
|
prerelease: false
|
129
123
|
version_requirements: !ruby/object:Gem::Requirement
|
130
124
|
requirements:
|
131
125
|
- - ">="
|
132
126
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
127
|
+
version: 5.2.0
|
134
128
|
- - "<"
|
135
129
|
- !ruby/object:Gem::Version
|
136
|
-
version:
|
130
|
+
version: 8.0.0
|
137
131
|
description: This gem adds a ttl to the session cookie of your application.
|
138
132
|
email:
|
139
133
|
- developers@taktsoft.com
|
@@ -141,23 +135,20 @@ executables: []
|
|
141
135
|
extensions: []
|
142
136
|
extra_rdoc_files: []
|
143
137
|
files:
|
138
|
+
- ".github/workflows/ci.yml"
|
144
139
|
- ".gitignore"
|
145
140
|
- ".rspec"
|
146
|
-
- ".travis.yml"
|
147
141
|
- Gemfile
|
148
|
-
- Gemfile.rails-3.2.x
|
149
|
-
- Gemfile.rails-4.0.x
|
150
|
-
- Gemfile.rails-4.1.x
|
151
|
-
- Gemfile.rails-4.2.x
|
152
|
-
- Gemfile.rails-5.0.x
|
153
|
-
- Gemfile.rails-5.1.x
|
154
|
-
- Gemfile.rails-5.2.x
|
155
|
-
- Gemfile.rails-head
|
156
142
|
- Guardfile
|
157
143
|
- LICENSE.txt
|
158
144
|
- README.md
|
159
145
|
- Rakefile
|
160
146
|
- frikandel.gemspec
|
147
|
+
- gemfiles/rails-5.2.x.gemfile
|
148
|
+
- gemfiles/rails-6.0.x.gemfile
|
149
|
+
- gemfiles/rails-6.1.x.gemfile
|
150
|
+
- gemfiles/rails-7.0.x.gemfile
|
151
|
+
- gemfiles/rails-head.gemfile
|
161
152
|
- lib/frikandel.rb
|
162
153
|
- lib/frikandel/bind_session_to_ip_address.rb
|
163
154
|
- lib/frikandel/configuration.rb
|
@@ -170,6 +161,7 @@ files:
|
|
170
161
|
- spec/controllers/limit_session_lifetime_controller_spec.rb
|
171
162
|
- spec/dummy/README.rdoc
|
172
163
|
- spec/dummy/Rakefile
|
164
|
+
- spec/dummy/app/assets/config/manifest.js
|
173
165
|
- spec/dummy/app/assets/images/.keep
|
174
166
|
- spec/dummy/app/assets/javascripts/application.js
|
175
167
|
- spec/dummy/app/assets/stylesheets/application.css
|
@@ -201,8 +193,6 @@ files:
|
|
201
193
|
- spec/dummy/config/locales/en.yml
|
202
194
|
- spec/dummy/config/routes.rb
|
203
195
|
- spec/dummy/lib/assets/.keep
|
204
|
-
- spec/dummy/log/development.log
|
205
|
-
- spec/dummy/log/test.log
|
206
196
|
- spec/dummy/public/404.html
|
207
197
|
- spec/dummy/public/422.html
|
208
198
|
- spec/dummy/public/500.html
|
@@ -215,7 +205,7 @@ homepage: https://github.com/taktsoft/frikandel
|
|
215
205
|
licenses:
|
216
206
|
- MIT
|
217
207
|
metadata: {}
|
218
|
-
post_install_message:
|
208
|
+
post_install_message:
|
219
209
|
rdoc_options: []
|
220
210
|
require_paths:
|
221
211
|
- lib
|
@@ -230,50 +220,48 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
220
|
- !ruby/object:Gem::Version
|
231
221
|
version: 1.3.6
|
232
222
|
requirements: []
|
233
|
-
|
234
|
-
|
235
|
-
signing_key:
|
223
|
+
rubygems_version: 3.3.7
|
224
|
+
signing_key:
|
236
225
|
specification_version: 4
|
237
226
|
summary: This gem adds a ttl to the session cookie of your application.
|
238
227
|
test_files:
|
239
|
-
- spec/
|
240
|
-
- spec/
|
241
|
-
- spec/
|
228
|
+
- spec/controllers/bind_session_to_ip_address_controller_spec.rb
|
229
|
+
- spec/controllers/combined_controller_spec.rb
|
230
|
+
- spec/controllers/customized_on_invalid_session_controller_spec.rb
|
231
|
+
- spec/controllers/limit_session_lifetime_controller_spec.rb
|
232
|
+
- spec/dummy/README.rdoc
|
233
|
+
- spec/dummy/Rakefile
|
234
|
+
- spec/dummy/app/assets/config/manifest.js
|
242
235
|
- spec/dummy/app/assets/javascripts/application.js
|
243
236
|
- spec/dummy/app/assets/stylesheets/application.css
|
237
|
+
- spec/dummy/app/controllers/application_controller.rb
|
244
238
|
- spec/dummy/app/helpers/application_helper.rb
|
245
|
-
- spec/dummy/
|
239
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
246
240
|
- spec/dummy/bin/bundle
|
247
241
|
- spec/dummy/bin/rails
|
248
|
-
- spec/dummy/
|
249
|
-
- spec/dummy/config/locales/en.yml
|
250
|
-
- spec/dummy/config/environments/production.rb
|
251
|
-
- spec/dummy/config/environments/development.rb
|
252
|
-
- spec/dummy/config/environments/test.rb
|
253
|
-
- spec/dummy/config/environment.rb
|
242
|
+
- spec/dummy/bin/rake
|
254
243
|
- spec/dummy/config/application.rb
|
255
|
-
- spec/dummy/config/database.yml
|
256
244
|
- spec/dummy/config/boot.rb
|
245
|
+
- spec/dummy/config/database.yml
|
246
|
+
- spec/dummy/config/environment.rb
|
247
|
+
- spec/dummy/config/environments/development.rb
|
248
|
+
- spec/dummy/config/environments/production.rb
|
249
|
+
- spec/dummy/config/environments/test.rb
|
257
250
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
258
|
-
- spec/dummy/config/initializers/mime_types.rb
|
259
251
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
252
|
+
- spec/dummy/config/initializers/inflections.rb
|
253
|
+
- spec/dummy/config/initializers/mime_types.rb
|
254
|
+
- spec/dummy/config/initializers/secret_token.rb
|
260
255
|
- spec/dummy/config/initializers/session_store.rb
|
261
256
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
262
|
-
- spec/dummy/config/
|
263
|
-
- spec/dummy/config/
|
257
|
+
- spec/dummy/config/locales/en.yml
|
258
|
+
- spec/dummy/config/routes.rb
|
264
259
|
- spec/dummy/config.ru
|
265
|
-
- spec/dummy/
|
266
|
-
- spec/dummy/public/favicon.ico
|
260
|
+
- spec/dummy/public/404.html
|
267
261
|
- spec/dummy/public/422.html
|
268
262
|
- spec/dummy/public/500.html
|
269
|
-
- spec/dummy/public/
|
270
|
-
- spec/dummy/log/test.log
|
271
|
-
- spec/dummy/log/development.log
|
272
|
-
- spec/dummy/README.rdoc
|
273
|
-
- spec/support/application_controller.rb
|
263
|
+
- spec/dummy/public/favicon.ico
|
274
264
|
- spec/lib/frikandel/configuration_spec.rb
|
275
|
-
- spec/controllers/customized_on_invalid_session_controller_spec.rb
|
276
|
-
- spec/controllers/bind_session_to_ip_address_controller_spec.rb
|
277
|
-
- spec/controllers/combined_controller_spec.rb
|
278
|
-
- spec/controllers/limit_session_lifetime_controller_spec.rb
|
279
265
|
- spec/rails_helper.rb
|
266
|
+
- spec/spec_helper.rb
|
267
|
+
- spec/support/application_controller.rb
|
data/.travis.yml
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- "1.9.3"
|
4
|
-
- "2.0.0"
|
5
|
-
- "2.1.9"
|
6
|
-
- "2.2.5"
|
7
|
-
- "2.3.1"
|
8
|
-
- ruby-head
|
9
|
-
- jruby-19mode
|
10
|
-
gemfile:
|
11
|
-
- Gemfile.rails-3.2.x
|
12
|
-
- Gemfile.rails-4.0.x
|
13
|
-
- Gemfile.rails-4.1.x
|
14
|
-
- Gemfile.rails-4.2.x
|
15
|
-
- Gemfile.rails-5.0.x
|
16
|
-
- Gemfile.rails-5.1.x
|
17
|
-
- Gemfile.rails-head
|
18
|
-
before_install:
|
19
|
-
- gem update --system
|
20
|
-
- gem install bundler --pre
|
21
|
-
matrix:
|
22
|
-
allow_failures:
|
23
|
-
- rvm: ruby-head
|
24
|
-
- gemfile: Gemfile.rails-head
|
25
|
-
exclude:
|
26
|
-
- rvm: "2.2.5"
|
27
|
-
gemfile: Gemfile.rails-3.2.x
|
28
|
-
- rvm: "2.2.5"
|
29
|
-
gemfile: Gemfile.rails-4.0.x
|
30
|
-
- rvm: "1.9.3"
|
31
|
-
gemfile: Gemfile.rails-5.0.x
|
32
|
-
- rvm: "2.0.0"
|
33
|
-
gemfile: Gemfile.rails-5.0.x
|
34
|
-
- rvm: "2.1.9"
|
35
|
-
gemfile: Gemfile.rails-5.0.x
|
36
|
-
- rvm: "jruby-19mode"
|
37
|
-
gemfile: Gemfile.rails-5.0.x
|
38
|
-
- rvm: "1.9.3"
|
39
|
-
gemfile: Gemfile.rails-5.1.x
|
40
|
-
- rvm: "2.0.0"
|
41
|
-
gemfile: Gemfile.rails-5.1.x
|
42
|
-
- rvm: "2.1.9"
|
43
|
-
gemfile: Gemfile.rails-5.1.x
|
44
|
-
- rvm: "jruby-19mode"
|
45
|
-
gemfile: Gemfile.rails-5.1.x
|
data/Gemfile.rails-3.2.x
DELETED
data/Gemfile.rails-4.0.x
DELETED
data/Gemfile.rails-4.1.x
DELETED
data/Gemfile.rails-4.2.x
DELETED
File without changes
|