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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 669b2133517dc564c92df8ebdc0b2f6fdc91869939cd6a642cfbc2b1c6e20a09
4
- data.tar.gz: 0077afabc9c4be7d891e5c7e5a8b4ec173223b00f73d550fc96fb7cf4f103c1d
3
+ metadata.gz: 9880662397dbd1b2db647be1945cf0ab8bdcf08014b165258810287979f44ddf
4
+ data.tar.gz: a6f379de4b7c17344b01f4b44e178255165c6c2983f756d5d15b4bd62dfb8847
5
5
  SHA512:
6
- metadata.gz: 4e8bd64595d93d50c0046c5bd292010a51a9d4154cbcda3a0a0a962882475e61d631d55da106e4655ba31a32011f583222d5b147129230e08ad11d12a34ee8e6
7
- data.tar.gz: ccc53798eb56f378f5688ad7141636ecca274e552e8ad62f4fab5600b6a6fddcac0e5ffc75ed4924e62538a6b3ac7b291667870b6cd02bf0edf6286da1a4e62a
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
  [![Gem Version](https://badge.fury.io/rb/ruby-macho.svg)](http://badge.fury.io/rb/ruby-macho)
5
- [![Build Status](https://travis-ci.org/Homebrew/ruby-macho.svg?branch=master)](https://travis-ci.org/Homebrew/ruby-macho)
5
+ [![CI](https://github.com/Homebrew/ruby-macho/actions/workflows/tests.yml/badge.svg)](https://github.com/Homebrew/ruby-macho/actions/workflows/tests.yml)
6
6
  [![Coverage Status](https://codecov.io/gh/Homebrew/ruby-macho/branch/master/graph/badge.svg)](https://codecov.io/gh/Homebrew/ruby-macho)
7
7
 
8
8
  A Ruby library for examining and modifying Mach-O files.
@@ -411,9 +411,15 @@ module MachO
411
411
 
412
412
  # Delete the given runtime path from the Mach-O.
413
413
  # @example
414
- # file.rpaths # => ["/lib"]
415
- # file.delete_rpath("/lib")
416
- # file.rpaths # => []
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
- # instance (by offset) of the requested path. Incompatible with :uniq.
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
@@ -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 additonal options
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 futher binary unpacking
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.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.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: 2023-07-25 00:00:00.000000000 Z
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