sequel-rails 1.1.1 → 1.2.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 +121 -0
- data/.rubocop.yml +9 -3
- data/.rubocop_todo.yml +490 -0
- data/Gemfile +0 -1
- data/History.md +31 -2
- data/README.md +49 -8
- data/Rakefile +1 -4
- data/ci/rails-5.2.gemfile +2 -3
- data/ci/rails-6.0.gemfile +2 -3
- data/ci/{rails-5.0.gemfile → rails-6.1.gemfile} +5 -5
- data/ci/{rails-4.0.gemfile → rails-7.0.gemfile} +5 -4
- data/lib/sequel_rails/configuration.rb +2 -0
- data/lib/sequel_rails/migrations.rb +0 -1
- data/lib/sequel_rails/railtie.rb +6 -9
- data/lib/sequel_rails/railties/log_subscriber.rb +3 -3
- data/lib/sequel_rails/storage/abstract.rb +2 -0
- data/lib/sequel_rails/version.rb +1 -1
- data/sequel-rails.gemspec +7 -6
- data/spec/helpers/io.rb +5 -0
- data/spec/integration/sessions_controller_spec.rb +1 -1
- data/spec/internal/config/database.yml +3 -0
- data/spec/internal/db/schema.rb.init +2 -2
- data/spec/lib/sequel_rails/configuration_spec.rb +31 -10
- data/spec/lib/sequel_rails/migrations_spec.rb +9 -3
- data/spec/lib/sequel_rails/railtie_spec.rb +6 -2
- data/spec/lib/sequel_rails/storage/postgres_spec.rb +11 -0
- data/spec/lib/sequel_rails/storage/sqlite_spec.rb +4 -1
- data/spec/spec_helper.rb +1 -1
- metadata +41 -37
- data/.travis.yml +0 -63
- data/ci/rails-4.1.gemfile +0 -26
- data/ci/rails-4.2.gemfile +0 -26
- data/ci/rails-5.1.gemfile +0 -28
- data/lib/sequel_rails/railties/spring_support.rb +0 -14
- data/rubocop-todo.yml +0 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37ac0c145b51b35609a915883a48ecdb9ae674f19957d207afcc7b4cc2aae940
|
4
|
+
data.tar.gz: 7cd0b568d5dec00df8765f93ad4f3fbb78dd95bc011ac6c32c426af21817324d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e480c41227765090b3e7a3a658a423150f1396568eac643eafb515d7359f33541d88f2a30dd3fb59c5e43f0d3407bdcbacb06ff8dfa0cb79622dde4e602621c1
|
7
|
+
data.tar.gz: 9014c2201df4e0a829c3a86d7d81e50209a3b3b20a794ff78b86707b6698bac8e5635c4b9bb4eebc3876fcedc0da74187c333e4fe413511d86a7c371ddf0c0af
|
@@ -0,0 +1,121 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: ['**']
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
tests:
|
11
|
+
services:
|
12
|
+
postgres:
|
13
|
+
image: postgres:13
|
14
|
+
env:
|
15
|
+
POSTGRES_USER: postgres
|
16
|
+
POSTGRES_PASSWORD: postgres
|
17
|
+
ports:
|
18
|
+
- 5432
|
19
|
+
options: >-
|
20
|
+
--health-cmd pg_isready
|
21
|
+
--health-interval 10s
|
22
|
+
--health-timeout 5s
|
23
|
+
--health-retries 5
|
24
|
+
|
25
|
+
mysql:
|
26
|
+
image: mysql:8.0
|
27
|
+
env:
|
28
|
+
MYSQL_ROOT_PASSWORD: root
|
29
|
+
ports:
|
30
|
+
- 3306
|
31
|
+
options: >-
|
32
|
+
--health-cmd="mysqladmin ping"
|
33
|
+
--health-interval=10s
|
34
|
+
--health-timeout=5s
|
35
|
+
--health-retries=3
|
36
|
+
|
37
|
+
runs-on: ubuntu-latest
|
38
|
+
strategy:
|
39
|
+
fail-fast: false
|
40
|
+
matrix:
|
41
|
+
rails:
|
42
|
+
- "5.2"
|
43
|
+
- "6.0"
|
44
|
+
- "6.1"
|
45
|
+
- "7.0"
|
46
|
+
sequel:
|
47
|
+
- "~> 5.0"
|
48
|
+
ruby:
|
49
|
+
- "2.6"
|
50
|
+
- "2.7"
|
51
|
+
- "3.0"
|
52
|
+
- "3.1"
|
53
|
+
# - "jruby"
|
54
|
+
exclude:
|
55
|
+
- ruby: "2.7"
|
56
|
+
rails: "5.2"
|
57
|
+
- ruby: "3.0"
|
58
|
+
rails: "5.2"
|
59
|
+
- ruby: "3.1"
|
60
|
+
rails: "5.2"
|
61
|
+
- ruby: "3.0"
|
62
|
+
rails: "6.0"
|
63
|
+
- ruby: "3.1"
|
64
|
+
rails: "6.0"
|
65
|
+
- ruby: "3.1"
|
66
|
+
rails: "6.1"
|
67
|
+
- ruby: "2.6"
|
68
|
+
rails: "7.0"
|
69
|
+
- ruby: "jruby"
|
70
|
+
rails: "7.0"
|
71
|
+
name: Rails ${{ matrix.rails }}, Sequel ${{ matrix.sequel }}, Ruby ${{ matrix.ruby }}
|
72
|
+
|
73
|
+
env:
|
74
|
+
SEQUEL: "${{ matrix.sequel }}"
|
75
|
+
BUNDLE_GEMFILE: "ci/rails-${{ matrix.rails }}.gemfile"
|
76
|
+
steps:
|
77
|
+
- uses: actions/checkout@v3
|
78
|
+
- name: Install db dependencies and check connections
|
79
|
+
run: |
|
80
|
+
DEBIAN_FRONTEND="noninteractive" sudo apt-get install -yqq mysql-client libmysqlclient-dev postgresql-client libpq-dev
|
81
|
+
mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -proot -e "SHOW GRANTS FOR 'root'@'localhost'"
|
82
|
+
env PGPASSWORD=postgres psql -h localhost -p ${{ job.services.postgres.ports[5432] }} -U postgres -l
|
83
|
+
- uses: ruby/setup-ruby@v1
|
84
|
+
with:
|
85
|
+
ruby-version: ${{ matrix.ruby }}
|
86
|
+
bundler-cache: true
|
87
|
+
- name: Create databases
|
88
|
+
run: |
|
89
|
+
mysql -e 'create database sequel_rails_test;' --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -proot
|
90
|
+
mysql -e 'create database sequel_rails_test_mysql2;' --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -proot
|
91
|
+
mysql -e 'create database sequel_rails_test_storage_dev;' --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -proot
|
92
|
+
env PGPASSWORD=postgres psql -c 'create database sequel_rails_test;' -U postgres -h localhost -p ${{ job.services.postgres.ports[5432] }}
|
93
|
+
env PGPASSWORD=postgres psql -c 'create database sequel_rails_test_storage_dev;' -U postgres -h localhost -p ${{ job.services.postgres.ports[5432] }}
|
94
|
+
- name: Run PostgreSQL tests
|
95
|
+
run: bundle exec rspec
|
96
|
+
env:
|
97
|
+
TEST_ADAPTER: postgresql
|
98
|
+
TEST_DATABASE: sequel_rails_test
|
99
|
+
TEST_DATABASE_HOST: localhost
|
100
|
+
TEST_DATABASE_PORT: ${{ job.services.postgres.ports[5432] }}
|
101
|
+
TEST_OWNER: postgres
|
102
|
+
TEST_USERNAME: postgres
|
103
|
+
TEST_PASSWORD: postgres
|
104
|
+
- name: Run MySQL2 tests
|
105
|
+
run: bundle exec rspec
|
106
|
+
if: matrix.ruby != 'jruby'
|
107
|
+
env:
|
108
|
+
TEST_ADAPTER: mysql2
|
109
|
+
TEST_DATABASE: sequel_rails_test_mysql2
|
110
|
+
TEST_DATABASE_HOST: 127.0.0.1
|
111
|
+
TEST_DATABASE_PORT: ${{ job.services.mysql.ports[3306] }}
|
112
|
+
TEST_USERNAME: root
|
113
|
+
TEST_PASSWORD: root
|
114
|
+
TEST_ENCODING: "utf8"
|
115
|
+
- name: Run SQLite tests
|
116
|
+
run: bundle exec rspec
|
117
|
+
env:
|
118
|
+
TEST_ADAPTER: "sqlite3"
|
119
|
+
TEST_DATABASE: "db/database.sqlite3"
|
120
|
+
- name: Lint
|
121
|
+
run: bundle exec rubocop
|
data/.rubocop.yml
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
1
3
|
AllCops:
|
2
4
|
Include:
|
3
5
|
- '**/Gemfile'
|
@@ -6,11 +8,15 @@ AllCops:
|
|
6
8
|
- '**/*.rake'
|
7
9
|
- '**/*.gemfile'
|
8
10
|
- '**/*.gemspec'
|
11
|
+
- '**/*.rb'
|
9
12
|
Exclude:
|
10
|
-
- 'lib/sequel-rails.rb'
|
11
13
|
- 'ci/**/*'
|
14
|
+
- 'vendor/bundle/**/*'
|
15
|
+
SuggestExtensions: false
|
16
|
+
NewCops: disable
|
12
17
|
|
13
|
-
HashSyntax:
|
18
|
+
Style/HashSyntax:
|
14
19
|
EnforcedStyle: hash_rockets
|
15
20
|
|
16
|
-
|
21
|
+
Layout/FirstHashElementIndentation:
|
22
|
+
EnforcedStyle: consistent
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,490 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2022-04-15 08:19:01 UTC using RuboCop version 1.27.0.
|
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
|
+
# Offense count: 3
|
10
|
+
# This cop supports safe auto-correction (--auto-correct).
|
11
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
12
|
+
# Include: **/*.gemspec
|
13
|
+
Gemspec/OrderedDependencies:
|
14
|
+
Exclude:
|
15
|
+
- 'sequel-rails.gemspec'
|
16
|
+
|
17
|
+
# Offense count: 1
|
18
|
+
# Configuration parameters: Include.
|
19
|
+
# Include: **/*.gemspec
|
20
|
+
Gemspec/RequiredRubyVersion:
|
21
|
+
Exclude:
|
22
|
+
- 'sequel-rails.gemspec'
|
23
|
+
|
24
|
+
# Offense count: 1
|
25
|
+
# This cop supports safe auto-correction (--auto-correct).
|
26
|
+
Layout/ElseAlignment:
|
27
|
+
Exclude:
|
28
|
+
- 'spec/integration/sessions_controller_spec.rb'
|
29
|
+
|
30
|
+
# Offense count: 20
|
31
|
+
# This cop supports safe auto-correction (--auto-correct).
|
32
|
+
Layout/EmptyLineAfterGuardClause:
|
33
|
+
Exclude:
|
34
|
+
- 'lib/generators/sequel.rb'
|
35
|
+
- 'lib/generators/sequel/model/model_generator.rb'
|
36
|
+
- 'lib/sequel_rails/db_config.rb'
|
37
|
+
- 'lib/sequel_rails/migrations.rb'
|
38
|
+
- 'lib/sequel_rails/railties/database.rake'
|
39
|
+
- 'lib/sequel_rails/sequel/plugins/rails_extensions.rb'
|
40
|
+
- 'lib/sequel_rails/storage.rb'
|
41
|
+
- 'lib/sequel_rails/storage/abstract.rb'
|
42
|
+
- 'lib/sequel_rails/storage/jdbc.rb'
|
43
|
+
- 'lib/sequel_rails/storage/sqlite.rb'
|
44
|
+
|
45
|
+
# Offense count: 1
|
46
|
+
# This cop supports safe auto-correction (--auto-correct).
|
47
|
+
# Configuration parameters: EnforcedStyle.
|
48
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
49
|
+
Layout/EmptyLinesAroundClassBody:
|
50
|
+
Exclude:
|
51
|
+
- 'lib/sequel_rails/sequel/database/active_support_notification.rb'
|
52
|
+
|
53
|
+
# Offense count: 1
|
54
|
+
# This cop supports safe auto-correction (--auto-correct).
|
55
|
+
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
56
|
+
Exclude:
|
57
|
+
- 'Rakefile'
|
58
|
+
|
59
|
+
# Offense count: 1
|
60
|
+
# This cop supports safe auto-correction (--auto-correct).
|
61
|
+
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
62
|
+
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
63
|
+
Layout/EndAlignment:
|
64
|
+
Exclude:
|
65
|
+
- 'spec/integration/sessions_controller_spec.rb'
|
66
|
+
|
67
|
+
# Offense count: 1
|
68
|
+
# This cop supports safe auto-correction (--auto-correct).
|
69
|
+
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
70
|
+
# SupportedHashRocketStyles: key, separator, table
|
71
|
+
# SupportedColonStyles: key, separator, table
|
72
|
+
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
73
|
+
Layout/HashAlignment:
|
74
|
+
Exclude:
|
75
|
+
- 'Rakefile'
|
76
|
+
|
77
|
+
# Offense count: 1
|
78
|
+
# This cop supports safe auto-correction (--auto-correct).
|
79
|
+
# Configuration parameters: Width, IgnoredPatterns.
|
80
|
+
Layout/IndentationWidth:
|
81
|
+
Exclude:
|
82
|
+
- 'spec/integration/sessions_controller_spec.rb'
|
83
|
+
|
84
|
+
# Offense count: 8
|
85
|
+
# This cop supports safe auto-correction (--auto-correct).
|
86
|
+
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
87
|
+
Layout/LeadingCommentSpace:
|
88
|
+
Exclude:
|
89
|
+
- 'lib/generators/sequel.rb'
|
90
|
+
- 'lib/generators/sequel/migration/migration_generator.rb'
|
91
|
+
- 'lib/generators/sequel/session_migration/session_migration_generator.rb'
|
92
|
+
- 'lib/sequel_rails/railties/i18n_support.rb'
|
93
|
+
|
94
|
+
# Offense count: 1
|
95
|
+
# This cop supports safe auto-correction (--auto-correct).
|
96
|
+
# Configuration parameters: EnforcedStyle.
|
97
|
+
# SupportedStyles: space, no_space
|
98
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
99
|
+
Exclude:
|
100
|
+
- 'lib/sequel_rails/sequel/database/active_support_notification.rb'
|
101
|
+
|
102
|
+
# Offense count: 1
|
103
|
+
# This cop supports safe auto-correction (--auto-correct).
|
104
|
+
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
105
|
+
# SupportedStylesForExponentOperator: space, no_space
|
106
|
+
Layout/SpaceAroundOperators:
|
107
|
+
Exclude:
|
108
|
+
- 'spec/lib/sequel_rails/railtie_spec.rb'
|
109
|
+
|
110
|
+
# Offense count: 1
|
111
|
+
# This cop supports safe auto-correction (--auto-correct).
|
112
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
113
|
+
# SupportedStyles: space, no_space
|
114
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
115
|
+
Layout/SpaceBeforeBlockBraces:
|
116
|
+
Exclude:
|
117
|
+
- 'spec/lib/sequel_rails/configuration_spec.rb'
|
118
|
+
|
119
|
+
# Offense count: 6
|
120
|
+
# This cop supports safe auto-correction (--auto-correct).
|
121
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
122
|
+
# SupportedStyles: space, no_space, compact
|
123
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
124
|
+
Layout/SpaceInsideHashLiteralBraces:
|
125
|
+
Exclude:
|
126
|
+
- 'spec/integration/sessions_controller_spec.rb'
|
127
|
+
|
128
|
+
# Offense count: 2
|
129
|
+
# This cop supports safe auto-correction (--auto-correct).
|
130
|
+
Layout/SpaceInsidePercentLiteralDelimiters:
|
131
|
+
Exclude:
|
132
|
+
- 'lib/sequel_rails/storage.rb'
|
133
|
+
|
134
|
+
# Offense count: 11
|
135
|
+
# Configuration parameters: IgnoredMethods.
|
136
|
+
Lint/AmbiguousBlockAssociation:
|
137
|
+
Exclude:
|
138
|
+
- 'spec/lib/generators/sequel/migration_spec.rb'
|
139
|
+
- 'spec/lib/generators/sequel/session_migration_spec.rb'
|
140
|
+
- 'spec/lib/sequel_rails/railties/database_rake_spec.rb'
|
141
|
+
|
142
|
+
# Offense count: 1
|
143
|
+
Lint/MissingSuper:
|
144
|
+
Exclude:
|
145
|
+
- 'lib/sequel_rails/db_config.rb'
|
146
|
+
|
147
|
+
# Offense count: 1
|
148
|
+
# This cop supports unsafe auto-correction (--auto-correct-all).
|
149
|
+
Lint/NonDeterministicRequireOrder:
|
150
|
+
Exclude:
|
151
|
+
- 'spec/spec_helper.rb'
|
152
|
+
|
153
|
+
# Offense count: 3
|
154
|
+
# This cop supports safe auto-correction (--auto-correct).
|
155
|
+
Lint/SendWithMixinArgument:
|
156
|
+
Exclude:
|
157
|
+
- 'lib/sequel_rails/railtie.rb'
|
158
|
+
|
159
|
+
# Offense count: 1
|
160
|
+
# This cop supports safe auto-correction (--auto-correct).
|
161
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
162
|
+
Lint/UnusedMethodArgument:
|
163
|
+
Exclude:
|
164
|
+
- 'lib/action_dispatch/middleware/session/sequel_store.rb'
|
165
|
+
|
166
|
+
# Offense count: 1
|
167
|
+
Lint/UselessAssignment:
|
168
|
+
Exclude:
|
169
|
+
- 'lib/sequel_rails/migrations.rb'
|
170
|
+
|
171
|
+
# Offense count: 8
|
172
|
+
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
173
|
+
Metrics/AbcSize:
|
174
|
+
Max: 29
|
175
|
+
|
176
|
+
# Offense count: 41
|
177
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
178
|
+
# IgnoredMethods: refine
|
179
|
+
Metrics/BlockLength:
|
180
|
+
Max: 381
|
181
|
+
|
182
|
+
# Offense count: 1
|
183
|
+
# Configuration parameters: CountComments, CountAsOne.
|
184
|
+
Metrics/ClassLength:
|
185
|
+
Max: 139
|
186
|
+
|
187
|
+
# Offense count: 3
|
188
|
+
# Configuration parameters: IgnoredMethods.
|
189
|
+
Metrics/CyclomaticComplexity:
|
190
|
+
Max: 9
|
191
|
+
|
192
|
+
# Offense count: 15
|
193
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
194
|
+
Metrics/MethodLength:
|
195
|
+
Max: 22
|
196
|
+
|
197
|
+
# Offense count: 2
|
198
|
+
# Configuration parameters: IgnoredMethods.
|
199
|
+
Metrics/PerceivedComplexity:
|
200
|
+
Max: 9
|
201
|
+
|
202
|
+
# Offense count: 2
|
203
|
+
# This cop supports safe auto-correction (--auto-correct).
|
204
|
+
Migration/DepartmentName:
|
205
|
+
Exclude:
|
206
|
+
- 'spec/helpers/io.rb'
|
207
|
+
- 'spec/lib/sequel_rails/railties/log_subscriber_spec.rb'
|
208
|
+
|
209
|
+
# Offense count: 1
|
210
|
+
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
211
|
+
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
|
212
|
+
# 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
|
213
|
+
Naming/FileName:
|
214
|
+
Exclude:
|
215
|
+
- 'lib/sequel-rails.rb'
|
216
|
+
|
217
|
+
# Offense count: 2
|
218
|
+
# Configuration parameters: ForbiddenDelimiters.
|
219
|
+
# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
220
|
+
Naming/HeredocDelimiterNaming:
|
221
|
+
Exclude:
|
222
|
+
- 'spec/lib/sequel_rails/railties/database_rake_spec.rb'
|
223
|
+
|
224
|
+
# Offense count: 2
|
225
|
+
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
226
|
+
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
227
|
+
Naming/MemoizedInstanceVariableName:
|
228
|
+
Exclude:
|
229
|
+
- 'lib/generators/sequel.rb'
|
230
|
+
|
231
|
+
# Offense count: 1
|
232
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
233
|
+
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
|
234
|
+
Naming/MethodParameterName:
|
235
|
+
Exclude:
|
236
|
+
- 'lib/sequel_rails/db_config.rb'
|
237
|
+
|
238
|
+
# Offense count: 2
|
239
|
+
# This cop supports safe auto-correction (--auto-correct).
|
240
|
+
# Configuration parameters: EnforcedStyle.
|
241
|
+
# SupportedStyles: prefer_alias, prefer_alias_method
|
242
|
+
Style/Alias:
|
243
|
+
Exclude:
|
244
|
+
- 'lib/sequel_rails/migrations.rb'
|
245
|
+
|
246
|
+
# Offense count: 1
|
247
|
+
# This cop supports unsafe auto-correction (--auto-correct-all).
|
248
|
+
Style/CaseLikeIf:
|
249
|
+
Exclude:
|
250
|
+
- 'lib/generators/sequel/migration/migration_generator.rb'
|
251
|
+
|
252
|
+
# Offense count: 1
|
253
|
+
Style/ClassVars:
|
254
|
+
Exclude:
|
255
|
+
- 'lib/action_dispatch/middleware/session/sequel_store.rb'
|
256
|
+
|
257
|
+
# Offense count: 1
|
258
|
+
# This cop supports safe auto-correction (--auto-correct).
|
259
|
+
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
260
|
+
# SupportedStyles: assign_to_condition, assign_inside_condition
|
261
|
+
Style/ConditionalAssignment:
|
262
|
+
Exclude:
|
263
|
+
- 'lib/sequel_rails/storage/abstract.rb'
|
264
|
+
|
265
|
+
# Offense count: 24
|
266
|
+
# Configuration parameters: AllowedConstants.
|
267
|
+
Style/Documentation:
|
268
|
+
Enabled: false
|
269
|
+
|
270
|
+
# Offense count: 2
|
271
|
+
# This cop supports safe auto-correction (--auto-correct).
|
272
|
+
# Configuration parameters: EnforcedStyle.
|
273
|
+
# SupportedStyles: allowed_in_returns, forbidden
|
274
|
+
Style/DoubleNegation:
|
275
|
+
Exclude:
|
276
|
+
- 'lib/sequel_rails/migrations.rb'
|
277
|
+
|
278
|
+
# Offense count: 1
|
279
|
+
# This cop supports safe auto-correction (--auto-correct).
|
280
|
+
Style/EachWithObject:
|
281
|
+
Exclude:
|
282
|
+
- 'lib/sequel_rails/configuration.rb'
|
283
|
+
|
284
|
+
# Offense count: 1
|
285
|
+
# This cop supports safe auto-correction (--auto-correct).
|
286
|
+
Style/Encoding:
|
287
|
+
Exclude:
|
288
|
+
- 'sequel-rails.gemspec'
|
289
|
+
|
290
|
+
# Offense count: 3
|
291
|
+
# This cop supports safe auto-correction (--auto-correct).
|
292
|
+
Style/ExpandPathArguments:
|
293
|
+
Exclude:
|
294
|
+
- 'sequel-rails.gemspec'
|
295
|
+
- 'spec/lib/generators/sequel/migration_spec.rb'
|
296
|
+
- 'spec/lib/generators/sequel/session_migration_spec.rb'
|
297
|
+
|
298
|
+
# Offense count: 2
|
299
|
+
# This cop supports safe auto-correction (--auto-correct).
|
300
|
+
Style/ExplicitBlockArgument:
|
301
|
+
Exclude:
|
302
|
+
- 'lib/action_dispatch/middleware/session/sequel_store.rb'
|
303
|
+
- 'lib/sequel_rails/sequel/database/active_support_notification.rb'
|
304
|
+
|
305
|
+
# Offense count: 2
|
306
|
+
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, IgnoredMethods.
|
307
|
+
# SupportedStyles: annotated, template, unannotated
|
308
|
+
Style/FormatStringToken:
|
309
|
+
EnforcedStyle: unannotated
|
310
|
+
|
311
|
+
# Offense count: 56
|
312
|
+
# This cop supports safe auto-correction (--auto-correct).
|
313
|
+
# Configuration parameters: EnforcedStyle.
|
314
|
+
# SupportedStyles: always, always_true, never
|
315
|
+
Style/FrozenStringLiteralComment:
|
316
|
+
Enabled: false
|
317
|
+
|
318
|
+
# Offense count: 2
|
319
|
+
# Configuration parameters: MinBodyLength.
|
320
|
+
Style/GuardClause:
|
321
|
+
Exclude:
|
322
|
+
- 'lib/sequel_rails/storage/jdbc.rb'
|
323
|
+
|
324
|
+
# Offense count: 4
|
325
|
+
# This cop supports unsafe auto-correction (--auto-correct-all).
|
326
|
+
# Configuration parameters: AllowedReceivers.
|
327
|
+
Style/HashEachMethods:
|
328
|
+
Exclude:
|
329
|
+
- 'spec/lib/sequel_rails/configuration_spec.rb'
|
330
|
+
- 'spec/lib/sequel_rails/storage_spec.rb'
|
331
|
+
|
332
|
+
# Offense count: 22
|
333
|
+
# This cop supports safe auto-correction (--auto-correct).
|
334
|
+
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
335
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
336
|
+
# SupportedShorthandSyntax: always, never, either
|
337
|
+
Style/HashSyntax:
|
338
|
+
Exclude:
|
339
|
+
- 'lib/sequel_rails/migrations.rb'
|
340
|
+
- 'lib/sequel_rails/railties/database.rake'
|
341
|
+
- 'spec/integration/sessions_controller_spec.rb'
|
342
|
+
- 'spec/lib/sequel_rails/configuration_spec.rb'
|
343
|
+
- 'spec/lib/sequel_rails/migrations_spec.rb'
|
344
|
+
- 'spec/lib/sequel_rails/railties/database_rake_spec.rb'
|
345
|
+
|
346
|
+
# Offense count: 4
|
347
|
+
# This cop supports safe auto-correction (--auto-correct).
|
348
|
+
Style/IfUnlessModifier:
|
349
|
+
Exclude:
|
350
|
+
- 'lib/sequel_rails/railties/database.rake'
|
351
|
+
- 'lib/sequel_rails/storage.rb'
|
352
|
+
|
353
|
+
# Offense count: 1
|
354
|
+
# This cop supports safe auto-correction (--auto-correct).
|
355
|
+
Style/MultilineIfModifier:
|
356
|
+
Exclude:
|
357
|
+
- 'Rakefile'
|
358
|
+
|
359
|
+
# Offense count: 2
|
360
|
+
# This cop supports unsafe auto-correction (--auto-correct-all).
|
361
|
+
# Configuration parameters: EnforcedStyle, IgnoredMethods.
|
362
|
+
# SupportedStyles: predicate, comparison
|
363
|
+
Style/NumericPredicate:
|
364
|
+
Exclude:
|
365
|
+
- 'spec/**/*'
|
366
|
+
- 'lib/sequel_rails/storage/abstract.rb'
|
367
|
+
|
368
|
+
# Offense count: 2
|
369
|
+
# This cop supports safe auto-correction (--auto-correct).
|
370
|
+
Style/ParallelAssignment:
|
371
|
+
Exclude:
|
372
|
+
- 'lib/sequel_rails/railties/database.rake'
|
373
|
+
- 'spec/lib/sequel_rails/configuration_spec.rb'
|
374
|
+
|
375
|
+
# Offense count: 11
|
376
|
+
# This cop supports safe auto-correction (--auto-correct).
|
377
|
+
# Configuration parameters: PreferredDelimiters.
|
378
|
+
Style/PercentLiteralDelimiters:
|
379
|
+
Exclude:
|
380
|
+
- 'Rakefile'
|
381
|
+
- 'lib/sequel_rails/db_config.rb'
|
382
|
+
- 'lib/sequel_rails/railties/database.rake'
|
383
|
+
- 'lib/sequel_rails/storage.rb'
|
384
|
+
- 'spec/lib/generators/sequel/migration_spec.rb'
|
385
|
+
- 'spec/lib/sequel_rails/configuration_spec.rb'
|
386
|
+
- 'spec/lib/sequel_rails/db_config_spec.rb'
|
387
|
+
- 'spec/spec_helper.rb'
|
388
|
+
|
389
|
+
# Offense count: 1
|
390
|
+
# This cop supports safe auto-correction (--auto-correct).
|
391
|
+
# Configuration parameters: EnforcedStyle, AllowedCompactTypes.
|
392
|
+
# SupportedStyles: compact, exploded
|
393
|
+
Style/RaiseArgs:
|
394
|
+
Exclude:
|
395
|
+
- 'lib/generators/sequel/migration/migration_generator.rb'
|
396
|
+
|
397
|
+
# Offense count: 2
|
398
|
+
# This cop supports safe auto-correction (--auto-correct).
|
399
|
+
Style/RedundantBegin:
|
400
|
+
Exclude:
|
401
|
+
- 'spec/lib/sequel_rails/railties/database_rake_spec.rb'
|
402
|
+
|
403
|
+
# Offense count: 1
|
404
|
+
# This cop supports unsafe auto-correction (--auto-correct-all).
|
405
|
+
# Configuration parameters: SafeForConstants.
|
406
|
+
Style/RedundantFetchBlock:
|
407
|
+
Exclude:
|
408
|
+
- 'lib/sequel_rails/railties/database.rake'
|
409
|
+
|
410
|
+
# Offense count: 1
|
411
|
+
# This cop supports safe auto-correction (--auto-correct).
|
412
|
+
Style/RedundantFileExtensionInRequire:
|
413
|
+
Exclude:
|
414
|
+
- 'lib/sequel_rails/db_config.rb'
|
415
|
+
|
416
|
+
# Offense count: 1
|
417
|
+
# This cop supports safe auto-correction (--auto-correct).
|
418
|
+
Style/RedundantRegexpEscape:
|
419
|
+
Exclude:
|
420
|
+
- 'lib/sequel_rails/storage/jdbc.rb'
|
421
|
+
|
422
|
+
# Offense count: 1
|
423
|
+
# This cop supports safe auto-correction (--auto-correct).
|
424
|
+
Style/RedundantSelf:
|
425
|
+
Exclude:
|
426
|
+
- 'lib/sequel_rails/storage.rb'
|
427
|
+
|
428
|
+
# Offense count: 1
|
429
|
+
# This cop supports safe auto-correction (--auto-correct).
|
430
|
+
# Configuration parameters: EnforcedStyle.
|
431
|
+
# SupportedStyles: implicit, explicit
|
432
|
+
Style/RescueStandardError:
|
433
|
+
Exclude:
|
434
|
+
- 'lib/sequel_rails/sequel/database/active_support_notification.rb'
|
435
|
+
|
436
|
+
# Offense count: 2
|
437
|
+
# This cop supports unsafe auto-correction (--auto-correct-all).
|
438
|
+
Style/SlicingWithRange:
|
439
|
+
Exclude:
|
440
|
+
- 'lib/sequel_rails/storage.rb'
|
441
|
+
- 'lib/sequel_rails/storage/abstract.rb'
|
442
|
+
|
443
|
+
# Offense count: 2
|
444
|
+
# This cop supports unsafe auto-correction (--auto-correct-all).
|
445
|
+
# Configuration parameters: Mode.
|
446
|
+
Style/StringConcatenation:
|
447
|
+
Exclude:
|
448
|
+
- 'lib/sequel_rails/db_config.rb'
|
449
|
+
- 'lib/sequel_rails/railties/log_subscriber.rb'
|
450
|
+
|
451
|
+
# Offense count: 1
|
452
|
+
# This cop supports safe auto-correction (--auto-correct).
|
453
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
454
|
+
# SupportedStyles: single_quotes, double_quotes
|
455
|
+
Style/StringLiterals:
|
456
|
+
Exclude:
|
457
|
+
- 'lib/sequel_rails/railties/database.rake'
|
458
|
+
|
459
|
+
# Offense count: 3
|
460
|
+
# This cop supports safe auto-correction (--auto-correct).
|
461
|
+
# Configuration parameters: MinSize.
|
462
|
+
# SupportedStyles: percent, brackets
|
463
|
+
Style/SymbolArray:
|
464
|
+
EnforcedStyle: brackets
|
465
|
+
|
466
|
+
# Offense count: 16
|
467
|
+
# This cop supports safe auto-correction (--auto-correct).
|
468
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
469
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
470
|
+
Style/TrailingCommaInHashLiteral:
|
471
|
+
Exclude:
|
472
|
+
- 'Rakefile'
|
473
|
+
- 'spec/lib/sequel_rails/configuration_spec.rb'
|
474
|
+
- 'spec/lib/sequel_rails/storage/mysql_spec.rb'
|
475
|
+
- 'spec/lib/sequel_rails/storage/postgres_spec.rb'
|
476
|
+
- 'spec/lib/sequel_rails/storage/sqlite_spec.rb'
|
477
|
+
- 'spec/lib/sequel_rails/storage_spec.rb'
|
478
|
+
|
479
|
+
# Offense count: 1
|
480
|
+
# This cop supports unsafe auto-correction (--auto-correct-all).
|
481
|
+
Style/ZeroLengthPredicate:
|
482
|
+
Exclude:
|
483
|
+
- 'lib/sequel_rails/storage/abstract.rb'
|
484
|
+
|
485
|
+
# Offense count: 15
|
486
|
+
# This cop supports safe auto-correction (--auto-correct).
|
487
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
488
|
+
# URISchemes: http, https
|
489
|
+
Layout/LineLength:
|
490
|
+
Max: 297
|
data/Gemfile
CHANGED
data/History.md
CHANGED
@@ -1,6 +1,35 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
1.2.1 (2023-10-18)
|
2
|
+
==================
|
3
|
+
|
4
|
+
* Fix Rails 7.1 beta1 deprecation warning in log subscriber (@rwojnarowski)
|
5
|
+
[#196](https://github.com/TalentBox/sequel-rails/pull/196)
|
6
|
+
* Improve documentation about loading `Sequel` extensions (@elbouillon)
|
7
|
+
[#192](https://github.com/TalentBox/sequel-rails/pull/192)
|
8
|
+
* Fix `rails db:create`/`rails db:create:all` (@tycooon)
|
9
|
+
[#190](https://github.com/TalentBox/sequel-rails/pull/190)
|
10
|
+
* Update github pages (Stefan Vermaas)
|
11
|
+
[#189](https://github.com/TalentBox/sequel-rails/pull/189)
|
12
|
+
|
13
|
+
1.2.0 (2022-04-15)
|
14
|
+
==================
|
15
|
+
|
16
|
+
* Migrate CI to Github actions (Jonathan Tron)
|
17
|
+
* Add a new sequel-rails hook: `after_new_connection` which
|
18
|
+
sets `Sequel`'s `after_connect`, and is triggered for every
|
19
|
+
new connection (@kamilpavlicko)
|
20
|
+
[#186](https://github.com/TalentBox/sequel-rails/pull/186)
|
21
|
+
* Database drop fix for Sequel (>= 5.38.0) (@AnotherRegularDude)
|
22
|
+
[#184](https://github.com/TalentBox/sequel-rails/pull/184)
|
23
|
+
* Fix for simplified Spring integration (Janko Marohnić, Adrián Mugnolo)
|
24
|
+
[#181](https://github.com/TalentBox/sequel-rails/pull/181)
|
25
|
+
* Simplify Spring integration (Janko Marohnić)
|
26
|
+
[#180](https://github.com/TalentBox/sequel-rails/pull/180)
|
27
|
+
|
28
|
+
1.1.1 (2020-06-08)
|
29
|
+
==================
|
3
30
|
|
31
|
+
* When using SQL schema dump in MySQL, don't output the generation date in order
|
32
|
+
to have the same output if nothing changed. (Joseph Halter)
|
4
33
|
* Fix readme formatting (Ben Koshy)
|
5
34
|
[#175](https://github.com/TalentBox/sequel-rails/pull/175)
|
6
35
|
* Add frozen_string_literal to migration template (Semyon Pupkov)
|