ruby-macho 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/macho.rb +2 -3
- data/lib/macho/tools.rb +0 -12
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd8907fa4f63922522d0e84d6b5cdcc2a0c36f423db72bd0f947d328935c63de
|
4
|
+
data.tar.gz: b7f2f638a051121f3f5e3f5507c8e69be56ec25239df2a435a9cfebf08834619
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06bec5c6b0c5336d87298f85ffa7e9bcf09ef092f18fba36b3ee5b6c6469b2e0ed9cd02732808eef9b8cae9095b348ed2eb9240a531200055fed615ca3cdf149
|
7
|
+
data.tar.gz: 51b382c46e95a60f416cfe304bbd7a95169b5f6dbc0709a6ef3ce7bc6ede8d29d3ea30b2032ffb73357bbb2a7df0f21a23f553f70c0fbaf9a37c538d7c98158b
|
data/lib/macho.rb
CHANGED
@@ -16,7 +16,7 @@ require_relative "macho/tools"
|
|
16
16
|
# The primary namespace for ruby-macho.
|
17
17
|
module MachO
|
18
18
|
# release version
|
19
|
-
VERSION = "2.
|
19
|
+
VERSION = "2.5.0"
|
20
20
|
|
21
21
|
# Opens the given filename as a MachOFile or FatFile, depending on its magic.
|
22
22
|
# @param filename [String] the file being opened
|
@@ -49,8 +49,7 @@ module MachO
|
|
49
49
|
# @return [void]
|
50
50
|
# @raise [ModificationError] if the operation fails
|
51
51
|
def self.codesign!(filename)
|
52
|
-
|
53
|
-
return if RUBY_PLATFORM !~ /darwin/
|
52
|
+
raise ArgumentError, "codesign binary is not available on Linux" if RUBY_PLATFORM !~ /darwin/
|
54
53
|
raise ArgumentError, "#{filename}: no such file" unless File.file?(filename)
|
55
54
|
|
56
55
|
_, _, status = Open3.capture3("codesign", "--sign", "-", "--force",
|
data/lib/macho/tools.rb
CHANGED
@@ -25,8 +25,6 @@ module MachO
|
|
25
25
|
|
26
26
|
file.change_dylib_id(new_id, options)
|
27
27
|
file.write!
|
28
|
-
|
29
|
-
MachO.codesign!(filename)
|
30
28
|
end
|
31
29
|
|
32
30
|
# Changes a shared library install name in a Mach-O or Fat binary,
|
@@ -43,8 +41,6 @@ module MachO
|
|
43
41
|
|
44
42
|
file.change_install_name(old_name, new_name, options)
|
45
43
|
file.write!
|
46
|
-
|
47
|
-
MachO.codesign!(filename)
|
48
44
|
end
|
49
45
|
|
50
46
|
# Changes a runtime path in a Mach-O or Fat binary, overwriting the source
|
@@ -61,8 +57,6 @@ module MachO
|
|
61
57
|
|
62
58
|
file.change_rpath(old_path, new_path, options)
|
63
59
|
file.write!
|
64
|
-
|
65
|
-
MachO.codesign!(filename)
|
66
60
|
end
|
67
61
|
|
68
62
|
# Add a runtime path to a Mach-O or Fat binary, overwriting the source file.
|
@@ -77,8 +71,6 @@ module MachO
|
|
77
71
|
|
78
72
|
file.add_rpath(new_path, options)
|
79
73
|
file.write!
|
80
|
-
|
81
|
-
MachO.codesign!(filename)
|
82
74
|
end
|
83
75
|
|
84
76
|
# Delete a runtime path from a Mach-O or Fat binary, overwriting the source
|
@@ -94,8 +86,6 @@ module MachO
|
|
94
86
|
|
95
87
|
file.delete_rpath(old_path, options)
|
96
88
|
file.write!
|
97
|
-
|
98
|
-
MachO.codesign!(filename)
|
99
89
|
end
|
100
90
|
|
101
91
|
# Merge multiple Mach-Os into one universal (Fat) binary.
|
@@ -116,8 +106,6 @@ module MachO
|
|
116
106
|
|
117
107
|
fat_macho = MachO::FatFile.new_from_machos(*machos, :fat64 => fat64)
|
118
108
|
fat_macho.write(filename)
|
119
|
-
|
120
|
-
MachO.codesign!(filename)
|
121
109
|
end
|
122
110
|
end
|
123
111
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-macho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Woodruff
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A library for viewing and manipulating Mach-O files in Ruby.
|
14
14
|
email: william@yossarian.net
|
@@ -34,7 +34,7 @@ homepage: https://github.com/Homebrew/ruby-macho
|
|
34
34
|
licenses:
|
35
35
|
- MIT
|
36
36
|
metadata: {}
|
37
|
-
post_install_message:
|
37
|
+
post_install_message:
|
38
38
|
rdoc_options: []
|
39
39
|
require_paths:
|
40
40
|
- lib
|
@@ -50,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
50
|
version: '0'
|
51
51
|
requirements: []
|
52
52
|
rubygems_version: 3.1.2
|
53
|
-
signing_key:
|
53
|
+
signing_key:
|
54
54
|
specification_version: 4
|
55
55
|
summary: ruby-macho - Mach-O file analyzer.
|
56
56
|
test_files: []
|