git clone --reference /path/to/your/Homebrew.git/incarnation mirror_URLto save bandwidth during cloning.
description | A pure-Ruby library for parsing Mach-O files. |
homepage URL | https://rubygems.org/gems/ruby-macho |
repository URL | https://github.com/Homebrew/ruby-macho.git |
owner | root@yurikoles.com |
last change | Thu, 25 Apr 2024 18:26:53 +0000 (25 18:26 +0000) |
last refresh | Thu, 9 May 2024 19:15:17 +0000 (9 21:15 +0200) |
mirror URL | git://repo.or.cz/Homebrew/ruby-macho.git |
https://repo.or.cz/Homebrew/ruby-macho.git | |
ssh://git@repo.or.cz/Homebrew/ruby-macho.git | |
bundle info | ruby-macho.git downloadable bundles |
content tags |
A Ruby library for examining and modifying Mach-O files.
The Mach-O file format is used by macOS and iOS (among others) as a general purpose binary format for object files, executables, dynamic libraries, and so forth.
ruby-macho can be installed via RubyGems:
$ gem install ruby-macho
Full documentation is available on RubyDoc.
A quick example of what ruby-macho can do:
require 'macho'
file = MachO::MachOFile.new("/path/to/my/binary")
# get the file's type (object, dynamic lib, executable, etc)
file.filetype # => :execute
# get all load commands in the file and print their offsets:
file.load_commands.each do |lc|
puts "#{lc.type}: offset #{lc.offset}, size: #{lc.cmdsize}"
end
# access a specific load command
lc_vers = file[:LC_VERSION_MIN_MACOSX].first
puts lc_vers.version_string # => "10.10.0"
overcommit
and the lintersIn order to keep the repo, docs and data tidy, we use a tool called overcommit
to connect up the git hooks to a set of quality checks. The fastest way to get setup is to run the following to make
sure you have all the tools:
gem install overcommit bundler
bundle install
overcommit --install
loader.h
in cctools/include/mach-o
.
(Apple Public Source License 2.0).ruby-macho
is licensed under the MIT License.
For the exact terms, see the license file.
2 months ago | v4.0.1 | commitlog | ||
9 months ago | v4.0.0 | commitlog | ||
2 years ago | v3.0.0 | commitlog | ||
2 years ago | v2.5.1 | commitlog | ||
3 years ago | v2.5.0 | commitlog | ||
3 years ago | v2.4.0 | commitlog | ||
3 years ago | 2.3.0 | commitlog | ||
5 years ago | 1.4.0 | commitlog | ||
5 years ago | 2.2.0 | commitlog | ||
5 years ago | 1.3.1 | commitlog | ||
5 years ago | 1.3.0 | commitlog | ||
5 years ago | 2.1.0 | commitlog | ||
5 years ago | 2.0.0 | commitlog | ||
5 years ago | 1.3.0.pre.1 | commitlog | ||
5 years ago | 1.2.0 | commitlog | ||
7 years ago | 1.1.0 | commitlog | ||
... |
3 days ago | dependabot/github_actions/ruby/setup-ruby-1.176.0 | logtree |
2 weeks ago | master | logtree |
14 months ago | ww/code-signing | logtree |
5 years ago | 2.0-compat | logtree |
5 years ago | older-rubies | logtree |