https://github.com/deivid-rodriguez/ruby-bisect
Bisections against ruby-core for you ruby programs
https://github.com/deivid-rodriguez/ruby-bisect
bisection chruby ruby ruby-bisect
Last synced: 4 months ago
JSON representation
Bisections against ruby-core for you ruby programs
- Host: GitHub
- URL: https://github.com/deivid-rodriguez/ruby-bisect
- Owner: deivid-rodriguez
- License: gpl-3.0
- Created: 2016-12-06T11:37:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-09-15T12:55:36.000Z (over 3 years ago)
- Last Synced: 2025-08-29T19:27:37.754Z (9 months ago)
- Topics: bisection, chruby, ruby, ruby-bisect
- Language: Shell
- Size: 67.4 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ruby-bisect
Runs a git bisection of your ruby program against the different revisions of
ruby-core, so you can find out which one broke it.
This is just some bash scripts to make this process easier. They copy structure,
style and bash lessons from [ruby-install].
## Requirements
* [bash]
* [rbenv] (default) or [chruby]
## Install
```
git clone https://github.com/deivid-rodriguez/ruby-bisect
```
## Synopsis
From your target project directory,
* Bisect `myscript.rb`, known to work with MRI revision r55000, but failing
against ruby-core latest master.
```
/path/to/ruby-bisect/bin/ruby-bisect 55000 -- myscript.rb
```
* Bisect `myscript.rb`, known to work with MRI revision r55000 and known to
fail with MRI revision r55100.
```
/path/to/ruby-bisect/bin/ruby-bisect 55000 551000 -- myscript.rb
```
* Bisect `myscript.rb`, known to work with MRI revision r55000, but failing
against ruby-core latest master, using `chruby` as the version switcher.
```
/path/to/ruby-bisect/bin/ruby-bisect --switcher chruby 55000 -- myscript.rb
```
[bash]: https://www.gnu.org/software/bash/
[chruby]: https://github.com/postmodern/chruby
[rbenv]: https://github.com/rbenv/rbenv
[ruby-install]: https://github.com/postmodern/ruby-install