Rb-readline 0.5.1 released

rb-readline version 0.5.1 has been released!

= Description

The readline library provides a pure Ruby implementation of the GNU
readline C library, as well as the Readline extension that ships as part
of the standard library.

= Synopsis

require ‘readline’

loop do
line = Readline::readline(’> ')
break if line.nil? || line == ‘quit’
Readline::HISTORY.push(line)
puts “You typed: #{line}”
end

= Compatibility

rb-readline should work on all Unix-like systems and Windows. It is
regularly
used with MRI 1.8/1.9 and Rubinius. JRuby is not supported and there are
no
plans to support it in the future - it comes bundled with a Java
implementation
of Readline.

= Motivation

First, building the GNU readline library on MS Windows with Visual C++
is
almost impossible. However, certain libraries depend on readline. By
providing
a pure Ruby version we eliminate the entire compiler compatibility
issue.

Second, even on distributions of Windows built with MinGW (that include
the readline library for Windows), the behavior was sometimes erratic
and
would break.

= Installation

gem install rb-readline

or

gem update rb-readline

When previous version was installed

= Changes

=== 0.5.1 / 2014-01-08

  • Bugfixes:

    • Fix double require issues. Fixes #93, #95 [yui-knk]
    • Use Fiddle to remove deprecation warning of DL. Fixes #90, #87
      [Olipro]
  • Internal:

    • Bundler-friendly repository (gemspec and Gemfile) to ease usage
      and development.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs