hackmac 0.3.3 → 0.3.4

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: acb3a1f1b56cf323c736b2f494eaebfe6d00e698aacbdcc1ece207c88e9ed67e
4
- data.tar.gz: eb6b28e69e600eacf265f1d835f0e0e0119ede8157a0279379071e27a66abcaf
3
+ metadata.gz: f25cc8626236ba947d5d0b80832612e3cab36b86e625d68fd89efb2549e600ef
4
+ data.tar.gz: bcb21df5c03cb05b09c432c61e7f18475a7be130cb695e499b963f6f8a49a321
5
5
  SHA512:
6
- metadata.gz: e1cec9eb4365cd488ba0e2c73c205f3b620ee52cfec96177b99c047ef5e7b5b3d74f0dd17e204845a3bf280db14e6d539e86369e0443e8d6c1285fbbda230a66
7
- data.tar.gz: 0a12e7ff18c172fbe3e734496c5bac82c5edd11e45ef4b818db34a8fc6ef54e6d870c6cb7dc3c1cca4e4f81705e04bca7f15ee7728e32cff80379eb489a888e6
6
+ metadata.gz: 50330b8e379462829f47fec861fc2492608535aa5c3ac6550fec8b25531b15148f872f1e9cac280c315ef65b331c6a3ed4152042344675aec8b0e0ec90b77307
7
+ data.tar.gz: 614b174361b3efa2bfd3d4a92110e62e06aed129f864589f30d7b1894de8ceffd8c6623cb2a1689e10d240e2cd2efd85465d52d70863a99f493efaa9e756f73c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
data/bin/efi CHANGED
@@ -128,6 +128,7 @@ when 'kexts'
128
128
  styler: -> v, s { v.version < v.remote_version ? s.red : s.green rescue s.yellow },
129
129
  formatter: -> e { "%s %s %s" % [ e.version, ({ 0 => ?=, -1 => ?<, 1 => ?> }[e.version <=> e.remote_version] rescue nil), e.remote_version ] },
130
130
  header_styler: bold_head)
131
+ t.add_column(:path, header_styler: bold_head)
131
132
  }.pack
132
133
  when 'kext'
133
134
  path = ARGV.shift or fail 'need kext dir'
data/hackmac.gemspec CHANGED
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: hackmac 0.3.3 ruby lib
2
+ # stub: hackmac 0.3.4 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "hackmac".freeze
6
- s.version = "0.3.3"
6
+ s.version = "0.3.4"
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]
data/lib/hackmac/kext.rb CHANGED
@@ -8,11 +8,14 @@ module Hackmac
8
8
  include Tins::StringVersion
9
9
 
10
10
  def initialize(path:, config: nil)
11
- @path = Pathname.new(path) + 'Contents/Info.plist'
12
- @plist = File.open(@path, encoding: 'UTF-8') { |f| ::Plist.parse_xml(f) }
11
+ @path = path
12
+ info = Pathname.new(@path) + 'Contents/Info.plist'
13
+ @plist = File.open(info, encoding: 'UTF-8') { |f| ::Plist.parse_xml(f) }
13
14
  @config = config
14
15
  end
15
16
 
17
+ attr_reader :path
18
+
16
19
  def identifier
17
20
  CFBundleIdentifier()
18
21
  end
@@ -1,6 +1,6 @@
1
1
  module Hackmac
2
2
  # Hackmac version
3
- VERSION = '0.3.3'
3
+ VERSION = '0.3.4'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hackmac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank