binary_search
binary_search copied to clipboard
Native and pure Ruby binary search and index methods for Ruby Arrays.
Following the readme: ``` $ gem install binary_search Fetching: binary_search-0.3.0.gem (100%) Building native extensions. This could take a while... Successfully installed binary_search-0.3.0 1 gem installed $ irb 1.9.3-p327 :001 >...
Hi, I see the gem does not have test suite. How about writing the tests with rspec? I'd be willing to work on this if you want.
When having JRuby installed, jruby -S gem install binary_search should install the gem flawlessly, while it does not. The Gemspec file should be modified such that the pure Ruby version...
Exposes a binary search implementation of Array#find_index.