1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib
Cody Cutrer 3cab8c087f [ruby/irb] process multi-line pastes as a single entity
this allows pasting leading-dot chained methods correctly:

```ruby
class A
  def a; self; end
  def b; true; end
end

a = A.new

a
 .a
 .b
```

will properly return `true` instead of erroring on the `.a` line:

```
irb(main):001:1*     class A
irb(main):002:1*       def a; self; end
irb(main):003:0>     end
irb(main):004:0*
irb(main):005:0>     a = A.new
irb(main):006:0*
irb(main):007:0>     a
irb(main):008:0>      .a
irb(main):009:0>      .a
=> #<A:0x00007f984211fbe8>
```

https://github.com/ruby/irb/commit/45aeb52575
2021-04-03 00:49:29 +09:00
..
benchmark Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
bundler Sync latest development version of bundler & rubygems 2021-03-08 13:47:35 +09:00
cgi
csv [ruby/csv] Bump version 2020-12-27 15:26:24 +09:00
delegate
did_you_mean Sync did_you_mean 2020-12-22 14:42:32 +09:00
drb Added ruby2_keywords for Ruby 2.5 and 2.6 2021-01-18 20:41:33 +09:00
erb [ruby/erb] Version 2.2.3 2021-03-26 12:37:37 +09:00
forwardable Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
getoptlong
irb [ruby/irb] process multi-line pastes as a single entity 2021-04-03 00:49:29 +09:00
logger Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
matrix [ruby/matrix] v0.3.1 2020-12-09 02:15:41 -05:00
net Enclose the code that was accidentally a link in "tt" 2021-03-31 15:18:52 +09:00
observer
optparse [ruby/optparse] Exclude unnecessary files from the package 2021-03-29 18:24:56 +09:00
ostruct Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
pstore
racc Enclose the code that was accidentally a link in "tt" 2021-03-31 15:18:52 +09:00
rdoc [ruby/rdoc] Get rid of a trailing space 2021-03-16 15:47:27 +09:00
reline [ruby/reline] Reset @rest_height when clear screen 2021-04-02 17:33:48 +09:00
rinda Added dependencies for rinda 2020-12-04 20:21:41 +09:00
rubygems Sync latest development version of bundler & rubygems 2021-03-08 13:47:35 +09:00
set Import set 1.0.1 2020-12-22 21:41:44 +09:00
singleton
timeout
tracer Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
unicode_normalize
uri Enclose the code that was accidentally a link in "tt" 2021-03-31 15:18:52 +09:00
weakref Added dependencies for weakref 2020-12-01 19:48:24 +09:00
yaml Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
.document Remove unnecessary files from .document 2020-12-20 16:00:13 +09:00
abbrev.gemspec Promote abbrev to default gems 2020-09-10 18:56:16 +09:00
abbrev.rb
base64.gemspec Promote base64 to default gems 2020-09-10 18:56:17 +09:00
base64.rb
benchmark.rb [lib/benchmark] Use $stdout instead of STDOUT [Bug #17600] 2021-03-01 19:23:21 -05:00
bundler.rb Sync latest development version of bundler & rubygems 2021-03-08 13:47:35 +09:00
cgi.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
csv.rb [ruby/csv] Fix typo [ci skip] 2020-12-27 15:27:46 +09:00
debug.gemspec Promote debug.rb to default gems. 2020-10-30 21:45:23 +09:00
debug.rb
delegate.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
did_you_mean.rb
drb.rb
English.gemspec Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
English.rb
erb.gemspec [ruby/erb] Clarify supported ruby versions in gemspec 2021-03-26 12:35:52 +09:00
erb.rb [ruby/erb] Let ERB.version just return a version 2021-01-21 15:26:55 +09:00
fileutils.gemspec [ruby/fileutils] Drop support for dead old versions 2021-01-17 12:20:55 +09:00
fileutils.rb [ruby/fileutils] Removed code for dead versions 2021-01-17 12:20:57 +09:00
find.gemspec
find.rb
forwardable.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
getoptlong.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
ipaddr.gemspec [ruby/ipaddr] fixup 90b46678a5b09ed32612b0629b7c51c6d39a0444 2020-12-03 17:48:32 +09:00
ipaddr.rb
irb.rb [ruby/irb] SIGINT should raise Interrupt after IRB session 2021-04-02 01:57:44 +09:00
logger.rb
matrix.rb [ruby/matrix] Replace "iff" with "whether" [doc] 2021-01-21 13:22:25 -05:00
mkmf.rb mkmf: fixed install directories of header files in extension libraries [Bug #17761] 2021-03-30 23:28:49 +09:00
mutex_m.gemspec Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
mutex_m.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
observer.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
open-uri.gemspec Added dependencies for open-uri 2020-12-01 19:48:24 +09:00
open-uri.rb
open3.gemspec Manually picked 724bdb8e1d 2020-09-14 14:07:37 +09:00
open3.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
optionparser.rb
optparse.rb [ruby/optparse] bump up to 0.1.1 2021-03-29 19:37:25 +09:00
ostruct.rb [ruby/ostruct] Bump version 2021-01-13 01:09:29 -05:00
pp.gemspec [ruby/pp] Removed needless files from Gem::Specification#files 2020-12-28 16:20:37 +09:00
pp.rb [DOC] Add doc to sharing_detection= [ci skip] 2020-12-23 11:13:50 +09:00
prettyprint.gemspec Promote prettyprint to default gems 2020-10-08 16:40:46 +09:00
prettyprint.rb
prime.gemspec [ruby/prime] Fix gemspec 2020-12-09 01:30:06 -05:00
prime.rb [ruby/prime] v0.1.2 2020-12-09 00:45:56 -05:00
pstore.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
racc.rb
rdoc.rb
readline.gemspec
readline.rb
reline.rb [ruby/reline] Add Reline.ungetc to control buffer 2021-03-24 15:43:10 +09:00
resolv-replace.gemspec Promote resolv-replace to default gems 2020-09-11 22:01:08 +09:00
resolv-replace.rb
resolv.gemspec Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
resolv.rb fe80 should be case insensitive too 2020-11-09 16:16:30 +09:00
ruby2_keywords.gemspec Use real-case version number for the result of gem list 2021-01-19 11:51:39 +09:00
rubygems.rb Sync latest development version of bundler & rubygems 2021-03-08 13:47:35 +09:00
securerandom.gemspec Promote securerandom to default gems 2020-09-11 21:15:25 +09:00
securerandom.rb Make SecureRandom support Ractor 2020-09-09 12:45:43 -07:00
set.rb Import set 1.0.1 2020-12-22 21:41:44 +09:00
shellwords.gemspec Promote shellwords to default gems 2020-09-10 18:56:17 +09:00
shellwords.rb
singleton.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
tempfile.gemspec Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
tempfile.rb [ruby/tempfile] Improve the documentation for Tempfile.create and recommend Tempfile.open instead 2020-10-05 19:17:25 +02:00
time.gemspec Added dependencies for time 2020-12-01 19:48:24 +09:00
time.rb [ruby/time] Use Time#strftime to format 2021-01-15 19:04:33 +09:00
timeout.rb Fix handling of timeout accessing scheduler outside of non-blocking context. 2021-03-30 18:38:42 +13:00
tmpdir.gemspec Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
tmpdir.rb [ruby/tmpdir] Warn when environment variables skipped (fixes #2) 2020-09-14 18:22:37 +09:00
tracer.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
tsort.gemspec Promote tsort to default gems 2020-09-09 21:53:09 +09:00
tsort.rb
un.gemspec Promote un.rb to the default gems. It's preparation for 3.0.0-preview2. 2020-11-05 20:21:31 +09:00
un.rb Use abort(message) instead of puts and exit 2020-12-10 21:06:10 +09:00
uri.rb
weakref.rb Update library versions of the default gems. 2020-12-22 21:45:28 +09:00
yaml.rb