still_active 1.2.0 → 1.2.1
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/CHANGELOG.md +7 -0
- data/lib/helpers/bundler_helper.rb +1 -0
- data/lib/helpers/ruby_helper.rb +14 -6
- data/lib/still_active/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c443b34e114712ecfb265633fcd0293c122f6e1cb9601e03fa7605384e69fd6
|
|
4
|
+
data.tar.gz: 8113b917cdcaa3e90704b06814863606b574bd90f2254dbb44945aa816c18a49
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b05d36cd5b8313ac39e6b18cb00a6c8193347e0388a3844bd6501d3760e6fb78bc709fc36a6ef9370ddca73fc6f46b97747d1df33d37324771c09b62f09426a
|
|
7
|
+
data.tar.gz: 0d6964db03f4ac800016f6c6a4adb9ed0c3651351f83af3b21e7caf66354a1e991e4e5ccc999332c3bb23c93248fcdbfaedb452745766b1a306dc209874ff317
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.1] - 2026-02-20
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- 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
|
|
8
|
+
- Platform-specific gems (e.g. `nokogiri` on multiple architectures) were processed once per platform, wasting API calls and inflating the progress counter total
|
|
9
|
+
|
|
3
10
|
## [1.2.0] - 2026-02-20
|
|
4
11
|
|
|
5
12
|
### Added
|
data/lib/helpers/ruby_helper.rb
CHANGED
|
@@ -11,12 +11,12 @@ module StillActive
|
|
|
11
11
|
ENDOFLIFE_URI = URI("https://endoflife.date/")
|
|
12
12
|
|
|
13
13
|
def ruby_freshness
|
|
14
|
-
|
|
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
|
|
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
|
|
51
|
-
|
|
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
|
data/lib/still_active/version.rb
CHANGED