still_active 1.2.0 → 1.3.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: 8c861ae8a727347f9b276576f3da48d806fbc25ab05020d849e5e92c8de49732
4
- data.tar.gz: bc3e5d7429e17adc0b6b0e955f50a6ddb9e7f157f1c656bf8c9044113cd5a97e
3
+ metadata.gz: a7aee27885f6f98048897a021e6fca1f60f991a6c7812d125c5ed61fa497a691
4
+ data.tar.gz: 75c494745c87bb74f9e5c770cb374d98746727c103eb7393b1e838c9495daefe
5
5
  SHA512:
6
- metadata.gz: e922835a769aeb9817dd27e99bf194c39e21e43794ee66d6d7d1db4c2c9ccaf11cf40d75ac251302f014f3df539998ab4e285f446fb68b6aaa080259421cc1fb
7
- data.tar.gz: 932b7e3dbd72cd02492070eced16a77e1a8a1649bb86132f2a7f827339d3f42138633139cbfd5134e31b1c4a92d18b28758afafc74674402f72a9ed2d7512399
6
+ metadata.gz: 6864d20e743742e1da0a8f5dc8353444ece8593fa541733414404297b06c370e6ef620528d0303b01348548d15a5f619f1d98a8d48dd0405200823a97c46665d
7
+ data.tar.gz: 9bf1c0e5c85375bf23ad38704b4c45166793a261967749e6b434b07be4984b157ad5da166cfc8670618aacae08ebdc152f9e2a020985907d240abe789b5d45d9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.3.0] - 2026-04-08
4
+
5
+ ### Changed
6
+
7
+ - **BREAKING:** Bump minimum Ruby version to 3.3 (3.2 is EOL); transitive dependencies (e.g. `io-event`) now require Ruby >= 3.3
8
+
9
+ ## [1.2.1] - 2026-02-20
10
+
11
+ ### Fixed
12
+
13
+ - Ruby version freshness reported the running Ruby (e.g. 4.0.1) instead of the target project's Ruby from `Gemfile.lock`; now reads `RUBY VERSION` section from lockfile, falls back to running version only when absent
14
+ - Platform-specific gems (e.g. `nokogiri` on multiple architectures) were processed once per platform, wasting API calls and inflating the progress counter total
15
+
3
16
  ## [1.2.0] - 2026-02-20
4
17
 
5
18
  ### Added
@@ -12,6 +12,7 @@ module StillActive
12
12
  .locked_gems
13
13
  .specs
14
14
  .select { |spec| gemfile_gems.include?(spec.name) }
15
+ .uniq(&:name)
15
16
  .map do |spec|
16
17
  {
17
18
  name: spec.name,
@@ -11,12 +11,12 @@ module StillActive
11
11
  ENDOFLIFE_URI = URI("https://endoflife.date/")
12
12
 
13
13
  def ruby_freshness
14
- return unless standard_ruby?
14
+ current = current_ruby_version
15
+ return if current.nil?
15
16
 
16
17
  cycles = fetch_cycles
17
18
  return if cycles.nil?
18
19
 
19
- current = current_ruby_version
20
20
  current_cycle = find_cycle(cycles, current)
21
21
  latest_cycle = cycles.first
22
22
 
@@ -43,12 +43,20 @@ module StillActive
43
43
 
44
44
  private
45
45
 
46
- def standard_ruby?
47
- RUBY_ENGINE == "ruby"
46
+ def current_ruby_version
47
+ lockfile_ruby_version || (RUBY_ENGINE == "ruby" ? RUBY_VERSION : nil)
48
48
  end
49
49
 
50
- def current_ruby_version
51
- RUBY_VERSION
50
+ def lockfile_ruby_version
51
+ gemfile = ENV["BUNDLE_GEMFILE"]
52
+ return unless gemfile
53
+
54
+ lockfile_path = "#{gemfile}.lock"
55
+ return unless File.exist?(lockfile_path)
56
+
57
+ content = File.read(lockfile_path)
58
+ match = content.match(/^RUBY VERSION\n\s+ruby (\d+\.\d+\.\d+)/)
59
+ match&.[](1)
52
60
  end
53
61
 
54
62
  def fetch_cycles
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StillActive
4
- VERSION = "1.2.0"
4
+ VERSION = "1.3.0"
5
5
  end
data/still_active.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  "A comprehensive alternative to running bundle outdated, bundler-audit, and libyear-bundler separately."
20
20
  spec.homepage = "https://github.com/SeanLF/still_active"
21
21
  spec.license = "MIT"
22
- spec.required_ruby_version = ">= 3.2.0"
22
+ spec.required_ruby_version = ">= 3.3.0"
23
23
 
24
24
  spec.metadata["homepage_uri"] = spec.homepage
25
25
  spec.metadata["source_code_uri"] = spec.homepage
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: still_active
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Floyd
@@ -220,14 +220,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
220
220
  requirements:
221
221
  - - ">="
222
222
  - !ruby/object:Gem::Version
223
- version: 3.2.0
223
+ version: 3.3.0
224
224
  required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  requirements:
226
226
  - - ">="
227
227
  - !ruby/object:Gem::Version
228
228
  version: '0'
229
229
  requirements: []
230
- rubygems_version: 4.0.3
230
+ rubygems_version: 4.0.6
231
231
  specification_version: 4
232
232
  summary: Audit your Ruby dependencies for maintenance health, outdated versions, vulnerabilities,
233
233
  and abandoned gems.