libyear-rb 0.3.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6b4d96b0645167046f8d422fc466f9572d9a0ad638460fc4e8bb310dfcd0500
4
- data.tar.gz: bf0f0879a4194b4e0751128581f60cde9878ebe3975fdee48a65da296949d636
3
+ metadata.gz: 5fd3a3cb807112b4410055962b40fffaa8bd60400e3cd8a85cf258117d530288
4
+ data.tar.gz: da35a4dc601ec425a319127cf2c17e5ddc7089c09b60986610ed20b747b29b02
5
5
  SHA512:
6
- metadata.gz: 75c88d118968ddfbd7806e8d79c9019777ba0b907255dda850241d74ffebb3968dd41bd91166963c79986b38be138a4e0bb885be5fb661614bb67a011b962a1d
7
- data.tar.gz: 399902a6cba120aa92de232574366a7b9ab35356f60deb6e2c9149313e633cd815a460dbb3d874ccae556693bac8a138b6cd30ef15757c3763865c3890dc13e6
6
+ metadata.gz: 024fe24ce2741e01b0980bdbe7b12f37acf0c7bbb2721e6439578e66330d15ecaabe5265c849e98d05db9906c5bf268ffa59cd45ccddb0f1bf1b954c9369ae08
7
+ data.tar.gz: 32404a74060ab2b2bcee283fcd8870a187744597840a55a6d01e98965c2d2dccf46517544ddd63d3b3dbff79b38f9b86bfa3d7e88fe69ba291bb81ed89e16ebc
@@ -5,19 +5,41 @@ on:
5
5
  pull_request:
6
6
  jobs:
7
7
  testing:
8
- name: Testing
8
+ name: Testing (${{ matrix.gemfile }})
9
9
  runs-on: ubuntu-24.04-arm
10
+ strategy:
11
+ matrix:
12
+ gemfile:
13
+ - gems1
14
+ - gems2
15
+ - gems3
16
+ env:
17
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
10
18
  steps:
11
- - uses: actions/checkout@v6
19
+ - uses: actions/checkout@v7
12
20
  - uses: ruby/setup-ruby@v1
13
21
  with:
14
22
  bundler-cache: true
15
23
  - run: bundle exec rake test
24
+ did_all_tests_pass:
25
+ name: Testing
26
+ needs: testing
27
+ if: always()
28
+ runs-on: ubuntu-24.04-arm
29
+ steps:
30
+ - run: |
31
+ if ${{ needs.testing.result == 'success' }}
32
+ then
33
+ echo "All tests pass"
34
+ else
35
+ echo "Some tests failed"
36
+ false
37
+ fi
16
38
  linting:
17
39
  name: Linting
18
40
  runs-on: ubuntu-24.04-arm
19
41
  steps:
20
- - uses: actions/checkout@v6
42
+ - uses: actions/checkout@v7
21
43
  - uses: ruby/setup-ruby@v1
22
44
  with:
23
45
  bundler-cache: true
@@ -16,7 +16,7 @@ jobs:
16
16
  contents: write
17
17
 
18
18
  steps:
19
- - uses: actions/checkout@v6
19
+ - uses: actions/checkout@v7
20
20
  - uses: ruby/setup-ruby@v1
21
21
  with:
22
22
  bundler-cache: true
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.4.0] - 2026-11-06
6
+
7
+ ### Fixed
8
+
9
+ - Fixed compatibility between the `gems` gem v2 and v3, which caused the cache to be unreadable, and libyear exiting without result or output.
10
+
5
11
  ## [0.3.0] - 2026-09-02
6
12
 
7
13
  ### Fixed
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "irb"
6
+ gem "minitest"
7
+ gem "minitest-rg"
8
+ gem "rake"
9
+ gem "rubocop-minitest"
10
+ gem "rubocop-rake"
11
+ gem "standard"
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ gemspec path: ".."
4
+
5
+ eval_gemfile "common.rb"
6
+
7
+ gem "gems", "1.3.0"
@@ -0,0 +1,111 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ libyear-rb (0.4.0)
5
+ gems (>= 1.3)
6
+ logger
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ast (2.4.3)
12
+ drb (2.2.3)
13
+ erb (6.0.7)
14
+ gems (1.3.0)
15
+ io-console (0.9.5)
16
+ irb (1.18.0)
17
+ pp (>= 0.6.0)
18
+ prism (>= 1.3.0)
19
+ rdoc (>= 4.0.0)
20
+ reline (>= 0.4.2)
21
+ json (3.1.0)
22
+ language_server-protocol (3.17.0.6)
23
+ lint_roller (1.1.0)
24
+ logger (1.7.0)
25
+ minitest (6.0.6)
26
+ drb (~> 2.0)
27
+ prism (~> 1.5)
28
+ minitest-rg (5.4.0)
29
+ minitest (>= 5.0, < 7)
30
+ parallel (1.28.0)
31
+ parser (3.3.13.0)
32
+ ast (~> 2.4.1)
33
+ racc
34
+ pp (0.6.4)
35
+ prettyprint
36
+ prettyprint (0.2.1)
37
+ prism (1.9.0)
38
+ racc (1.8.1)
39
+ rainbow (3.1.1)
40
+ rake (13.4.2)
41
+ rbs (4.1.3)
42
+ logger
43
+ prism (>= 1.6.0)
44
+ tsort
45
+ rdoc (8.1.0)
46
+ erb
47
+ prism (>= 1.6.0)
48
+ rbs (>= 4.0.0)
49
+ tsort
50
+ regexp_parser (2.13.1)
51
+ reline (0.7.0)
52
+ io-console (~> 0.5)
53
+ rubocop (1.91.0)
54
+ json (>= 2.3)
55
+ language_server-protocol (~> 3.17.0.2)
56
+ lint_roller (~> 1.1.0)
57
+ parallel (>= 1.10)
58
+ parser (>= 3.3.0.2)
59
+ rainbow (>= 2.2.2, < 4.0)
60
+ regexp_parser (>= 2.9.3, < 3.0)
61
+ rubocop-ast (>= 1.49.0, < 2.0)
62
+ ruby-progressbar (~> 1.7)
63
+ unicode-display_width (>= 2.4.0, < 4.0)
64
+ rubocop-ast (1.50.0)
65
+ parser (>= 3.3.7.2)
66
+ prism (~> 1.7)
67
+ rubocop-minitest (0.41.0)
68
+ lint_roller (~> 1.1)
69
+ rubocop (>= 1.89.0, < 2.0)
70
+ rubocop-ast (>= 1.38.0, < 2.0)
71
+ rubocop-performance (1.26.1)
72
+ lint_roller (~> 1.1)
73
+ rubocop (>= 1.75.0, < 2.0)
74
+ rubocop-ast (>= 1.47.1, < 2.0)
75
+ rubocop-rake (0.7.1)
76
+ lint_roller (~> 1.1)
77
+ rubocop (>= 1.72.1)
78
+ ruby-progressbar (1.13.0)
79
+ standard (1.57.0)
80
+ language_server-protocol (~> 3.17.0.2)
81
+ lint_roller (~> 1.0)
82
+ rubocop (~> 1.91.0)
83
+ standard-custom (~> 1.0.0)
84
+ standard-performance (~> 1.8)
85
+ standard-custom (1.0.2)
86
+ lint_roller (~> 1.0)
87
+ rubocop (~> 1.50)
88
+ standard-performance (1.9.0)
89
+ lint_roller (~> 1.1)
90
+ rubocop-performance (~> 1.26.0)
91
+ tsort (0.2.0)
92
+ unicode-display_width (3.3.0)
93
+ unicode-emoji (~> 4.3)
94
+ unicode-emoji (4.3.0)
95
+
96
+ PLATFORMS
97
+ ruby
98
+
99
+ DEPENDENCIES
100
+ gems (= 1.3.0)
101
+ irb
102
+ libyear-rb!
103
+ minitest
104
+ minitest-rg
105
+ rake
106
+ rubocop-minitest
107
+ rubocop-rake
108
+ standard
109
+
110
+ BUNDLED WITH
111
+ 4.0.24
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ gemspec path: ".."
4
+
5
+ eval_gemfile "common.rb"
6
+
7
+ gem "gems", "~> 2.0.0"
@@ -0,0 +1,111 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ libyear-rb (0.4.0)
5
+ gems (>= 1.3)
6
+ logger
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ast (2.4.3)
12
+ drb (2.2.3)
13
+ erb (6.0.7)
14
+ gems (2.0.0)
15
+ io-console (0.9.5)
16
+ irb (1.18.0)
17
+ pp (>= 0.6.0)
18
+ prism (>= 1.3.0)
19
+ rdoc (>= 4.0.0)
20
+ reline (>= 0.4.2)
21
+ json (3.1.0)
22
+ language_server-protocol (3.17.0.6)
23
+ lint_roller (1.1.0)
24
+ logger (1.7.0)
25
+ minitest (6.0.6)
26
+ drb (~> 2.0)
27
+ prism (~> 1.5)
28
+ minitest-rg (5.4.0)
29
+ minitest (>= 5.0, < 7)
30
+ parallel (1.28.0)
31
+ parser (3.3.13.0)
32
+ ast (~> 2.4.1)
33
+ racc
34
+ pp (0.6.4)
35
+ prettyprint
36
+ prettyprint (0.2.1)
37
+ prism (1.9.0)
38
+ racc (1.8.1)
39
+ rainbow (3.1.1)
40
+ rake (13.4.2)
41
+ rbs (4.1.3)
42
+ logger
43
+ prism (>= 1.6.0)
44
+ tsort
45
+ rdoc (8.1.0)
46
+ erb
47
+ prism (>= 1.6.0)
48
+ rbs (>= 4.0.0)
49
+ tsort
50
+ regexp_parser (2.13.1)
51
+ reline (0.7.0)
52
+ io-console (~> 0.5)
53
+ rubocop (1.91.0)
54
+ json (>= 2.3)
55
+ language_server-protocol (~> 3.17.0.2)
56
+ lint_roller (~> 1.1.0)
57
+ parallel (>= 1.10)
58
+ parser (>= 3.3.0.2)
59
+ rainbow (>= 2.2.2, < 4.0)
60
+ regexp_parser (>= 2.9.3, < 3.0)
61
+ rubocop-ast (>= 1.49.0, < 2.0)
62
+ ruby-progressbar (~> 1.7)
63
+ unicode-display_width (>= 2.4.0, < 4.0)
64
+ rubocop-ast (1.50.0)
65
+ parser (>= 3.3.7.2)
66
+ prism (~> 1.7)
67
+ rubocop-minitest (0.41.0)
68
+ lint_roller (~> 1.1)
69
+ rubocop (>= 1.89.0, < 2.0)
70
+ rubocop-ast (>= 1.38.0, < 2.0)
71
+ rubocop-performance (1.26.1)
72
+ lint_roller (~> 1.1)
73
+ rubocop (>= 1.75.0, < 2.0)
74
+ rubocop-ast (>= 1.47.1, < 2.0)
75
+ rubocop-rake (0.7.1)
76
+ lint_roller (~> 1.1)
77
+ rubocop (>= 1.72.1)
78
+ ruby-progressbar (1.13.0)
79
+ standard (1.57.0)
80
+ language_server-protocol (~> 3.17.0.2)
81
+ lint_roller (~> 1.0)
82
+ rubocop (~> 1.91.0)
83
+ standard-custom (~> 1.0.0)
84
+ standard-performance (~> 1.8)
85
+ standard-custom (1.0.2)
86
+ lint_roller (~> 1.0)
87
+ rubocop (~> 1.50)
88
+ standard-performance (1.9.0)
89
+ lint_roller (~> 1.1)
90
+ rubocop-performance (~> 1.26.0)
91
+ tsort (0.2.0)
92
+ unicode-display_width (3.3.0)
93
+ unicode-emoji (~> 4.3)
94
+ unicode-emoji (4.3.0)
95
+
96
+ PLATFORMS
97
+ ruby
98
+
99
+ DEPENDENCIES
100
+ gems (~> 2.0.0)
101
+ irb
102
+ libyear-rb!
103
+ minitest
104
+ minitest-rg
105
+ rake
106
+ rubocop-minitest
107
+ rubocop-rake
108
+ standard
109
+
110
+ BUNDLED WITH
111
+ 4.0.24
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ gemspec path: ".."
4
+
5
+ eval_gemfile "common.rb"
6
+
7
+ gem "gems", "~> 3.0.0"
@@ -0,0 +1,111 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ libyear-rb (0.4.0)
5
+ gems (>= 1.3)
6
+ logger
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ast (2.4.3)
12
+ drb (2.2.3)
13
+ erb (6.0.7)
14
+ gems (3.0.0)
15
+ io-console (0.9.5)
16
+ irb (1.18.0)
17
+ pp (>= 0.6.0)
18
+ prism (>= 1.3.0)
19
+ rdoc (>= 4.0.0)
20
+ reline (>= 0.4.2)
21
+ json (3.1.0)
22
+ language_server-protocol (3.17.0.6)
23
+ lint_roller (1.1.0)
24
+ logger (1.7.0)
25
+ minitest (6.0.6)
26
+ drb (~> 2.0)
27
+ prism (~> 1.5)
28
+ minitest-rg (5.4.0)
29
+ minitest (>= 5.0, < 7)
30
+ parallel (2.3.0)
31
+ parser (3.3.13.0)
32
+ ast (~> 2.4.1)
33
+ racc
34
+ pp (0.6.4)
35
+ prettyprint
36
+ prettyprint (0.2.1)
37
+ prism (1.9.0)
38
+ racc (1.8.1)
39
+ rainbow (3.1.1)
40
+ rake (13.4.2)
41
+ rbs (4.2.0)
42
+ logger
43
+ prism (>= 1.6.0)
44
+ tsort
45
+ rdoc (8.1.0)
46
+ erb
47
+ prism (>= 1.6.0)
48
+ rbs (>= 4.0.0)
49
+ tsort
50
+ regexp_parser (2.13.1)
51
+ reline (0.7.0)
52
+ io-console (~> 0.5)
53
+ rubocop (1.91.0)
54
+ json (>= 2.3)
55
+ language_server-protocol (~> 3.17.0.2)
56
+ lint_roller (~> 1.1.0)
57
+ parallel (>= 1.10)
58
+ parser (>= 3.3.0.2)
59
+ rainbow (>= 2.2.2, < 4.0)
60
+ regexp_parser (>= 2.9.3, < 3.0)
61
+ rubocop-ast (>= 1.49.0, < 2.0)
62
+ ruby-progressbar (~> 1.7)
63
+ unicode-display_width (>= 2.4.0, < 4.0)
64
+ rubocop-ast (1.50.0)
65
+ parser (>= 3.3.7.2)
66
+ prism (~> 1.7)
67
+ rubocop-minitest (0.41.0)
68
+ lint_roller (~> 1.1)
69
+ rubocop (>= 1.89.0, < 2.0)
70
+ rubocop-ast (>= 1.38.0, < 2.0)
71
+ rubocop-performance (1.26.1)
72
+ lint_roller (~> 1.1)
73
+ rubocop (>= 1.75.0, < 2.0)
74
+ rubocop-ast (>= 1.47.1, < 2.0)
75
+ rubocop-rake (0.7.1)
76
+ lint_roller (~> 1.1)
77
+ rubocop (>= 1.72.1)
78
+ ruby-progressbar (1.13.0)
79
+ standard (1.57.0)
80
+ language_server-protocol (~> 3.17.0.2)
81
+ lint_roller (~> 1.0)
82
+ rubocop (~> 1.91.0)
83
+ standard-custom (~> 1.0.0)
84
+ standard-performance (~> 1.8)
85
+ standard-custom (1.0.2)
86
+ lint_roller (~> 1.0)
87
+ rubocop (~> 1.50)
88
+ standard-performance (1.9.0)
89
+ lint_roller (~> 1.1)
90
+ rubocop-performance (~> 1.26.0)
91
+ tsort (0.2.0)
92
+ unicode-display_width (3.3.0)
93
+ unicode-emoji (~> 4.3)
94
+ unicode-emoji (4.3.0)
95
+
96
+ PLATFORMS
97
+ ruby
98
+
99
+ DEPENDENCIES
100
+ gems (~> 3.0.0)
101
+ irb
102
+ libyear-rb!
103
+ minitest
104
+ minitest-rg
105
+ rake
106
+ rubocop-minitest
107
+ rubocop-rake
108
+ standard
109
+
110
+ BUNDLED WITH
111
+ 4.0.24
@@ -76,7 +76,7 @@ module LibyearRb
76
76
 
77
77
  opts.separator ""
78
78
  opts.separator "Environment variables:"
79
- opts.separator " SKIP_CACHE=1 Disable reading to and writing from the libyear-rb cache"
79
+ opts.separator " SKIP_CACHE=1 Disable writing to and reading from the libyear-rb cache"
80
80
  end.parse!(@argv)
81
81
  end
82
82
 
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "json"
4
- require "pathname"
5
4
 
6
5
  module LibyearRb
7
6
  class FileCache
@@ -32,7 +32,7 @@ module LibyearRb
32
32
  def fetch_raw(gem_name)
33
33
  LibyearRb.cache.fetch(@remote_host, gem_name) do
34
34
  @rate_limiter.call
35
- Array(@client.versions(gem_name))
35
+ Array(@client.versions(gem_name)).map(&:to_h)
36
36
  rescue Gems::GemError, Gems::NotFound
37
37
  []
38
38
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LibyearRb
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libyear-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Countz
@@ -59,6 +59,13 @@ files:
59
59
  - README.md
60
60
  - Rakefile
61
61
  - exe/libyear-rb
62
+ - gemfiles/common.rb
63
+ - gemfiles/gems1.gemfile
64
+ - gemfiles/gems1.gemfile.lock
65
+ - gemfiles/gems2.gemfile
66
+ - gemfiles/gems2.gemfile.lock
67
+ - gemfiles/gems3.gemfile
68
+ - gemfiles/gems3.gemfile.lock
62
69
  - lib/libyear_rb.rb
63
70
  - lib/libyear_rb/cli.rb
64
71
  - lib/libyear_rb/dependency_analyzer.rb
@@ -95,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
102
  - !ruby/object:Gem::Version
96
103
  version: '0'
97
104
  requirements: []
98
- rubygems_version: 4.0.16
105
+ rubygems_version: 4.0.20
99
106
  specification_version: 4
100
107
  summary: A simple measure of dependency freshness
101
108
  test_files: []