has_defaults 0.4.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/test.yml +108 -0
  3. data/.gitignore +1 -0
  4. data/.ruby-version +1 -0
  5. data/CHANGELOG.md +32 -0
  6. data/Gemfile +1 -0
  7. data/Gemfile.3.2.mysql2 +16 -0
  8. data/Gemfile.3.2.mysql2.lock +75 -0
  9. data/Gemfile.4.2.mysql2 +15 -0
  10. data/Gemfile.4.2.mysql2.lock +73 -0
  11. data/Gemfile.4.2.pg +15 -0
  12. data/Gemfile.4.2.pg.lock +73 -0
  13. data/Gemfile.5.2.mysql2 +15 -0
  14. data/Gemfile.5.2.mysql2.lock +71 -0
  15. data/Gemfile.5.2.pg +16 -0
  16. data/Gemfile.5.2.pg.lock +77 -0
  17. data/Gemfile.6.1.pg +15 -0
  18. data/Gemfile.6.1.pg.lock +75 -0
  19. data/Gemfile.7.0.pg +15 -0
  20. data/Gemfile.7.0.pg.lock +73 -0
  21. data/Gemfile.lock +1 -0
  22. data/{MIT-LICENSE → LICENSE} +1 -1
  23. data/README.md +42 -18
  24. data/Rakefile +5 -29
  25. data/has_defaults.gemspec +24 -14
  26. data/lib/has_defaults/active_record_ext.rb +10 -3
  27. data/lib/has_defaults/version.rb +1 -1
  28. data/lib/has_defaults.rb +1 -3
  29. metadata +58 -129
  30. data/spec/rails-2.3/Gemfile +0 -8
  31. data/spec/rails-2.3/Gemfile.lock +0 -51
  32. data/spec/rails-2.3/Rakefile +0 -11
  33. data/spec/rails-2.3/app_root/config/boot.rb +0 -129
  34. data/spec/rails-2.3/app_root/config/database.yml +0 -4
  35. data/spec/rails-2.3/app_root/config/environment.rb +0 -14
  36. data/spec/rails-2.3/app_root/config/environments/test.rb +0 -28
  37. data/spec/rails-2.3/app_root/config/preinitializer.rb +0 -20
  38. data/spec/rails-2.3/app_root/config/routes.rb +0 -4
  39. data/spec/rails-2.3/app_root/lib/console_with_fixtures.rb +0 -4
  40. data/spec/rails-2.3/app_root/log/.gitignore +0 -1
  41. data/spec/rails-2.3/app_root/script/console +0 -7
  42. data/spec/rails-2.3/rcov.opts +0 -2
  43. data/spec/rails-2.3/spec.opts +0 -4
  44. data/spec/rails-2.3/spec_helper.rb +0 -24
  45. data/spec/rails-3.0/.rspec +0 -2
  46. data/spec/rails-3.0/Gemfile +0 -9
  47. data/spec/rails-3.0/Gemfile.lock +0 -101
  48. data/spec/rails-3.0/Rakefile +0 -10
  49. data/spec/rails-3.0/app_root/.gitignore +0 -4
  50. data/spec/rails-3.0/app_root/config/application.rb +0 -32
  51. data/spec/rails-3.0/app_root/config/boot.rb +0 -13
  52. data/spec/rails-3.0/app_root/config/database.yml +0 -4
  53. data/spec/rails-3.0/app_root/config/environment.rb +0 -5
  54. data/spec/rails-3.0/app_root/config/environments/test.rb +0 -35
  55. data/spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb +0 -7
  56. data/spec/rails-3.0/app_root/config/initializers/inflections.rb +0 -10
  57. data/spec/rails-3.0/app_root/config/initializers/mime_types.rb +0 -5
  58. data/spec/rails-3.0/app_root/config/initializers/secret_token.rb +0 -7
  59. data/spec/rails-3.0/app_root/config/initializers/session_store.rb +0 -8
  60. data/spec/rails-3.0/app_root/config/locales/en.yml +0 -5
  61. data/spec/rails-3.0/app_root/config/routes.rb +0 -58
  62. data/spec/rails-3.0/app_root/lib/tasks/.gitkeep +0 -0
  63. data/spec/rails-3.0/app_root/log/.gitkeep +0 -0
  64. data/spec/rails-3.0/app_root/script/rails +0 -6
  65. data/spec/rails-3.0/log/in_memory.log +0 -33
  66. data/spec/rails-3.0/rcov.opts +0 -2
  67. data/spec/rails-3.0/spec_helper.rb +0 -25
  68. data/spec/rails-3.2/.rspec +0 -2
  69. data/spec/rails-3.2/Gemfile +0 -9
  70. data/spec/rails-3.2/Gemfile.lock +0 -120
  71. data/spec/rails-3.2/Rakefile +0 -10
  72. data/spec/rails-3.2/app_root/.gitignore +0 -4
  73. data/spec/rails-3.2/app_root/config/application.rb +0 -32
  74. data/spec/rails-3.2/app_root/config/boot.rb +0 -13
  75. data/spec/rails-3.2/app_root/config/database.yml +0 -4
  76. data/spec/rails-3.2/app_root/config/environment.rb +0 -5
  77. data/spec/rails-3.2/app_root/config/environments/test.rb +0 -35
  78. data/spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb +0 -7
  79. data/spec/rails-3.2/app_root/config/initializers/inflections.rb +0 -10
  80. data/spec/rails-3.2/app_root/config/initializers/mime_types.rb +0 -5
  81. data/spec/rails-3.2/app_root/config/initializers/secret_token.rb +0 -7
  82. data/spec/rails-3.2/app_root/config/initializers/session_store.rb +0 -8
  83. data/spec/rails-3.2/app_root/config/locales/en.yml +0 -5
  84. data/spec/rails-3.2/app_root/config/routes.rb +0 -58
  85. data/spec/rails-3.2/app_root/lib/tasks/.gitkeep +0 -0
  86. data/spec/rails-3.2/app_root/log/.gitkeep +0 -0
  87. data/spec/rails-3.2/app_root/script/rails +0 -6
  88. data/spec/rails-3.2/log/in_memory.log +0 -33
  89. data/spec/rails-3.2/rcov.opts +0 -2
  90. data/spec/rails-3.2/spec_helper.rb +0 -25
  91. data/spec/shared/app_root/app/controllers/application_controller.rb +0 -2
  92. data/spec/shared/app_root/app/models/donut.rb +0 -26
  93. data/spec/shared/app_root/app/models/model_without_defaults.rb +0 -2
  94. data/spec/shared/app_root/app/models/pastry.rb +0 -6
  95. data/spec/shared/app_root/db/migrate/001_create_pastries.rb +0 -19
  96. data/spec/shared/app_root/db/migrate/002_create_model_without_defaults.rb +0 -12
  97. data/spec/shared/has_defaults/active_record_ext_spec.rb +0 -105
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d3eae6f469137f2596e0037f16750876be8e3859b37ff37d1d3969edff48752c
4
+ data.tar.gz: 0004d3d663f7cb8b31622886852711a574c01a0a72f95dbac530e8ea80498d20
5
+ SHA512:
6
+ metadata.gz: 6747c2fc5b0fa501718d94838b7e098304ce4399ee4e998f5cd758920121e16f3e31e4ff9cc9567f6acb4ee8807e017726e81df83d2d56d1addc15fdc0924c79
7
+ data.tar.gz: f557ba0bb57c4612c10ffb9f66786fa00be49a5897b1dbda40615bc067abfda22b3e804cede99e447f185b11ac3aad267a4a34ef2c050087e454e19c508aa5dd
@@ -0,0 +1,108 @@
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 3.2 LTS: Ruby 2.5.7
25
+ # Rails 4.2: Ruby 2.5.7
26
+ # Rails 5.2: Ruby 2.5.7 and 2.7.4
27
+ matrix:
28
+ include:
29
+ - ruby: 2.5.7
30
+ gemfile: Gemfile.3.2.mysql2
31
+ - ruby: 2.5.7
32
+ gemfile: Gemfile.4.2.mysql2
33
+ - ruby: 2.5.7
34
+ gemfile: Gemfile.5.2.mysql2
35
+ - ruby: 2.7.4
36
+ gemfile: Gemfile.5.2.mysql2
37
+ env:
38
+ BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
39
+ steps:
40
+ - uses: actions/checkout@v2
41
+ - name: Install ruby
42
+ uses: ruby/setup-ruby@v1
43
+ with:
44
+ ruby-version: "${{ matrix.ruby }}"
45
+ - name: Setup database
46
+ run: |
47
+ sudo apt-get update
48
+ sudo apt-get install -y mariadb-client libmariadbclient-dev
49
+ mysql -e 'create database IF NOT EXISTS test;' -u root --password=password -P 3306 -h 127.0.0.1
50
+ - name: Bundle
51
+ run: |
52
+ gem install bundler:1.17.3
53
+ bundle install --no-deployment
54
+ - name: Run tests
55
+ run: bundle exec rspec
56
+ test_pg:
57
+ runs-on: ubuntu-20.04
58
+ services:
59
+ postgres:
60
+ image: postgres
61
+ env:
62
+ POSTGRES_PASSWORD: postgres
63
+ options: "--health-cmd pg_isready --health-interval 10s --health-timeout 5s
64
+ --health-retries 5"
65
+ ports:
66
+ - 5432:5432
67
+ strategy:
68
+ fail-fast: false
69
+ # Rails 4.2: Ruby 2.5.7
70
+ # Rails 5.2: Ruby 2.5.7 and 2.7.4
71
+ # Rails 6.1: Ruby 2.5.7, 2.7.4 and 3.0.2
72
+ # Rails 7.0: Ruby 2.7.4 and 3.0.2
73
+ matrix:
74
+ include:
75
+ - ruby: 2.5.7
76
+ gemfile: Gemfile.4.2.pg
77
+ - ruby: 2.5.7
78
+ gemfile: Gemfile.5.2.pg
79
+ - ruby: 2.5.7
80
+ gemfile: Gemfile.6.1.pg
81
+ - ruby: 2.7.4
82
+ gemfile: Gemfile.5.2.pg
83
+ - ruby: 2.7.4
84
+ gemfile: Gemfile.6.1.pg
85
+ - ruby: 2.7.4
86
+ gemfile: Gemfile.7.0.pg
87
+ - ruby: 3.0.2
88
+ gemfile: Gemfile.6.1.pg
89
+ - ruby: 3.0.2
90
+ gemfile: Gemfile.7.0.pg
91
+ env:
92
+ BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
93
+ steps:
94
+ - uses: actions/checkout@v2
95
+ - name: Install ruby
96
+ uses: ruby/setup-ruby@v1
97
+ with:
98
+ ruby-version: "${{ matrix.ruby }}"
99
+ - name: Setup database
100
+ run: |
101
+ sudo apt-get install -y postgresql-client
102
+ PGPASSWORD=postgres psql -c 'create database test;' -U postgres -p 5432 -h localhost
103
+ - name: Bundle
104
+ run: |
105
+ gem install bundler:2.2.26
106
+ bundle install --no-deployment
107
+ - name: Run tests
108
+ run: bundle exec rspec
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  .idea/*
2
+ spec/support/database.yml
2
3
  pkg
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.4
data/CHANGELOG.md ADDED
@@ -0,0 +1,32 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
5
+
6
+
7
+ ## Unreleased
8
+
9
+ ### Breaking changes
10
+
11
+ ### Compatible changes
12
+
13
+
14
+ ## 1.1.0 - 2022-01-20
15
+
16
+ ### Breaking changes
17
+
18
+ ### Compatible changes
19
+
20
+ * Add support for Rails 7 (see [#7](https://github.com/makandra/has_defaults/issues/7))
21
+
22
+
23
+ ## 1.0.0 - 2021-08-25
24
+
25
+ ### Breaking changes
26
+
27
+ - Drop support for Ruby 1.8.7 and Rails 2.3
28
+
29
+ ### Compatible changes
30
+
31
+ - Added this CHANGELOG file.
32
+ - Add support for Rails 6.1
data/Gemfile ADDED
@@ -0,0 +1 @@
1
+ ./Gemfile.7.0.pg
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'activerecord', '=3.2.22'
5
+ gem 'mysql2', git: 'https://github.com/makandra/mysql2', branch: '0.3.x-lts'
6
+ gem 'i18n'
7
+
8
+ # Development dependencies
9
+ gem 'rake', '=10.0.4'
10
+ gem 'database_cleaner', '~>1.0.0'
11
+ gem 'rspec', '~> 3.4'
12
+ gem 'gemika', '>= 0.2.0'
13
+ gem 'pry-byebug'
14
+
15
+ # Gem under test
16
+ gem 'has_defaults', :path => '.'
@@ -0,0 +1,75 @@
1
+ GIT
2
+ remote: https://github.com/makandra/mysql2
3
+ revision: c920d41e43c4722d4c065d2ea9d21494c560bd85
4
+ branch: 0.3.x-lts
5
+ specs:
6
+ mysql2 (0.3.21)
7
+
8
+ PATH
9
+ remote: .
10
+ specs:
11
+ has_defaults (1.1.0)
12
+ activerecord
13
+
14
+ GEM
15
+ remote: https://rubygems.org/
16
+ specs:
17
+ activemodel (3.2.22)
18
+ activesupport (= 3.2.22)
19
+ builder (~> 3.0.0)
20
+ activerecord (3.2.22)
21
+ activemodel (= 3.2.22)
22
+ activesupport (= 3.2.22)
23
+ arel (~> 3.0.2)
24
+ tzinfo (~> 0.3.29)
25
+ activesupport (3.2.22)
26
+ i18n (~> 0.6, >= 0.6.4)
27
+ multi_json (~> 1.0)
28
+ arel (3.0.3)
29
+ builder (3.0.4)
30
+ byebug (11.1.3)
31
+ coderay (1.1.3)
32
+ database_cleaner (1.0.1)
33
+ diff-lcs (1.2.5)
34
+ gemika (0.6.1)
35
+ i18n (0.6.11)
36
+ method_source (1.0.0)
37
+ multi_json (1.12.1)
38
+ pry (0.13.1)
39
+ coderay (~> 1.1)
40
+ method_source (~> 1.0)
41
+ pry-byebug (3.9.0)
42
+ byebug (~> 11.0)
43
+ pry (~> 0.13.0)
44
+ rake (10.0.4)
45
+ rspec (3.5.0)
46
+ rspec-core (~> 3.5.0)
47
+ rspec-expectations (~> 3.5.0)
48
+ rspec-mocks (~> 3.5.0)
49
+ rspec-core (3.5.3)
50
+ rspec-support (~> 3.5.0)
51
+ rspec-expectations (3.5.0)
52
+ diff-lcs (>= 1.2.0, < 2.0)
53
+ rspec-support (~> 3.5.0)
54
+ rspec-mocks (3.5.0)
55
+ diff-lcs (>= 1.2.0, < 2.0)
56
+ rspec-support (~> 3.5.0)
57
+ rspec-support (3.5.0)
58
+ tzinfo (0.3.51)
59
+
60
+ PLATFORMS
61
+ ruby
62
+
63
+ DEPENDENCIES
64
+ activerecord (= 3.2.22)
65
+ database_cleaner (~> 1.0.0)
66
+ gemika (>= 0.2.0)
67
+ has_defaults!
68
+ i18n
69
+ mysql2!
70
+ pry-byebug
71
+ rake (= 10.0.4)
72
+ rspec (~> 3.4)
73
+
74
+ BUNDLED WITH
75
+ 2.2.26
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'activerecord', '~>4.2.11'
5
+ gem 'mysql2', '~> 0.4.0'
6
+
7
+ # Development dependencies
8
+ gem 'rake'
9
+ gem 'database_cleaner'
10
+ gem 'rspec', '~>3.4'
11
+ gem 'gemika', '>= 0.2.0'
12
+ gem 'pry-byebug'
13
+
14
+ # Gem under test
15
+ gem 'has_defaults', path: '.'
@@ -0,0 +1,73 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ has_defaults (1.1.0)
5
+ activerecord
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (4.2.11)
11
+ activesupport (= 4.2.11)
12
+ builder (~> 3.1)
13
+ activerecord (4.2.11)
14
+ activemodel (= 4.2.11)
15
+ activesupport (= 4.2.11)
16
+ arel (~> 6.0)
17
+ activesupport (4.2.11)
18
+ i18n (~> 0.7)
19
+ minitest (~> 5.1)
20
+ thread_safe (~> 0.3, >= 0.3.4)
21
+ tzinfo (~> 1.1)
22
+ arel (6.0.4)
23
+ builder (3.2.4)
24
+ byebug (11.1.3)
25
+ coderay (1.1.3)
26
+ concurrent-ruby (1.1.9)
27
+ database_cleaner (1.5.3)
28
+ diff-lcs (1.2.5)
29
+ gemika (0.6.1)
30
+ i18n (0.9.5)
31
+ concurrent-ruby (~> 1.0)
32
+ method_source (1.0.0)
33
+ minitest (5.14.4)
34
+ mysql2 (0.4.10)
35
+ pry (0.13.1)
36
+ coderay (~> 1.1)
37
+ method_source (~> 1.0)
38
+ pry-byebug (3.9.0)
39
+ byebug (~> 11.0)
40
+ pry (~> 0.13.0)
41
+ rake (11.3.0)
42
+ rspec (3.5.0)
43
+ rspec-core (~> 3.5.0)
44
+ rspec-expectations (~> 3.5.0)
45
+ rspec-mocks (~> 3.5.0)
46
+ rspec-core (3.5.3)
47
+ rspec-support (~> 3.5.0)
48
+ rspec-expectations (3.5.0)
49
+ diff-lcs (>= 1.2.0, < 2.0)
50
+ rspec-support (~> 3.5.0)
51
+ rspec-mocks (3.5.0)
52
+ diff-lcs (>= 1.2.0, < 2.0)
53
+ rspec-support (~> 3.5.0)
54
+ rspec-support (3.5.0)
55
+ thread_safe (0.3.6)
56
+ tzinfo (1.2.9)
57
+ thread_safe (~> 0.1)
58
+
59
+ PLATFORMS
60
+ ruby
61
+
62
+ DEPENDENCIES
63
+ activerecord (~> 4.2.11)
64
+ database_cleaner
65
+ gemika (>= 0.2.0)
66
+ has_defaults!
67
+ mysql2 (~> 0.4.0)
68
+ pry-byebug
69
+ rake
70
+ rspec (~> 3.4)
71
+
72
+ BUNDLED WITH
73
+ 2.2.26
data/Gemfile.4.2.pg ADDED
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'activerecord', '~>4.2.1'
5
+ gem 'pg'
6
+
7
+ # Development dependencies
8
+ gem 'rake'
9
+ gem 'database_cleaner'
10
+ gem 'rspec', '~>3.4'
11
+ gem 'gemika', '>= 0.2.0'
12
+ gem 'pry-byebug'
13
+
14
+ # Gem under test
15
+ gem 'has_defaults', path: '.'
@@ -0,0 +1,73 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ has_defaults (1.1.0)
5
+ activerecord
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (4.2.7.1)
11
+ activesupport (= 4.2.7.1)
12
+ builder (~> 3.1)
13
+ activerecord (4.2.7.1)
14
+ activemodel (= 4.2.7.1)
15
+ activesupport (= 4.2.7.1)
16
+ arel (~> 6.0)
17
+ activesupport (4.2.7.1)
18
+ i18n (~> 0.7)
19
+ json (~> 1.7, >= 1.7.7)
20
+ minitest (~> 5.1)
21
+ thread_safe (~> 0.3, >= 0.3.4)
22
+ tzinfo (~> 1.1)
23
+ arel (6.0.3)
24
+ builder (3.2.2)
25
+ byebug (11.1.3)
26
+ coderay (1.1.3)
27
+ database_cleaner (1.5.3)
28
+ diff-lcs (1.2.5)
29
+ gemika (0.5.0)
30
+ i18n (0.7.0)
31
+ json (1.8.6)
32
+ method_source (1.0.0)
33
+ minitest (5.9.0)
34
+ pg (0.19.0)
35
+ pry (0.13.1)
36
+ coderay (~> 1.1)
37
+ method_source (~> 1.0)
38
+ pry-byebug (3.9.0)
39
+ byebug (~> 11.0)
40
+ pry (~> 0.13.0)
41
+ rake (11.3.0)
42
+ rspec (3.5.0)
43
+ rspec-core (~> 3.5.0)
44
+ rspec-expectations (~> 3.5.0)
45
+ rspec-mocks (~> 3.5.0)
46
+ rspec-core (3.5.3)
47
+ rspec-support (~> 3.5.0)
48
+ rspec-expectations (3.5.0)
49
+ diff-lcs (>= 1.2.0, < 2.0)
50
+ rspec-support (~> 3.5.0)
51
+ rspec-mocks (3.5.0)
52
+ diff-lcs (>= 1.2.0, < 2.0)
53
+ rspec-support (~> 3.5.0)
54
+ rspec-support (3.5.0)
55
+ thread_safe (0.3.5)
56
+ tzinfo (1.2.2)
57
+ thread_safe (~> 0.1)
58
+
59
+ PLATFORMS
60
+ ruby
61
+
62
+ DEPENDENCIES
63
+ activerecord (~> 4.2.1)
64
+ database_cleaner
65
+ gemika (>= 0.2.0)
66
+ has_defaults!
67
+ pg
68
+ pry-byebug
69
+ rake
70
+ rspec (~> 3.4)
71
+
72
+ BUNDLED WITH
73
+ 2.2.26
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'activerecord', '~>5.0.0'
5
+ gem 'mysql2', '~>0.5.3'
6
+
7
+ # Development dependencies
8
+ gem 'rake'
9
+ gem 'database_cleaner'
10
+ gem 'rspec', '~>3.5'
11
+ gem 'gemika', '>= 0.2.0'
12
+ gem 'pry-byebug'
13
+
14
+ # Gem under test
15
+ gem 'has_defaults', path: '.'
@@ -0,0 +1,71 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ has_defaults (1.1.0)
5
+ activerecord
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (5.0.7.2)
11
+ activesupport (= 5.0.7.2)
12
+ activerecord (5.0.7.2)
13
+ activemodel (= 5.0.7.2)
14
+ activesupport (= 5.0.7.2)
15
+ arel (~> 7.0)
16
+ activesupport (5.0.7.2)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (>= 0.7, < 2)
19
+ minitest (~> 5.1)
20
+ tzinfo (~> 1.1)
21
+ arel (7.1.4)
22
+ byebug (11.1.3)
23
+ coderay (1.1.3)
24
+ concurrent-ruby (1.1.7)
25
+ database_cleaner (1.5.3)
26
+ diff-lcs (1.2.5)
27
+ gemika (0.5.0)
28
+ i18n (1.5.1)
29
+ concurrent-ruby (~> 1.0)
30
+ method_source (1.0.0)
31
+ minitest (5.14.2)
32
+ mysql2 (0.5.3)
33
+ pry (0.13.1)
34
+ coderay (~> 1.1)
35
+ method_source (~> 1.0)
36
+ pry-byebug (3.9.0)
37
+ byebug (~> 11.0)
38
+ pry (~> 0.13.0)
39
+ rake (11.3.0)
40
+ rspec (3.5.0)
41
+ rspec-core (~> 3.5.0)
42
+ rspec-expectations (~> 3.5.0)
43
+ rspec-mocks (~> 3.5.0)
44
+ rspec-core (3.5.3)
45
+ rspec-support (~> 3.5.0)
46
+ rspec-expectations (3.5.0)
47
+ diff-lcs (>= 1.2.0, < 2.0)
48
+ rspec-support (~> 3.5.0)
49
+ rspec-mocks (3.5.0)
50
+ diff-lcs (>= 1.2.0, < 2.0)
51
+ rspec-support (~> 3.5.0)
52
+ rspec-support (3.5.0)
53
+ thread_safe (0.3.6)
54
+ tzinfo (1.2.8)
55
+ thread_safe (~> 0.1)
56
+
57
+ PLATFORMS
58
+ ruby
59
+
60
+ DEPENDENCIES
61
+ activerecord (~> 5.0.0)
62
+ database_cleaner
63
+ gemika (>= 0.2.0)
64
+ has_defaults!
65
+ mysql2 (~> 0.5.3)
66
+ pry-byebug
67
+ rake
68
+ rspec (~> 3.5)
69
+
70
+ BUNDLED WITH
71
+ 2.2.26
data/Gemfile.5.2.pg ADDED
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'activerecord'
5
+ gem 'activesupport'
6
+ gem 'pg', '~>0.18.4'
7
+
8
+ # Development dependencies
9
+ gem 'rake'
10
+ gem 'database_cleaner'
11
+ gem 'rspec', '~>3.5'
12
+ gem 'gemika', '>= 0.2.0'
13
+ gem 'pry-byebug'
14
+
15
+ # Gem under test
16
+ gem 'has_defaults', path: '.'
@@ -0,0 +1,77 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ has_defaults (1.1.0)
5
+ activerecord
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (5.2.6)
11
+ activesupport (= 5.2.6)
12
+ activerecord (5.2.6)
13
+ activemodel (= 5.2.6)
14
+ activesupport (= 5.2.6)
15
+ arel (>= 9.0)
16
+ activesupport (5.2.6)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (>= 0.7, < 2)
19
+ minitest (~> 5.1)
20
+ tzinfo (~> 1.1)
21
+ arel (9.0.0)
22
+ byebug (11.1.3)
23
+ coderay (1.1.3)
24
+ concurrent-ruby (1.1.9)
25
+ database_cleaner (2.0.1)
26
+ database_cleaner-active_record (~> 2.0.0)
27
+ database_cleaner-active_record (2.0.1)
28
+ activerecord (>= 5.a)
29
+ database_cleaner-core (~> 2.0.0)
30
+ database_cleaner-core (2.0.1)
31
+ diff-lcs (1.2.5)
32
+ gemika (0.6.1)
33
+ i18n (1.8.10)
34
+ concurrent-ruby (~> 1.0)
35
+ method_source (1.0.0)
36
+ minitest (5.14.4)
37
+ pg (0.18.4)
38
+ pry (0.13.1)
39
+ coderay (~> 1.1)
40
+ method_source (~> 1.0)
41
+ pry-byebug (3.9.0)
42
+ byebug (~> 11.0)
43
+ pry (~> 0.13.0)
44
+ rake (11.3.0)
45
+ rspec (3.5.0)
46
+ rspec-core (~> 3.5.0)
47
+ rspec-expectations (~> 3.5.0)
48
+ rspec-mocks (~> 3.5.0)
49
+ rspec-core (3.5.3)
50
+ rspec-support (~> 3.5.0)
51
+ rspec-expectations (3.5.0)
52
+ diff-lcs (>= 1.2.0, < 2.0)
53
+ rspec-support (~> 3.5.0)
54
+ rspec-mocks (3.5.0)
55
+ diff-lcs (>= 1.2.0, < 2.0)
56
+ rspec-support (~> 3.5.0)
57
+ rspec-support (3.5.0)
58
+ thread_safe (0.3.6)
59
+ tzinfo (1.2.9)
60
+ thread_safe (~> 0.1)
61
+
62
+ PLATFORMS
63
+ ruby
64
+
65
+ DEPENDENCIES
66
+ activerecord
67
+ activesupport
68
+ database_cleaner
69
+ gemika (>= 0.2.0)
70
+ has_defaults!
71
+ pg (~> 0.18.4)
72
+ pry-byebug
73
+ rake
74
+ rspec (~> 3.5)
75
+
76
+ BUNDLED WITH
77
+ 2.2.26
data/Gemfile.6.1.pg ADDED
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'activerecord', '~>6.1.3'
5
+ gem 'pg', '~>1.1'
6
+
7
+ # Development dependencies
8
+ gem 'rake'
9
+ gem 'database_cleaner'
10
+ gem 'rspec', '~>3.5'
11
+ gem 'gemika', '>= 0.2.0'
12
+ gem 'pry-byebug'
13
+
14
+ # Gem under test
15
+ gem 'has_defaults', path: '.'
@@ -0,0 +1,75 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ has_defaults (1.1.0)
5
+ activerecord
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
+ diff-lcs (1.4.4)
31
+ gemika (0.5.0)
32
+ i18n (1.8.9)
33
+ concurrent-ruby (~> 1.0)
34
+ method_source (1.0.0)
35
+ minitest (5.14.4)
36
+ pg (1.2.3)
37
+ pry (0.13.1)
38
+ coderay (~> 1.1)
39
+ method_source (~> 1.0)
40
+ pry-byebug (3.9.0)
41
+ byebug (~> 11.0)
42
+ pry (~> 0.13.0)
43
+ rake (13.0.3)
44
+ rspec (3.10.0)
45
+ rspec-core (~> 3.10.0)
46
+ rspec-expectations (~> 3.10.0)
47
+ rspec-mocks (~> 3.10.0)
48
+ rspec-core (3.10.1)
49
+ rspec-support (~> 3.10.0)
50
+ rspec-expectations (3.10.1)
51
+ diff-lcs (>= 1.2.0, < 2.0)
52
+ rspec-support (~> 3.10.0)
53
+ rspec-mocks (3.10.2)
54
+ diff-lcs (>= 1.2.0, < 2.0)
55
+ rspec-support (~> 3.10.0)
56
+ rspec-support (3.10.2)
57
+ tzinfo (2.0.4)
58
+ concurrent-ruby (~> 1.0)
59
+ zeitwerk (2.4.2)
60
+
61
+ PLATFORMS
62
+ ruby
63
+
64
+ DEPENDENCIES
65
+ activerecord (~> 6.1.3)
66
+ database_cleaner
67
+ gemika (>= 0.2.0)
68
+ has_defaults!
69
+ pg (~> 1.1)
70
+ pry-byebug
71
+ rake
72
+ rspec (~> 3.5)
73
+
74
+ BUNDLED WITH
75
+ 2.2.26