summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2020-12-05[ruby/reline] Skip em_exchange_mark without markaycabta
https://github.com/ruby/reline/commit/abb56e5ec3
2020-12-05[ruby/reline] Backspace and C-h should be unassigned on vi command modeaycabta
https://github.com/ruby/reline/commit/28f4dae020
2020-12-05[ruby/reline] Version 0.1.7aycabta
https://github.com/ruby/reline/commit/710ca23427
2020-12-05[ruby/reline] Continuous insertion bufferingaycabta
The rendering time in IRB has been reduced as follows: start = Time.now [{"_id"=>"5f9072a4589a06d2d74b6028", "index"=>0, "guid"=>"6b3051e2-dbc7-4537-bdb9-6cd7bb5358a7", "isActive"=>true, "balance"=>"$1,442.84", "picture"=>"http://placehold.it/32x32", "age"=>34, "eyeColor"=>"blue", "name"=>{"first"=>"Ward", "last"=>"Levy"}, "company"=>"HYPLEX", "email"=>"ward.levy@hyplex.us", "phone"=>"+1 (867) 568-3319", "address"=>"867 Cobek Court, Clara, Maryland, 3254", "about"=> "Exercitation eu ex aliqua sit. Pariatur aliquip incididunt sint id non consectetur ullamco Lorem ea mollit duis amet sint labore. Commodo laborum labore commodo officia in cillum adipisicing esse excepteur cupidatat adipisicing ut. Non esse incididunt voluptate aliquip cillum eu aute duis laboris sit et. Amet enim quis tempor occaecat excepteur exercitation excepteur deserunt amet cillum adipisicing.", "registered"=>"Monday, May 25, 2015 6:51 AM", "latitude"=>"16.001127", "longitude"=>"-72.377848", "tags"=>["dolore", "nostrud", "occaecat", "cillum", "nisi"], "range"=>[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "friends"=> [{"id"=>0, "name"=>"Alison Bryant"}, {"id"=>1, "name"=>"Ester Espinoza"}, {"id"=>2, "name"=>"Sullivan Kane"}], "greeting"=>"Hello, Ward! You have 7 unread messages.", "favoriteFruit"=>"apple"}] puts "Duration: #{Time.now - start} seconds" 2.17sec -> 0.92sec start = Time.now "Exercitation eu ex aliqua sit. Pariatur aliquip incididunt sint id non consectetur ullamco Lorem ea mollit duis amet sint labore. Commodo laborum labore commodo officia in cillum adipisicing esse excepteur cupidatat adipisicing ut. Non esse incididunt voluptate aliquip cillum eu aute duis laboris sit et. Amet enim quis tempor occaecat excepteur exercitation excepteur deserunt amet cillum adipisicing." puts "Duration: #{Time.now - start} seconds" 1.57sec -> 0.22sec start = Time.now def each_top_level_statement initialize_input catch(:TERM_INPUT) do loop do begin prompt unless l = lex throw :TERM_INPUT if @line == '' else @line_no += l.count("\n") next if l == "\n" @line.concat l if @code_block_open or @ltype or @continue or @indent > 0 next end end if @line != "\n" @line.force_encoding(@io.encoding) yield @line, @exp_line_no end break if @io.eof? @line = '' @exp_line_no = @line_no @indent = 0 rescue TerminateLineInput initialize_input prompt end end end end puts "Duration: #{Time.now - start} seconds" 0.88sec -> 0.77sec https://github.com/ruby/reline/commit/7d87ac5a12
2020-12-05[ruby/reline] Improve the performance of `get_mbchar_width`Yusuke Endoh
It is about three times faster to use one big regexp instead of sequential matching. https://github.com/ruby/reline/commit/e36f6c0707
2020-12-05[ruby/reline] Version 0.1.6aycabta
https://github.com/ruby/reline/commit/20a7806815
2020-12-05[ruby/reline] Update the generator script tooYusuke Endoh
https://github.com/ruby/reline/commit/8b0926820a
2020-12-05[ruby/reline] Suppress callbacks in pastingaycabta
IRB uses Reline's 3 dynamic real-time callbacks with calling Ripper; output_modifier_proc, prompt_proc, and auto_indent_proc. These processing times make the paste time too long. https://github.com/ruby/reline/commit/beec3399a8
2020-12-05[ruby/reline] Improve the regexps for EastAsianWidthYusuke Endoh
A character class is about three times faster than Regexp alternatives https://github.com/ruby/reline/commit/57c7955c55
2020-12-05[ruby/reline] Deduplicate completed itemsaycabta
https://github.com/ruby/reline/commit/2dabf0c786
2020-12-05[ruby/reline] Use yamatanooroti 0.0.6 for supporting startup_message on Windowsaycabta
https://github.com/ruby/reline/commit/167423b664
2020-12-05[ruby/reline] Use startup_option instead of startup waitaycabta
https://github.com/ruby/reline/commit/a63ce6371c
2020-12-05[ruby/reline] Update to Unicode 13.0.0aycabta
https://github.com/ruby/reline/commit/d49bb0aa34
2020-12-04Added dependencies for rindaHiroshi SHIBATA
2020-12-04[ruby/logger] Consider cygwin a Windows platformJeremy Evans
This should fix Ruby Bug 12468. https://github.com/ruby/logger/commit/49de53d1fc
2020-12-04[ruby/mutex_m] Fix `Mutex_m#initialize` when the super's initialize has kwargsMasataka Pocke Kuwabara
Co-authored-by: Ryuta Kamizono <kamipo@gmail.com> https://github.com/ruby/mutex_m/commit/84ca1fc108
2020-12-04[ruby/fileutils] Make mkdir_p only attempt to create necessary directoriesJeremy Evans
Previously, if creating the directory directly didn't work and the directory didn't exist, mkdir_p would create all directories from the root. This modifies the approach to check whether the directory exists when walking up the directory tree from the argument, and once you have found an intermediate directory that exists, you only need to create directories under it. This approach has a couple advantages: 1) It performs better when most directories in path already exist, and that will be true for most usage of mkdir_p, as mkdir_p is usually called with paths where the first few directories exist and only the last directory or last few directories do not. 2) It works in file-system access limited environments such as when unveil(2) is used on OpenBSD. In these environments, if /foo/bar/baz exists and is unveiled, you can do `mkdir /foo/bar/baz/xyz` but `mkdir /foo` and `mkdir /foo/bar` raise Errno::ENOENT. https://github.com/ruby/fileutils/commit/ec0c229e78
2020-12-04[ruby/set] Add `Set#<=>`Marc-Andre Lafortune
https://github.com/ruby/set/commit/447974a374
2020-12-04[ruby/set] Remove SortedSet implementationsAkinori MUSHA
It required RBTree to perform decently and the external dependency was not suitable for a standard library. The pure ruby fallback implementation was originally meant to be an example of how to write a subclass of Set, and its poor performance was not suitable for use in production. I decided it should be distributed as an external library instead of bundling it with Set. https://github.com/ruby/set/commit/dfcc8e568b
2020-12-04[ruby/set] Resurrect support for Ruby 2.xAkinori MUSHA
In Ruby 2.x, initialize_copy does not take a freeze option. https://github.com/ruby/set/commit/3da6c309df
2020-12-03digest gem is available nowHiroshi SHIBATA
2020-12-03[ruby/ipaddr] fixup 90b46678a5b09ed32612b0629b7c51c6d39a0444Hiroshi SHIBATA
https://github.com/ruby/ipaddr/commit/d2ec7cc3ee
2020-12-03[ruby/ipaddr] Relaxed Ruby version for 3.0Hiroshi SHIBATA
https://github.com/ruby/ipaddr/commit/90b46678a5
2020-12-03Specify minimum version.Samuel Williams
2020-12-03Use Gemfile instead of Gem::Specification#add_development_dependency.Hiroshi SHIBATA
2020-12-03Simplify `ipaddr.gemspec`.Samuel Williams
2020-12-03[ruby/forwardable] Specify minimum Ruby version.Marc-Andre Lafortune
Remove jruby-9.1.17.0 from CI https://github.com/ruby/forwardable/commit/08d92a9c39
2020-12-02Added dependencies for net-popHiroshi SHIBATA
2020-12-02Added dependencies for net-imapHiroshi SHIBATA
2020-12-02Added dependencies for net-ftpHiroshi SHIBATA
2020-12-02Added dependencies for net-httpHiroshi SHIBATA
2020-12-02Added dependencies for net-smtpHiroshi SHIBATA
2020-12-02Added dependencies for net-protocolHiroshi SHIBATA
2020-12-02Added dependencies for tmpdirHiroshi SHIBATA
2020-12-02Added dependencies for erbHiroshi SHIBATA
2020-12-02Added dependencies for ppHiroshi SHIBATA
2020-12-01Added dependencies for open-uriHiroshi SHIBATA
2020-12-01Added dependencies for timeHiroshi SHIBATA
2020-12-01Added dependencies for primeHiroshi SHIBATA
2020-12-01Added dependencies for weakrefHiroshi SHIBATA
2020-11-24[ruby/csv] Add support for \r\n with skip_lines: /...$/ againSutou Kouhei
GitHub: fix GH-194 Reported by Josef Šimánek. Thanks!!! https://github.com/ruby/csv/commit/fd86afe081 Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Bump versionSutou Kouhei
https://github.com/ruby/csv/commit/e1b430d965 Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Removed needless editorconfig file (#192)Hiroshi SHIBATA
https://github.com/ruby/csv/commit/5623dee00e Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Split recipes into three pages: parsing, generating, filtering (#184)Burdette Lamar
Co-authored-by: Sutou Kouhei <kou@clear-code.com> https://github.com/ruby/csv/commit/f0bab6a592 Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Clarify and correct RDoc for converters (#178)Burdette Lamar
https://github.com/ruby/csv/commit/f3e9586b34 Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Experimenting with recipes in CSV RDoc (#175)Burdette Lamar
https://github.com/ruby/csv/commit/01ffd0d2de Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Fix CSV.filter to preserve headers (#174)Burdette Lamar
Co-authored-by: Sutou Kouhei <kou@clear-code.com> https://github.com/ruby/csv/commit/203c5e0574 Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Enhanced RDoc for CSV::Row (#173)Burdette Lamar
https://github.com/ruby/csv/commit/99956c671d Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Enhanced RDoc for CSV::Row (#171)Burdette Lamar
https://github.com/ruby/csv/commit/cced8d8de9 Notes: Merged: https://github.com/ruby/ruby/pull/3804
2020-11-24[ruby/csv] Enhanced RDoc for Row#[]= (#170)Burdette Lamar
https://github.com/ruby/csv/commit/744e83043f Notes: Merged: https://github.com/ruby/ruby/pull/3804