sequel-rails 1.0.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- 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 +40 -0
- data/README.md +58 -11
- data/Rakefile +1 -4
- data/ci/{rails-5.0.gemfile → rails-5.2.gemfile} +5 -5
- data/ci/{rails-4.0.gemfile → rails-6.0.gemfile} +5 -4
- data/ci/{rails-4.1.gemfile → rails-6.1.gemfile} +5 -4
- data/ci/{rails-4.2.gemfile → rails-7.0.gemfile} +5 -4
- data/lib/action_dispatch/middleware/session/sequel_store.rb +21 -9
- data/lib/generators/sequel/migration/migration_generator.rb +1 -1
- data/lib/generators/sequel/migration/templates/migration.rb.erb +2 -0
- data/lib/generators/sequel/session_migration/session_migration_generator.rb +1 -1
- data/lib/sequel_rails/configuration.rb +5 -0
- data/lib/sequel_rails/db_config.rb +6 -2
- data/lib/sequel_rails/migrations.rb +16 -7
- data/lib/sequel_rails/railtie.rb +6 -9
- data/lib/sequel_rails/railties/database.rake +17 -0
- data/lib/sequel_rails/storage/abstract.rb +2 -0
- data/lib/sequel_rails/storage/mysql.rb +1 -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/generators/sequel/migration_spec.rb +9 -1
- data/spec/lib/generators/sequel/session_migration_spec.rb +1 -1
- data/spec/lib/sequel_rails/configuration_spec.rb +109 -10
- data/spec/lib/sequel_rails/migrations_spec.rb +27 -4
- data/spec/lib/sequel_rails/railtie_spec.rb +7 -3
- data/spec/lib/sequel_rails/railties/database_rake_spec.rb +42 -0
- data/spec/lib/sequel_rails/storage/mysql_spec.rb +1 -1
- 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 +46 -41
- data/.travis.yml +0 -37
- data/ci/rails-5.1.gemfile +0 -28
- data/lib/sequel_rails/railties/spring_support.rb +0 -14
- data/rubocop-todo.yml +0 -39
data/ci/rails-5.1.gemfile
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gem 'railties', '~> 5.1.4'
|
4
|
-
gem 'activemodel', '~> 5.1.4'
|
5
|
-
gem 'actionpack', '~> 5.1.4'
|
6
|
-
|
7
|
-
gemspec :path => '../'
|
8
|
-
|
9
|
-
gem 'sequel', "#{ENV['SEQUEL']}"
|
10
|
-
|
11
|
-
gem 'fakefs', '0.11.2', :require => 'fakefs/safe'
|
12
|
-
|
13
|
-
# MRI/Rubinius Adapter Dependencies
|
14
|
-
platform :ruby do
|
15
|
-
gem 'pg'
|
16
|
-
if RUBY_VERSION < '2.4'
|
17
|
-
gem 'mysql'
|
18
|
-
end
|
19
|
-
gem 'mysql2'
|
20
|
-
gem 'sqlite3'
|
21
|
-
end
|
22
|
-
|
23
|
-
# JRuby Adapter Dependencies
|
24
|
-
platform :jruby do
|
25
|
-
gem 'jdbc-sqlite3'
|
26
|
-
gem 'jdbc-mysql'
|
27
|
-
gem 'jdbc-postgres'
|
28
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
module SequelRails
|
2
|
-
module SpringSupport
|
3
|
-
def disconnect_database_with_sequel
|
4
|
-
Sequel::DATABASES.each(&:disconnect) if sequel_configured?
|
5
|
-
disconnect_database_without_sequel
|
6
|
-
end
|
7
|
-
|
8
|
-
private
|
9
|
-
|
10
|
-
def sequel_configured?
|
11
|
-
defined?(Sequel::DATABASES)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
data/rubocop-todo.yml
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
# This configuration was generated by `rubocop --auto-gen-config`.
|
2
|
-
# The point is for the user to remove these configuration records
|
3
|
-
# one by one as the offences are removed from the code base.
|
4
|
-
|
5
|
-
ConstantName:
|
6
|
-
Enabled: false
|
7
|
-
|
8
|
-
ClassVars:
|
9
|
-
Enabled: false
|
10
|
-
|
11
|
-
CyclomaticComplexity:
|
12
|
-
Enabled: false
|
13
|
-
|
14
|
-
Documentation:
|
15
|
-
Enabled: false
|
16
|
-
|
17
|
-
Encoding:
|
18
|
-
Enabled: false
|
19
|
-
|
20
|
-
LineLength:
|
21
|
-
Enabled: false
|
22
|
-
|
23
|
-
MethodLength:
|
24
|
-
Enabled: false
|
25
|
-
|
26
|
-
TrailingCommaInLiteral:
|
27
|
-
Enabled: false
|
28
|
-
|
29
|
-
TrailingCommaInArguments:
|
30
|
-
Enabled: false
|
31
|
-
|
32
|
-
Metrics/AbcSize:
|
33
|
-
Enabled: false
|
34
|
-
|
35
|
-
Metrics/ClassLength:
|
36
|
-
Enabled: false
|
37
|
-
|
38
|
-
Style/EachWithObject:
|
39
|
-
Enabled: false
|