gemika 0.7.1 → 0.8.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 +2 -2
- data/.ruby-version +1 -1
- data/CHANGELOG.md +13 -0
- 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.1.pg +2 -2
- data/Gemfile.6.1.pg.lock +9 -9
- data/Gemfile.7.0.pg +3 -3
- data/Gemfile.7.0.pg.lock +20 -20
- data/gemika.gemspec +2 -2
- data/lib/gemika/database.rb +1 -1
- data/lib/gemika/env.rb +1 -1
- data/lib/gemika/matrix.rb +3 -3
- data/lib/gemika/version.rb +1 -1
- data/spec/gemika/matrix_spec.rb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ee3cfe8422c14153644fd8351ad71e08f813e1c97758cd8551cbb0042815713a
|
|
4
|
+
data.tar.gz: 94a18f0dc3b6d83783d6df1a8711bee8aa6ca9d72e4b61345a409c3cab33aabd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5cd3c58cd98d66e55bc271ca7de413e8f8dedbd443a552b178e2fd61fbdb1442fb9b31a78f662e70eabe87f74f875a3102230de04bd8a338a64c5199a6aeaef
|
|
7
|
+
data.tar.gz: c8d630e9901911f9b2d6078ba6e292403f2bf22dd7d82858cdbfc753eb7b6ec7b47c811717c377d27ba1b5b63038bd108c8b0dfe8da5a6727ab7f67e27d3e8b2
|
data/.github/workflows/test.yml
CHANGED
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0
|
|
1
|
+
3.2.0
|
data/CHANGELOG.md
CHANGED
|
@@ -7,8 +7,21 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
|
7
7
|
|
|
8
8
|
### Breaking changes
|
|
9
9
|
|
|
10
|
+
-
|
|
11
|
+
|
|
12
|
+
### Compatible changes
|
|
13
|
+
|
|
14
|
+
-
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## 0.8.0 - 2023-01-24
|
|
19
|
+
|
|
10
20
|
### Compatible changes
|
|
11
21
|
|
|
22
|
+
- Add support for Ruby 3.2
|
|
23
|
+
- Test against Ruby 3.2 instead of Ruby 3.0
|
|
24
|
+
|
|
12
25
|
## 0.7.1 - 2022-03-16
|
|
13
26
|
|
|
14
27
|
### Compatible changes
|
data/Gemfile.5.2.mysql2.lock
CHANGED
data/Gemfile.5.2.pg.lock
CHANGED
data/Gemfile.5.2.sqlite3.lock
CHANGED
data/Gemfile.6.1.pg
CHANGED
|
@@ -6,12 +6,12 @@ ruby '>= 2.2'
|
|
|
6
6
|
# Runtime dependencies
|
|
7
7
|
gem 'activerecord', '~>6.1.0'
|
|
8
8
|
gem 'rspec', '~>3.5'
|
|
9
|
-
gem 'pg'
|
|
9
|
+
gem 'pg', '~> 1.3.5'
|
|
10
10
|
|
|
11
11
|
# Development dependencies
|
|
12
12
|
gem 'rake'
|
|
13
13
|
gem 'database_cleaner'
|
|
14
|
-
gem 'pry'
|
|
14
|
+
gem 'pry', '~> 0.14.2'
|
|
15
15
|
|
|
16
16
|
# Gem under test
|
|
17
17
|
gem 'gemika', :path => '.'
|
data/Gemfile.6.1.pg.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
gemika (0.
|
|
4
|
+
gemika (0.8.0)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
@@ -17,18 +17,18 @@ GEM
|
|
|
17
17
|
minitest (>= 5.1)
|
|
18
18
|
tzinfo (~> 2.0)
|
|
19
19
|
zeitwerk (~> 2.3)
|
|
20
|
-
coderay (1.1.
|
|
20
|
+
coderay (1.1.3)
|
|
21
21
|
concurrent-ruby (1.1.8)
|
|
22
22
|
database_cleaner (1.7.0)
|
|
23
23
|
diff-lcs (1.3)
|
|
24
24
|
i18n (1.8.10)
|
|
25
25
|
concurrent-ruby (~> 1.0)
|
|
26
|
-
method_source (0.
|
|
26
|
+
method_source (1.0.0)
|
|
27
27
|
minitest (5.14.4)
|
|
28
|
-
pg (1.
|
|
29
|
-
pry (0.
|
|
30
|
-
coderay (~> 1.1
|
|
31
|
-
method_source (~>
|
|
28
|
+
pg (1.3.5)
|
|
29
|
+
pry (0.14.2)
|
|
30
|
+
coderay (~> 1.1)
|
|
31
|
+
method_source (~> 1.0)
|
|
32
32
|
rake (12.3.3)
|
|
33
33
|
rspec (3.8.0)
|
|
34
34
|
rspec-core (~> 3.8.0)
|
|
@@ -54,8 +54,8 @@ DEPENDENCIES
|
|
|
54
54
|
activerecord (~> 6.1.0)
|
|
55
55
|
database_cleaner
|
|
56
56
|
gemika!
|
|
57
|
-
pg
|
|
58
|
-
pry
|
|
57
|
+
pg (~> 1.3.5)
|
|
58
|
+
pry (~> 0.14.2)
|
|
59
59
|
rake
|
|
60
60
|
rspec (~> 3.5)
|
|
61
61
|
|
data/Gemfile.7.0.pg
CHANGED
|
@@ -4,14 +4,14 @@ source 'https://rubygems.org'
|
|
|
4
4
|
ruby '>= 2.2'
|
|
5
5
|
|
|
6
6
|
# Runtime dependencies
|
|
7
|
-
gem 'activerecord', '~> 7.0.
|
|
7
|
+
gem 'activerecord', '~> 7.0.1'
|
|
8
8
|
gem 'rspec', '~>3.5'
|
|
9
|
-
gem 'pg'
|
|
9
|
+
gem 'pg', '~> 1.3.5'
|
|
10
10
|
|
|
11
11
|
# Development dependencies
|
|
12
12
|
gem 'rake'
|
|
13
13
|
gem 'database_cleaner'
|
|
14
|
-
gem 'pry'
|
|
14
|
+
gem 'pry', '~> 0.14.2'
|
|
15
15
|
|
|
16
16
|
# Gem under test
|
|
17
17
|
gem 'gemika', :path => '.'
|
data/Gemfile.7.0.pg.lock
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
gemika (0.
|
|
4
|
+
gemika (0.8.0)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
-
activemodel (7.0.
|
|
10
|
-
activesupport (= 7.0.
|
|
11
|
-
activerecord (7.0.
|
|
12
|
-
activemodel (= 7.0.
|
|
13
|
-
activesupport (= 7.0.
|
|
14
|
-
activesupport (7.0.
|
|
9
|
+
activemodel (7.0.4)
|
|
10
|
+
activesupport (= 7.0.4)
|
|
11
|
+
activerecord (7.0.4)
|
|
12
|
+
activemodel (= 7.0.4)
|
|
13
|
+
activesupport (= 7.0.4)
|
|
14
|
+
activesupport (7.0.4)
|
|
15
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
16
16
|
i18n (>= 1.6, < 2)
|
|
17
17
|
minitest (>= 5.1)
|
|
18
18
|
tzinfo (~> 2.0)
|
|
19
|
-
coderay (1.1.
|
|
20
|
-
concurrent-ruby (1.1.
|
|
19
|
+
coderay (1.1.3)
|
|
20
|
+
concurrent-ruby (1.1.10)
|
|
21
21
|
database_cleaner (1.7.0)
|
|
22
22
|
diff-lcs (1.3)
|
|
23
|
-
i18n (1.
|
|
23
|
+
i18n (1.12.0)
|
|
24
24
|
concurrent-ruby (~> 1.0)
|
|
25
|
-
method_source (0.
|
|
26
|
-
minitest (5.
|
|
27
|
-
pg (1.
|
|
28
|
-
pry (0.
|
|
29
|
-
coderay (~> 1.1
|
|
30
|
-
method_source (~>
|
|
25
|
+
method_source (1.0.0)
|
|
26
|
+
minitest (5.17.0)
|
|
27
|
+
pg (1.3.5)
|
|
28
|
+
pry (0.14.2)
|
|
29
|
+
coderay (~> 1.1)
|
|
30
|
+
method_source (~> 1.0)
|
|
31
31
|
rake (12.3.3)
|
|
32
32
|
rspec (3.8.0)
|
|
33
33
|
rspec-core (~> 3.8.0)
|
|
@@ -42,18 +42,18 @@ GEM
|
|
|
42
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
43
43
|
rspec-support (~> 3.8.0)
|
|
44
44
|
rspec-support (3.8.2)
|
|
45
|
-
tzinfo (2.0.
|
|
45
|
+
tzinfo (2.0.5)
|
|
46
46
|
concurrent-ruby (~> 1.0)
|
|
47
47
|
|
|
48
48
|
PLATFORMS
|
|
49
49
|
ruby
|
|
50
50
|
|
|
51
51
|
DEPENDENCIES
|
|
52
|
-
activerecord (~> 7.0.
|
|
52
|
+
activerecord (~> 7.0.1)
|
|
53
53
|
database_cleaner
|
|
54
54
|
gemika!
|
|
55
|
-
pg
|
|
56
|
-
pry
|
|
55
|
+
pg (~> 1.3.5)
|
|
56
|
+
pry (~> 0.14.2)
|
|
57
57
|
rake
|
|
58
58
|
rspec (~> 3.5)
|
|
59
59
|
|
data/gemika.gemspec
CHANGED
|
@@ -17,8 +17,8 @@ Gem::Specification.new do |s|
|
|
|
17
17
|
'rubygems_mfa_required' => 'true',
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
s.files = `git ls-files`.split("\n").reject { |path| !File.
|
|
21
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").reject { |path| !File.
|
|
20
|
+
s.files = `git ls-files`.split("\n").reject { |path| !File.exist?(path) || File.lstat(path).symlink? }
|
|
21
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").reject { |path| !File.exist?(path) || File.lstat(path).symlink? }
|
|
22
22
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
23
23
|
s.require_paths = ["lib"]
|
|
24
24
|
end
|
data/lib/gemika/database.rb
CHANGED
|
@@ -22,7 +22,7 @@ module Gemika
|
|
|
22
22
|
'database.yml'
|
|
23
23
|
end
|
|
24
24
|
yaml_config_path = File.join(yaml_config_folder, yaml_config_filename)
|
|
25
|
-
if File.
|
|
25
|
+
if File.exist?(yaml_config_path)
|
|
26
26
|
@yaml_config = YAML.load_file(yaml_config_path)
|
|
27
27
|
else
|
|
28
28
|
@yaml_config = {}
|
data/lib/gemika/env.rb
CHANGED
|
@@ -170,7 +170,7 @@ module Gemika
|
|
|
170
170
|
|
|
171
171
|
def lockfile_contents(gemfile)
|
|
172
172
|
lockfile = "#{gemfile}.lock"
|
|
173
|
-
File.
|
|
173
|
+
File.exist?(lockfile) or raise MissingLockfile, "Lockfile not found: #{lockfile}"
|
|
174
174
|
File.read(lockfile)
|
|
175
175
|
end
|
|
176
176
|
|
data/lib/gemika/matrix.rb
CHANGED
|
@@ -47,7 +47,7 @@ module Gemika
|
|
|
47
47
|
# @!visibility private
|
|
48
48
|
#
|
|
49
49
|
def validate!
|
|
50
|
-
File.
|
|
50
|
+
File.exist?(gemfile) or raise MissingGemfile, "Gemfile not found: #{gemfile}"
|
|
51
51
|
contents = File.read(gemfile)
|
|
52
52
|
contents.include?('gemika') or raise UnusableGemfile, "Gemfile is missing gemika dependency: #{gemfile}"
|
|
53
53
|
end
|
|
@@ -162,9 +162,9 @@ module Gemika
|
|
|
162
162
|
def self.from_ci_config
|
|
163
163
|
travis_location = '.travis.yml'
|
|
164
164
|
workflow_location = '.github/workflows/test.yml'
|
|
165
|
-
if File.
|
|
165
|
+
if File.exist?(travis_location)
|
|
166
166
|
from_travis_yml(:path => travis_location)
|
|
167
|
-
elsif File.
|
|
167
|
+
elsif File.exist?(workflow_location)
|
|
168
168
|
from_github_actions_yml(:path => workflow_location)
|
|
169
169
|
else
|
|
170
170
|
raise MissingMatrixDefinition, "expected either a #{travis_location} or a #{workflow_location}"
|
data/lib/gemika/version.rb
CHANGED
data/spec/gemika/matrix_spec.rb
CHANGED
|
@@ -234,21 +234,21 @@ EOF
|
|
|
234
234
|
|
|
235
235
|
describe '.from_ci_config' do
|
|
236
236
|
it 'parses the .travis.yml if it exists' do
|
|
237
|
-
File.should_receive(:
|
|
237
|
+
File.should_receive(:exist?).with('.travis.yml').and_return(true)
|
|
238
238
|
Gemika::Matrix.should_receive(:from_travis_yml).and_return('travis matrix')
|
|
239
239
|
Gemika::Matrix.from_ci_config.should == 'travis matrix'
|
|
240
240
|
end
|
|
241
241
|
|
|
242
242
|
it 'parses the .github/workflows/test.yml if it exists' do
|
|
243
|
-
File.should_receive(:
|
|
244
|
-
File.should_receive(:
|
|
243
|
+
File.should_receive(:exist?).with('.travis.yml').and_return(false)
|
|
244
|
+
File.should_receive(:exist?).with('.github/workflows/test.yml').and_return(true)
|
|
245
245
|
Gemika::Matrix.should_receive(:from_github_actions_yml).and_return('github matrix')
|
|
246
246
|
Gemika::Matrix.from_ci_config.should == 'github matrix'
|
|
247
247
|
end
|
|
248
248
|
|
|
249
249
|
it 'raises an error if no ci definition exists' do
|
|
250
|
-
File.should_receive(:
|
|
251
|
-
File.should_receive(:
|
|
250
|
+
File.should_receive(:exist?).with('.travis.yml').and_return(false)
|
|
251
|
+
File.should_receive(:exist?).with('.github/workflows/test.yml').and_return(false)
|
|
252
252
|
expect { Gemika::Matrix.from_ci_config }.to raise_error(Gemika::MissingMatrixDefinition)
|
|
253
253
|
end
|
|
254
254
|
end
|
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.8.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: 2023-01-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Helpers for testing Ruby gems
|
|
14
14
|
email: henning.koch@makandra.de
|
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
103
|
version: '0'
|
|
104
104
|
requirements: []
|
|
105
|
-
rubygems_version: 3.
|
|
105
|
+
rubygems_version: 3.4.1
|
|
106
106
|
signing_key:
|
|
107
107
|
specification_version: 4
|
|
108
108
|
summary: Helpers for testing Ruby gems
|