edge_rider 1.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/test.yml +104 -0
  3. data/.rspec +1 -0
  4. data/.ruby-version +1 -1
  5. data/CHANGELOG.md +29 -5
  6. data/Gemfile +1 -0
  7. data/Gemfile.4.2.mysql2 +4 -2
  8. data/Gemfile.4.2.mysql2.lock +35 -21
  9. data/Gemfile.4.2.pg +3 -1
  10. data/Gemfile.4.2.pg.lock +33 -19
  11. data/Gemfile.5.2.mysql2 +4 -2
  12. data/Gemfile.5.2.mysql2.lock +21 -7
  13. data/Gemfile.5.2.pg +3 -1
  14. data/Gemfile.5.2.pg.lock +19 -5
  15. data/{Gemfile.6.0.pg → Gemfile.6.1.pg} +4 -2
  16. data/Gemfile.6.1.pg.lock +82 -0
  17. data/{Gemfile.3.2.mysql2 → Gemfile.7.0.pg} +7 -6
  18. data/Gemfile.7.0.pg.lock +78 -0
  19. data/Gemfile.lock +1 -0
  20. data/README.md +86 -60
  21. data/edge_rider.gemspec +25 -15
  22. data/lib/edge_rider/preload_associations.rb +15 -13
  23. data/lib/edge_rider/traverse_association.rb +7 -3
  24. data/lib/edge_rider/util.rb +1 -1
  25. data/lib/edge_rider/version.rb +1 -1
  26. metadata +19 -28
  27. data/.travis.yml +0 -63
  28. data/Gemfile.3.2.mysql2.lock +0 -62
  29. data/Gemfile.6.0.pg.lock +0 -64
  30. data/spec/edge_rider/collect_column_spec.rb +0 -85
  31. data/spec/edge_rider/collect_ids_spec.rb +0 -108
  32. data/spec/edge_rider/origin_class_spec.rb +0 -32
  33. data/spec/edge_rider/preload_associations_spec.rb +0 -15
  34. data/spec/edge_rider/scoped_spec.rb +0 -53
  35. data/spec/edge_rider/to_id_query_spec.rb +0 -29
  36. data/spec/edge_rider/traverse_association_spec.rb +0 -128
  37. data/spec/edge_rider/util_spec.rb +0 -5
  38. data/spec/spec_helper.rb +0 -12
  39. data/spec/support/database.rb +0 -34
  40. data/spec/support/database.sample.yml +0 -10
  41. data/spec/support/database.travis.yml +0 -9
  42. data/spec/support/models.rb +0 -88
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: da871803b8cefee8834fbb9285c40ac1bb25c1e2
4
- data.tar.gz: 28fb3aca2d1739751bb563bafb004beb03297914
2
+ SHA256:
3
+ metadata.gz: 92243002f87dbe03f00014b107beb57f9e024b9f77b3d16f134e20532e8c3c7e
4
+ data.tar.gz: f18dd9916e2226870cc2ff97fa64437097df10ef18c2b548a2c7f98d32a9633d
5
5
  SHA512:
6
- metadata.gz: 8cdca40731ba339f3ecf0f59ac64bc56590aa0b7c1fcbd61c595fb01bb43dbac29335282668599ad057a55b2212ce4f4a1ce0888c2fbdef68873bbfa60475944
7
- data.tar.gz: d257f44a830fe8adab4ce8eb4e56f48b6b1f2b0f615e75aa98fc10e086bf511b9641c01b47714bca43d69ab00fca660249fefc3551a10cc37b605bb275642ee3
6
+ metadata.gz: f5056092d3c444feab3997beeb2f6278ce260f1690c1a78517cecbb278ccb3c0811d4578f2eba66a80553391df86c29964ba2ab66fc09c2bfff34fe06cc8e1b0
7
+ data.tar.gz: a39f21a754769f355cf1ee76d3261e0556096d0d600468e604e4dc66a7203922c0387bc506cd586626bc40b0bad079ddf5b2c921f43c17e18bd2f23d380f02d3
@@ -0,0 +1,104 @@
1
+ ---
2
+ name: Tests
3
+ 'on':
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - master
10
+ jobs:
11
+ test_mysql:
12
+ runs-on: ubuntu-20.04
13
+ services:
14
+ mysql:
15
+ image: mysql:5.6
16
+ env:
17
+ MYSQL_ROOT_PASSWORD: password
18
+ options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout
19
+ 5s --health-retries 5
20
+ ports:
21
+ - 3306:3306
22
+ strategy:
23
+ fail-fast: false
24
+ # Rails 4.2: Ruby 2.5.7
25
+ # Rails 5.2: Ruby 2.5.7 and 2.7.4
26
+ matrix:
27
+ include:
28
+ - ruby: 2.5.7
29
+ gemfile: Gemfile.4.2.mysql2
30
+ - ruby: 2.5.7
31
+ gemfile: Gemfile.5.2.mysql2
32
+ - ruby: 2.7.4
33
+ gemfile: Gemfile.5.2.mysql2
34
+ env:
35
+ BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
36
+ steps:
37
+ - uses: actions/checkout@v2
38
+ - name: Install ruby
39
+ uses: ruby/setup-ruby@v1
40
+ with:
41
+ ruby-version: "${{ matrix.ruby }}"
42
+ - name: Setup database
43
+ run: |
44
+ sudo apt-get update
45
+ sudo apt-get install -y mariadb-client libmariadbclient-dev
46
+ mysql -e 'create database IF NOT EXISTS test;' -u root --password=password -P 3306 -h 127.0.0.1
47
+ - name: Bundle
48
+ run: |
49
+ gem install bundler:2.2.26
50
+ bundle install --no-deployment
51
+ - name: Run tests
52
+ run: bundle exec rspec
53
+ test_pg:
54
+ runs-on: ubuntu-20.04
55
+ services:
56
+ postgres:
57
+ image: postgres
58
+ env:
59
+ POSTGRES_PASSWORD: postgres
60
+ options: "--health-cmd pg_isready --health-interval 10s --health-timeout 5s
61
+ --health-retries 5"
62
+ ports:
63
+ - 5432:5432
64
+ strategy:
65
+ fail-fast: false
66
+ # Rails 4.2: Ruby 2.5.7
67
+ # Rails 5.2: Ruby 2.5.7 and 2.7.4
68
+ # Rails 6.1: Ruby 2.5.7, 2.7.4 and 3.0.2
69
+ matrix:
70
+ include:
71
+ - ruby: 2.5.7
72
+ gemfile: Gemfile.4.2.pg
73
+ - ruby: 2.5.7
74
+ gemfile: Gemfile.5.2.pg
75
+ - ruby: 2.5.7
76
+ gemfile: Gemfile.6.1.pg
77
+ - ruby: 2.7.4
78
+ gemfile: Gemfile.5.2.pg
79
+ - ruby: 2.7.4
80
+ gemfile: Gemfile.6.1.pg
81
+ - ruby: 3.0.2
82
+ gemfile: Gemfile.6.1.pg
83
+ - ruby: 2.7.4
84
+ gemfile: Gemfile.7.0.pg
85
+ - ruby: 3.0.2
86
+ gemfile: Gemfile.7.0.pg
87
+ env:
88
+ BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
89
+ steps:
90
+ - uses: actions/checkout@v2
91
+ - name: Install ruby
92
+ uses: ruby/setup-ruby@v1
93
+ with:
94
+ ruby-version: "${{ matrix.ruby }}"
95
+ - name: Setup database
96
+ run: |
97
+ sudo apt-get install -y postgresql-client
98
+ PGPASSWORD=postgres psql -c 'create database test;' -U postgres -p 5432 -h localhost
99
+ - name: Bundle
100
+ run: |
101
+ gem install bundler:2.2.26
102
+ bundle install --no-deployment
103
+ - name: Run tests
104
+ run: bundle exec rspec
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --require spec_helper
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.4
1
+ 2.5.7
data/CHANGELOG.md CHANGED
@@ -6,22 +6,46 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
6
6
  ## Unreleased
7
7
 
8
8
  ### Breaking changes
9
- -
10
9
 
11
10
  ### Compatible changes
12
- -
13
11
 
14
- ## 1.0.0
12
+
13
+ ## 2.1.0 - 2022-02-24
14
+
15
+ ### Compatible changes
16
+ - Add support for Rails 7.0
17
+ - Activate Rubygems MFA
18
+
19
+
20
+ ## 2.0.0 - 2021-08-24
21
+
22
+ ### Breaking changes
23
+ - Drop support for Ruby < 2.5.0
24
+ - Drop support for Rails < 3.2
25
+
26
+ ### Compatible changes
27
+ - Add support for Rails 6.1
28
+
29
+
30
+ ## 1.1.0 - 2019-12-13
31
+
32
+ ### Compatible changes
33
+ - Add `preload_association` at instance level. Example: `user.preload_associations(:posts)`
34
+ - Add support for polymorphic associations in `traverse_association`.
35
+
36
+
37
+ ## 1.0.0- 2019-06-12
15
38
 
16
39
  ### Breaking changes
17
- - Remove support for Ruby 1.8.7
40
+ - Remove support for Ruby 2.2
18
41
  - Remove support for Rails 2.3
19
42
 
20
43
  ### Compatible changes
21
44
  - Add support for Ruby 2.5.3
22
45
  - Add support for Rails 6.0.0.rc1
23
46
 
24
- ## 0.3.3
47
+
48
+ ## 0.3.3 - 2018-08-29
25
49
 
26
50
  ### Compatible changes
27
51
 
data/Gemfile ADDED
@@ -0,0 +1 @@
1
+ Gemfile.6.1.pg
data/Gemfile.4.2.mysql2 CHANGED
@@ -2,14 +2,16 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
4
  gem 'activerecord', '~>4.2.0'
5
- gem 'mysql2', '~> 0.3.17'
5
+ gem 'mysql2', '~>0.4.10'
6
6
 
7
7
  # Development dependencies
8
8
  gem 'rake'
9
9
  gem 'database_cleaner'
10
10
  gem 'has_defaults' # used by test models
11
11
  gem 'rspec'
12
- gem 'gemika'
12
+ gem 'gemika', '>=0.5.0'
13
+ gem 'pry-byebug'
14
+ gem 'db-query-matchers'
13
15
 
14
16
  # Gem under test
15
17
  gem 'edge_rider', path: '.'
@@ -1,36 +1,48 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- edge_rider (0.3.3)
5
- activerecord
4
+ edge_rider (2.1.0)
5
+ activerecord (>= 3.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (4.2.7.1)
11
- activesupport (= 4.2.7.1)
10
+ activemodel (4.2.11)
11
+ activesupport (= 4.2.11)
12
12
  builder (~> 3.1)
13
- activerecord (4.2.7.1)
14
- activemodel (= 4.2.7.1)
15
- activesupport (= 4.2.7.1)
13
+ activerecord (4.2.11)
14
+ activemodel (= 4.2.11)
15
+ activesupport (= 4.2.11)
16
16
  arel (~> 6.0)
17
- activesupport (4.2.7.1)
17
+ activesupport (4.2.11)
18
18
  i18n (~> 0.7)
19
- json (~> 1.7, >= 1.7.7)
20
19
  minitest (~> 5.1)
21
20
  thread_safe (~> 0.3, >= 0.3.4)
22
21
  tzinfo (~> 1.1)
23
- arel (6.0.3)
24
- builder (3.2.2)
22
+ arel (6.0.4)
23
+ builder (3.2.4)
24
+ byebug (10.0.2)
25
+ coderay (1.1.2)
26
+ concurrent-ruby (1.1.9)
25
27
  database_cleaner (1.0.1)
28
+ db-query-matchers (0.10.0)
29
+ activesupport (>= 4.0, < 7)
30
+ rspec (~> 3.0)
26
31
  diff-lcs (1.2.5)
27
- gemika (0.3.3)
32
+ gemika (0.6.1)
28
33
  has_defaults (0.4.4)
29
34
  activerecord
30
- i18n (0.7.0)
31
- json (1.8.3)
32
- minitest (5.9.1)
33
- mysql2 (0.3.21)
35
+ i18n (0.9.5)
36
+ concurrent-ruby (~> 1.0)
37
+ method_source (0.9.2)
38
+ minitest (5.14.4)
39
+ mysql2 (0.4.10)
40
+ pry (0.12.2)
41
+ coderay (~> 1.1.0)
42
+ method_source (~> 0.9.0)
43
+ pry-byebug (3.6.0)
44
+ byebug (~> 10.0)
45
+ pry (~> 0.10)
34
46
  rake (11.3.0)
35
47
  rspec (3.5.0)
36
48
  rspec-core (~> 3.5.0)
@@ -45,8 +57,8 @@ GEM
45
57
  diff-lcs (>= 1.2.0, < 2.0)
46
58
  rspec-support (~> 3.5.0)
47
59
  rspec-support (3.5.0)
48
- thread_safe (0.3.5)
49
- tzinfo (1.2.2)
60
+ thread_safe (0.3.6)
61
+ tzinfo (1.2.9)
50
62
  thread_safe (~> 0.1)
51
63
 
52
64
  PLATFORMS
@@ -55,12 +67,14 @@ PLATFORMS
55
67
  DEPENDENCIES
56
68
  activerecord (~> 4.2.0)
57
69
  database_cleaner
70
+ db-query-matchers
58
71
  edge_rider!
59
- gemika
72
+ gemika (>= 0.5.0)
60
73
  has_defaults
61
- mysql2 (~> 0.3.17)
74
+ mysql2 (~> 0.4.10)
75
+ pry-byebug
62
76
  rake
63
77
  rspec
64
78
 
65
79
  BUNDLED WITH
66
- 1.17.3
80
+ 2.2.32
data/Gemfile.4.2.pg CHANGED
@@ -9,7 +9,9 @@ gem 'rake'
9
9
  gem 'database_cleaner'
10
10
  gem 'rspec'
11
11
  gem 'has_defaults' # used by test models
12
- gem 'gemika'
12
+ gem 'gemika', '>=0.5.0'
13
+ gem 'pry-byebug'
14
+ gem 'db-query-matchers'
13
15
 
14
16
  # Gem under test
15
17
  gem 'edge_rider', path: '.'
data/Gemfile.4.2.pg.lock CHANGED
@@ -1,36 +1,48 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- edge_rider (0.3.3)
5
- activerecord
4
+ edge_rider (2.1.0)
5
+ activerecord (>= 3.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (4.2.7.1)
11
- activesupport (= 4.2.7.1)
10
+ activemodel (4.2.11)
11
+ activesupport (= 4.2.11)
12
12
  builder (~> 3.1)
13
- activerecord (4.2.7.1)
14
- activemodel (= 4.2.7.1)
15
- activesupport (= 4.2.7.1)
13
+ activerecord (4.2.11)
14
+ activemodel (= 4.2.11)
15
+ activesupport (= 4.2.11)
16
16
  arel (~> 6.0)
17
- activesupport (4.2.7.1)
17
+ activesupport (4.2.11)
18
18
  i18n (~> 0.7)
19
- json (~> 1.7, >= 1.7.7)
20
19
  minitest (~> 5.1)
21
20
  thread_safe (~> 0.3, >= 0.3.4)
22
21
  tzinfo (~> 1.1)
23
- arel (6.0.3)
24
- builder (3.2.2)
22
+ arel (6.0.4)
23
+ builder (3.2.4)
24
+ byebug (10.0.2)
25
+ coderay (1.1.2)
26
+ concurrent-ruby (1.1.9)
25
27
  database_cleaner (1.5.3)
28
+ db-query-matchers (0.10.0)
29
+ activesupport (>= 4.0, < 7)
30
+ rspec (~> 3.0)
26
31
  diff-lcs (1.2.5)
27
- gemika (0.3.2)
32
+ gemika (0.6.1)
28
33
  has_defaults (0.4.4)
29
34
  activerecord
30
- i18n (0.7.0)
31
- json (1.8.3)
32
- minitest (5.9.1)
35
+ i18n (0.9.5)
36
+ concurrent-ruby (~> 1.0)
37
+ method_source (0.9.2)
38
+ minitest (5.14.4)
33
39
  pg (0.19.0)
40
+ pry (0.12.2)
41
+ coderay (~> 1.1.0)
42
+ method_source (~> 0.9.0)
43
+ pry-byebug (3.6.0)
44
+ byebug (~> 10.0)
45
+ pry (~> 0.10)
34
46
  rake (11.3.0)
35
47
  rspec (3.5.0)
36
48
  rspec-core (~> 3.5.0)
@@ -45,8 +57,8 @@ GEM
45
57
  diff-lcs (>= 1.2.0, < 2.0)
46
58
  rspec-support (~> 3.5.0)
47
59
  rspec-support (3.5.0)
48
- thread_safe (0.3.5)
49
- tzinfo (1.2.2)
60
+ thread_safe (0.3.6)
61
+ tzinfo (1.2.9)
50
62
  thread_safe (~> 0.1)
51
63
 
52
64
  PLATFORMS
@@ -55,12 +67,14 @@ PLATFORMS
55
67
  DEPENDENCIES
56
68
  activerecord (~> 4.2.0)
57
69
  database_cleaner
70
+ db-query-matchers
58
71
  edge_rider!
59
- gemika
72
+ gemika (>= 0.5.0)
60
73
  has_defaults
61
74
  pg
75
+ pry-byebug
62
76
  rake
63
77
  rspec
64
78
 
65
79
  BUNDLED WITH
66
- 1.17.3
80
+ 2.2.32
data/Gemfile.5.2.mysql2 CHANGED
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
4
  gem 'activerecord', '~>5.2.3'
5
- gem 'mysql2'
5
+ gem 'mysql2', '~>0.4.10'
6
6
  gem 'i18n', '<=1.5.1' # Required to support tests for Ruby 2.2.x
7
7
 
8
8
  # Development dependencies
@@ -10,7 +10,9 @@ gem 'rake'
10
10
  gem 'database_cleaner'
11
11
  gem 'rspec'
12
12
  gem 'has_defaults' # used by test models
13
- gem 'gemika'
13
+ gem 'gemika', '>=0.5.0'
14
+ gem 'pry-byebug'
15
+ gem 'db-query-matchers'
14
16
 
15
17
  # Gem under test
16
18
  gem 'edge_rider', path: '.'
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- edge_rider (0.3.3)
5
- activerecord
4
+ edge_rider (2.1.0)
5
+ activerecord (>= 3.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -19,16 +19,28 @@ GEM
19
19
  minitest (~> 5.1)
20
20
  tzinfo (~> 1.1)
21
21
  arel (9.0.0)
22
+ byebug (10.0.2)
23
+ coderay (1.1.2)
22
24
  concurrent-ruby (1.1.5)
23
25
  database_cleaner (1.6.1)
26
+ db-query-matchers (0.10.0)
27
+ activesupport (>= 4.0, < 7)
28
+ rspec (~> 3.0)
24
29
  diff-lcs (1.3)
25
- gemika (0.3.2)
30
+ gemika (0.5.0)
26
31
  has_defaults (0.4.4)
27
32
  activerecord
28
33
  i18n (1.5.1)
29
34
  concurrent-ruby (~> 1.0)
35
+ method_source (0.9.2)
30
36
  minitest (5.11.3)
31
- mysql2 (0.4.6)
37
+ mysql2 (0.4.10)
38
+ pry (0.12.2)
39
+ coderay (~> 1.1.0)
40
+ method_source (~> 0.9.0)
41
+ pry-byebug (3.6.0)
42
+ byebug (~> 10.0)
43
+ pry (~> 0.10)
32
44
  rake (12.0.0)
33
45
  rspec (3.6.0)
34
46
  rspec-core (~> 3.6.0)
@@ -53,13 +65,15 @@ PLATFORMS
53
65
  DEPENDENCIES
54
66
  activerecord (~> 5.2.3)
55
67
  database_cleaner
68
+ db-query-matchers
56
69
  edge_rider!
57
- gemika
70
+ gemika (>= 0.5.0)
58
71
  has_defaults
59
72
  i18n (<= 1.5.1)
60
- mysql2
73
+ mysql2 (~> 0.4.10)
74
+ pry-byebug
61
75
  rake
62
76
  rspec
63
77
 
64
78
  BUNDLED WITH
65
- 1.17.3
79
+ 2.2.32
data/Gemfile.5.2.pg CHANGED
@@ -10,7 +10,9 @@ gem 'rake'
10
10
  gem 'database_cleaner'
11
11
  gem 'has_defaults' # used by test models
12
12
  gem 'rspec'
13
- gem 'gemika'
13
+ gem 'gemika', '>=0.5.0'
14
+ gem 'pry-byebug'
15
+ gem 'db-query-matchers'
14
16
 
15
17
  # Gem under test
16
18
  gem 'edge_rider', path: '.'
data/Gemfile.5.2.pg.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- edge_rider (0.3.3)
5
- activerecord
4
+ edge_rider (2.1.0)
5
+ activerecord (>= 3.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -19,16 +19,28 @@ GEM
19
19
  minitest (~> 5.1)
20
20
  tzinfo (~> 1.1)
21
21
  arel (9.0.0)
22
+ byebug (10.0.2)
23
+ coderay (1.1.2)
22
24
  concurrent-ruby (1.1.5)
23
25
  database_cleaner (1.6.1)
26
+ db-query-matchers (0.10.0)
27
+ activesupport (>= 4.0, < 7)
28
+ rspec (~> 3.0)
24
29
  diff-lcs (1.3)
25
- gemika (0.3.2)
30
+ gemika (0.5.0)
26
31
  has_defaults (0.4.4)
27
32
  activerecord
28
33
  i18n (1.5.1)
29
34
  concurrent-ruby (~> 1.0)
35
+ method_source (0.9.2)
30
36
  minitest (5.11.3)
31
37
  pg (0.20.0)
38
+ pry (0.12.2)
39
+ coderay (~> 1.1.0)
40
+ method_source (~> 0.9.0)
41
+ pry-byebug (3.6.0)
42
+ byebug (~> 10.0)
43
+ pry (~> 0.10)
32
44
  rake (12.0.0)
33
45
  rspec (3.6.0)
34
46
  rspec-core (~> 3.6.0)
@@ -53,13 +65,15 @@ PLATFORMS
53
65
  DEPENDENCIES
54
66
  activerecord (~> 5.2.3)
55
67
  database_cleaner
68
+ db-query-matchers
56
69
  edge_rider!
57
- gemika
70
+ gemika (>= 0.5.0)
58
71
  has_defaults
59
72
  i18n (<= 1.5.1)
60
73
  pg
74
+ pry-byebug
61
75
  rake
62
76
  rspec
63
77
 
64
78
  BUNDLED WITH
65
- 1.17.3
79
+ 2.2.32
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
- gem 'activerecord', '~>6.0.0.rc1'
4
+ gem 'activerecord', '~>6.1.3'
5
5
  gem 'pg'
6
6
 
7
7
  # Development dependencies
@@ -9,7 +9,9 @@ gem 'rake'
9
9
  gem 'database_cleaner'
10
10
  gem 'has_defaults' # used by test models
11
11
  gem 'rspec'
12
- gem 'gemika'
12
+ gem 'gemika', '>=0.5.0'
13
+ gem 'pry-byebug'
14
+ gem 'db-query-matchers'
13
15
 
14
16
  # Gem under test
15
17
  gem 'edge_rider', path: '.'
@@ -0,0 +1,82 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ edge_rider (2.1.0)
5
+ activerecord (>= 3.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (6.1.3)
11
+ activesupport (= 6.1.3)
12
+ activerecord (6.1.3)
13
+ activemodel (= 6.1.3)
14
+ activesupport (= 6.1.3)
15
+ activesupport (6.1.3)
16
+ concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ i18n (>= 1.6, < 2)
18
+ minitest (>= 5.1)
19
+ tzinfo (~> 2.0)
20
+ zeitwerk (~> 2.3)
21
+ byebug (11.1.3)
22
+ coderay (1.1.3)
23
+ concurrent-ruby (1.1.8)
24
+ database_cleaner (2.0.1)
25
+ database_cleaner-active_record (~> 2.0.0)
26
+ database_cleaner-active_record (2.0.0)
27
+ activerecord (>= 5.a)
28
+ database_cleaner-core (~> 2.0.0)
29
+ database_cleaner-core (2.0.1)
30
+ db-query-matchers (0.10.0)
31
+ activesupport (>= 4.0, < 7)
32
+ rspec (~> 3.0)
33
+ diff-lcs (1.4.4)
34
+ gemika (0.5.0)
35
+ has_defaults (0.4.4)
36
+ activerecord
37
+ i18n (1.8.9)
38
+ concurrent-ruby (~> 1.0)
39
+ method_source (1.0.0)
40
+ minitest (5.14.4)
41
+ pg (1.2.3)
42
+ pry (0.13.1)
43
+ coderay (~> 1.1)
44
+ method_source (~> 1.0)
45
+ pry-byebug (3.9.0)
46
+ byebug (~> 11.0)
47
+ pry (~> 0.13.0)
48
+ rake (13.0.3)
49
+ rspec (3.10.0)
50
+ rspec-core (~> 3.10.0)
51
+ rspec-expectations (~> 3.10.0)
52
+ rspec-mocks (~> 3.10.0)
53
+ rspec-core (3.10.1)
54
+ rspec-support (~> 3.10.0)
55
+ rspec-expectations (3.10.1)
56
+ diff-lcs (>= 1.2.0, < 2.0)
57
+ rspec-support (~> 3.10.0)
58
+ rspec-mocks (3.10.2)
59
+ diff-lcs (>= 1.2.0, < 2.0)
60
+ rspec-support (~> 3.10.0)
61
+ rspec-support (3.10.2)
62
+ tzinfo (2.0.4)
63
+ concurrent-ruby (~> 1.0)
64
+ zeitwerk (2.4.2)
65
+
66
+ PLATFORMS
67
+ ruby
68
+
69
+ DEPENDENCIES
70
+ activerecord (~> 6.1.3)
71
+ database_cleaner
72
+ db-query-matchers
73
+ edge_rider!
74
+ gemika (>= 0.5.0)
75
+ has_defaults
76
+ pg
77
+ pry-byebug
78
+ rake
79
+ rspec
80
+
81
+ BUNDLED WITH
82
+ 2.3.4
@@ -1,16 +1,17 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
- gem 'activerecord', '=3.2.22'
5
- gem 'mysql2', '= 0.3.17'
6
- gem 'i18n', '=0.6.11' # 0.7 no longer builds for Ruby 1.8.7
4
+ gem 'activerecord', '~>7.0.1'
5
+ gem 'pg'
7
6
 
8
7
  # Development dependencies
9
- gem 'rake', '=10.0.4'
8
+ gem 'rake'
10
9
  gem 'database_cleaner'
11
- gem 'rspec', '~> 3.4'
12
10
  gem 'has_defaults' # used by test models
13
- gem 'gemika', '>= 0.2.0'
11
+ gem 'rspec'
12
+ gem 'gemika', '>=0.5.0'
13
+ gem 'pry-byebug'
14
+ gem 'db-query-matchers'
14
15
 
15
16
  # Gem under test
16
17
  gem 'edge_rider', path: '.'