hackmac 1.8.6 → 1.8.8
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/CHANGES.md +23 -0
- data/Rakefile +4 -0
- data/VERSION +1 -1
- data/bin/efi +17 -2
- data/hackmac.gemspec +2 -2
- data/lib/hackmac/github_source.rb +6 -1
- data/lib/hackmac/kext.rb +1 -1
- data/lib/hackmac/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: 7c8c0eca94ed5f928879ab9ff5a003a1244d3c57a6095a62e682ae4bad8e0441
|
|
4
|
+
data.tar.gz: 60f88a3daf23f9e332ab490c266d5f58ed22e0f63ac517d81197628e4e2039de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 23dbecaa04d1d5ceae68b76c655283c9fdfdf330800e55ef3a646f665db95d94e851c278ae7a6002067376eec938b05a0a496668cf07bcc406c1277659b84622
|
|
7
|
+
data.tar.gz: 42299611665c9cf127319b202a32dc16a7cf9edd202f1acf0942aeaae7f9322339734286d7c400713c611cc749bb4e59f88ebcf9547abe121a25a51f176fb5fa
|
data/CHANGES.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 2025-10-15 v1.8.8
|
|
4
|
+
|
|
5
|
+
- Handle invalid version strings by setting @version to **nil** instead of
|
|
6
|
+
storing malformed objects
|
|
7
|
+
- Changes in `bin\efi`
|
|
8
|
+
- Refactor version comparison styling into reusable `styler` lambda
|
|
9
|
+
- Extract version formatting logic into separate `formatter` lambda
|
|
10
|
+
- Update `Tabulo::Table` configuration to use the new lambda functions
|
|
11
|
+
- Improve version display logic to handle **nil** version comparisons gracefully
|
|
12
|
+
- Replace inline rescue logic with explicit nil checks for better error handling
|
|
13
|
+
- Updated `static.yml` workflow to use array syntax for branch specification
|
|
14
|
+
- Added `github_workflows` configuration to `Rakefile` for `static.yml` workflow
|
|
15
|
+
|
|
16
|
+
## 2025-10-15 v1.8.7
|
|
17
|
+
|
|
18
|
+
- Configure **User-Agent** header with version for GitHub API calls
|
|
19
|
+
- Refactor HTTP options into a single hash for cleaner API request handling
|
|
20
|
+
- Use `http_basic_authentication` with **auth** variable for GitHub API
|
|
21
|
+
authentication
|
|
22
|
+
- Apply `.compact` to remove nil values from HTTP options hash
|
|
23
|
+
- Update `URI.open` call to use consolidated options hash instead of direct
|
|
24
|
+
keyword arguments
|
|
25
|
+
|
|
3
26
|
## 2025-10-14 v1.8.6
|
|
4
27
|
|
|
5
28
|
- Added support for consistent parsing of both **v1.2.3** and **1.2.3** tag
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.8.
|
|
1
|
+
1.8.8
|
data/bin/efi
CHANGED
|
@@ -224,13 +224,28 @@ when 'kexts'
|
|
|
224
224
|
warn "#{path.to_s.inspect} has no info => Skipping."
|
|
225
225
|
end.compact.sort_by(&:name)
|
|
226
226
|
puts 'EFI'.yellow.bold + " (#{mdev})".bold
|
|
227
|
+
styler = -> v, s {
|
|
228
|
+
if v.version.nil? || v.remote_version.nil?
|
|
229
|
+
s.yellow
|
|
230
|
+
else
|
|
231
|
+
v.version < v.remote_version ? s.red : s.green
|
|
232
|
+
end
|
|
233
|
+
}
|
|
234
|
+
formatter = -> e {
|
|
235
|
+
if e.version.nil? || e.remote_version.nil?
|
|
236
|
+
e.version.to_s
|
|
237
|
+
else
|
|
238
|
+
operator = { 0 => ?=, -1 => ?<, 1 => ?> }[e.version <=> e.remote_version]
|
|
239
|
+
"%s %s %s" % [ e.version, operator, e.remote_version ]
|
|
240
|
+
end
|
|
241
|
+
}
|
|
227
242
|
puts Tabulo::Table.new(on_efi, align_header: :left, border: :modern) { |t|
|
|
228
243
|
t.add_column(:name, header_styler: bold_head)
|
|
229
244
|
t.add_column(
|
|
230
245
|
:itself,
|
|
231
246
|
header: 'Version/Remote',
|
|
232
|
-
styler
|
|
233
|
-
formatter
|
|
247
|
+
styler:,
|
|
248
|
+
formatter:,
|
|
234
249
|
header_styler: bold_head
|
|
235
250
|
)
|
|
236
251
|
t.add_column(:path, header_styler: bold_head)
|
data/hackmac.gemspec
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: hackmac 1.8.
|
|
2
|
+
# stub: hackmac 1.8.8 ruby lib
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "hackmac".freeze
|
|
6
|
-
s.version = "1.8.
|
|
6
|
+
s.version = "1.8.8".freeze
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
9
9
|
s.require_paths = ["lib".freeze]
|
|
@@ -41,9 +41,14 @@ module Hackmac
|
|
|
41
41
|
@suffix = (Regexp.quote(suffix) if suffix)
|
|
42
42
|
_account, repo = github.split(?/)
|
|
43
43
|
@name = repo
|
|
44
|
+
opts = {
|
|
45
|
+
'User-Agent' => "hackmac efi v#{Hackmac::VERSION}",
|
|
46
|
+
http_basic_authentication: auth,
|
|
47
|
+
}.compact
|
|
44
48
|
releases = URI.open(
|
|
45
49
|
GITHUB_API_URL % github,
|
|
46
|
-
|
|
50
|
+
opts
|
|
51
|
+
) { |o|
|
|
47
52
|
JSON.parse(o.read, object_class: JSON::GenericObject)
|
|
48
53
|
}
|
|
49
54
|
if max_version = releases.map { |r|
|
data/lib/hackmac/kext.rb
CHANGED
data/lib/hackmac/version.rb
CHANGED