has_defaults 0.4.0 → 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/.github/workflows/test.yml +102 -0
- data/.gitignore +2 -1
- data/.ruby-version +1 -0
- data/CHANGELOG.md +23 -0
- data/Gemfile +1 -0
- data/Gemfile.3.2.mysql2 +16 -0
- data/Gemfile.3.2.mysql2.lock +75 -0
- data/Gemfile.4.2.mysql2 +15 -0
- data/Gemfile.4.2.mysql2.lock +73 -0
- data/Gemfile.4.2.pg +15 -0
- data/Gemfile.4.2.pg.lock +73 -0
- data/Gemfile.5.2.mysql2 +15 -0
- data/Gemfile.5.2.mysql2.lock +71 -0
- data/Gemfile.5.2.pg +16 -0
- data/Gemfile.5.2.pg.lock +77 -0
- data/Gemfile.6.1.pg +15 -0
- data/Gemfile.6.1.pg.lock +75 -0
- data/Gemfile.lock +1 -0
- data/{MIT-LICENSE → LICENSE} +1 -1
- data/README.md +70 -0
- data/Rakefile +5 -29
- data/has_defaults.gemspec +24 -14
- data/lib/has_defaults/active_record_ext.rb +27 -6
- data/lib/has_defaults/version.rb +1 -1
- data/lib/has_defaults.rb +1 -3
- metadata +57 -132
- data/README +0 -74
- data/pkg/has_defaults-0.3.0.gem +0 -0
- data/spec/app_root/log/in_memory.log +0 -147
- data/spec/rails-2.3/Gemfile +0 -8
- data/spec/rails-2.3/Gemfile.lock +0 -51
- data/spec/rails-2.3/Rakefile +0 -11
- data/spec/rails-2.3/app_root/config/boot.rb +0 -129
- data/spec/rails-2.3/app_root/config/database.yml +0 -4
- data/spec/rails-2.3/app_root/config/environment.rb +0 -14
- data/spec/rails-2.3/app_root/config/environments/test.rb +0 -28
- data/spec/rails-2.3/app_root/config/preinitializer.rb +0 -20
- data/spec/rails-2.3/app_root/config/routes.rb +0 -4
- data/spec/rails-2.3/app_root/lib/console_with_fixtures.rb +0 -4
- data/spec/rails-2.3/app_root/log/.gitignore +0 -1
- data/spec/rails-2.3/app_root/script/console +0 -7
- data/spec/rails-2.3/rcov.opts +0 -2
- data/spec/rails-2.3/spec.opts +0 -4
- data/spec/rails-2.3/spec_helper.rb +0 -24
- data/spec/rails-3.0/.rspec +0 -2
- data/spec/rails-3.0/Gemfile +0 -9
- data/spec/rails-3.0/Gemfile.lock +0 -101
- data/spec/rails-3.0/Rakefile +0 -10
- data/spec/rails-3.0/app_root/.gitignore +0 -4
- data/spec/rails-3.0/app_root/config/application.rb +0 -32
- data/spec/rails-3.0/app_root/config/boot.rb +0 -13
- data/spec/rails-3.0/app_root/config/database.yml +0 -4
- data/spec/rails-3.0/app_root/config/environment.rb +0 -5
- data/spec/rails-3.0/app_root/config/environments/test.rb +0 -35
- data/spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/rails-3.0/app_root/config/initializers/inflections.rb +0 -10
- data/spec/rails-3.0/app_root/config/initializers/mime_types.rb +0 -5
- data/spec/rails-3.0/app_root/config/initializers/secret_token.rb +0 -7
- data/spec/rails-3.0/app_root/config/initializers/session_store.rb +0 -8
- data/spec/rails-3.0/app_root/config/locales/en.yml +0 -5
- data/spec/rails-3.0/app_root/config/routes.rb +0 -58
- data/spec/rails-3.0/app_root/lib/tasks/.gitkeep +0 -0
- data/spec/rails-3.0/app_root/log/.gitkeep +0 -0
- data/spec/rails-3.0/app_root/script/rails +0 -6
- data/spec/rails-3.0/log/in_memory.log +0 -33
- data/spec/rails-3.0/rcov.opts +0 -2
- data/spec/rails-3.0/spec_helper.rb +0 -25
- data/spec/rails-3.2/.rspec +0 -2
- data/spec/rails-3.2/Gemfile +0 -9
- data/spec/rails-3.2/Gemfile.lock +0 -120
- data/spec/rails-3.2/Rakefile +0 -10
- data/spec/rails-3.2/app_root/.gitignore +0 -4
- data/spec/rails-3.2/app_root/config/application.rb +0 -32
- data/spec/rails-3.2/app_root/config/boot.rb +0 -13
- data/spec/rails-3.2/app_root/config/database.yml +0 -4
- data/spec/rails-3.2/app_root/config/environment.rb +0 -5
- data/spec/rails-3.2/app_root/config/environments/test.rb +0 -35
- data/spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/rails-3.2/app_root/config/initializers/inflections.rb +0 -10
- data/spec/rails-3.2/app_root/config/initializers/mime_types.rb +0 -5
- data/spec/rails-3.2/app_root/config/initializers/secret_token.rb +0 -7
- data/spec/rails-3.2/app_root/config/initializers/session_store.rb +0 -8
- data/spec/rails-3.2/app_root/config/locales/en.yml +0 -5
- data/spec/rails-3.2/app_root/config/routes.rb +0 -58
- data/spec/rails-3.2/app_root/lib/tasks/.gitkeep +0 -0
- data/spec/rails-3.2/app_root/log/.gitkeep +0 -0
- data/spec/rails-3.2/app_root/script/rails +0 -6
- data/spec/rails-3.2/log/in_memory.log +0 -33
- data/spec/rails-3.2/rcov.opts +0 -2
- data/spec/rails-3.2/spec_helper.rb +0 -25
- data/spec/shared/app_root/app/controllers/application_controller.rb +0 -2
- data/spec/shared/app_root/app/models/donut.rb +0 -21
- data/spec/shared/app_root/app/models/model_without_defaults.rb +0 -2
- data/spec/shared/app_root/app/models/pastry.rb +0 -6
- data/spec/shared/app_root/db/migrate/001_create_pastries.rb +0 -18
- data/spec/shared/app_root/db/migrate/002_create_model_without_defaults.rb +0 -12
- data/spec/shared/has_defaults/active_record_ext_spec.rb +0 -84
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fcfc24271641cef17a5ed5a48d68d210d5ca74e8b3adb0252c445367d4d629ed
|
4
|
+
data.tar.gz: 8e5830c9b7e8a53e19f2aa8187244a28591ee766b72dfdbdcb75e158731f837e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6e68e7a35cce3d32cda7374a9bc9b50661abdf374c03a5ebb51238fa2d2d5b781784d8e44992bc59cf8b6646baebbcc3acdc272921c57703784f28a8bcd0b516
|
7
|
+
data.tar.gz: c5245aaa1afbaf678d18cc6a14e48cf97ccd42cdc2676ed5be292f4b04031d95d67f53a43bdfa8ed377e10141e05ec019e0cbf7af3f4da3f6e895ad4dbd8d20c
|
@@ -0,0 +1,102 @@
|
|
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 install -y mysql-client libmariadbclient-dev
|
48
|
+
mysql -e 'create database IF NOT EXISTS test;' -u root --password=password -P 3306 -h 127.0.0.1
|
49
|
+
- name: Bundle
|
50
|
+
run: |
|
51
|
+
gem install bundler:1.17.3
|
52
|
+
bundle install --no-deployment
|
53
|
+
- name: Run tests
|
54
|
+
run: bundle exec rspec
|
55
|
+
test_pg:
|
56
|
+
runs-on: ubuntu-20.04
|
57
|
+
services:
|
58
|
+
postgres:
|
59
|
+
image: postgres
|
60
|
+
env:
|
61
|
+
POSTGRES_PASSWORD: postgres
|
62
|
+
options: "--health-cmd pg_isready --health-interval 10s --health-timeout 5s
|
63
|
+
--health-retries 5"
|
64
|
+
ports:
|
65
|
+
- 5432:5432
|
66
|
+
strategy:
|
67
|
+
fail-fast: false
|
68
|
+
# Rails 4.2: Ruby 2.5.7
|
69
|
+
# Rails 5.2: Ruby 2.5.7 and 2.7.4
|
70
|
+
# Rails 6.1: Ruby 2.5.7, 2.7.4 and 3.0.2
|
71
|
+
matrix:
|
72
|
+
include:
|
73
|
+
- ruby: 2.5.7
|
74
|
+
gemfile: Gemfile.4.2.pg
|
75
|
+
- ruby: 2.5.7
|
76
|
+
gemfile: Gemfile.5.2.pg
|
77
|
+
- ruby: 2.5.7
|
78
|
+
gemfile: Gemfile.6.1.pg
|
79
|
+
- ruby: 2.7.4
|
80
|
+
gemfile: Gemfile.5.2.pg
|
81
|
+
- ruby: 2.7.4
|
82
|
+
gemfile: Gemfile.6.1.pg
|
83
|
+
- ruby: 3.0.2
|
84
|
+
gemfile: Gemfile.6.1.pg
|
85
|
+
env:
|
86
|
+
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
|
87
|
+
steps:
|
88
|
+
- uses: actions/checkout@v2
|
89
|
+
- name: Install ruby
|
90
|
+
uses: ruby/setup-ruby@v1
|
91
|
+
with:
|
92
|
+
ruby-version: "${{ matrix.ruby }}"
|
93
|
+
- name: Setup database
|
94
|
+
run: |
|
95
|
+
sudo apt-get install -y postgresql-client
|
96
|
+
PGPASSWORD=postgres psql -c 'create database test;' -U postgres -p 5432 -h localhost
|
97
|
+
- name: Bundle
|
98
|
+
run: |
|
99
|
+
gem install bundler:2.2.26
|
100
|
+
bundle install --no-deployment
|
101
|
+
- name: Run tests
|
102
|
+
run: bundle exec rspec
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.5.7
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,23 @@
|
|
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.0.0 - 2021-08-25
|
15
|
+
|
16
|
+
### Breaking changes
|
17
|
+
|
18
|
+
- Drop support for Ruby 1.8.7 and Rails 2.3
|
19
|
+
|
20
|
+
### Compatible changes
|
21
|
+
|
22
|
+
- Added this CHANGELOG file.
|
23
|
+
- Add support for Rails 6.1
|
data/Gemfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Gemfile.4.2.mysql2
|
data/Gemfile.3.2.mysql2
ADDED
@@ -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.0.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
|
data/Gemfile.4.2.mysql2
ADDED
@@ -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.0.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: '.'
|
data/Gemfile.4.2.pg.lock
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
has_defaults (1.0.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
|
data/Gemfile.5.2.mysql2
ADDED
@@ -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.0.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
|