gemika 0.7.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e18df6a4de06811b0fb0f21378e94777dc4e25fdcaf3e9bbef1d8cc01322fd6
4
- data.tar.gz: 1cd5ff75c0e5df66fc61b257e215a216b00ac81e5a76aa1a66e23c09fb6e11b6
3
+ metadata.gz: ee3cfe8422c14153644fd8351ad71e08f813e1c97758cd8551cbb0042815713a
4
+ data.tar.gz: 94a18f0dc3b6d83783d6df1a8711bee8aa6ca9d72e4b61345a409c3cab33aabd
5
5
  SHA512:
6
- metadata.gz: 88ffc9eea84fc4406993c7286a57944a80e74d54ed97dd9783c8c3ce0163c674bc98e24bab8d5a1670c2831271f79143b2c53e584f3e1bd4e7c39256d85e84ce
7
- data.tar.gz: 5576c0e0300b46c076feaf5e7c40cdb30f8cacf9b57611c61562f797539bda404a310147f0cadc8ea821994bc4460dd8363ca9bd76bad20b613030e1410f30ef
6
+ metadata.gz: a5cd3c58cd98d66e55bc271ca7de413e8f8dedbd443a552b178e2fd61fbdb1442fb9b31a78f662e70eabe87f74f875a3102230de04bd8a338a64c5199a6aeaef
7
+ data.tar.gz: c8d630e9901911f9b2d6078ba6e292403f2bf22dd7d82858cdbfc753eb7b6ec7b47c811717c377d27ba1b5b63038bd108c8b0dfe8da5a6727ab7f67e27d3e8b2
@@ -65,9 +65,9 @@ jobs:
65
65
  gemfile: Gemfile.6.1.pg
66
66
  - ruby: 2.7.3
67
67
  gemfile: Gemfile.7.0.pg
68
- - ruby: 3.0.3
68
+ - ruby: 3.2.0
69
69
  gemfile: Gemfile.6.1.pg
70
- - ruby: 3.0.3
70
+ - ruby: 3.2.0
71
71
  gemfile: Gemfile.7.0.pg
72
72
  env:
73
73
  BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.3
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.7.1)
4
+ gemika (0.8.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -64,4 +64,4 @@ RUBY VERSION
64
64
  ruby 2.2.4p230
65
65
 
66
66
  BUNDLED WITH
67
- 2.2.15
67
+ 2.3.26
data/Gemfile.5.2.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.7.1)
4
+ gemika (0.8.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -64,4 +64,4 @@ RUBY VERSION
64
64
  ruby 2.2.4p230
65
65
 
66
66
  BUNDLED WITH
67
- 2.2.15
67
+ 2.3.26
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.7.1)
4
+ gemika (0.8.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -64,4 +64,4 @@ RUBY VERSION
64
64
  ruby 2.2.4p230
65
65
 
66
66
  BUNDLED WITH
67
- 2.2.15
67
+ 2.3.26
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.7.1)
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.2)
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.9.2)
26
+ method_source (1.0.0)
27
27
  minitest (5.14.4)
28
- pg (1.2.3)
29
- pry (0.12.2)
30
- coderay (~> 1.1.0)
31
- method_source (~> 0.9.0)
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.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.7.1)
4
+ gemika (0.8.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- activemodel (7.0.0)
10
- activesupport (= 7.0.0)
11
- activerecord (7.0.0)
12
- activemodel (= 7.0.0)
13
- activesupport (= 7.0.0)
14
- activesupport (7.0.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.2)
20
- concurrent-ruby (1.1.9)
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.8.11)
23
+ i18n (1.12.0)
24
24
  concurrent-ruby (~> 1.0)
25
- method_source (0.9.2)
26
- minitest (5.15.0)
27
- pg (1.2.3)
28
- pry (0.12.2)
29
- coderay (~> 1.1.0)
30
- method_source (~> 0.9.0)
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.4)
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.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.exists?(path) || File.lstat(path).symlink? }
21
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").reject { |path| !File.exists?(path) || File.lstat(path).symlink? }
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
@@ -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.exists?(yaml_config_path)
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.exists?(lockfile) or raise MissingLockfile, "Lockfile not found: #{lockfile}"
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.exists?(gemfile) or raise MissingGemfile, "Gemfile not found: #{gemfile}"
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.exists?(travis_location)
165
+ if File.exist?(travis_location)
166
166
  from_travis_yml(:path => travis_location)
167
- elsif File.exists?(workflow_location)
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}"
@@ -1,3 +1,3 @@
1
1
  module Gemika
2
- VERSION = '0.7.1'
2
+ VERSION = '0.8.0'
3
3
  end
@@ -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(:exists?).with('.travis.yml').and_return(true)
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(:exists?).with('.travis.yml').and_return(false)
244
- File.should_receive(:exists?).with('.github/workflows/test.yml').and_return(true)
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(:exists?).with('.travis.yml').and_return(false)
251
- File.should_receive(:exists?).with('.github/workflows/test.yml').and_return(false)
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.7.1
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: 2022-03-16 00:00:00.000000000 Z
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.2.22
105
+ rubygems_version: 3.4.1
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Helpers for testing Ruby gems