gemika 0.5.0 → 0.6.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.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +7 -15
- data/.ruby-version +1 -1
- data/CHANGELOG.md +13 -3
- data/Gemfile.3.2.mysql2 +1 -1
- data/Gemfile.3.2.mysql2.lock +2 -2
- data/Gemfile.4.2.mysql2.lock +2 -2
- data/Gemfile.4.2.pg.lock +2 -2
- data/Gemfile.5.2.mysql2.lock +2 -2
- data/Gemfile.5.2.pg.lock +2 -2
- data/Gemfile.5.2.sqlite3.lock +2 -2
- data/{Gemfile.6.0.pg → Gemfile.6.1.pg} +2 -2
- data/{Gemfile.6.0.pg.lock → Gemfile.6.1.pg.lock} +21 -22
- data/README.md +4 -3
- data/lib/gemika/database.rb +2 -2
- data/lib/gemika/version.rb +1 -1
- data/spec/fixtures/migrate/expected_github_actions.yml +4 -4
- data/spec/fixtures/migrate/travis.yml +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28fcdd23de5b84ea13740d1e535b117ab7ba9d984ded03ab60f5f9411af0b95c
|
|
4
|
+
data.tar.gz: e79e1336fc8c93c36c6d77ee667c177cb52b73e126ba3f98f8fdb4714c040f2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b18d4a2a9224419f7b76fe1510bcbcbd0985e3a34af88874a0f81afe64e915b8f22bf427567b37eb4bb84d939b066df09d51e4c86f14eba8d5b5a5969f92697
|
|
7
|
+
data.tar.gz: d9fabf8b76359a1c6e41d9e617c8a633a70ef9150ac6e400dfe43a7548ef200a54f961480bf3bda9330ee887dfc7774dbf1fa100ba4d27f044b8887b5a6f4fed
|
data/.github/workflows/test.yml
CHANGED
|
@@ -23,16 +23,12 @@ jobs:
|
|
|
23
23
|
fail-fast: false
|
|
24
24
|
matrix:
|
|
25
25
|
include:
|
|
26
|
-
- ruby: 2.
|
|
26
|
+
- ruby: 2.3.8
|
|
27
27
|
gemfile: Gemfile.3.2.mysql2
|
|
28
28
|
- ruby: 2.3.8
|
|
29
29
|
gemfile: Gemfile.4.2.mysql2
|
|
30
|
-
- ruby: 2.2.10
|
|
31
|
-
gemfile: Gemfile.4.2.mysql2
|
|
32
30
|
- ruby: 2.3.8
|
|
33
31
|
gemfile: Gemfile.4.2.mysql2
|
|
34
|
-
- ruby: 2.2.10
|
|
35
|
-
gemfile: Gemfile.5.2.mysql2
|
|
36
32
|
- ruby: 2.3.8
|
|
37
33
|
gemfile: Gemfile.5.2.mysql2
|
|
38
34
|
env:
|
|
@@ -49,7 +45,7 @@ jobs:
|
|
|
49
45
|
mysql -e 'create database IF NOT EXISTS test;' -u root --password=password -P 3306 -h 127.0.0.1
|
|
50
46
|
- name: Bundle
|
|
51
47
|
run: |
|
|
52
|
-
gem install bundler:
|
|
48
|
+
gem install bundler:2.2.15
|
|
53
49
|
bundle install --no-deployment
|
|
54
50
|
- name: Run tests
|
|
55
51
|
run: bundle exec rspec
|
|
@@ -68,16 +64,14 @@ jobs:
|
|
|
68
64
|
fail-fast: false
|
|
69
65
|
matrix:
|
|
70
66
|
include:
|
|
71
|
-
- ruby: 2.2.10
|
|
72
|
-
gemfile: Gemfile.4.2.pg
|
|
73
67
|
- ruby: 2.3.8
|
|
74
68
|
gemfile: Gemfile.4.2.pg
|
|
75
|
-
- ruby: 2.2.10
|
|
76
|
-
gemfile: Gemfile.5.2.pg
|
|
77
69
|
- ruby: 2.3.8
|
|
78
70
|
gemfile: Gemfile.5.2.pg
|
|
79
71
|
- ruby: 2.6.4
|
|
80
|
-
gemfile: Gemfile.6.
|
|
72
|
+
gemfile: Gemfile.6.1.pg
|
|
73
|
+
- ruby: 3.0.1
|
|
74
|
+
gemfile: Gemfile.6.1.pg
|
|
81
75
|
env:
|
|
82
76
|
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
|
|
83
77
|
steps:
|
|
@@ -92,7 +86,7 @@ jobs:
|
|
|
92
86
|
PGPASSWORD=postgres psql -c 'create database test;' -U postgres -p 5432 -h localhost
|
|
93
87
|
- name: Bundle
|
|
94
88
|
run: |
|
|
95
|
-
gem install bundler:
|
|
89
|
+
gem install bundler:2.2.15
|
|
96
90
|
bundle install --no-deployment
|
|
97
91
|
- name: Run tests
|
|
98
92
|
run: bundle exec rspec
|
|
@@ -102,8 +96,6 @@ jobs:
|
|
|
102
96
|
fail-fast: false
|
|
103
97
|
matrix:
|
|
104
98
|
include:
|
|
105
|
-
- ruby: 2.2.10
|
|
106
|
-
gemfile: Gemfile.5.2.sqlite3
|
|
107
99
|
- ruby: 2.3.8
|
|
108
100
|
gemfile: Gemfile.5.2.sqlite3
|
|
109
101
|
env:
|
|
@@ -116,7 +108,7 @@ jobs:
|
|
|
116
108
|
ruby-version: "${{ matrix.ruby }}"
|
|
117
109
|
- name: Bundle
|
|
118
110
|
run: |
|
|
119
|
-
gem install bundler:
|
|
111
|
+
gem install bundler:2.2.15
|
|
120
112
|
bundle install --no-deployment
|
|
121
113
|
- name: Run tests
|
|
122
114
|
run: bundle exec rspec
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.6.4
|
data/CHANGELOG.md
CHANGED
|
@@ -13,11 +13,21 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
|
13
13
|
|
|
14
14
|
-
|
|
15
15
|
|
|
16
|
-
## 0.
|
|
16
|
+
## 0.6.0 - 2021-04-20
|
|
17
17
|
|
|
18
|
-
###
|
|
18
|
+
### Compatible changes
|
|
19
19
|
|
|
20
|
-
-
|
|
20
|
+
- add Ruby 3 compatibility
|
|
21
|
+
- drop Ruby 2.2 support
|
|
22
|
+
|
|
23
|
+
## 0.5.0 - 2020-10-09
|
|
24
|
+
|
|
25
|
+
### Compatible changes
|
|
26
|
+
|
|
27
|
+
- add support for github actions instead of travis
|
|
28
|
+
- add method to migrate travis to github actions workflow
|
|
29
|
+
|
|
30
|
+
## 0.4.0 - 2019-08-07
|
|
21
31
|
|
|
22
32
|
### Compatible changes
|
|
23
33
|
|
data/Gemfile.3.2.mysql2
CHANGED
data/Gemfile.3.2.mysql2.lock
CHANGED
data/Gemfile.4.2.mysql2.lock
CHANGED
data/Gemfile.4.2.pg.lock
CHANGED
data/Gemfile.5.2.mysql2.lock
CHANGED
data/Gemfile.5.2.pg.lock
CHANGED
data/Gemfile.5.2.sqlite3.lock
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
gemika (0.
|
|
4
|
+
gemika (0.6.0)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
-
activemodel (6.
|
|
10
|
-
activesupport (= 6.
|
|
11
|
-
activerecord (6.
|
|
12
|
-
activemodel (= 6.
|
|
13
|
-
activesupport (= 6.
|
|
14
|
-
activesupport (6.
|
|
9
|
+
activemodel (6.1.3.1)
|
|
10
|
+
activesupport (= 6.1.3.1)
|
|
11
|
+
activerecord (6.1.3.1)
|
|
12
|
+
activemodel (= 6.1.3.1)
|
|
13
|
+
activesupport (= 6.1.3.1)
|
|
14
|
+
activesupport (6.1.3.1)
|
|
15
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
16
|
-
i18n (>=
|
|
17
|
-
minitest (
|
|
18
|
-
tzinfo (~>
|
|
19
|
-
zeitwerk (~> 2.
|
|
16
|
+
i18n (>= 1.6, < 2)
|
|
17
|
+
minitest (>= 5.1)
|
|
18
|
+
tzinfo (~> 2.0)
|
|
19
|
+
zeitwerk (~> 2.3)
|
|
20
20
|
coderay (1.1.2)
|
|
21
|
-
concurrent-ruby (1.1.
|
|
21
|
+
concurrent-ruby (1.1.8)
|
|
22
22
|
database_cleaner (1.7.0)
|
|
23
23
|
diff-lcs (1.3)
|
|
24
|
-
i18n (1.
|
|
24
|
+
i18n (1.8.10)
|
|
25
25
|
concurrent-ruby (~> 1.0)
|
|
26
26
|
method_source (0.9.2)
|
|
27
|
-
minitest (5.
|
|
28
|
-
pg (
|
|
27
|
+
minitest (5.14.4)
|
|
28
|
+
pg (1.2.3)
|
|
29
29
|
pry (0.12.2)
|
|
30
30
|
coderay (~> 1.1.0)
|
|
31
31
|
method_source (~> 0.9.0)
|
|
@@ -43,19 +43,18 @@ GEM
|
|
|
43
43
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
44
44
|
rspec-support (~> 3.8.0)
|
|
45
45
|
rspec-support (3.8.2)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
zeitwerk (2.1.10)
|
|
46
|
+
tzinfo (2.0.4)
|
|
47
|
+
concurrent-ruby (~> 1.0)
|
|
48
|
+
zeitwerk (2.4.2)
|
|
50
49
|
|
|
51
50
|
PLATFORMS
|
|
52
51
|
ruby
|
|
53
52
|
|
|
54
53
|
DEPENDENCIES
|
|
55
|
-
activerecord (~> 6.
|
|
54
|
+
activerecord (~> 6.1.0)
|
|
56
55
|
database_cleaner
|
|
57
56
|
gemika!
|
|
58
|
-
pg
|
|
57
|
+
pg
|
|
59
58
|
pry
|
|
60
59
|
rake
|
|
61
60
|
rspec (~> 3.5)
|
|
@@ -64,4 +63,4 @@ RUBY VERSION
|
|
|
64
63
|
ruby 2.2.4p230
|
|
65
64
|
|
|
66
65
|
BUNDLED WITH
|
|
67
|
-
|
|
66
|
+
2.2.15
|
data/README.md
CHANGED
|
@@ -28,9 +28,9 @@ Here's what Gemika can give your test's development setup (all features are opt-
|
|
|
28
28
|
|
|
29
29
|
Gemika currently supports the following dependency versions:
|
|
30
30
|
|
|
31
|
-
- Ruby:
|
|
31
|
+
- Ruby: 2.3, 2.6, 3.0
|
|
32
32
|
- RSpec: Versions 1, 2, 3
|
|
33
|
-
- ActiveRecord: Versions
|
|
33
|
+
- ActiveRecord: Versions 3.2, 4.2, 5.2, 6.1
|
|
34
34
|
- Databases: PostgreSQL (with `pg` gem), MySQL or MariaDB (with `mysql2` gem), or sqlite3 (with `sqlite3` gem)
|
|
35
35
|
|
|
36
36
|
Gemika also makes some assumption about your Gem:
|
|
@@ -695,9 +695,10 @@ Here are some hints when you try to make changes to Gemika itself:
|
|
|
695
695
|
|
|
696
696
|
There are tests in `spec`. We only accept PRs with tests. To run tests:
|
|
697
697
|
|
|
698
|
-
- Install Ruby 2.
|
|
698
|
+
- Install Ruby 2.6.4
|
|
699
699
|
- Create a local test database `gemika_test` in both MySQL and PostgreSQL
|
|
700
700
|
- Copy `spec/support/database.sample.yml` to `spec/support/database.yml` and enter your local credentials for the test databases
|
|
701
|
+
- Create the databases specified in `database.yml`
|
|
701
702
|
- Install development dependencies using `bundle install`
|
|
702
703
|
- Run tests using `bundle exec rspec`
|
|
703
704
|
|
data/lib/gemika/database.rb
CHANGED
|
@@ -36,7 +36,7 @@ module Gemika
|
|
|
36
36
|
#
|
|
37
37
|
def connect
|
|
38
38
|
unless @connected
|
|
39
|
-
ActiveRecord::Base.establish_connection(adapter_config)
|
|
39
|
+
ActiveRecord::Base.establish_connection(**adapter_config)
|
|
40
40
|
@connected = true
|
|
41
41
|
end
|
|
42
42
|
end
|
|
@@ -108,7 +108,7 @@ module Gemika
|
|
|
108
108
|
else
|
|
109
109
|
raise UnknownAdapter, "Unknown database type. Either 'pg', 'mysql2', or 'sqlite3' gem should be in your current bundle."
|
|
110
110
|
end
|
|
111
|
-
default_config.merge(user_config)
|
|
111
|
+
default_config.merge(user_config).symbolize_keys
|
|
112
112
|
end
|
|
113
113
|
|
|
114
114
|
private
|
data/lib/gemika/version.rb
CHANGED
|
@@ -54,7 +54,7 @@ jobs:
|
|
|
54
54
|
mysql -e 'create database IF NOT EXISTS test;' -u root --password=password -P 3306 -h 127.0.0.1
|
|
55
55
|
- name: Bundle
|
|
56
56
|
run: |
|
|
57
|
-
gem install bundler:
|
|
57
|
+
gem install bundler:2.2.15
|
|
58
58
|
bundle install --no-deployment
|
|
59
59
|
- name: Run tests
|
|
60
60
|
run: bundle exec rspec
|
|
@@ -84,7 +84,7 @@ jobs:
|
|
|
84
84
|
- ruby: 2.3.1
|
|
85
85
|
gemfile: Gemfile.5.2.pg
|
|
86
86
|
- ruby: 2.6.4
|
|
87
|
-
gemfile: Gemfile.6.
|
|
87
|
+
gemfile: Gemfile.6.1.pg
|
|
88
88
|
env:
|
|
89
89
|
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
|
|
90
90
|
steps:
|
|
@@ -99,7 +99,7 @@ jobs:
|
|
|
99
99
|
PGPASSWORD=postgres psql -c 'create database test;' -U postgres -p 5432 -h localhost
|
|
100
100
|
- name: Bundle
|
|
101
101
|
run: |
|
|
102
|
-
gem install bundler:
|
|
102
|
+
gem install bundler:2.2.15
|
|
103
103
|
bundle install --no-deployment
|
|
104
104
|
- name: Run tests
|
|
105
105
|
run: bundle exec rspec
|
|
@@ -123,7 +123,7 @@ jobs:
|
|
|
123
123
|
ruby-version: "${{ matrix.ruby }}"
|
|
124
124
|
- name: Bundle
|
|
125
125
|
run: |
|
|
126
|
-
gem install bundler:
|
|
126
|
+
gem install bundler:2.2.15
|
|
127
127
|
bundle install --no-deployment
|
|
128
128
|
- name: Run tests
|
|
129
129
|
run: bundle exec rspec
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gemika
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Henning Koch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-04-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Helpers for testing Ruby gems
|
|
14
14
|
email: henning.koch@makandra.de
|
|
@@ -34,8 +34,8 @@ files:
|
|
|
34
34
|
- Gemfile.5.2.pg.lock
|
|
35
35
|
- Gemfile.5.2.sqlite3
|
|
36
36
|
- Gemfile.5.2.sqlite3.lock
|
|
37
|
-
- Gemfile.6.
|
|
38
|
-
- Gemfile.6.
|
|
37
|
+
- Gemfile.6.1.pg
|
|
38
|
+
- Gemfile.6.1.pg.lock
|
|
39
39
|
- LICENSE
|
|
40
40
|
- README.md
|
|
41
41
|
- Rakefile
|
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
102
|
version: '0'
|
|
103
103
|
requirements: []
|
|
104
|
-
rubygems_version: 3.
|
|
104
|
+
rubygems_version: 3.2.15
|
|
105
105
|
signing_key:
|
|
106
106
|
specification_version: 4
|
|
107
107
|
summary: Helpers for testing Ruby gems
|