ruby-macho 4.0.0 → 4.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 +4 -4
- data/README.md +1 -1
- data/lib/macho/macho_file.rb +10 -4
- data/lib/macho/structure.rb +2 -2
- data/lib/macho.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9880662397dbd1b2db647be1945cf0ab8bdcf08014b165258810287979f44ddf
|
4
|
+
data.tar.gz: a6f379de4b7c17344b01f4b44e178255165c6c2983f756d5d15b4bd62dfb8847
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50fb7106b9d6f8fcee1de541ee570db1fb7e4316896f4b4aecfbe50e922380c3b86241c8c96f43079880baa7ef88373f89b1360d92d4a81645a2dc4a7eb607ce
|
7
|
+
data.tar.gz: 148edd4572c6e1655086ef828bf5c6ef90df03b326eeedbe07a08b8f47462e4f979dc69b9956c58992898398129cdf2c30e744904fb171b4226fe68dfaa4d2a3
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@ ruby-macho
|
|
2
2
|
================
|
3
3
|
|
4
4
|
[](http://badge.fury.io/rb/ruby-macho)
|
5
|
-
[](https://github.com/Homebrew/ruby-macho/actions/workflows/tests.yml)
|
6
6
|
[](https://codecov.io/gh/Homebrew/ruby-macho)
|
7
7
|
|
8
8
|
A Ruby library for examining and modifying Mach-O files.
|
data/lib/macho/macho_file.rb
CHANGED
@@ -411,9 +411,15 @@ module MachO
|
|
411
411
|
|
412
412
|
# Delete the given runtime path from the Mach-O.
|
413
413
|
# @example
|
414
|
-
#
|
415
|
-
#
|
416
|
-
#
|
414
|
+
# file1.rpaths # => ["/lib", "/usr/lib", "/lib"]
|
415
|
+
# file1.delete_rpath("/lib")
|
416
|
+
# file1.rpaths # => ["/usr/lib", "/lib"]
|
417
|
+
# file2.rpaths # => ["foo", "foo"]
|
418
|
+
# file2.delete_rpath("foo", :uniq => true)
|
419
|
+
# file2.rpaths # => []
|
420
|
+
# file3.rpaths # => ["foo", "bar", "foo"]
|
421
|
+
# file3.delete_rpath("foo", :last => true)
|
422
|
+
# file3.rpaths # => ["foo", "bar"]
|
417
423
|
# @param path [String] the runtime path to delete
|
418
424
|
# @param options [Hash]
|
419
425
|
# @option options [Boolean] :uniq (false) if true, also delete
|
@@ -421,7 +427,7 @@ module MachO
|
|
421
427
|
# instance (by offset) of the requested path, unless :last is true.
|
422
428
|
# Incompatible with :last.
|
423
429
|
# @option options [Boolean] :last (false) if true, delete the last
|
424
|
-
#
|
430
|
+
# instance (by offset) of the requested path. Incompatible with :uniq.
|
425
431
|
# @return void
|
426
432
|
# @raise [RpathUnknownError] if no such runtime path exists
|
427
433
|
# @raise [ArgumentError] if both :uniq and :last are true
|
data/lib/macho/structure.rb
CHANGED
@@ -131,7 +131,7 @@ module MachO
|
|
131
131
|
|
132
132
|
# @param name [Symbol] name of internal field
|
133
133
|
# @param type [Symbol] type of field in terms of binary size
|
134
|
-
# @param options [Hash] set of
|
134
|
+
# @param options [Hash] set of additional options
|
135
135
|
# Expected options
|
136
136
|
# :size [Integer] size in bytes
|
137
137
|
# :mask [Integer] bitmask
|
@@ -236,7 +236,7 @@ module MachO
|
|
236
236
|
# Generates a reader method for fields that need further unpacking.
|
237
237
|
# @param name [Symbol] name of internal field
|
238
238
|
# @param idx [Integer] the index of the field value in the @values array
|
239
|
-
# @param unpack [String] the format code used for
|
239
|
+
# @param unpack [String] the format code used for further binary unpacking
|
240
240
|
# @api private
|
241
241
|
def def_unpack_reader(name, idx, unpack)
|
242
242
|
define_method(name) do
|
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 = "4.0.
|
19
|
+
VERSION = "4.0.1"
|
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
|
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: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Woodruff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-16 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
|