sequel-rails 0.9.14 → 0.9.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +15 -6
- data/Gemfile +3 -1
- data/History.md +10 -0
- data/README.md +16 -10
- data/Rakefile +5 -4
- data/ci/rails-3.2.gemfile +5 -2
- data/ci/rails-4.0.gemfile +12 -2
- data/ci/rails-4.1.gemfile +12 -2
- data/ci/rails-4.2.gemfile +12 -2
- data/ci/rails-5.0.gemfile +5 -3
- data/lib/sequel_rails/railtie.rb +2 -1
- data/lib/sequel_rails/railties/database.rake +1 -1
- data/lib/sequel_rails/version.rb +1 -1
- data/sequel-rails.gemspec +1 -1
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed14c702e7214388cd2e710194e042af79c94500
|
4
|
+
data.tar.gz: 5d24c306c8b3bf9a04fecfb3a5b90b6c6d748e12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e75087a06063ced626b4175bd01d34de92cc1554f07988885a42e66e1b1345a4dc1660dfa94498637cfff1ff4bd8dcbf9062d5a525ea8898548215028eb4650
|
7
|
+
data.tar.gz: ffc42b072985b7aede6d41754a7c6f3f21855e57edba66ba82b34db70714d04472e20ce3e8f85a3cc5273ee1b6020e241fe0359f6e5f84f0a6988903170dec68
|
data/.travis.yml
CHANGED
@@ -7,12 +7,13 @@ rvm:
|
|
7
7
|
- 1.9.3
|
8
8
|
- 2.0.0
|
9
9
|
- 2.1.10
|
10
|
-
- 2.2.
|
11
|
-
- 2.3.
|
10
|
+
- 2.2.6
|
11
|
+
- 2.3.3
|
12
|
+
- 2.4.0
|
12
13
|
- jruby-18mode
|
13
14
|
- jruby-19mode
|
14
15
|
- jruby-9.0.5.0
|
15
|
-
- jruby-9.1.
|
16
|
+
- jruby-9.1.8.0
|
16
17
|
before_script:
|
17
18
|
- mysql -e 'create database sequel_rails_test;'
|
18
19
|
- mysql -e 'create database sequel_rails_test_mysql2;'
|
@@ -27,14 +28,22 @@ gemfile:
|
|
27
28
|
- ci/rails-4.2.gemfile
|
28
29
|
- ci/rails-5.0.gemfile
|
29
30
|
matrix:
|
31
|
+
allow_failures:
|
32
|
+
- rvm: 2.4.0
|
33
|
+
- rvm: jruby-9.0.5.0
|
34
|
+
gemfile: ci/rails-5.0.gemfile
|
35
|
+
- rvm: jruby-9.1.8.0
|
36
|
+
gemfile: ci/rails-5.0.gemfile
|
30
37
|
exclude:
|
31
|
-
- rvm: 2.2.
|
38
|
+
- rvm: 2.2.6
|
39
|
+
gemfile: ci/rails-3.2.gemfile
|
40
|
+
- rvm: 2.3.3
|
32
41
|
gemfile: ci/rails-3.2.gemfile
|
33
|
-
- rvm: 2.
|
42
|
+
- rvm: 2.4.0
|
34
43
|
gemfile: ci/rails-3.2.gemfile
|
35
44
|
- rvm: jruby-9.0.5.0
|
36
45
|
gemfile: ci/rails-3.2.gemfile
|
37
|
-
- rvm: jruby-9.1.
|
46
|
+
- rvm: jruby-9.1.8.0
|
38
47
|
gemfile: ci/rails-3.2.gemfile
|
39
48
|
- rvm: ree
|
40
49
|
gemfile: ci/rails-4.0.gemfile
|
data/Gemfile
CHANGED
data/History.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
0.9.15 (2017-04-11)
|
2
|
+
===================
|
3
|
+
|
4
|
+
** This will be the last version to support Ruby < 2.2 **
|
5
|
+
|
6
|
+
* Remove `alias_method_chain` usage for Rails 5.1 compatibility (Mohammad Satrio)
|
7
|
+
[#132](https://github.com/TalentBox/sequel-rails/issues/132)
|
8
|
+
* Fix string interpolation syntax in error message for db:migrate task (Henre Botha)
|
9
|
+
[#133](https://github.com/TalentBox/sequel-rails/issues/133)
|
10
|
+
|
1
11
|
0.9.14 (2016-08-15)
|
2
12
|
===================
|
3
13
|
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
This gem provides the railtie that allows
|
12
12
|
[sequel](http://github.com/jeremyevans/sequel) to hook into
|
13
|
-
[Rails (3.x and
|
13
|
+
[Rails (3.x, 4.x and 5.x)](http://github.com/rails/rails) and thus behave like a
|
14
14
|
rails framework component. Just like activerecord does in rails,
|
15
15
|
[sequel-rails](http://github.com/talentbox/sequel-rails) uses the railtie API to
|
16
16
|
hook into rails. The two are actually hooked into rails almost identically.
|
@@ -28,7 +28,8 @@ Since January 2013, we've become the official maintainers of the gem after
|
|
28
28
|
Using sequel-rails
|
29
29
|
==================
|
30
30
|
|
31
|
-
Using sequel with Rails (3.x or
|
31
|
+
Using sequel with Rails (3.x, 4.x or 5.x) requires a couple minor
|
32
|
+
changes.
|
32
33
|
|
33
34
|
First, add the following to your Gemfile (after the `Rails` lines):
|
34
35
|
|
@@ -51,32 +52,35 @@ The top of your `config/application.rb` will probably look something like:
|
|
51
52
|
# require 'rails/all'
|
52
53
|
|
53
54
|
# Instead of 'rails/all', require these:
|
54
|
-
require "
|
55
|
+
require "active_model/railtie"
|
56
|
+
require "active_job/railtie"
|
55
57
|
# require "active_record/railtie"
|
58
|
+
require "action_controller/railtie"
|
56
59
|
require "action_mailer/railtie"
|
60
|
+
require "action_view/railtie"
|
61
|
+
require "action_cable/engine"
|
57
62
|
require "sprockets/railtie"
|
63
|
+
require "rails/test_unit/railtie
|
58
64
|
```
|
59
65
|
|
60
66
|
Then you need to get rid of `ActiveRecord` configurations, that is if you
|
61
67
|
didn't generate the new app with `-O` (or the long form `--skip-active-record`):
|
62
68
|
|
63
|
-
`
|
64
|
-
|
65
|
-
For example in a fresh `Rails 4.2.4`, you would need to remove those lines:
|
69
|
+
For example in a fresh `Rails 5.0.0.1`, you would need to remove those lines:
|
66
70
|
|
67
71
|
```
|
68
|
-
config/
|
69
|
-
line
|
72
|
+
config/initializers/new_framework_defaults.rb
|
73
|
+
line 18: Rails.application.config.active_record.belongs_to_required_by_default = true
|
70
74
|
```
|
71
75
|
|
72
76
|
```
|
73
77
|
config/environments/development.rb
|
74
|
-
line
|
78
|
+
line 38: config.active_record.migration_error = :page_load
|
75
79
|
```
|
76
80
|
|
77
81
|
```
|
78
82
|
config/environments/production.rb
|
79
|
-
line
|
83
|
+
line 85: config.active_record.dump_schema_after_migration = false
|
80
84
|
```
|
81
85
|
|
82
86
|
Starting with sequel-rails 0.4.0.pre3 we don't change default Sequel behaviour
|
@@ -392,6 +396,8 @@ Improvements have been made by those awesome contributors:
|
|
392
396
|
* Lukas Fittl (@lfittl)
|
393
397
|
* Jordan Owens (@jkowens)
|
394
398
|
* Pablo Herrero (@pabloh)
|
399
|
+
* Henre Botha (@henrebotha)
|
400
|
+
* Mohammad Satrio (@tyok)
|
395
401
|
|
396
402
|
Credits
|
397
403
|
=======
|
data/Rakefile
CHANGED
@@ -30,14 +30,15 @@ begin
|
|
30
30
|
|
31
31
|
configs = {
|
32
32
|
'postgresql' => { 'TEST_ENCODING' => 'unicode' },
|
33
|
-
'mysql' => { 'TEST_ENCODING' => 'utf8', 'TEST_USERNAME' => 'root' },
|
34
33
|
'sqlite3' => { 'TEST_DATABASE' => 'db/database.sqlite3' },
|
35
34
|
}
|
36
35
|
|
37
36
|
configs.merge!(
|
38
|
-
'
|
39
|
-
|
40
|
-
|
37
|
+
'mysql' => { 'TEST_ENCODING' => 'utf8', 'TEST_USERNAME' => 'root' }
|
38
|
+
) if RUBY_VERSION < '2.4'
|
39
|
+
|
40
|
+
configs.merge!(
|
41
|
+
'mysql2' => { 'TEST_ENCODING' => 'utf8', 'TEST_USERNAME' => 'root', 'TEST_DATABASE' => 'sequel_rails_test_mysql2' }
|
41
42
|
) unless SequelRails.jruby?
|
42
43
|
|
43
44
|
configs.each do |adapter, config|
|
data/ci/rails-3.2.gemfile
CHANGED
@@ -16,13 +16,16 @@ if RUBY_VERSION < '1.9'
|
|
16
16
|
gem 'rake', '< 11.0.0'
|
17
17
|
end
|
18
18
|
if RUBY_VERSION < '2.0'
|
19
|
-
gem
|
19
|
+
gem 'rack-cache', "< 1.3.0"
|
20
20
|
end
|
21
21
|
|
22
22
|
# MRI/Rubinius Adapter Dependencies
|
23
23
|
platform :ruby do
|
24
|
-
|
24
|
+
case
|
25
|
+
when RUBY_VERSION < '1.9'
|
25
26
|
gem 'pg', '~> 0.17.1'
|
27
|
+
when RUBY_VERSION < '2.0'
|
28
|
+
gem 'pg', '~> 0.18.4'
|
26
29
|
else
|
27
30
|
gem 'pg'
|
28
31
|
end
|
data/ci/rails-4.0.gemfile
CHANGED
@@ -8,10 +8,20 @@ gem 'sequel', "#{ENV['SEQUEL']}"
|
|
8
8
|
|
9
9
|
gem 'fakefs', '0.5.3', :require => 'fakefs/safe'
|
10
10
|
|
11
|
+
if RUBY_VERSION < '2.1'
|
12
|
+
gem 'nokogiri', '< 1.7.0'
|
13
|
+
end
|
14
|
+
|
11
15
|
# MRI/Rubinius Adapter Dependencies
|
12
16
|
platform :ruby do
|
13
|
-
|
14
|
-
|
17
|
+
if RUBY_VERSION < '2.0'
|
18
|
+
gem 'pg', '~> 0.18.4'
|
19
|
+
else
|
20
|
+
gem 'pg'
|
21
|
+
end
|
22
|
+
if RUBY_VERSION < '2.4'
|
23
|
+
gem 'mysql'
|
24
|
+
end
|
15
25
|
gem 'mysql2'
|
16
26
|
gem 'sqlite3'
|
17
27
|
end
|
data/ci/rails-4.1.gemfile
CHANGED
@@ -8,10 +8,20 @@ gem 'sequel', "#{ENV['SEQUEL']}"
|
|
8
8
|
|
9
9
|
gem 'fakefs', '0.5.3', :require => 'fakefs/safe'
|
10
10
|
|
11
|
+
if RUBY_VERSION < '2.1'
|
12
|
+
gem 'nokogiri', '< 1.7.0'
|
13
|
+
end
|
14
|
+
|
11
15
|
# MRI/Rubinius Adapter Dependencies
|
12
16
|
platform :ruby do
|
13
|
-
|
14
|
-
|
17
|
+
if RUBY_VERSION < '2.0'
|
18
|
+
gem 'pg', '~> 0.18.4'
|
19
|
+
else
|
20
|
+
gem 'pg'
|
21
|
+
end
|
22
|
+
if RUBY_VERSION < '2.4'
|
23
|
+
gem 'mysql'
|
24
|
+
end
|
15
25
|
gem 'mysql2'
|
16
26
|
gem 'sqlite3'
|
17
27
|
end
|
data/ci/rails-4.2.gemfile
CHANGED
@@ -8,10 +8,20 @@ gem 'sequel', "#{ENV['SEQUEL']}"
|
|
8
8
|
|
9
9
|
gem 'fakefs', '0.5.3', :require => 'fakefs/safe'
|
10
10
|
|
11
|
+
if RUBY_VERSION < '2.1'
|
12
|
+
gem 'nokogiri', '< 1.7.0'
|
13
|
+
end
|
14
|
+
|
11
15
|
# MRI/Rubinius Adapter Dependencies
|
12
16
|
platform :ruby do
|
13
|
-
|
14
|
-
|
17
|
+
if RUBY_VERSION < '2.0'
|
18
|
+
gem 'pg', '~> 0.18.4'
|
19
|
+
else
|
20
|
+
gem 'pg'
|
21
|
+
end
|
22
|
+
if RUBY_VERSION < '2.4'
|
23
|
+
gem 'mysql'
|
24
|
+
end
|
15
25
|
gem 'mysql2'
|
16
26
|
gem 'sqlite3'
|
17
27
|
end
|
data/ci/rails-5.0.gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'railties', '~> 5.0.0
|
4
|
-
gem 'activemodel', '~> 5.0.0
|
3
|
+
gem 'railties', '~> 5.0.0'
|
4
|
+
gem 'activemodel', '~> 5.0.0'
|
5
5
|
|
6
6
|
gemspec :path => '../'
|
7
7
|
|
@@ -12,7 +12,9 @@ gem 'fakefs', '0.5.3', :require => 'fakefs/safe'
|
|
12
12
|
# MRI/Rubinius Adapter Dependencies
|
13
13
|
platform :ruby do
|
14
14
|
gem 'pg'
|
15
|
-
|
15
|
+
if RUBY_VERSION < '2.4'
|
16
|
+
gem 'mysql'
|
17
|
+
end
|
16
18
|
gem 'mysql2'
|
17
19
|
gem 'sqlite3'
|
18
20
|
end
|
data/lib/sequel_rails/railtie.rb
CHANGED
@@ -75,7 +75,8 @@ module SequelRails
|
|
75
75
|
if defined?(::Spring::Application)
|
76
76
|
class ::Spring::Application # rubocop:disable Style/ClassAndModuleChildren
|
77
77
|
include ::SequelRails::SpringSupport
|
78
|
-
|
78
|
+
alias_method :disconnect_database_without_sequel, :disconnect_database
|
79
|
+
alias_method :disconnect_database, :disconnect_database_with_sequel
|
79
80
|
end
|
80
81
|
end
|
81
82
|
end
|
@@ -37,7 +37,7 @@ namespace sequel_rails_namespace do
|
|
37
37
|
load(file)
|
38
38
|
::Sequel::Migration.descendants.each { |m| m.apply(db_for_current_env, :up) }
|
39
39
|
else
|
40
|
-
abort
|
40
|
+
abort "#{file} doesn't exist yet. Run 'rake #{sequel_rails_namespace}:migrate' to create it, then try again."
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
data/lib/sequel_rails/version.rb
CHANGED
data/sequel-rails.gemspec
CHANGED
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
|
|
39
39
|
|
40
40
|
s.add_development_dependency 'combustion'
|
41
41
|
s.add_development_dependency 'generator_spec'
|
42
|
-
s.add_development_dependency 'rake', '>= 0.8.7'
|
42
|
+
s.add_development_dependency 'rake', '>= 0.8.7', '< 11.0'
|
43
43
|
s.add_development_dependency 'rspec', '~> 3.1'
|
44
44
|
s.add_development_dependency 'rspec-rails', '~> 3.1', '< 3.3'
|
45
45
|
s.add_development_dependency 'rubocop', '~> 0.33.0' unless RUBY_VERSION < '1.9.2'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brasten Sager (brasten)
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
@@ -108,6 +108,9 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 0.8.7
|
111
|
+
- - "<"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '11.0'
|
111
114
|
type: :development
|
112
115
|
prerelease: false
|
113
116
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -115,6 +118,9 @@ dependencies:
|
|
115
118
|
- - ">="
|
116
119
|
- !ruby/object:Gem::Version
|
117
120
|
version: 0.8.7
|
121
|
+
- - "<"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '11.0'
|
118
124
|
- !ruby/object:Gem::Dependency
|
119
125
|
name: rspec
|
120
126
|
requirement: !ruby/object:Gem::Requirement
|
@@ -299,7 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
299
305
|
version: '0'
|
300
306
|
requirements: []
|
301
307
|
rubyforge_project:
|
302
|
-
rubygems_version: 2.
|
308
|
+
rubygems_version: 2.6.8
|
303
309
|
signing_key:
|
304
310
|
specification_version: 4
|
305
311
|
summary: Use Sequel with Rails (3.x and 4.x)
|