Better compatibility code for ruby 1.8.7 (and 1.8.8)
Reported by Akinori MUSHA | November 24th, 2009 @ 05:30 AM
The implementation of String#lines in the compatibility library is a bit wrong because it strips off newline characters.
Besides, String#lines and Object#tap already exist in ruby 1.8.7, and String#ord will in ruby 1.8.8.
Attached is a patch that prevents the library from overwriting native implementation of those methods if any.
Comments and changes to this ticket
-

Michael J. Edgar November 25th, 2009 @ 08:54 AM
- Assigned user set to Michael J. Edgar
- State changed from new to resolved
Merged in.
Thanks so much, Akinori!
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Rethink Version Control.- http://amp.carboni.ca/
Amp aims to put control of version-control software in your hands as a developer. The entire system is written in Ruby (with C extensions to improve performance), and aims to implement all major VCS's in Ruby. Currently, Mercurial is implemented.
Other features:
Commands are first-class members of the system - drop in an "Ampfile" in your repository, and you can add commands to amp in the same manner you add commands to rake (only with far, far more power!)
Documentation is one of our biggest priorities. We require all methods to be documented - even comically simple ones.
Heavy testing.
Multiple "workflows" - use git's commands to power a mercurial repository.
Add hooks/callbacks in minutes.