hackmac 0.0.0 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b290c529d2da09837d0a09dc98aa1f3d078da12e1700448e439eb792cf5ecc72
4
- data.tar.gz: 820c27075b099d5e42a7dd49b0dc3ebab617b8301cc8201f3ae3f62dd3aeca58
3
+ metadata.gz: d33380825b4131e67af084a4f39fe55e683f481b72b525340f80c47b85e7589d
4
+ data.tar.gz: 2bd4ff82e0511b7c3dd3b7849687b8fca26a3fec00daf8762a069982ed182573
5
5
  SHA512:
6
- metadata.gz: 4e8247b2fcae940a075f4a195a046143ca2a40912d2ce61803f2b37c17afb34dc7588ad2764259bdf633091713e97e5d6f003a064d628e409b466e33cde3f17e
7
- data.tar.gz: 20068b49a77392b8e933ee76731f43ed0f78cceded0f6e2fc98682a3372eac5c311f349aa9ebd857f63117bcc6309c6562a65717bfb8e678d1e8acdd671473c4
6
+ metadata.gz: 5c51117ac234e585247a97f68609f9158b271d357ae4c22876e021f0e5149f91df693592e5dbcfe816ca1f21bf008e1488bad029a67c1da8d68bf6cb74091e5c
7
+ data.tar.gz: 72c07c3f4aa8e5b928a9aa4c800a383ec80d123ef7b6c99ee0ed7f18a80df5d0101a9c8304bb2d10299920aabc35af205d4dfb92ba161d29cba33329e39a27f6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
data/bin/efi CHANGED
@@ -54,7 +54,48 @@ def dev
54
54
  x(%{partutil --search-uuid #{uuid}}).chomp
55
55
  end
56
56
 
57
+ def usage
58
+ default_dev = dev
59
+
60
+ puts <<~end
61
+
62
+ Usage #{File.basename($0)} [command] [arguments]
63
+
64
+ Commands are
65
+
66
+ help this help
67
+
68
+ mount EFI partition
69
+
70
+ argument DEVICE (defaults to #{default_dev})
71
+
72
+ unmount EFI partition
73
+
74
+ argument DEVICE (defaults to #{default_dev})
75
+
76
+ clone clone EFI partitions
77
+
78
+ argument FROM_DEVICE (defaults to #{default_dev})
79
+
80
+ argument TO_DEVICE (defaults to #{default_dev})
81
+
82
+ The devices have to be different.
83
+
84
+ kext list kexts in L/E and compare versions with clover kexts
85
+
86
+ argument DEVICE (defaults to #{default_dev})
87
+
88
+ The EFI partion on DEVICE is used to find the clover kexts in
89
+ subdirectory /Other.
90
+
91
+ boot shows boot disk information (which EFI partition was used)
92
+
93
+ end
94
+ end
95
+
57
96
  case command = ARGV.shift
97
+ when 'help', nil
98
+ usage
58
99
  when 'mount'
59
100
  mdev = ARGV.shift || dev
60
101
  x %{sudo diskutil mount "#{mdev}"}
@@ -89,7 +130,7 @@ when 'kext'
89
130
  ensure
90
131
  x %{sudo diskutil umount "#{mdev}"}
91
132
  end
92
- when nil
133
+ when 'boot'
93
134
  disks = Disks.new
94
135
  efis = []
95
136
  disks.as_hash['AllDisksAndPartitions'].each_with_object([]) { |d, ps|
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: hackmac 0.0.0 ruby lib
2
+ # stub: hackmac 0.0.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "hackmac".freeze
6
- s.version = "0.0.0"
6
+ s.version = "0.0.1"
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]
10
10
  s.authors = ["Florian Frank".freeze]
11
- s.date = "2019-12-18"
11
+ s.date = "2020-01-06"
12
12
  s.description = "This ruby gem provides Some useful tools for working with a Hackintosh.".freeze
13
13
  s.email = "flori@ping.de".freeze
14
14
  s.executables = ["gfxmon".freeze, "efi".freeze]
@@ -16,25 +16,19 @@ Gem::Specification.new do |s|
16
16
  s.files = [".gitignore".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "bin/efi".freeze, "bin/gfxmon".freeze, "hackmac.gemspec".freeze, "lib/hackmac.rb".freeze, "lib/hackmac/disks.rb".freeze, "lib/hackmac/kext.rb".freeze, "lib/hackmac/plist.rb".freeze, "lib/hackmac/search_ui.rb".freeze, "lib/hackmac/version.rb".freeze]
17
17
  s.homepage = "http://github.com/flori/hackmac".freeze
18
18
  s.rdoc_options = ["--title".freeze, "Hackmac - Some useful tools for working with a Hackintosh".freeze, "--main".freeze, "README.md".freeze]
19
- s.rubygems_version = "3.0.6".freeze
19
+ s.rubygems_version = "3.1.2".freeze
20
20
  s.summary = "Some useful tools for working with a Hackintosh".freeze
21
21
 
22
22
  if s.respond_to? :specification_version then
23
23
  s.specification_version = 4
24
+ end
24
25
 
25
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
- s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.11.0"])
27
- s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.14"])
28
- s.add_runtime_dependency(%q<term-ansicolor>.freeze, ["~> 1.3"])
29
- s.add_runtime_dependency(%q<amatch>.freeze, [">= 0"])
30
- s.add_runtime_dependency(%q<plist>.freeze, [">= 0"])
31
- else
32
- s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.11.0"])
33
- s.add_dependency(%q<tins>.freeze, ["~> 1.14"])
34
- s.add_dependency(%q<term-ansicolor>.freeze, ["~> 1.3"])
35
- s.add_dependency(%q<amatch>.freeze, [">= 0"])
36
- s.add_dependency(%q<plist>.freeze, [">= 0"])
37
- end
26
+ if s.respond_to? :add_runtime_dependency then
27
+ s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.11.0"])
28
+ s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.14"])
29
+ s.add_runtime_dependency(%q<term-ansicolor>.freeze, ["~> 1.3"])
30
+ s.add_runtime_dependency(%q<amatch>.freeze, [">= 0"])
31
+ s.add_runtime_dependency(%q<plist>.freeze, [">= 0"])
38
32
  else
39
33
  s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.11.0"])
40
34
  s.add_dependency(%q<tins>.freeze, ["~> 1.14"])
@@ -1,6 +1,6 @@
1
1
  module Hackmac
2
2
  # Hackmac version
3
- VERSION = '0.0.0'
3
+ VERSION = '0.0.1'
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hackmac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-18 00:00:00.000000000 Z
11
+ date: 2020-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
- rubygems_version: 3.0.6
134
+ rubygems_version: 3.1.2
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: Some useful tools for working with a Hackintosh