gemika 0.8.2 → 0.8.4

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: b533117c01bb5d6011e1e2f41291be1e6aa14af11eb876cba896ed0a4f2630f7
4
- data.tar.gz: 53f1415288ad8653657966277cab42c128dfd2cb8ddf5e2aeb811a01b518043c
3
+ metadata.gz: 393e28bb1c4151adde120249507c3a900dd57d0927f44656210d748c904b5a64
4
+ data.tar.gz: 18cf9faa080c1889a5833ff3932ba35a5f78dbf82eeac01c45564f3cf7376563
5
5
  SHA512:
6
- metadata.gz: bb8b3695cd7dc1c01fdf9a558b0795d8590f90876350f65aee69348927f987a4e92b818f57c2895dcffc0b0a807745137a7f3151e549f88508b478f4d2735834
7
- data.tar.gz: 3d28afbc37f5492990f55034aa0889e10506db61c427a816f0f072ec1e35cf4e9fbde658176593f1c24c881d12f9a44c75c912f8a48f0638622edbe8d84f3cfd
6
+ metadata.gz: 532ae9f6a68f25de76abfef5d25a8467940981779692dc712a0dc42699cfa926174e8fbb70e2f47b20497676f994e1fcf0c475467b75dc0c7e0d64cd9ab58472
7
+ data.tar.gz: ba86b00bfddade82b81ec2a5fa9949a5516934d1f190f9c6a82bf51d2531a7acbc5efe92fe6cd263bfa359f7909659b1df43e79b2cc32c2bc7e8c53756af4948
@@ -69,6 +69,14 @@ jobs:
69
69
  gemfile: Gemfile.6.1.pg
70
70
  - ruby: 3.2.0
71
71
  gemfile: Gemfile.7.0.pg
72
+ - ruby: 3.4.1
73
+ gemfile: Gemfile.6.1.pg
74
+ - ruby: 3.4.1
75
+ gemfile: Gemfile.7.0.pg
76
+ - ruby: 3.2.0
77
+ gemfile: Gemfile.8.0.pg
78
+ - ruby: 3.4.1
79
+ gemfile: Gemfile.8.0.pg
72
80
  env:
73
81
  BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
74
82
  steps:
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.2.0
1
+ 3.4.1
data/CHANGELOG.md CHANGED
@@ -13,6 +13,17 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
13
13
 
14
14
  -
15
15
 
16
+ ## 0.8.4 - 2025-01-16
17
+
18
+ - Add support for Ruby 3.4
19
+ - Test against ActiveRecord 8.0
20
+
21
+ ## 0.8.3 - 2024-01-04
22
+
23
+ ### Compatible changes
24
+
25
+ - handle missing rbenv-aliases plugin
26
+
16
27
 
17
28
  ## 0.8.2 - 2023-07-13
18
29
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.8.2)
4
+ gemika (0.8.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/Gemfile.5.2.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.8.2)
4
+ gemika (0.8.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.8.2)
4
+ gemika (0.8.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/Gemfile.6.1.pg CHANGED
@@ -3,6 +3,11 @@ source 'https://rubygems.org'
3
3
  # Ruby
4
4
  ruby '>= 2.2'
5
5
 
6
+ # Former standard gems, see https://stdgems.org/
7
+ gem 'mutex_m' # Bundled gem since Ruby 3.4
8
+ gem 'bigdecimal' # Bundled gem since Ruby 3.4
9
+ gem 'base64' # Bundled gem since Ruby 3.4
10
+
6
11
  # Runtime dependencies
7
12
  gem 'activerecord', '~>6.1.0'
8
13
  gem 'rspec', '~>3.5'
data/Gemfile.6.1.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.8.2)
4
+ gemika (0.8.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -17,6 +17,8 @@ GEM
17
17
  minitest (>= 5.1)
18
18
  tzinfo (~> 2.0)
19
19
  zeitwerk (~> 2.3)
20
+ base64 (0.2.0)
21
+ bigdecimal (3.1.9)
20
22
  coderay (1.1.3)
21
23
  concurrent-ruby (1.1.8)
22
24
  database_cleaner (1.7.0)
@@ -25,6 +27,7 @@ GEM
25
27
  concurrent-ruby (~> 1.0)
26
28
  method_source (1.0.0)
27
29
  minitest (5.14.4)
30
+ mutex_m (0.3.0)
28
31
  pg (1.3.5)
29
32
  pry (0.14.2)
30
33
  coderay (~> 1.1)
@@ -52,8 +55,11 @@ PLATFORMS
52
55
 
53
56
  DEPENDENCIES
54
57
  activerecord (~> 6.1.0)
58
+ base64
59
+ bigdecimal
55
60
  database_cleaner
56
61
  gemika!
62
+ mutex_m
57
63
  pg (~> 1.3.5)
58
64
  pry (~> 0.14.2)
59
65
  rake
data/Gemfile.7.0.pg CHANGED
@@ -3,6 +3,10 @@ source 'https://rubygems.org'
3
3
  # Ruby
4
4
  ruby '>= 2.2'
5
5
 
6
+ # Former standard gems, see https://stdgems.org/
7
+ gem 'mutex_m' # Bundled gem since Ruby 3.4
8
+ gem 'bigdecimal' # Bundled gem since Ruby 3.4
9
+
6
10
  # Runtime dependencies
7
11
  gem 'activerecord', '~> 7.0.1'
8
12
  gem 'rspec', '~>3.5'
data/Gemfile.7.0.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.8.2)
4
+ gemika (0.8.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -16,6 +16,7 @@ GEM
16
16
  i18n (>= 1.6, < 2)
17
17
  minitest (>= 5.1)
18
18
  tzinfo (~> 2.0)
19
+ bigdecimal (3.1.8)
19
20
  coderay (1.1.3)
20
21
  concurrent-ruby (1.1.10)
21
22
  database_cleaner (1.7.0)
@@ -24,6 +25,7 @@ GEM
24
25
  concurrent-ruby (~> 1.0)
25
26
  method_source (1.0.0)
26
27
  minitest (5.17.0)
28
+ mutex_m (0.3.0)
27
29
  pg (1.3.5)
28
30
  pry (0.14.2)
29
31
  coderay (~> 1.1)
@@ -50,8 +52,10 @@ PLATFORMS
50
52
 
51
53
  DEPENDENCIES
52
54
  activerecord (~> 7.0.1)
55
+ bigdecimal
53
56
  database_cleaner
54
57
  gemika!
58
+ mutex_m
55
59
  pg (~> 1.3.5)
56
60
  pry (~> 0.14.2)
57
61
  rake
data/Gemfile.8.0.pg ADDED
@@ -0,0 +1,17 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Ruby
4
+ ruby '>= 2.2'
5
+
6
+ # Runtime dependencies
7
+ gem 'activerecord', '~> 8.0.1'
8
+ gem 'rspec', '~>3.5'
9
+ gem 'pg', '~> 1.5.6'
10
+
11
+ # Development dependencies
12
+ gem 'rake'
13
+ gem 'database_cleaner', '~> 2.0.2'
14
+ gem 'pry', '~> 0.14.2'
15
+
16
+ # Gem under test
17
+ gem 'gemika', :path => '.'
@@ -0,0 +1,87 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ gemika (0.8.4)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ activemodel (8.0.1)
10
+ activesupport (= 8.0.1)
11
+ activerecord (8.0.1)
12
+ activemodel (= 8.0.1)
13
+ activesupport (= 8.0.1)
14
+ timeout (>= 0.4.0)
15
+ activesupport (8.0.1)
16
+ base64
17
+ benchmark (>= 0.3)
18
+ bigdecimal
19
+ concurrent-ruby (~> 1.0, >= 1.3.1)
20
+ connection_pool (>= 2.2.5)
21
+ drb
22
+ i18n (>= 1.6, < 2)
23
+ logger (>= 1.4.2)
24
+ minitest (>= 5.1)
25
+ securerandom (>= 0.3)
26
+ tzinfo (~> 2.0, >= 2.0.5)
27
+ uri (>= 0.13.1)
28
+ base64 (0.2.0)
29
+ benchmark (0.4.0)
30
+ bigdecimal (3.1.8)
31
+ coderay (1.1.3)
32
+ concurrent-ruby (1.3.4)
33
+ connection_pool (2.4.1)
34
+ database_cleaner (2.0.2)
35
+ database_cleaner-active_record (>= 2, < 3)
36
+ database_cleaner-active_record (2.2.0)
37
+ activerecord (>= 5.a)
38
+ database_cleaner-core (~> 2.0.0)
39
+ database_cleaner-core (2.0.1)
40
+ diff-lcs (1.5.0)
41
+ drb (2.2.1)
42
+ i18n (1.14.6)
43
+ concurrent-ruby (~> 1.0)
44
+ logger (1.6.4)
45
+ method_source (1.0.0)
46
+ minitest (5.25.4)
47
+ pg (1.5.9)
48
+ pry (0.14.2)
49
+ coderay (~> 1.1)
50
+ method_source (~> 1.0)
51
+ rake (12.3.3)
52
+ rspec (3.8.0)
53
+ rspec-core (~> 3.8.0)
54
+ rspec-expectations (~> 3.8.0)
55
+ rspec-mocks (~> 3.8.0)
56
+ rspec-core (3.8.2)
57
+ rspec-support (~> 3.8.0)
58
+ rspec-expectations (3.8.6)
59
+ diff-lcs (>= 1.2.0, < 2.0)
60
+ rspec-support (~> 3.8.0)
61
+ rspec-mocks (3.8.2)
62
+ diff-lcs (>= 1.2.0, < 2.0)
63
+ rspec-support (~> 3.8.0)
64
+ rspec-support (3.8.3)
65
+ securerandom (0.4.1)
66
+ timeout (0.4.3)
67
+ tzinfo (2.0.6)
68
+ concurrent-ruby (~> 1.0)
69
+ uri (1.0.2)
70
+
71
+ PLATFORMS
72
+ ruby
73
+
74
+ DEPENDENCIES
75
+ activerecord (~> 8.0.1)
76
+ database_cleaner (~> 2.0.2)
77
+ gemika!
78
+ pg (~> 1.5.6)
79
+ pry (~> 0.14.2)
80
+ rake
81
+ rspec (~> 3.5)
82
+
83
+ RUBY VERSION
84
+ ruby 2.2.4p230
85
+
86
+ BUNDLED WITH
87
+ 2.3.1
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: 2.3, 2.6, 3.0
31
+ - Ruby: 2.5, 2.6, 2.7, 3.2, 3.4
32
32
  - RSpec: Versions 1, 2, 3
33
- - ActiveRecord: Versions 3.2, 4.2, 5.2, 6.1, 7.0
33
+ - ActiveRecord: Versions 5.2, 6.1, 7.0, 8.0
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:
data/lib/gemika/matrix.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'open3'
1
2
  require 'yaml'
2
3
  require 'gemika/errors'
3
4
  require 'gemika/env'
@@ -89,11 +90,15 @@ module Gemika
89
90
  end
90
91
 
91
92
  ##
92
- # Returns the list of rbenv aliases, if rbenv is installed.
93
+ # Returns the list of rbenv aliases, if rbenv is installed with rbenv-aliases plugin.
93
94
  #
94
95
  def rbenv_aliases
95
- if `which rbenv` != ''
96
- `rbenv alias --list`
96
+ _output, status = Open3.capture2e('which', 'rbenv')
97
+ return '' unless status.success?
98
+
99
+ output, status = Open3.capture2e('rbenv', 'alias', '--list')
100
+ if status.success?
101
+ output
97
102
  else
98
103
  ''
99
104
  end
@@ -1,3 +1,3 @@
1
1
  module Gemika
2
- VERSION = '0.8.2'
2
+ VERSION = '0.8.4'
3
3
  end
@@ -57,6 +57,19 @@ describe Gemika::Matrix::Row do
57
57
  end
58
58
  end
59
59
 
60
+ context 'when rbenv is installed without rbenv-aliases plugin' do
61
+ before do
62
+ allow(Open3).to receive(:capture2e).with('which', 'rbenv').and_return(['/path/to/rbenv', double(success?: true, exitstatus: 0)])
63
+ allow(Open3).to receive(:capture2e).with('rbenv', 'alias', '--list').and_return(['rbenv: no such command `alias', double(success?: false, exitstatus: 1)])
64
+ end
65
+
66
+ it 'does not crash and does not print errors' do
67
+ expect do
68
+ expect(subject.compatible_with_ruby?('3.0.3')).to eq(true)
69
+ end.to output('').to_stdout_from_any_process.and output('').to_stderr_from_any_process
70
+ end
71
+ end
72
+
60
73
  end
61
74
 
62
75
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemika
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-07-13 00:00:00.000000000 Z
10
+ date: 2025-01-16 00:00:00.000000000 Z
12
11
  dependencies: []
13
12
  description: Helpers for testing Ruby gems
14
13
  email: henning.koch@makandra.de
@@ -33,6 +32,8 @@ files:
33
32
  - Gemfile.6.1.pg.lock
34
33
  - Gemfile.7.0.pg
35
34
  - Gemfile.7.0.pg.lock
35
+ - Gemfile.8.0.pg
36
+ - Gemfile.8.0.pg.lock
36
37
  - LICENSE
37
38
  - README.md
38
39
  - Rakefile
@@ -89,7 +90,6 @@ metadata:
89
90
  bug_tracker_uri: https://github.com/makandra/gemika/issues
90
91
  changelog_uri: https://github.com/makandra/gemika/blob/master/CHANGELOG.md
91
92
  rubygems_mfa_required: 'true'
92
- post_install_message:
93
93
  rdoc_options: []
94
94
  require_paths:
95
95
  - lib
@@ -104,8 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
- rubygems_version: 3.4.14
108
- signing_key:
107
+ rubygems_version: 3.6.2
109
108
  specification_version: 4
110
109
  summary: Helpers for testing Ruby gems
111
110
  test_files: []