A summary of data about the Ruby ecosystem.

https://github.com/ruby/reline

The compatible library with the API of Ruby's stdlib 'readline'
https://github.com/ruby/reline

Keywords

hacktoberfest ruby

Keywords from Contributors

repl rubygems activerecord mvc activejob documentation-tool debugger json-parser yaml-parser psych

Last synced: about 16 hours ago
JSON representation

Repository metadata

The compatible library with the API of Ruby's stdlib 'readline'

README.md

Gem Version
CI

This is a screen capture of IRB improved by Reline.

IRB improved by Reline

Reline

Reline is compatible with the API of Ruby's stdlib 'readline', GNU Readline and Editline by pure Ruby implementation.

Usage

Single line editing mode

It's compatible with the readline standard library.

See the document of readline stdlib or bin/example.

Multi-line editing mode

require "reline"

prompt = 'prompt> '
use_history = true

begin
  while true
    text = Reline.readmultiline(prompt, use_history) do |multiline_input|
      # Accept the input until `end` is entered
      multiline_input.split.last == "end"
    end

    puts 'You entered:'
    puts text
  end
# If you want to exit, type Ctrl-C
rescue Interrupt
  puts '^C'
  exit 0
end
$ ruby example.rb
prompt> aaa
prompt> bbb
prompt> end
You entered:
aaa
bbb
end

See also: test/reline/yamatanooroti/multiline_repl

Documentation

Reline::Face

You can modify the text color and text decorations in your terminal emulator.
See doc/reline/face.md

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/reline.

Run tests

Note
Please make sure you have libvterm installed for yamatanooroti tests (integration tests).

If you use Homebrew, you can install it by running brew install libvterm.

WITH_VTERM=1 bundle install
WITH_VTERM=1 bundle exec rake test test_yamatanooroti

Releasing

rake release
gh release create vX.Y.Z --generate-notes

License

The gem is available as open source under the terms of the Ruby License.

Acknowledgments for rb-readline

In developing Reline, we have used some of the rb-readline implementation, so this library includes copyright notice, list of conditions and the disclaimer under the 3-Clause BSD License. Reline would never have been developed without rb-readline. Thank you for the tremendous accomplishments.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 3 days ago

Total Commits: 1,602
Total Committers: 70
Avg Commits per committer: 22.886
Development Distribution Score (DDS): 0.326

Commits in past year: 55
Committers in past year: 12
Avg Commits per committer in past year: 4.583
Development Distribution Score (DDS) in past year: 0.527

Name Email Commits
aycabta a****a@g****m 1080
tomoya ishida t****n@g****m 126
Mari Imaizumi m****5@g****m 69
Nobuyoshi Nakada n****u@r****g 60
manga_osyo m****o@g****m 58
Stan Lo s****2@g****m 31
YO4 y****o@a****p 15
Hiroshi SHIBATA h****t@r****g 14
MSP-Greg M****g 13
dependabot[bot] 4****] 12
Takashi Kokubun t****n@g****m 11
Yusuke Endoh m****e@r****g 8
Jeremy Evans c****e@j****t 7
Otávio Schwanck dos Santos o****k@g****m 6
HASUMI Hitoshi h****n@g****m 5
Kazuhiro NISHIYAMA zn@m****m 5
elfham 3****m 5
Phillip Hellewell s****k@g****m 4
Lars Kanis l****s@g****e 4
Samuel Williams s****s@o****z 3
Étienne Barrié e****e@g****m 3
Wu m****r@g****m 3
Koichi Sasada k****1@a****t 3
Sorah Fukumori h****r@s****p 2
SilverPhoenix99 s****9@g****m 2
Robert Schulze r****t@d****e 2
Ricky McMillen r****y@r****k 2
Peter Zhu p****r@p****a 2
Olle Jonsson o****n@g****m 2
Mark Delk j****l@g****m 2
and 40 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 4 days ago

Total issues: 118
Total pull requests: 470
Average time to close issues: 8 months
Average time to close pull requests: about 2 months
Total issue authors: 66
Total pull request authors: 50
Average comments per issue: 1.85
Average comments per pull request: 0.9
Merged pull request: 369
Bot issues: 0
Bot pull requests: 11

Past year issues: 11
Past year pull requests: 94
Past year average time to close issues: about 15 hours
Past year average time to close pull requests: 4 days
Past year issue authors: 11
Past year pull request authors: 15
Past year average comments per issue: 1.09
Past year average comments per pull request: 0.32
Past year merged pull request: 72
Past year bot issues: 0
Past year bot pull requests: 10

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ruby/reline

Top Issue Authors

  • tompng (22)
  • aycabta (8)
  • elfham (5)
  • rubyFeedback (5)
  • sjanusz-r7 (4)
  • sfrieske (4)
  • ima1zumi (3)
  • postmodern (3)
  • st0012 (3)
  • headius (2)
  • fractaledmind (2)
  • ddoherty03 (2)
  • hsbt (2)
  • DirtYiCE (1)
  • otavioschwanck (1)

Top Pull Request Authors

  • tompng (215)
  • ima1zumi (84)
  • st0012 (40)
  • nobu (12)
  • hsbt (11)
  • dependabot[bot] (11)
  • hasumikin (7)
  • monkeyWzr (6)
  • osyo-manga (5)
  • elfham (5)
  • YO4 (4)
  • sshock (4)
  • etiennebarrie (4)
  • otavioschwanck (3)
  • aycabta (3)

Top Issue Labels

  • bug (27)
  • enhancement (22)
  • good first issue (4)
  • Windows (2)

Top Pull Request Labels

  • bug (88)
  • enhancement (34)
  • dependencies (12)
  • github_actions (10)
  • documentation (5)
  • Don't merge (1)

Package metadata

gem.coop: reline

Alternative GNU Readline or Editline implementation by pure Ruby.

  • Homepage: https://github.com/ruby/reline
  • Documentation: http://www.rubydoc.info/gems/reline/
  • Licenses: Ruby
  • Latest release: 0.6.3 (published about 1 month ago)
  • Last Synced: 2025-12-07T13:01:50.488Z (3 days ago)
  • Versions: 70
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 160,985,607 Total
  • Docker Downloads: 3,641,217,114
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Docker downloads count: 0.016%
    • Average: 0.045%
    • Downloads: 0.164%
  • Maintainers (7)
rubygems.org: reline

Alternative GNU Readline or Editline implementation by pure Ruby.

  • Homepage: https://github.com/ruby/reline
  • Documentation: http://www.rubydoc.info/gems/reline/
  • Licenses: Ruby
  • Latest release: 0.6.3 (published about 1 month ago)
  • Last Synced: 2025-12-08T13:01:50.270Z (2 days ago)
  • Versions: 70
  • Dependent Packages: 20
  • Dependent Repositories: 28,587
  • Downloads: 161,176,593 Total
  • Docker Downloads: 3,641,217,114
  • Rankings:
    • Docker downloads count: 0.018%
    • Dependent repos count: 0.211%
    • Downloads: 0.522%
    • Dependent packages count: 1.446%
    • Average: 1.537%
    • Forks count: 3.12%
    • Stargazers count: 3.906%
  • Maintainers (7)
pkg.adelielinux.org: ruby-reline

Reline is compatible with the API of Ruby's stdlib 'readline', GNU Readline and Editline

  • Homepage: https://github.com/ruby/reline
  • Licenses: BSD-2-Clause
  • Latest release: 0.2.7-r0 (published almost 3 years ago)
  • Last Synced: 2025-11-13T10:48:36.080Z (27 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Forks count: 3.585%
    • Stargazers count: 4.213%
    • Average: 6.293%
    • Dependent packages count: 17.376%
  • Maintainers (1)
proxy.golang.org: github.com/ruby/reline

  • Homepage:
  • Documentation: https://pkg.go.dev/github.com/ruby/reline#section-documentation
  • Licenses: other
  • Latest release: v0.6.3 (published about 1 month ago)
  • Last Synced: 2025-12-05T22:00:57.746Z (5 days ago)
  • Versions: 58
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Forks count: 3.021%
    • Stargazers count: 3.626%
    • Average: 6.756%
    • Dependent packages count: 9.576%
    • Dependent repos count: 10.802%

Dependencies

Gemfile rubygems
  • bundler >= 0 development
  • irb >= 1.3.6 development
  • rake >= 0 development
  • test-unit >= 0 development
  • yamatanooroti >= 0.0.9 development
reline.gemspec rubygems
  • io-console ~> 0.5
.github/workflows/reline.yml actions
  • actions/checkout v3 composite
  • ruby/setup-ruby v1 composite
.github/workflows/ruby-core.yml actions
  • actions/checkout b4ffde65f46336ab88eb53be808477a3936bae11 composite
  • ruby/setup-ruby 250fcd6a742febb1123a77a841497ccaa8b9e939 composite

Score: 32.790478631493755