edge_rider 0.3.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +28 -31
- data/CHANGELOG.md +18 -0
- data/{gemfiles/Gemfile.3.2.mysql2 → Gemfile.3.2.mysql2} +1 -1
- data/{gemfiles/Gemfile.3.2.mysql2.lock → Gemfile.3.2.mysql2.lock} +3 -3
- data/{gemfiles/Gemfile.4.2.mysql2 → Gemfile.4.2.mysql2} +1 -1
- data/{gemfiles/Gemfile.4.2.mysql2.lock → Gemfile.4.2.mysql2.lock} +3 -3
- data/{gemfiles/Gemfile.4.2.pg → Gemfile.4.2.pg} +1 -1
- data/{gemfiles/Gemfile.4.2.pg.lock → Gemfile.4.2.pg.lock} +3 -3
- data/{gemfiles/Gemfile.5.1.mysql2 → Gemfile.5.2.mysql2} +3 -2
- data/{gemfiles/Gemfile.5.1.mysql2.lock → Gemfile.5.2.mysql2.lock} +19 -17
- data/Gemfile.5.2.pg +16 -0
- data/{gemfiles/Gemfile.5.1.pg.lock → Gemfile.5.2.pg.lock} +19 -17
- data/{gemfiles/Gemfile.5.1.pg → Gemfile.6.0.pg} +2 -2
- data/Gemfile.6.0.pg.lock +64 -0
- data/README.md +21 -42
- data/Rakefile +1 -1
- data/lib/edge_rider.rb +0 -1
- data/lib/edge_rider/collect_column.rb +8 -15
- data/lib/edge_rider/origin_class.rb +2 -10
- data/lib/edge_rider/scoped.rb +1 -1
- data/lib/edge_rider/to_id_query.rb +1 -1
- data/lib/edge_rider/traverse_association.rb +2 -2
- data/lib/edge_rider/util.rb +8 -15
- data/lib/edge_rider/version.rb +1 -1
- data/spec/edge_rider/collect_column_spec.rb +21 -21
- data/spec/edge_rider/collect_ids_spec.rb +16 -16
- data/spec/edge_rider/origin_class_spec.rb +9 -9
- data/spec/edge_rider/preload_associations_spec.rb +3 -3
- data/spec/edge_rider/scoped_spec.rb +17 -19
- data/spec/edge_rider/to_id_query_spec.rb +12 -12
- data/spec/edge_rider/traverse_association_spec.rb +47 -53
- data/spec/support/database.rb +1 -1
- data/spec/support/models.rb +14 -18
- metadata +46 -69
- data/gemfiles/Gemfile.2.3.mysql2 +0 -16
- data/gemfiles/Gemfile.2.3.mysql2.lock +0 -37
- data/lib/edge_rider/to_sql.rb +0 -13
- data/spec/edge_rider/to_sql_spec.rb +0 -14
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: da871803b8cefee8834fbb9285c40ac1bb25c1e2
|
4
|
+
data.tar.gz: 28fb3aca2d1739751bb563bafb004beb03297914
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8cdca40731ba339f3ecf0f59ac64bc56590aa0b7c1fcbd61c595fb01bb43dbac29335282668599ad057a55b2212ce4f4a1ce0888c2fbdef68873bbfa60475944
|
7
|
+
data.tar.gz: d257f44a830fe8adab4ce8eb4e56f48b6b1f2b0f615e75aa98fc10e086bf511b9641c01b47714bca43d69ab00fca660249fefc3551a10cc37b605bb275642ee3
|
data/.travis.yml
CHANGED
@@ -1,50 +1,45 @@
|
|
1
1
|
language: ruby
|
2
2
|
|
3
3
|
rvm:
|
4
|
-
- '1.8.7'
|
5
|
-
- '2.1.8'
|
6
4
|
- '2.2.4'
|
7
5
|
- '2.3.1'
|
8
6
|
- '2.4.1'
|
7
|
+
- '2.5.3'
|
9
8
|
|
10
9
|
gemfile:
|
11
|
-
- '
|
12
|
-
- '
|
13
|
-
- '
|
14
|
-
- '
|
15
|
-
- '
|
16
|
-
- '
|
10
|
+
- 'Gemfile.3.2.mysql2'
|
11
|
+
- 'Gemfile.4.2.mysql2'
|
12
|
+
- 'Gemfile.4.2.pg'
|
13
|
+
- 'Gemfile.5.2.mysql2'
|
14
|
+
- 'Gemfile.5.2.pg'
|
15
|
+
- 'Gemfile.6.0.pg'
|
17
16
|
|
18
17
|
matrix:
|
19
18
|
exclude:
|
20
|
-
|
21
|
-
|
22
|
-
- gemfile: 'gemfiles/Gemfile.2.3.mysql2'
|
23
|
-
rvm: '2.2.4'
|
24
|
-
- gemfile: 'gemfiles/Gemfile.3.2.mysql2'
|
25
|
-
rvm: '2.3.1'
|
26
|
-
- gemfile: 'gemfiles/Gemfile.2.3.mysql2'
|
19
|
+
# Rails 3.2
|
20
|
+
- gemfile: 'Gemfile.3.2.mysql2'
|
27
21
|
rvm: '2.3.1'
|
28
|
-
- gemfile: '
|
22
|
+
- gemfile: 'Gemfile.3.2.mysql2'
|
29
23
|
rvm: '2.4.1'
|
30
|
-
- gemfile: '
|
24
|
+
- gemfile: 'Gemfile.3.2.mysql2'
|
25
|
+
rvm: '2.5.3'
|
26
|
+
# Rails 4.2
|
27
|
+
- gemfile: 'Gemfile.4.2.mysql2'
|
31
28
|
rvm: '2.4.1'
|
32
|
-
- gemfile: '
|
33
|
-
rvm: '1.8.7'
|
34
|
-
- gemfile: 'gemfiles/Gemfile.4.2.pg'
|
35
|
-
rvm: '1.8.7'
|
36
|
-
- gemfile: 'gemfiles/Gemfile.4.2.mysql2'
|
29
|
+
- gemfile: 'Gemfile.4.2.pg'
|
37
30
|
rvm: '2.4.1'
|
38
|
-
- gemfile: '
|
31
|
+
- gemfile: 'Gemfile.4.2.mysql2'
|
32
|
+
rvm: '2.5.3'
|
33
|
+
- gemfile: 'Gemfile.4.2.pg'
|
34
|
+
rvm: '2.5.3'
|
35
|
+
# Rails 5.2
|
36
|
+
# Rails 6
|
37
|
+
- gemfile: 'Gemfile.6.0.pg'
|
38
|
+
rvm: '2.2.4'
|
39
|
+
- gemfile: 'Gemfile.6.0.pg'
|
40
|
+
rvm: '2.3.1'
|
41
|
+
- gemfile: 'Gemfile.6.0.pg'
|
39
42
|
rvm: '2.4.1'
|
40
|
-
- gemfile: 'gemfiles/Gemfile.5.1.mysql2'
|
41
|
-
rvm: '1.8.7'
|
42
|
-
- gemfile: 'gemfiles/Gemfile.5.1.mysql2'
|
43
|
-
rvm: '2.1.8'
|
44
|
-
- gemfile: 'gemfiles/Gemfile.5.1.pg'
|
45
|
-
rvm: '1.8.7'
|
46
|
-
- gemfile: 'gemfiles/Gemfile.5.1.pg'
|
47
|
-
rvm: '2.1.8'
|
48
43
|
|
49
44
|
services:
|
50
45
|
- mysql
|
@@ -54,6 +49,8 @@ install:
|
|
54
49
|
# explode when lockfile doesn't match recently bumped version
|
55
50
|
- bundle install --no-deployment --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
56
51
|
|
52
|
+
addons:
|
53
|
+
postgresql: 9.3
|
57
54
|
|
58
55
|
before_script:
|
59
56
|
- psql -c 'create database edge_rider_test;' -U postgres
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,24 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
5
5
|
|
6
|
+
## Unreleased
|
7
|
+
|
8
|
+
### Breaking changes
|
9
|
+
-
|
10
|
+
|
11
|
+
### Compatible changes
|
12
|
+
-
|
13
|
+
|
14
|
+
## 1.0.0
|
15
|
+
|
16
|
+
### Breaking changes
|
17
|
+
- Remove support for Ruby 1.8.7
|
18
|
+
- Remove support for Rails 2.3
|
19
|
+
|
20
|
+
### Compatible changes
|
21
|
+
- Add support for Ruby 2.5.3
|
22
|
+
- Add support for Rails 6.0.0.rc1
|
23
|
+
|
6
24
|
## 0.3.3
|
7
25
|
|
8
26
|
### Compatible changes
|
@@ -1,8 +1,9 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
# Runtime dependencies
|
4
|
-
gem 'activerecord', '~>5.
|
4
|
+
gem 'activerecord', '~>5.2.3'
|
5
5
|
gem 'mysql2'
|
6
|
+
gem 'i18n', '<=1.5.1' # Required to support tests for Ruby 2.2.x
|
6
7
|
|
7
8
|
# Development dependencies
|
8
9
|
gem 'rake'
|
@@ -12,4 +13,4 @@ gem 'has_defaults' # used by test models
|
|
12
13
|
gem 'gemika'
|
13
14
|
|
14
15
|
# Gem under test
|
15
|
-
gem 'edge_rider', :
|
16
|
+
gem 'edge_rider', path: '.'
|
@@ -1,32 +1,33 @@
|
|
1
1
|
PATH
|
2
|
-
remote:
|
2
|
+
remote: .
|
3
3
|
specs:
|
4
|
-
edge_rider (0.3.
|
4
|
+
edge_rider (0.3.3)
|
5
5
|
activerecord
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (5.
|
11
|
-
activesupport (= 5.
|
12
|
-
activerecord (5.
|
13
|
-
activemodel (= 5.
|
14
|
-
activesupport (= 5.
|
15
|
-
arel (
|
16
|
-
activesupport (5.
|
10
|
+
activemodel (5.2.3)
|
11
|
+
activesupport (= 5.2.3)
|
12
|
+
activerecord (5.2.3)
|
13
|
+
activemodel (= 5.2.3)
|
14
|
+
activesupport (= 5.2.3)
|
15
|
+
arel (>= 9.0)
|
16
|
+
activesupport (5.2.3)
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
-
i18n (
|
18
|
+
i18n (>= 0.7, < 2)
|
19
19
|
minitest (~> 5.1)
|
20
20
|
tzinfo (~> 1.1)
|
21
|
-
arel (
|
22
|
-
concurrent-ruby (1.
|
21
|
+
arel (9.0.0)
|
22
|
+
concurrent-ruby (1.1.5)
|
23
23
|
database_cleaner (1.6.1)
|
24
24
|
diff-lcs (1.3)
|
25
25
|
gemika (0.3.2)
|
26
26
|
has_defaults (0.4.4)
|
27
27
|
activerecord
|
28
|
-
i18n (
|
29
|
-
|
28
|
+
i18n (1.5.1)
|
29
|
+
concurrent-ruby (~> 1.0)
|
30
|
+
minitest (5.11.3)
|
30
31
|
mysql2 (0.4.6)
|
31
32
|
rake (12.0.0)
|
32
33
|
rspec (3.6.0)
|
@@ -43,21 +44,22 @@ GEM
|
|
43
44
|
rspec-support (~> 3.6.0)
|
44
45
|
rspec-support (3.6.0)
|
45
46
|
thread_safe (0.3.6)
|
46
|
-
tzinfo (1.2.
|
47
|
+
tzinfo (1.2.5)
|
47
48
|
thread_safe (~> 0.1)
|
48
49
|
|
49
50
|
PLATFORMS
|
50
51
|
ruby
|
51
52
|
|
52
53
|
DEPENDENCIES
|
53
|
-
activerecord (~> 5.
|
54
|
+
activerecord (~> 5.2.3)
|
54
55
|
database_cleaner
|
55
56
|
edge_rider!
|
56
57
|
gemika
|
57
58
|
has_defaults
|
59
|
+
i18n (<= 1.5.1)
|
58
60
|
mysql2
|
59
61
|
rake
|
60
62
|
rspec
|
61
63
|
|
62
64
|
BUNDLED WITH
|
63
|
-
1.
|
65
|
+
1.17.3
|
data/Gemfile.5.2.pg
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Runtime dependencies
|
4
|
+
gem 'activerecord', '~>5.2.3'
|
5
|
+
gem 'pg'
|
6
|
+
gem 'i18n', '<=1.5.1' # Required to support tests for Ruby 2.2.x
|
7
|
+
|
8
|
+
# Development dependencies
|
9
|
+
gem 'rake'
|
10
|
+
gem 'database_cleaner'
|
11
|
+
gem 'has_defaults' # used by test models
|
12
|
+
gem 'rspec'
|
13
|
+
gem 'gemika'
|
14
|
+
|
15
|
+
# Gem under test
|
16
|
+
gem 'edge_rider', path: '.'
|
@@ -1,32 +1,33 @@
|
|
1
1
|
PATH
|
2
|
-
remote:
|
2
|
+
remote: .
|
3
3
|
specs:
|
4
|
-
edge_rider (0.3.
|
4
|
+
edge_rider (0.3.3)
|
5
5
|
activerecord
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (5.
|
11
|
-
activesupport (= 5.
|
12
|
-
activerecord (5.
|
13
|
-
activemodel (= 5.
|
14
|
-
activesupport (= 5.
|
15
|
-
arel (
|
16
|
-
activesupport (5.
|
10
|
+
activemodel (5.2.3)
|
11
|
+
activesupport (= 5.2.3)
|
12
|
+
activerecord (5.2.3)
|
13
|
+
activemodel (= 5.2.3)
|
14
|
+
activesupport (= 5.2.3)
|
15
|
+
arel (>= 9.0)
|
16
|
+
activesupport (5.2.3)
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
-
i18n (
|
18
|
+
i18n (>= 0.7, < 2)
|
19
19
|
minitest (~> 5.1)
|
20
20
|
tzinfo (~> 1.1)
|
21
|
-
arel (
|
22
|
-
concurrent-ruby (1.
|
21
|
+
arel (9.0.0)
|
22
|
+
concurrent-ruby (1.1.5)
|
23
23
|
database_cleaner (1.6.1)
|
24
24
|
diff-lcs (1.3)
|
25
25
|
gemika (0.3.2)
|
26
26
|
has_defaults (0.4.4)
|
27
27
|
activerecord
|
28
|
-
i18n (
|
29
|
-
|
28
|
+
i18n (1.5.1)
|
29
|
+
concurrent-ruby (~> 1.0)
|
30
|
+
minitest (5.11.3)
|
30
31
|
pg (0.20.0)
|
31
32
|
rake (12.0.0)
|
32
33
|
rspec (3.6.0)
|
@@ -43,21 +44,22 @@ GEM
|
|
43
44
|
rspec-support (~> 3.6.0)
|
44
45
|
rspec-support (3.6.0)
|
45
46
|
thread_safe (0.3.6)
|
46
|
-
tzinfo (1.2.
|
47
|
+
tzinfo (1.2.5)
|
47
48
|
thread_safe (~> 0.1)
|
48
49
|
|
49
50
|
PLATFORMS
|
50
51
|
ruby
|
51
52
|
|
52
53
|
DEPENDENCIES
|
53
|
-
activerecord (~> 5.
|
54
|
+
activerecord (~> 5.2.3)
|
54
55
|
database_cleaner
|
55
56
|
edge_rider!
|
56
57
|
gemika
|
57
58
|
has_defaults
|
59
|
+
i18n (<= 1.5.1)
|
58
60
|
pg
|
59
61
|
rake
|
60
62
|
rspec
|
61
63
|
|
62
64
|
BUNDLED WITH
|
63
|
-
1.
|
65
|
+
1.17.3
|
@@ -1,7 +1,7 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
# Runtime dependencies
|
4
|
-
gem 'activerecord', '~>
|
4
|
+
gem 'activerecord', '~>6.0.0.rc1'
|
5
5
|
gem 'pg'
|
6
6
|
|
7
7
|
# Development dependencies
|
@@ -12,4 +12,4 @@ gem 'rspec'
|
|
12
12
|
gem 'gemika'
|
13
13
|
|
14
14
|
# Gem under test
|
15
|
-
gem 'edge_rider', :
|
15
|
+
gem 'edge_rider', path: '.'
|
data/Gemfile.6.0.pg.lock
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
edge_rider (0.3.3)
|
5
|
+
activerecord
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (6.0.0.rc1)
|
11
|
+
activesupport (= 6.0.0.rc1)
|
12
|
+
activerecord (6.0.0.rc1)
|
13
|
+
activemodel (= 6.0.0.rc1)
|
14
|
+
activesupport (= 6.0.0.rc1)
|
15
|
+
activesupport (6.0.0.rc1)
|
16
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
|
+
i18n (>= 0.7, < 2)
|
18
|
+
minitest (~> 5.1)
|
19
|
+
tzinfo (~> 1.1)
|
20
|
+
zeitwerk (~> 2.1, >= 2.1.4)
|
21
|
+
concurrent-ruby (1.1.5)
|
22
|
+
database_cleaner (1.7.0)
|
23
|
+
diff-lcs (1.3)
|
24
|
+
gemika (0.3.4)
|
25
|
+
has_defaults (0.4.4)
|
26
|
+
activerecord
|
27
|
+
i18n (1.6.0)
|
28
|
+
concurrent-ruby (~> 1.0)
|
29
|
+
minitest (5.11.3)
|
30
|
+
pg (1.1.4)
|
31
|
+
rake (12.3.2)
|
32
|
+
rspec (3.8.0)
|
33
|
+
rspec-core (~> 3.8.0)
|
34
|
+
rspec-expectations (~> 3.8.0)
|
35
|
+
rspec-mocks (~> 3.8.0)
|
36
|
+
rspec-core (3.8.0)
|
37
|
+
rspec-support (~> 3.8.0)
|
38
|
+
rspec-expectations (3.8.2)
|
39
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
40
|
+
rspec-support (~> 3.8.0)
|
41
|
+
rspec-mocks (3.8.0)
|
42
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
43
|
+
rspec-support (~> 3.8.0)
|
44
|
+
rspec-support (3.8.0)
|
45
|
+
thread_safe (0.3.6)
|
46
|
+
tzinfo (1.2.5)
|
47
|
+
thread_safe (~> 0.1)
|
48
|
+
zeitwerk (2.1.6)
|
49
|
+
|
50
|
+
PLATFORMS
|
51
|
+
ruby
|
52
|
+
|
53
|
+
DEPENDENCIES
|
54
|
+
activerecord (~> 6.0.0.rc1)
|
55
|
+
database_cleaner
|
56
|
+
edge_rider!
|
57
|
+
gemika
|
58
|
+
has_defaults
|
59
|
+
pg
|
60
|
+
rake
|
61
|
+
rspec
|
62
|
+
|
63
|
+
BUNDLED WITH
|
64
|
+
1.17.3
|