Hiroshi SHIBATA
7e283c585e
[ruby/irb] Formatting to header styles
...
cef125850d
2023-01-11 22:29:10 +00:00
Hiroshi SHIBATA
c7bb8d67b7
[ruby/irb] Removed Release Version and Revisions for old VCS software
...
07fae94862
2023-01-11 22:29:09 +00:00
Nobuyoshi Nakada
d532d27507
[ruby/irb] Use class methods of File
over Kernel.open
...
e0ec5e1bd8
2022-11-30 10:18:57 +00:00
st0012
4f348e482c
[ruby/irb] Rename leftover Reidline references
...
0ed8b103ed
2022-11-15 10:08:28 +00:00
Nobuyoshi Nakada
f863bc505c
[ruby/irb] Fix the error when LC_MESSAGES config value is nil
...
6bbde84369
2022-09-14 11:14:08 +09:00
Jeremy Evans
9299db49f5
[ruby/irb] Fix history file saving with concurrent irb sessions when history file doesn't exist
...
If history file didn't exist when irb was started, @loaded_history_mtime
would be nil. However, if the history file didn't exist before, but it
exists when saving history, that means the history file was modified,
and we should handle it the same way as we handle the other case where
the history file was modified.
Fixes #388
8d277aafcb
2022-09-14 10:15:45 +09:00
Jeremy Evans
14e1739ff3
[ruby/irb] Make save-history extension safe for concurrent use
...
This makes the save-history extension check for modifications to
the history file before saving it. If the history file was modified
after the history was loaded and before it was saved, append only
the new history lines to the history file.
This can result in more lines in the history file than SAVE_HISTORY
allows. However, that will be fixed the next time irb is run and
the history is saved.
Fixes [Bug #13654 ]
041ef53845
2021-03-06 00:18:32 +09:00
Nobuyoshi Nakada
7fa86de15b
[ruby/irb] Workaround a bug of ruby-mode.el
...
6dfd59400d
2020-08-18 14:38:01 +09:00
Nobuyoshi Nakada
82d4da7816
[ruby/irb] Yet another unnecessary readline
...
933841af11
2020-08-18 14:38:01 +09:00
aycabta
126e1fc296
[ruby/irb] Make history infinite if set SAVE_HISTORY to negative
...
824473e880
2020-08-18 14:38:01 +09:00
aycabta
ef498a016b
[ruby/irb] Suppress crash when bignum is set to SAVE_HISTORY
...
5044eb2730
2020-08-18 14:38:01 +09:00
aycabta
8c3efa4940
Use Reline.encoding_system_needs if exists
2020-01-14 15:40:38 +09:00
aycabta
48fdc37ad5
IRB's multiline history is enable only when Reidline mode
2019-08-22 05:09:08 +09:00
Jeremy Evans
a06301b103
Ignore history file without saving if permissions cannot be changed
...
Fixes [Ruby Bug 13907]
2019-07-27 16:56:04 +09:00
aycabta
0af897ab59
Simplify history saving code
2019-07-15 10:20:23 +09:00
aycabta
17ccda5413
Use #to_a for Readline::HISTORY directly
2019-07-15 08:33:07 +09:00
aycabta
266f6cd8a1
Remove debug print
2019-07-15 07:54:47 +09:00
aycabta
4b7a04a5b8
Support multiline irb_history
...
A history line ends with "\" to escape newline if it's a continuous
line.
2019-07-15 07:51:57 +09:00
Masataka Pocke Kuwabara
9806da50f4
Suppress warnings
2019-07-15 00:13:01 +09:00
Sutou Kouhei
29c16b30ce
Add support for history with Reline backend
2019-05-27 06:32:52 +09:00
hsbt
589169cb78
* lib/irb/ext/save-history.rb: Fix NoMethodError when method is not defined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-15 11:27:38 +00:00
naruse
af24631af6
* lib/irb/ext/save-history.rb: suppress warning: method redefined;
...
discarding old save_history=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-14 10:06:41 +00:00
naruse
3e92b635fb
Add frozen_string_literal: false for all files
...
When you change this to true, you may need to add more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16 05:07:31 +00:00
hsbt
2afed6ecef
* lib/e2mmap.rb: remove needless instance variables.
...
* lib/irb.rb: ditto.
* lib/irb/**/*.rb: ditto.
* lib/shell.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-24 07:16:25 +00:00
hsbt
76515504d5
* lib/irb.rb: removed commented-out code.
...
* lib/irb/**/*.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-09 02:02:58 +00:00
hsbt
8e5af8b628
* lib/cmath.rb: fixed indent.
...
* lib/drb/ssl.rb: ditto.
* lib/irb/**/*.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-09 01:36:49 +00:00
zzak
f11ff34d8f
* lib/irb.rb, lib/irb/ext/save-history.rb: Add documentation on how to
...
enabled irb history [ruby-core:51347] [Bug #7679 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-04 23:04:09 +00:00
keiju
e70e46a1be
* lib/irb/ext/save-history.rb: identify rightly a status of a
...
history file that already exists [Bug #7694 ]. Thanks Nobuhiro IMAI
for this patch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-15 13:42:09 +00:00
keiju
9deb82b1d9
* lib/irb/ext/save-history.rb: outputs its history to
...
owner-only-readable file and change the permission of a file that
already exists [Bug #7694 ]. Thanks Nobuhiro IMAI for bug reports.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-14 14:17:18 +00:00
zzak
7e9eb32669
* lib/irb.rb, lib/irb/*: Documentation for IRB
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-21 05:45:50 +00:00
keiju
24a510a11e
* lib/irb.rb, lib/irb/init.rb, lib/irb/ext/save-history.rb: add
...
IRB::irb_at_exit. no use finalizer saving history. [ruby-dev-38563]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-21 15:39:51 +00:00
keiju
c7fa0c727c
* bin/irb, lib/irb.rb lib/irb/*: irb-0.9.6, extend inspect-mode
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-07 11:36:20 +00:00
nobu
f378f10473
* lib/**/*.rb: removed unnecessary shbang lines.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 04:23:05 +00:00
nobu
287a34ae0d
* {ext,lib,test}/**/*.rb: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
keiju
bf437b73c6
* irb/ext/save-history.rb: typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-04 03:28:19 +00:00
keiju
0fdc3b4bc5
* lib/irb/irb/ext/save-history.rb: change load_history using File.expand_path. see [ruby-dev:36660]. Thanks Kouhei Sutou.
...
* lib/irb/irb/context.rb: convert string Symbol of instance variable names in IRB:Context#inspect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-04 03:26:16 +00:00
akr
6cdef2dc7e
* $Date$ keyword removed to avoid inclusion of locale dependent
...
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-06 15:49:38 +00:00
keiju
ce7c263fb6
* lib/irb/ruby-lex.rb, lib/irb/slex.rb: bug fix of [ruby-Bugs-1745]
...
* lib/irb/ext/loader.rb, lib/irb/ext/save-history.rb:
fix location of @RCS_ID
* lib/irb/cmd/help.rb: a lost of release IRB 0.9.5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-14 09:58:18 +00:00
keiju
8e8cd649be
* bin/irb lib/irb.rb lib/irb/...: IRB 0.9.5(new files)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-04-13 15:30:15 +00:00