ruby-macho 2.4.0 → 2.5.0

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/macho.rb +2 -3
  3. data/lib/macho/tools.rb +0 -12
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b98417732314a92f3493ffd08e9221edbd342941bee24245b88b07fb292c2f8
4
- data.tar.gz: cc17a19152fac25565b9a2759f7aa9aa2674318623e6bf620527e32e1796acda
3
+ metadata.gz: cd8907fa4f63922522d0e84d6b5cdcc2a0c36f423db72bd0f947d328935c63de
4
+ data.tar.gz: b7f2f638a051121f3f5e3f5507c8e69be56ec25239df2a435a9cfebf08834619
5
5
  SHA512:
6
- metadata.gz: 7135b6f32de153de839197779a1770e4a18c071a063ec8fa0b88791171fc6d45e208dd8df7a4338ca1f663d74cc25b2b78c791c61873598177f314f01c4ed108
7
- data.tar.gz: 16132d807fd316cddd68638cdf9877e638134b438c5fddeb7901619cd8f52aba244ca6d2e7613981bd7d645612bce66434dc2f17400bea8fcd750e7444e782d1
6
+ metadata.gz: 06bec5c6b0c5336d87298f85ffa7e9bcf09ef092f18fba36b3ee5b6c6469b2e0ed9cd02732808eef9b8cae9095b348ed2eb9240a531200055fed615ca3cdf149
7
+ data.tar.gz: 51b382c46e95a60f416cfe304bbd7a95169b5f6dbc0709a6ef3ce7bc6ede8d29d3ea30b2032ffb73357bbb2a7df0f21a23f553f70c0fbaf9a37c538d7c98158b
@@ -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.4.0"
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
- # codesign binary is not available on Linux
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",
@@ -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.0
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-06 00:00:00.000000000 Z
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: []