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.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +28 -31
  3. data/CHANGELOG.md +18 -0
  4. data/{gemfiles/Gemfile.3.2.mysql2 → Gemfile.3.2.mysql2} +1 -1
  5. data/{gemfiles/Gemfile.3.2.mysql2.lock → Gemfile.3.2.mysql2.lock} +3 -3
  6. data/{gemfiles/Gemfile.4.2.mysql2 → Gemfile.4.2.mysql2} +1 -1
  7. data/{gemfiles/Gemfile.4.2.mysql2.lock → Gemfile.4.2.mysql2.lock} +3 -3
  8. data/{gemfiles/Gemfile.4.2.pg → Gemfile.4.2.pg} +1 -1
  9. data/{gemfiles/Gemfile.4.2.pg.lock → Gemfile.4.2.pg.lock} +3 -3
  10. data/{gemfiles/Gemfile.5.1.mysql2 → Gemfile.5.2.mysql2} +3 -2
  11. data/{gemfiles/Gemfile.5.1.mysql2.lock → Gemfile.5.2.mysql2.lock} +19 -17
  12. data/Gemfile.5.2.pg +16 -0
  13. data/{gemfiles/Gemfile.5.1.pg.lock → Gemfile.5.2.pg.lock} +19 -17
  14. data/{gemfiles/Gemfile.5.1.pg → Gemfile.6.0.pg} +2 -2
  15. data/Gemfile.6.0.pg.lock +64 -0
  16. data/README.md +21 -42
  17. data/Rakefile +1 -1
  18. data/lib/edge_rider.rb +0 -1
  19. data/lib/edge_rider/collect_column.rb +8 -15
  20. data/lib/edge_rider/origin_class.rb +2 -10
  21. data/lib/edge_rider/scoped.rb +1 -1
  22. data/lib/edge_rider/to_id_query.rb +1 -1
  23. data/lib/edge_rider/traverse_association.rb +2 -2
  24. data/lib/edge_rider/util.rb +8 -15
  25. data/lib/edge_rider/version.rb +1 -1
  26. data/spec/edge_rider/collect_column_spec.rb +21 -21
  27. data/spec/edge_rider/collect_ids_spec.rb +16 -16
  28. data/spec/edge_rider/origin_class_spec.rb +9 -9
  29. data/spec/edge_rider/preload_associations_spec.rb +3 -3
  30. data/spec/edge_rider/scoped_spec.rb +17 -19
  31. data/spec/edge_rider/to_id_query_spec.rb +12 -12
  32. data/spec/edge_rider/traverse_association_spec.rb +47 -53
  33. data/spec/support/database.rb +1 -1
  34. data/spec/support/models.rb +14 -18
  35. metadata +46 -69
  36. data/gemfiles/Gemfile.2.3.mysql2 +0 -16
  37. data/gemfiles/Gemfile.2.3.mysql2.lock +0 -37
  38. data/lib/edge_rider/to_sql.rb +0 -13
  39. data/spec/edge_rider/to_sql_spec.rb +0 -14
@@ -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
@@ -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
- - 'gemfiles/Gemfile.2.3.mysql2'
12
- - 'gemfiles/Gemfile.3.2.mysql2'
13
- - 'gemfiles/Gemfile.4.2.mysql2'
14
- - 'gemfiles/Gemfile.4.2.pg'
15
- - 'gemfiles/Gemfile.5.1.mysql2'
16
- - 'gemfiles/Gemfile.5.1.pg'
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
- - gemfile: 'gemfiles/Gemfile.2.3.mysql2'
21
- rvm: '2.1.8'
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: 'gemfiles/Gemfile.2.3.mysql2'
22
+ - gemfile: 'Gemfile.3.2.mysql2'
29
23
  rvm: '2.4.1'
30
- - gemfile: 'gemfiles/Gemfile.3.2.mysql2'
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: 'gemfiles/Gemfile.4.2.mysql2'
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: 'gemfiles/Gemfile.4.2.pg'
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
@@ -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
@@ -13,4 +13,4 @@ gem 'has_defaults' # used by test models
13
13
  gem 'gemika', '>= 0.2.0'
14
14
 
15
15
  # Gem under test
16
- gem 'edge_rider', :path => '..'
16
+ gem 'edge_rider', path: '.'
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ..
2
+ remote: .
3
3
  specs:
4
- edge_rider (0.3.2)
4
+ edge_rider (0.3.3)
5
5
  activerecord
6
6
 
7
7
  GEM
@@ -59,4 +59,4 @@ DEPENDENCIES
59
59
  rspec (~> 3.4)
60
60
 
61
61
  BUNDLED WITH
62
- 1.12.5
62
+ 1.17.3
@@ -12,4 +12,4 @@ gem 'rspec'
12
12
  gem 'gemika'
13
13
 
14
14
  # Gem under test
15
- gem 'edge_rider', :path => '..'
15
+ gem 'edge_rider', path: '.'
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ..
2
+ remote: .
3
3
  specs:
4
- edge_rider (0.3.2)
4
+ edge_rider (0.3.3)
5
5
  activerecord
6
6
 
7
7
  GEM
@@ -63,4 +63,4 @@ DEPENDENCIES
63
63
  rspec
64
64
 
65
65
  BUNDLED WITH
66
- 1.16.4
66
+ 1.17.3
@@ -12,4 +12,4 @@ gem 'has_defaults' # used by test models
12
12
  gem 'gemika'
13
13
 
14
14
  # Gem under test
15
- gem 'edge_rider', :path => '..'
15
+ gem 'edge_rider', path: '.'
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ..
2
+ remote: .
3
3
  specs:
4
- edge_rider (0.3.2)
4
+ edge_rider (0.3.3)
5
5
  activerecord
6
6
 
7
7
  GEM
@@ -63,4 +63,4 @@ DEPENDENCIES
63
63
  rspec
64
64
 
65
65
  BUNDLED WITH
66
- 1.12.5
66
+ 1.17.3
@@ -1,8 +1,9 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
- gem 'activerecord', '~>5.1.1'
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', :path => '..'
16
+ gem 'edge_rider', path: '.'
@@ -1,32 +1,33 @@
1
1
  PATH
2
- remote: ..
2
+ remote: .
3
3
  specs:
4
- edge_rider (0.3.2)
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.1.1)
11
- activesupport (= 5.1.1)
12
- activerecord (5.1.1)
13
- activemodel (= 5.1.1)
14
- activesupport (= 5.1.1)
15
- arel (~> 8.0)
16
- activesupport (5.1.1)
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 (~> 0.7)
18
+ i18n (>= 0.7, < 2)
19
19
  minitest (~> 5.1)
20
20
  tzinfo (~> 1.1)
21
- arel (8.0.0)
22
- concurrent-ruby (1.0.5)
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 (0.8.1)
29
- minitest (5.10.2)
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.3)
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.1.1)
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.15.0
65
+ 1.17.3
@@ -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.2)
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.1.1)
11
- activesupport (= 5.1.1)
12
- activerecord (5.1.1)
13
- activemodel (= 5.1.1)
14
- activesupport (= 5.1.1)
15
- arel (~> 8.0)
16
- activesupport (5.1.1)
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 (~> 0.7)
18
+ i18n (>= 0.7, < 2)
19
19
  minitest (~> 5.1)
20
20
  tzinfo (~> 1.1)
21
- arel (8.0.0)
22
- concurrent-ruby (1.0.5)
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 (0.8.1)
29
- minitest (5.10.2)
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.3)
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.1.1)
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.15.0
65
+ 1.17.3
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
- gem 'activerecord', '~>5.1.1'
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', :path => '..'
15
+ gem 'edge_rider', path: '.'
@@ -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