mongo_session_store 3.2.2 → 3.3.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/.github/workflows/ci.yml +37 -20
- data/.github/workflows/danger-comment.yml +10 -2
- data/.github/workflows/danger.yml +14 -37
- data/.github/workflows/lint.yml +29 -0
- data/.github/workflows/release.yml +31 -0
- data/.gitignore +4 -0
- data/.rubocop.yml +152 -8
- data/.rubocop_todo.yml +224 -0
- data/.spellcheck.txt +54 -0
- data/CHANGELOG.md +26 -13
- data/CONTRIBUTING.md +80 -0
- data/Gemfile +10 -1
- data/Gemfile.danger +3 -3
- data/README.md +31 -75
- data/RELEASING.md +20 -22
- data/Rakefile +19 -58
- data/gemfiles/rails-8.1-mongo.gemfile +1 -0
- data/gemfiles/rails-8.1-mongoid.gemfile +1 -0
- data/gemfiles/rails-current-mongo.gemfile +21 -0
- data/gemfiles/rails-current-mongoid.gemfile +3 -0
- data/lib/mongo_session_store/mongo_store.rb +1 -1
- data/lib/mongo_session_store/mongo_store_base.rb +6 -0
- data/lib/mongo_session_store/version.rb +1 -1
- data/mongo_session_store.gemspec +1 -1
- data/script/release.rb +16 -0
- data/spec/.rubocop.yml +7 -1
- data/spec/lib/mongo_session_store/legacy_serialization_spec.rb +17 -0
- data/spec/lib/mongo_session_store/serialization_spec.rb +36 -0
- data/spec/lib/mongo_session_store/stale_sessions_spec.rb +77 -0
- data/spec/lib/mongo_session_store/version_spec.rb +8 -0
- data/spec/rails_helper.rb +4 -2
- data/spec/release/release_spec.rb +85 -0
- data/spec/spec_helper.rb +12 -2
- data/spec/support/helpers/test_database_helper.rb +1 -3
- metadata +19 -141
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b87dd8015108184bd13cf8e529c2d62a237c9a76c36e2559326a20cd43520141
|
|
4
|
+
data.tar.gz: 1ceee637e1456b9c0736147f589e4482229d1f232df40e05b358042c3f290729
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d543f00ba314e64379697ead54a648a76eff763ad0c6c260cf58e1190ed1cb156ae0c4cd4d980ab28a3505b33b907a5f181d83fde8e84361541696dda75bc81
|
|
7
|
+
data.tar.gz: 4685bb9ace0864d844867e5cc3df3a5511c1ab5a038624800faec02e0bfb8c556fbdd64042a537f3e4087b09e4746dbd7b9a13794e911804de9a9f6c30415337
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -12,23 +12,37 @@ on:
|
|
|
12
12
|
|
|
13
13
|
concurrency:
|
|
14
14
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
15
|
-
cancel-in-progress:
|
|
15
|
+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
|
16
|
+
|
|
17
|
+
permissions:
|
|
18
|
+
contents: read
|
|
16
19
|
|
|
17
20
|
jobs:
|
|
18
21
|
test:
|
|
19
|
-
name: "
|
|
20
|
-
runs-on: ubuntu-
|
|
22
|
+
name: "Ruby ${{ matrix.ruby }} / ${{ matrix.gemfile }} / Rails ${{ matrix.rails || 'pinned' }}"
|
|
23
|
+
runs-on: ubuntu-22.04
|
|
24
|
+
timeout-minutes: 15
|
|
21
25
|
|
|
22
26
|
strategy:
|
|
23
27
|
fail-fast: false
|
|
24
28
|
matrix:
|
|
25
|
-
ruby:
|
|
29
|
+
ruby:
|
|
26
30
|
- "3.4"
|
|
27
31
|
- "3.3"
|
|
28
32
|
gemfile:
|
|
29
33
|
- gemfiles/rails-6.0-mongo.gemfile
|
|
30
34
|
- gemfiles/rails-6.0-mongoid.gemfile
|
|
31
35
|
include:
|
|
36
|
+
- { ruby: "3.1", rails: "~> 6.1.0", mongoid: "~> 8.0", mongodb: "6.0", gemfile: gemfiles/rails-current-mongo.gemfile }
|
|
37
|
+
- { ruby: "3.1", rails: "~> 6.1.0", mongoid: "~> 8.0", mongodb: "6.0", gemfile: gemfiles/rails-current-mongoid.gemfile }
|
|
38
|
+
- { ruby: "3.1", rails: "~> 7.0.0", mongoid: "~> 8.0", mongodb: "6.0", gemfile: gemfiles/rails-current-mongo.gemfile }
|
|
39
|
+
- { ruby: "3.1", rails: "~> 7.0.0", mongoid: "~> 8.0", mongodb: "6.0", gemfile: gemfiles/rails-current-mongoid.gemfile }
|
|
40
|
+
- { ruby: "3.2", rails: "~> 7.1.0", mongoid: "~> 8.0", mongodb: "6.0", gemfile: gemfiles/rails-current-mongo.gemfile }
|
|
41
|
+
- { ruby: "3.2", rails: "~> 7.1.0", mongoid: "~> 8.0", mongodb: "6.0", gemfile: gemfiles/rails-current-mongoid.gemfile }
|
|
42
|
+
- { ruby: "3.3", rails: "~> 7.2.0", mongoid: "~> 9.0", mongodb: "7.0", gemfile: gemfiles/rails-current-mongo.gemfile }
|
|
43
|
+
- { ruby: "3.3", rails: "~> 7.2.0", mongoid: "~> 9.0", mongodb: "7.0", gemfile: gemfiles/rails-current-mongoid.gemfile }
|
|
44
|
+
- { ruby: "3.4", rails: "~> 8.0.0", mongoid: "~> 9.0", mongodb: "8.0", sqlite: "~> 2.1", gemfile: gemfiles/rails-current-mongo.gemfile }
|
|
45
|
+
- { ruby: "3.4", rails: "~> 8.0.0", mongoid: "~> 9.0", mongodb: "8.0", sqlite: "~> 2.1", gemfile: gemfiles/rails-current-mongoid.gemfile }
|
|
32
46
|
- gemfile: gemfiles/rails-8.1-mongo.gemfile
|
|
33
47
|
ruby: "3.4"
|
|
34
48
|
mongodb: "8.0"
|
|
@@ -41,6 +55,7 @@ jobs:
|
|
|
41
55
|
- gemfile: gemfiles/rails-8.1-mongoid.gemfile
|
|
42
56
|
ruby: "4.0"
|
|
43
57
|
mongodb: "8.0"
|
|
58
|
+
coverage: "true"
|
|
44
59
|
- gemfile: gemfiles/rails-5.2-mongo.gemfile
|
|
45
60
|
ruby: "2.7"
|
|
46
61
|
- gemfile: gemfiles/rails-5.2-mongoid.gemfile
|
|
@@ -60,13 +75,17 @@ jobs:
|
|
|
60
75
|
ports:
|
|
61
76
|
- 27017:27017
|
|
62
77
|
options: >-
|
|
63
|
-
--health-cmd "
|
|
78
|
+
--health-cmd "bash -c 'echo > /dev/tcp/127.0.0.1/27017'"
|
|
64
79
|
--health-interval 10s
|
|
65
80
|
--health-timeout 5s
|
|
66
81
|
--health-retries 10
|
|
67
82
|
|
|
68
83
|
env:
|
|
69
84
|
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
|
85
|
+
COVERAGE: ${{ matrix.coverage }}
|
|
86
|
+
RAILS_VERSION: ${{ matrix.rails }}
|
|
87
|
+
MONGOID_VERSION: ${{ matrix.mongoid }}
|
|
88
|
+
SQLITE_VERSION: ${{ matrix.sqlite || '~> 1.4' }}
|
|
70
89
|
|
|
71
90
|
steps:
|
|
72
91
|
- name: Checkout project
|
|
@@ -81,20 +100,18 @@ jobs:
|
|
|
81
100
|
- name: Run tests
|
|
82
101
|
run: bundle exec rake test
|
|
83
102
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
103
|
+
- name: Cover Mongo adapter
|
|
104
|
+
if: ${{ matrix.coverage == 'true' }}
|
|
105
|
+
env:
|
|
106
|
+
BUNDLE_GEMFILE: gemfiles/rails-8.1-mongo.gemfile
|
|
107
|
+
run: |
|
|
108
|
+
bundle install --jobs 4 --retry 3
|
|
109
|
+
bundle exec rake test
|
|
91
110
|
|
|
92
|
-
- name:
|
|
93
|
-
|
|
111
|
+
- name: Report coverage
|
|
112
|
+
if: ${{ matrix.coverage == 'true' }}
|
|
113
|
+
uses: coverallsapp/github-action@v2
|
|
94
114
|
with:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
- name: Run RuboCop
|
|
100
|
-
run: bundle exec rubocop
|
|
115
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
116
|
+
file: coverage/.resultset.json
|
|
117
|
+
format: simplecov
|
|
@@ -5,7 +5,15 @@ on:
|
|
|
5
5
|
workflows: [Danger]
|
|
6
6
|
types: [completed]
|
|
7
7
|
|
|
8
|
+
permissions:
|
|
9
|
+
actions: read
|
|
10
|
+
issues: write
|
|
11
|
+
pull-requests: write
|
|
12
|
+
|
|
8
13
|
jobs:
|
|
9
14
|
comment:
|
|
10
|
-
|
|
11
|
-
|
|
15
|
+
name: Post Review Comment
|
|
16
|
+
uses: danger/danger-pr-comment/.github/workflows/danger-comment.yml@645e89bcc7be89ee7e8362166110b05cbced8e59 # v0.3.0
|
|
17
|
+
with:
|
|
18
|
+
base-branch: '*'
|
|
19
|
+
comment-empty: false
|
|
@@ -4,42 +4,19 @@ on:
|
|
|
4
4
|
pull_request:
|
|
5
5
|
types: [opened, reopened, edited, synchronize]
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
|
|
11
|
-
env:
|
|
12
|
-
BUNDLE_GEMFILE: Gemfile.danger
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- name: Checkout repository
|
|
16
|
-
uses: actions/checkout@v4
|
|
17
|
-
with:
|
|
18
|
-
fetch-depth: 0
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
19
9
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
ruby-version: '3.4'
|
|
24
|
-
bundler-cache: true
|
|
10
|
+
concurrency:
|
|
11
|
+
group: danger-${{ github.event.pull_request.number }}
|
|
12
|
+
cancel-in-progress: true
|
|
25
13
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
- name: Upload Danger report
|
|
36
|
-
if: ${{ always() }}
|
|
37
|
-
uses: actions/upload-artifact@v4
|
|
38
|
-
with:
|
|
39
|
-
name: danger-report
|
|
40
|
-
path: ${{ runner.temp }}/danger-report.json
|
|
41
|
-
if-no-files-found: error
|
|
42
|
-
|
|
43
|
-
- name: Fail if Danger failed
|
|
44
|
-
if: ${{ steps.danger.outcome == 'failure' }}
|
|
45
|
-
run: exit 1
|
|
14
|
+
jobs:
|
|
15
|
+
danger:
|
|
16
|
+
name: Review Pull Request
|
|
17
|
+
uses: danger/danger-pr-comment/.github/workflows/danger-run.yml@645e89bcc7be89ee7e8362166110b05cbced8e59 # v0.3.0
|
|
18
|
+
with:
|
|
19
|
+
ruby-version: '3.4'
|
|
20
|
+
bundler-cache: true
|
|
21
|
+
gemfile: Gemfile.danger
|
|
22
|
+
danger-args: dry_run --base=origin/${{ github.base_ref }}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Lint
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
10
|
+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
lint:
|
|
17
|
+
name: Lint Code and Documentation
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
timeout-minutes: 10
|
|
20
|
+
steps:
|
|
21
|
+
- name: Check Out Code
|
|
22
|
+
uses: actions/checkout@v7
|
|
23
|
+
- name: Set Up Ruby
|
|
24
|
+
uses: ruby/setup-ruby@v1
|
|
25
|
+
with:
|
|
26
|
+
ruby-version: '4.0'
|
|
27
|
+
bundler-cache: true
|
|
28
|
+
- name: Run Lint
|
|
29
|
+
run: bundle exec rake lint
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
version:
|
|
7
|
+
description: Optional release version overriding the checked-in version.
|
|
8
|
+
type: string
|
|
9
|
+
required: false
|
|
10
|
+
dry-run:
|
|
11
|
+
description: Check release prerequisites, such as RubyGems Trusted Publishing, without releasing.
|
|
12
|
+
type: boolean
|
|
13
|
+
default: false
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
17
|
+
id-token: write
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
release:
|
|
21
|
+
if: github.repository == 'mongoid/mongo_session_store' && github.ref == 'refs/heads/main'
|
|
22
|
+
uses: dblock/ruby-gem-release/.github/workflows/release.yml@v0.9.0
|
|
23
|
+
with:
|
|
24
|
+
ruby-version: '3.3'
|
|
25
|
+
gemfile: gemfiles/rails-current-mongoid.gemfile
|
|
26
|
+
version: ${{ inputs.version }}
|
|
27
|
+
dry-run: ${{ inputs.dry-run }}
|
|
28
|
+
test: |
|
|
29
|
+
docker run --detach --name mongodb --publish 27017:27017 mongo:8.0
|
|
30
|
+
timeout 60 bash -c 'until docker exec mongodb mongosh --quiet --eval "db.adminCommand({ping: 1})"; do sleep 1; done'
|
|
31
|
+
bundle exec rake
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -1,22 +1,47 @@
|
|
|
1
|
+
plugins:
|
|
2
|
+
- rubocop-md
|
|
3
|
+
- rubocop-prose
|
|
4
|
+
- rubocop-rake
|
|
5
|
+
- rubocop-spellcheck
|
|
6
|
+
- rubocop-yaml
|
|
7
|
+
|
|
8
|
+
inherit_from: ".rubocop_todo.yml"
|
|
9
|
+
|
|
1
10
|
AllCops:
|
|
2
|
-
TargetRubyVersion: 2.
|
|
11
|
+
TargetRubyVersion: 2.6
|
|
12
|
+
NewCops: enable
|
|
3
13
|
Include:
|
|
4
|
-
|
|
14
|
+
- ".github/**/*.yml"
|
|
15
|
+
- ".rubocop.yml"
|
|
5
16
|
Exclude:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
17
|
+
- gemfiles/vendor/**/*
|
|
18
|
+
- perf/benchmark.rb
|
|
19
|
+
- spec/support/apps/**/*
|
|
20
|
+
- tmp/**/*
|
|
21
|
+
- vendor/**/*
|
|
22
|
+
- coverage/**/*
|
|
23
|
+
- pkg/**/*
|
|
11
24
|
DisplayCopNames: true
|
|
12
25
|
UseCache: true
|
|
13
|
-
CacheRootDirectory: ./tmp
|
|
26
|
+
CacheRootDirectory: "./tmp"
|
|
27
|
+
SuggestExtensions: false
|
|
28
|
+
inherit_mode:
|
|
29
|
+
merge:
|
|
30
|
+
- Include
|
|
14
31
|
|
|
15
32
|
Style/Documentation:
|
|
16
33
|
Enabled: false
|
|
34
|
+
inherit_mode:
|
|
35
|
+
merge:
|
|
36
|
+
- Exclude
|
|
37
|
+
Exclude:
|
|
38
|
+
- "**/*.md"
|
|
17
39
|
|
|
18
40
|
Style/StringLiterals:
|
|
19
41
|
EnforcedStyle: double_quotes
|
|
42
|
+
inherit_mode:
|
|
43
|
+
merge:
|
|
44
|
+
- Exclude
|
|
20
45
|
|
|
21
46
|
Style/StringLiteralsInInterpolation:
|
|
22
47
|
EnforcedStyle: double_quotes
|
|
@@ -26,12 +51,18 @@ Layout/ParameterAlignment:
|
|
|
26
51
|
|
|
27
52
|
Layout/MultilineOperationIndentation:
|
|
28
53
|
EnforcedStyle: indented
|
|
54
|
+
inherit_mode:
|
|
55
|
+
merge:
|
|
56
|
+
- Exclude
|
|
29
57
|
|
|
30
58
|
Layout/HashAlignment:
|
|
31
59
|
EnforcedLastArgumentHashStyle: ignore_implicit
|
|
32
60
|
|
|
33
61
|
Style/HashSyntax:
|
|
34
62
|
EnforcedStyle: hash_rockets
|
|
63
|
+
inherit_mode:
|
|
64
|
+
merge:
|
|
65
|
+
- Exclude
|
|
35
66
|
|
|
36
67
|
Layout/FirstArrayElementIndentation:
|
|
37
68
|
EnforcedStyle: consistent
|
|
@@ -41,3 +72,116 @@ Style/FormatString:
|
|
|
41
72
|
|
|
42
73
|
Metrics/MethodLength:
|
|
43
74
|
Max: 15
|
|
75
|
+
inherit_mode:
|
|
76
|
+
merge:
|
|
77
|
+
- Exclude
|
|
78
|
+
Exclude:
|
|
79
|
+
- "**/*.md"
|
|
80
|
+
|
|
81
|
+
YAML/Lint/InvalidSyntax:
|
|
82
|
+
Include:
|
|
83
|
+
- "**/*.yml"
|
|
84
|
+
- "**/*.yaml"
|
|
85
|
+
|
|
86
|
+
YAML/Lint/DuplicateKey:
|
|
87
|
+
Include:
|
|
88
|
+
- "**/*.yml"
|
|
89
|
+
- "**/*.yaml"
|
|
90
|
+
|
|
91
|
+
Naming/FileName:
|
|
92
|
+
inherit_mode:
|
|
93
|
+
merge:
|
|
94
|
+
- Exclude
|
|
95
|
+
Exclude:
|
|
96
|
+
- "**/*.md"
|
|
97
|
+
- ".github/workflows/*.yml"
|
|
98
|
+
|
|
99
|
+
Metrics/AbcSize:
|
|
100
|
+
inherit_mode:
|
|
101
|
+
merge:
|
|
102
|
+
- Exclude
|
|
103
|
+
Exclude:
|
|
104
|
+
- "**/*.md"
|
|
105
|
+
|
|
106
|
+
Naming/HeredocDelimiterNaming:
|
|
107
|
+
inherit_mode:
|
|
108
|
+
merge:
|
|
109
|
+
- Exclude
|
|
110
|
+
Exclude:
|
|
111
|
+
- "**/*.md"
|
|
112
|
+
|
|
113
|
+
Style/SafeNavigation:
|
|
114
|
+
inherit_mode:
|
|
115
|
+
merge:
|
|
116
|
+
- Exclude
|
|
117
|
+
Exclude:
|
|
118
|
+
- "**/*.md"
|
|
119
|
+
|
|
120
|
+
Style/OneClassPerFile:
|
|
121
|
+
inherit_mode:
|
|
122
|
+
merge:
|
|
123
|
+
- Exclude
|
|
124
|
+
Exclude:
|
|
125
|
+
- "**/*.md"
|
|
126
|
+
|
|
127
|
+
Lint/UselessAssignment:
|
|
128
|
+
inherit_mode:
|
|
129
|
+
merge:
|
|
130
|
+
- Exclude
|
|
131
|
+
Exclude:
|
|
132
|
+
- "**/*.md"
|
|
133
|
+
|
|
134
|
+
Style/MultilineBlockChain:
|
|
135
|
+
inherit_mode:
|
|
136
|
+
merge:
|
|
137
|
+
- Exclude
|
|
138
|
+
Exclude:
|
|
139
|
+
- "**/*.md"
|
|
140
|
+
|
|
141
|
+
Style/SymbolProc:
|
|
142
|
+
inherit_mode:
|
|
143
|
+
merge:
|
|
144
|
+
- Exclude
|
|
145
|
+
Exclude:
|
|
146
|
+
- "**/*.md"
|
|
147
|
+
|
|
148
|
+
Lint/Void:
|
|
149
|
+
inherit_mode:
|
|
150
|
+
merge:
|
|
151
|
+
- Exclude
|
|
152
|
+
Exclude:
|
|
153
|
+
- "**/*.md"
|
|
154
|
+
|
|
155
|
+
Metrics/BlockLength:
|
|
156
|
+
inherit_mode:
|
|
157
|
+
merge:
|
|
158
|
+
- Exclude
|
|
159
|
+
Exclude:
|
|
160
|
+
- 'spec/release/release_spec.rb'
|
|
161
|
+
- Gemfile
|
|
162
|
+
|
|
163
|
+
Layout/LineLength:
|
|
164
|
+
inherit_mode:
|
|
165
|
+
merge:
|
|
166
|
+
- Exclude
|
|
167
|
+
Exclude:
|
|
168
|
+
- ".github/workflows/*.yml"
|
|
169
|
+
|
|
170
|
+
Markdown/HeadingCapitalization:
|
|
171
|
+
Enabled: true
|
|
172
|
+
Style: title_case
|
|
173
|
+
|
|
174
|
+
Prose/MaxLength:
|
|
175
|
+
Max: false
|
|
176
|
+
Exclude:
|
|
177
|
+
- LICENSE
|
|
178
|
+
|
|
179
|
+
Spellcheck:
|
|
180
|
+
DictionaryFiles:
|
|
181
|
+
en:
|
|
182
|
+
- gem:rubocop-spellcheck/data/en/en.dic
|
|
183
|
+
- ".spellcheck.txt"
|
|
184
|
+
|
|
185
|
+
Spellcheck/Spelling:
|
|
186
|
+
Exclude:
|
|
187
|
+
- LICENSE
|
data/.rubocop_todo.yml
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
# This configuration was generated by
|
|
2
|
+
# `rubocop --auto-gen-config --no-exclude-limit --no-offense-counts --no-auto-gen-timestamp`
|
|
3
|
+
# using RuboCop version 1.92.3.
|
|
4
|
+
# The point is for the user to remove these configuration records
|
|
5
|
+
# one by one as the offenses are removed from the code base.
|
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
+
|
|
9
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
10
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation.
|
|
11
|
+
Bundler/OrderedGems:
|
|
12
|
+
Exclude:
|
|
13
|
+
- 'gemfiles/rails-5.0-mongo.gemfile'
|
|
14
|
+
- 'gemfiles/rails-5.0-mongoid.gemfile'
|
|
15
|
+
- 'gemfiles/rails-5.1-mongo.gemfile'
|
|
16
|
+
- 'gemfiles/rails-5.1-mongoid.gemfile'
|
|
17
|
+
- 'gemfiles/rails-5.2-mongo.gemfile'
|
|
18
|
+
- 'gemfiles/rails-5.2-mongoid.gemfile'
|
|
19
|
+
- 'gemfiles/rails-6.0-mongo.gemfile'
|
|
20
|
+
- 'gemfiles/rails-6.0-mongoid.gemfile'
|
|
21
|
+
- 'gemfiles/rails-8.1-mongo.gemfile'
|
|
22
|
+
- 'gemfiles/rails-8.1-mongoid.gemfile'
|
|
23
|
+
- 'gemfiles/rails-current-mongo.gemfile'
|
|
24
|
+
|
|
25
|
+
# Configuration parameters: EnforcedStyle, AllowedGems.
|
|
26
|
+
# SupportedStyles: Gemfile, gems.rb, gemspec
|
|
27
|
+
Gemspec/DevelopmentDependencies:
|
|
28
|
+
Exclude:
|
|
29
|
+
- 'mongo_session_store.gemspec'
|
|
30
|
+
|
|
31
|
+
Gemspec/RequiredRubyVersion:
|
|
32
|
+
Exclude:
|
|
33
|
+
- 'mongo_session_store.gemspec'
|
|
34
|
+
|
|
35
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
36
|
+
Layout/EmptyLineAfterGuardClause:
|
|
37
|
+
Exclude:
|
|
38
|
+
- 'lib/mongo_session_store/mongo_store.rb'
|
|
39
|
+
|
|
40
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
41
|
+
# Configuration parameters: EnforcedStyle.
|
|
42
|
+
# SupportedStyles: space, no_space
|
|
43
|
+
Layout/LineContinuationSpacing:
|
|
44
|
+
Exclude:
|
|
45
|
+
- 'lib/mongo_session_store/mongo_store.rb'
|
|
46
|
+
|
|
47
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
48
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
49
|
+
# SupportedStyles: aligned, indented
|
|
50
|
+
Layout/LineEndStringConcatenationIndentation:
|
|
51
|
+
Exclude:
|
|
52
|
+
- 'lib/mongo_session_store/mongo_store.rb'
|
|
53
|
+
|
|
54
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
55
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
56
|
+
# SupportedStyles: aligned, indented
|
|
57
|
+
Layout/MultilineOperationIndentation:
|
|
58
|
+
Exclude:
|
|
59
|
+
- 'Rakefile'
|
|
60
|
+
|
|
61
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
62
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
63
|
+
Lint/AmbiguousBlockAssociation:
|
|
64
|
+
Exclude:
|
|
65
|
+
- 'spec/lib/mongo_session_store/mongo_store/session_spec.rb'
|
|
66
|
+
- 'spec/lib/mongo_session_store/mongo_store_base_spec.rb'
|
|
67
|
+
|
|
68
|
+
# Configuration parameters: AllowedMethods.
|
|
69
|
+
# AllowedMethods: enums
|
|
70
|
+
Lint/ConstantDefinitionInBlock:
|
|
71
|
+
Exclude:
|
|
72
|
+
- 'Rakefile'
|
|
73
|
+
|
|
74
|
+
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
75
|
+
# AllowedMethods: refine
|
|
76
|
+
Metrics/BlockLength:
|
|
77
|
+
Exclude:
|
|
78
|
+
- 'Rakefile'
|
|
79
|
+
- 'spec/integrations/devise_spec.rb'
|
|
80
|
+
- 'spec/lib/mongo_session_store/mongo_store/session_spec.rb'
|
|
81
|
+
- 'spec/lib/mongo_session_store/mongo_store_base_spec.rb'
|
|
82
|
+
- 'spec/lib/mongo_session_store/mongoid_store/session_spec.rb'
|
|
83
|
+
- 'spec/lib/mongo_session_store/serialization_spec.rb'
|
|
84
|
+
- 'spec/lib/mongo_session_store/stale_sessions_spec.rb'
|
|
85
|
+
- 'spec/lib/mongo_session_store_spec.rb'
|
|
86
|
+
- 'spec/spec_helper.rb'
|
|
87
|
+
|
|
88
|
+
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
|
89
|
+
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
|
|
90
|
+
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
|
91
|
+
Naming/FileName:
|
|
92
|
+
Exclude:
|
|
93
|
+
- 'docker-compose.yml'
|
|
94
|
+
- 'gemfiles/rails-5.0-mongo.gemfile'
|
|
95
|
+
- 'gemfiles/rails-5.0-mongoid.gemfile'
|
|
96
|
+
- 'gemfiles/rails-5.1-mongo.gemfile'
|
|
97
|
+
- 'gemfiles/rails-5.1-mongoid.gemfile'
|
|
98
|
+
- 'gemfiles/rails-5.2-mongo.gemfile'
|
|
99
|
+
- 'gemfiles/rails-5.2-mongoid.gemfile'
|
|
100
|
+
- 'gemfiles/rails-6.0-mongo.gemfile'
|
|
101
|
+
- 'gemfiles/rails-6.0-mongoid.gemfile'
|
|
102
|
+
- 'gemfiles/rails-8.1-mongo.gemfile'
|
|
103
|
+
- 'gemfiles/rails-8.1-mongoid.gemfile'
|
|
104
|
+
- 'gemfiles/rails-current-mongo.gemfile'
|
|
105
|
+
- 'gemfiles/rails-current-mongoid.gemfile'
|
|
106
|
+
|
|
107
|
+
Rake/MethodDefinitionInTask:
|
|
108
|
+
Exclude:
|
|
109
|
+
- 'Rakefile'
|
|
110
|
+
|
|
111
|
+
Security/MarshalLoad:
|
|
112
|
+
Exclude:
|
|
113
|
+
- 'lib/mongo_session_store/mongo_store.rb'
|
|
114
|
+
- 'lib/mongo_session_store/mongoid_store.rb'
|
|
115
|
+
- 'spec/lib/mongo_session_store/mongo_store/session_spec.rb'
|
|
116
|
+
|
|
117
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
118
|
+
# Configuration parameters: EnforcedStyle.
|
|
119
|
+
# SupportedStyles: always, always_true, never
|
|
120
|
+
Style/FrozenStringLiteralComment:
|
|
121
|
+
Exclude:
|
|
122
|
+
- 'Gemfile'
|
|
123
|
+
- 'Rakefile'
|
|
124
|
+
- 'gemfiles/rails-5.0-mongo.gemfile'
|
|
125
|
+
- 'gemfiles/rails-5.0-mongoid.gemfile'
|
|
126
|
+
- 'gemfiles/rails-5.1-mongo.gemfile'
|
|
127
|
+
- 'gemfiles/rails-5.1-mongoid.gemfile'
|
|
128
|
+
- 'gemfiles/rails-5.2-mongo.gemfile'
|
|
129
|
+
- 'gemfiles/rails-5.2-mongoid.gemfile'
|
|
130
|
+
- 'gemfiles/rails-6.0-mongo.gemfile'
|
|
131
|
+
- 'gemfiles/rails-6.0-mongoid.gemfile'
|
|
132
|
+
- 'gemfiles/rails-8.1-mongo.gemfile'
|
|
133
|
+
- 'gemfiles/rails-8.1-mongoid.gemfile'
|
|
134
|
+
- 'gemfiles/rails-current-mongo.gemfile'
|
|
135
|
+
- 'gemfiles/rails-current-mongoid.gemfile'
|
|
136
|
+
- 'lib/mongo_session_store.rb'
|
|
137
|
+
- 'lib/mongo_session_store/mongo_store.rb'
|
|
138
|
+
- 'lib/mongo_session_store/mongo_store_base.rb'
|
|
139
|
+
- 'lib/mongo_session_store/mongoid_store.rb'
|
|
140
|
+
- 'lib/mongo_session_store/version.rb'
|
|
141
|
+
- 'mongo_session_store.gemspec'
|
|
142
|
+
- 'spec/integrations/devise_spec.rb'
|
|
143
|
+
- 'spec/integrations/rack_spec.rb'
|
|
144
|
+
- 'spec/lib/mongo_session_store/legacy_serialization_spec.rb'
|
|
145
|
+
- 'spec/lib/mongo_session_store/mongo_store/session_spec.rb'
|
|
146
|
+
- 'spec/lib/mongo_session_store/mongo_store_base_spec.rb'
|
|
147
|
+
- 'spec/lib/mongo_session_store/mongo_store_spec.rb'
|
|
148
|
+
- 'spec/lib/mongo_session_store/mongoid_store/session_spec.rb'
|
|
149
|
+
- 'spec/lib/mongo_session_store/mongoid_store_spec.rb'
|
|
150
|
+
- 'spec/lib/mongo_session_store/serialization_spec.rb'
|
|
151
|
+
- 'spec/lib/mongo_session_store/stale_sessions_spec.rb'
|
|
152
|
+
- 'spec/lib/mongo_session_store/version_spec.rb'
|
|
153
|
+
- 'spec/lib/mongo_session_store_spec.rb'
|
|
154
|
+
- 'spec/rails_helper.rb'
|
|
155
|
+
- 'spec/spec_helper.rb'
|
|
156
|
+
- 'spec/support/helpers/session_id_helper.rb'
|
|
157
|
+
- 'spec/support/helpers/test_database_helper.rb'
|
|
158
|
+
- 'spec/support/rack_app.rb'
|
|
159
|
+
|
|
160
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
161
|
+
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
|
162
|
+
Style/GuardClause:
|
|
163
|
+
Exclude:
|
|
164
|
+
- 'Rakefile'
|
|
165
|
+
|
|
166
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
167
|
+
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
168
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
169
|
+
# SupportedShorthandSyntax: always, never, either, consistent, either_consistent
|
|
170
|
+
Style/HashSyntax:
|
|
171
|
+
Exclude:
|
|
172
|
+
- 'Dangerfile'
|
|
173
|
+
|
|
174
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
175
|
+
Style/IfUnlessModifier:
|
|
176
|
+
Exclude:
|
|
177
|
+
- 'Rakefile'
|
|
178
|
+
|
|
179
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
180
|
+
# Configuration parameters: InverseMethods, InverseBlocks.
|
|
181
|
+
Style/InverseMethods:
|
|
182
|
+
Exclude:
|
|
183
|
+
- 'spec/support/helpers/test_database_helper.rb'
|
|
184
|
+
|
|
185
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
186
|
+
# Configuration parameters: EnforcedStyle, Recursive.
|
|
187
|
+
# SupportedStyles: literals, strict
|
|
188
|
+
Style/MutableConstant:
|
|
189
|
+
Exclude:
|
|
190
|
+
- 'Rakefile'
|
|
191
|
+
|
|
192
|
+
Style/OpenStructUse:
|
|
193
|
+
Exclude:
|
|
194
|
+
- 'spec/lib/mongo_session_store/mongo_store_base_spec.rb'
|
|
195
|
+
|
|
196
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
197
|
+
Style/RedundantConstantBase:
|
|
198
|
+
Exclude:
|
|
199
|
+
- 'spec/spec_helper.rb'
|
|
200
|
+
|
|
201
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
202
|
+
Style/RedundantParentheses:
|
|
203
|
+
Exclude:
|
|
204
|
+
- 'lib/mongo_session_store/mongo_store_base.rb'
|
|
205
|
+
|
|
206
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
207
|
+
# Configuration parameters: EnforcedStyle.
|
|
208
|
+
# SupportedStyles: implicit, explicit
|
|
209
|
+
Style/RescueStandardError:
|
|
210
|
+
Exclude:
|
|
211
|
+
- 'Rakefile'
|
|
212
|
+
|
|
213
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
214
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
215
|
+
# SupportedStyles: single_quotes, double_quotes
|
|
216
|
+
Style/StringLiterals:
|
|
217
|
+
Exclude:
|
|
218
|
+
- 'Dangerfile'
|
|
219
|
+
|
|
220
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
221
|
+
# Configuration parameters: MinSize.
|
|
222
|
+
# SupportedStyles: percent, brackets
|
|
223
|
+
Style/SymbolArray:
|
|
224
|
+
EnforcedStyle: brackets
|