sequel-rails 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ae909ba1a811f03330fa4fa5f66433fb725e48f878da92a62a3f3a0d31cfa75
4
- data.tar.gz: 2701e9e4c9d8389dbac1888edbc64db469ebddbd966f30af08c16317ebd2c0f0
3
+ metadata.gz: 3e4de4baed682df5845e262210a1f43c9725fca1d9ae42a6bf8be0d44f4f3bf4
4
+ data.tar.gz: 5b538275507eb1e89b0ff234bbc0af531ed4c27842272332c0c0a6c4c2ac6205
5
5
  SHA512:
6
- metadata.gz: d26336d4cf8376c3a08b6fcdf6fbbdecd4976cef3747f845bb1c022f7f3429140beb981ba2ae86ffed9754b0a063979386a0c765cf116f2aa4b8b587b14433bb
7
- data.tar.gz: c14f662a88af0d045327c13bf94bd16946865c65cb73539d328934b45fb7a7de6ef0ae92616a442fff99619d61d6380e9df1fdeef0fb1a742c4edbf5726d7d59
6
+ metadata.gz: d912dc8bfc827717f6fe86c02db19e8a91e88ab1d9c2d2dfe20a9214844c191ace257bd1e519ef1967d64041feae5eea28eaeeb8c02a3982556a21546c055ddf
7
+ data.tar.gz: acb42d9b693c2361b42ef1d29e5ebeb780288f039b5554a2fa491233617892b117b2020fe0a6bea676914beb1e9ddd9909bb8838ca9ec7a05e904288c782f70f
@@ -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
- inherit_from: rubocop-todo.yml
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
@@ -9,7 +9,6 @@ gem 'pry'
9
9
 
10
10
  # MRI/Rubinius Adapter Dependencies
11
11
  platform :ruby do
12
- gem 'mysql' if RUBY_VERSION < '2.4'
13
12
  gem 'mysql2'
14
13
  gem 'pg'
15
14
  gem 'sqlite3'
data/History.md CHANGED
@@ -1,6 +1,23 @@
1
- master (unreleased)
2
- ===================
1
+ 1.2.0 (2022-04-15)
2
+ ==================
3
+
4
+ * Migrate CI to Github actions (Jonathan Tron)
5
+ * Add a new sequel-rails hook: `after_new_connection` which
6
+ sets `Sequel`'s `after_connect`, and is triggered for every
7
+ new connection (@kamilpavlicko)
8
+ [#186](https://github.com/TalentBox/sequel-rails/pull/186)
9
+ * Database drop fix for Sequel (>= 5.38.0) (@AnotherRegularDude)
10
+ [#184](https://github.com/TalentBox/sequel-rails/pull/184)
11
+ * Fix for simplified Spring integration (Janko Marohnić, Adrián Mugnolo)
12
+ [#181](https://github.com/TalentBox/sequel-rails/pull/181)
13
+ * Simplify Spring integration (Janko Marohnić)
14
+ [#180](https://github.com/TalentBox/sequel-rails/pull/180)
15
+
16
+ 1.1.1 (2020-06-08)
17
+ ==================
3
18
 
19
+ * When using SQL schema dump in MySQL, don't output the generation date in order
20
+ to have the same output if nothing changed. (Joseph Halter)
4
21
  * Fix readme formatting (Ben Koshy)
5
22
  [#175](https://github.com/TalentBox/sequel-rails/pull/175)
6
23
  * Add frozen_string_literal to migration template (Semyon Pupkov)