frikandel 2.2.0 → 3.0.0
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 +5 -5
- data/.github/workflows/ci.yml +47 -0
- data/.gitignore +1 -0
- data/README.md +12 -10
- data/frikandel.gemspec +3 -3
- data/{Gemfile.rails-5.0.x → gemfiles/rails-5.2.x.gemfile} +2 -2
- data/{Gemfile.rails-4.0.x → gemfiles/rails-6.0.x.gemfile} +2 -4
- data/{Gemfile.rails-4.1.x → gemfiles/rails-6.1.x.gemfile} +2 -4
- 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
- data/spec/dummy/log/test.log +1864 -2438
- metadata +42 -49
- data/.travis.yml +0 -35
- data/Gemfile.rails-3.2.x +0 -8
- data/Gemfile.rails-4.2.x +0 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 953546b3b694c8e7efb06b2504d1a0bf2799a7278678d68fe2a6174b70834bcc
|
|
4
|
+
data.tar.gz: 076b382d7f30e0547a14e5e9f24c1632772902a0f984d358263423209cdbc3c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d0e21f2e57371f59db23ea027a41243ea60ed7f9994c1cd8cecd51f427deacede7f23269bca37a17529a98d5f11c94e75977c1bf4c94a8c701b5cf6a29aeba19
|
|
7
|
+
data.tar.gz: 589ea44f7f68078121f336075b4f1434792e38a5a0401fc2f8579c52773a9512f62f3029dd90ffca35da68ab644213df5bc450db26ad755b1e4d8595a64ced33
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
matrix:
|
|
24
|
+
ruby-version: ['2.6', '2.7', '3.0', jruby, truffleruby]
|
|
25
|
+
gemfile: [rails-5.2.x, rails-6.0.x, rails-6.1.x]
|
|
26
|
+
exclude:
|
|
27
|
+
# ruby 3 is not compatible with rails < 6
|
|
28
|
+
- ruby-version: '3.0'
|
|
29
|
+
gemfile: rails-5.2.x
|
|
30
|
+
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
|
|
31
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
|
32
|
+
|
|
33
|
+
name: test (ruby ${{ matrix.ruby-version }}, ${{ matrix.gemfile }})
|
|
34
|
+
|
|
35
|
+
steps:
|
|
36
|
+
- name: Checkout
|
|
37
|
+
uses: actions/checkout@v2
|
|
38
|
+
- name: Set up Ruby
|
|
39
|
+
# Using ruby/setup-ruby@v1 will automatically get bug fixes and new Ruby
|
|
40
|
+
# versions for ruby/setup-ruby (see
|
|
41
|
+
# https://github.com/ruby/setup-ruby#versioning).
|
|
42
|
+
uses: ruby/setup-ruby@v1
|
|
43
|
+
with:
|
|
44
|
+
ruby-version: ${{ matrix.ruby-version }}
|
|
45
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
46
|
+
- name: Run tests
|
|
47
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Frikandel
|
|
2
2
|
[](http://badge.fury.io/rb/frikandel)
|
|
3
|
-
[](https://github.com/taktsoft/frikandel/actions/workflows/ci.yml)
|
|
4
4
|
[](https://codeclimate.com/github/taktsoft/frikandel)
|
|
5
5
|
[](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 are currently supported.
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
## Installation
|
|
@@ -93,18 +93,20 @@ end
|
|
|
93
93
|
|
|
94
94
|
## Changes
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
* v3.0.0 -- Drop support for Rails < v5.2, add support for Rails v6.1 and switch from TravisCI to GithubActions
|
|
97
|
+
* v2.3.0 -- Add support for Rails v5.1 and Rails v6.0 and fix TravisCI builds
|
|
98
|
+
* v2.2.0 -- Add support for Rails v5.0 and update to RSpec 3
|
|
99
|
+
* v2.1.0 -- Reset session only once if using the combination of TTL and IP address binding.
|
|
100
|
+
* v2.0.0 -- Added IP address binding. Renamed callback from 'on_expired_session' to 'on_invalid_session'.
|
|
98
101
|
|
|
99
102
|
## Test
|
|
100
103
|
|
|
101
|
-
To run the test suite with different rails version by selecting the corresponding gemfile. You can use
|
|
104
|
+
To run the test suite with different rails version by selecting the corresponding gemfile. You can use these one liners:
|
|
102
105
|
|
|
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
|
|
106
|
+
$ export BUNDLE_GEMFILE=gemfiles/rails-5.2.x.gemfile && bundle update && bundle exec rake spec
|
|
107
|
+
$ export BUNDLE_GEMFILE=gemfiles/rails-6.0.x.gemfile && bundle update && bundle exec rake spec
|
|
108
|
+
$ export BUNDLE_GEMFILE=gemfiles/rails-6.1.x.gemfile && bundle update && bundle exec rake spec
|
|
109
|
+
$ export BUNDLE_GEMFILE=gemfiles/rails-head.gemfile && bundle update && bundle exec rake spec
|
|
108
110
|
|
|
109
111
|
## Contributing
|
|
110
112
|
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", "< 7.0.0"
|
|
35
35
|
end
|
data/lib/frikandel/version.rb
CHANGED