https://github.com/adam12/rbz
Single-file Ruby archives via experimental method of packaging
https://github.com/adam12/rbz
ruby ruby-gem
Last synced: about 1 year ago
JSON representation
Single-file Ruby archives via experimental method of packaging
- Host: GitHub
- URL: https://github.com/adam12/rbz
- Owner: adam12
- License: mit
- Created: 2024-04-11T01:01:22.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-27T16:20:17.000Z (over 1 year ago)
- Last Synced: 2025-04-07T05:43:27.572Z (about 1 year ago)
- Topics: ruby, ruby-gem
- Language: Ruby
- Homepage:
- Size: 23.4 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Single-file Ruby archives (`rbz`)
An experimental method of packaging a Ruby project into a single file archive,
which is extracted and run on the destination machine.
Zero dependencies outside of stdlib.
Will this work for many projects? Maybe. Will it work for all projects? Doubtful.
Will I maintain it? Unsure.
Inspired by [this][1] Ruby bug tracker issue.
## Installation
$ gem install rbz
## Usage
Generate an archive from a folder of Ruby files. There *must* be a file in the
root of the folder called `main.rb`, which will be the entry point to the application.
$ rbz > my-archive.rbz
Once the archive is generated, run it with `ruby`.
$ ruby my-archive.rbz
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
[1]: https://bugs.ruby-lang.org/issues/11028