Граф коммитов

8840 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada b83b27cddb [ruby/irb] Fix inverse separator condition
https://github.com/ruby/irb/commit/33f933196f
2021-02-12 00:02:16 +09:00
aycabta 6eb5b3ac27 [ruby/irb] The command "irb_info" should show RUBY_PLATFORM
https://github.com/ruby/irb/commit/39d1cd874f
2021-02-11 20:36:43 +09:00
aycabta b2d2d25b94 [ruby/irb] Suppress colorize on Windows tests
https://github.com/ruby/irb/commit/5be9354cf9
2021-02-11 20:31:29 +09:00
aycabta d77a42fbfd [ruby/irb] Suppress error when File::ALT_SEPARATOR is nil
https://github.com/ruby/irb/commit/96accf3b95
2021-02-11 20:27:25 +09:00
Keith Bennett 3a7ff66abc [ruby/benchmark] Adds `Tms#to_h`
[Feature #17601]
2021-02-07 23:06:17 -05:00
aycabta 93ebfed0a9 [ruby/reline] Version 0.2.3
https://github.com/ruby/reline/commit/b26c7d60c8
2021-02-07 05:29:31 +09:00
aycabta 8aac11484b [ruby/irb] Version 1.3.3
https://github.com/ruby/irb/commit/4c87035b7c
2021-02-07 05:28:08 +09:00
aycabta 300084a854 [ruby/reline] Terminate correctly in the middle of lines higher than the screen
https://github.com/ruby/reline/commit/e1d9240ada
2021-02-07 05:12:19 +09:00
aycabta fee19da230 [ruby/reline] Autowrap correctly when inserting chars in the middle of a line
https://github.com/ruby/reline/commit/ebaf37255f
2021-02-07 05:12:07 +09:00
aycabta a19ed1623f [ruby/reline] The vi_histedit supports multiline
This closes ruby/reline#253.

https://github.com/ruby/reline/commit/f131f86d71
2021-02-07 05:11:54 +09:00
aycabta a608bb3e9b [ruby/reline] Move cursor just after the last line when finished
https://github.com/ruby/reline/commit/ba06e4c480
2021-02-07 05:11:47 +09:00
aycabta 08162f0e69 [ruby/reline] Update cursor info by inserting newline even if not in pasting
https://github.com/ruby/reline/commit/92d314f514
2021-02-07 05:11:41 +09:00
aycabta b371ca3f4f [ruby/reline] Handle past logs correctly when the code is higher than the screen
https://github.com/ruby/reline/commit/f197139b4a
2021-02-07 05:11:27 +09:00
aycabta bd0f8b36fd [ruby/reline] Show all lines higher than the screen when finished
On Unix-like OSes, logs prior to the screen are not editable. When the code
is higher than the screen, the code is only shown on the screen until input
is finished, but when it is finished, all lines are outputted.

https://github.com/ruby/reline/commit/8cd9132a39
2021-02-07 05:11:13 +09:00
aycabta 03523fdafb [ruby/reline] Scroll down when ^C is pressed
https://github.com/ruby/reline/commit/6877a7e3f5
2021-02-07 05:11:00 +09:00
aycabta ec6929a5dd [ruby/reline] Remove an unused variable
https://github.com/ruby/reline/commit/123ea51166
2021-02-07 05:10:50 +09:00
aycabta 433b975fe8 [ruby/reline] Initialize uninitialized variables in tests
https://github.com/ruby/reline/commit/25af4bb64b
2021-02-07 05:10:36 +09:00
aycabta b69c965f47 [ruby/reline] Cache pasting state in processing a key
Because it's too slow.

The rendering time in IRB has been reduced as follows:

  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.22sec -> 0.14sec

https://github.com/ruby/reline/commit/b8b3dd52c0
2021-02-07 05:09:18 +09:00
aycabta 7b354cf67b [ruby/irb] Enable to reassign a new block with "measure" command
https://github.com/ruby/irb/commit/b444573aa2
2021-02-06 21:09:31 +09:00
aycabta 5704b5fe5e [ruby/irb] Allow "measure" command to take block
https://github.com/ruby/irb/commit/20f1ca23e9
2021-02-06 20:45:08 +09:00
ima1zumi b79d443482 [ruby/irb] Add info.rb to gemspec
https://github.com/ruby/irb/commit/adbba19adf
2021-02-04 21:12:54 +09:00
Nobuhiro IMAI b0fb208218 [ruby/irb] follow up the actual line number
https://github.com/ruby/irb/commit/7aed8fe3b1
2021-02-03 00:09:32 +09:00
Nobuyoshi Nakada f6387ae073 Fix absolute path predicate on Windows
A path starts with '/' is not an absolute path on Windows, because
of drive letter or UNC.
2021-01-29 10:26:18 +09:00
Nobuhiro IMAI e80e5a2f89 [ruby/irb] use `RubyLex::TerminateLineInput` appropriately [Bug #17564]
* using the appropriciate exception instead of `break` so that the session
  can be continue after the `irb_source` and `irb_load` commands
* suppress extra new line due to one more `#prompt` call

https://github.com/ruby/irb/commit/bdefaa7cfd
2021-01-27 15:02:05 +09:00
Nobuhiro IMAI 5b05b85d85 [ruby/irb] add `IRB::FileInputMethod.open` to ensure closing associated File
* tweak some methods not to raise exception after `#close`
* use it in `IRB::IrbLoader#{source_file,load_file}

https://github.com/ruby/irb/commit/ec2947acbd
2021-01-27 15:01:57 +09:00
Nobuyoshi Nakada 19e6d27126 [ruby/rdoc] Support iso-strict format in git-log
https://github.com/ruby/rdoc/commit/2a6c22da63
2021-01-25 18:33:33 +09:00
Nobuyoshi Nakada 7fe22152fc [ruby/rdoc] Support other date formats in git-log
https://github.com/ruby/rdoc/commit/ad8cf37d72
2021-01-25 18:33:31 +09:00
Nobuyoshi Nakada fd6d5c803a Clear each test own temporary directories 2021-01-25 12:51:18 +09:00
Nobuyoshi Nakada 30f11e73c4
Revert "Remove temporary directory properly"
This reverts commit 80bad36989,
because a few CI machines fail continuously.
2021-01-24 23:26:11 +09:00
Nobuyoshi Nakada 80bad36989 Remove temporary directory properly
For each `make check`, rubygems test makes "tmp" directory and
some "gem_generate_index..." directories remain there.

* Do not create a (fixed name) directory in the current working
  directory
* Should remove its own temporary directory
2021-01-24 19:30:02 +09:00
Nobuyoshi Nakada 52ebaf718e [ruby/rdoc] Skip non-date logs by git-log
`RDoc::Parser::ChangeLog` mis-parses ChangeLog generated by
git-log, because of too heuristic `Time.parse`.

For instance, "commit 8187228de0142d3ac7950b7d977c2849e934c637"
results in "8187-08-16", that is, day 228 in the year 8187.

https://github.com/ruby/rdoc/commit/9711e6f6d9
2021-01-24 16:46:27 +09:00
Nobuyoshi Nakada d5d1c41728 [ruby/rdoc] Sort by CommitDate if available
https://github.com/ruby/rdoc/commit/455715e930
2021-01-24 16:46:25 +09:00
Nobuyoshi Nakada fa048a0f85 [ruby/rdoc] Add links to the commits
https://github.com/ruby/rdoc/commit/1821628076
2021-01-24 16:46:23 +09:00
Nobuyoshi Nakada f3f1a666c7 [ruby/rdoc] Shorten commit hashes
https://github.com/ruby/rdoc/commit/5d3e153963
2021-01-24 16:46:21 +09:00
Nobuyoshi Nakada 127f735c1e [ruby/rdoc] Tweak log entry markdown
* add 3 levels to headings
* prefix commit log to labels to make unique IDs

https://github.com/ruby/rdoc/commit/5074c13209
2021-01-24 16:46:19 +09:00
Nobuyoshi Nakada b88d1e6b44 [ruby/rdoc] Make each commit entries h3
https://github.com/ruby/rdoc/commit/11eefb2ae9
2021-01-24 16:46:17 +09:00
Nobuyoshi Nakada bb570ce6d8 [ruby/rdoc] Support ChangeLog generated by `git log`
https://github.com/ruby/rdoc/commit/5e0a123ca1
2021-01-24 16:46:15 +09:00
Dorian Marié 68e7dc532d [ruby/rdoc] Fix failing test by adding gettext as a development dependency
The failing test was:

========================================================================================
rdoc/test/rdoc/test_rdoc_i18n_locale.rb:35:in `rescue in test_load_existent_po'
Omission: gettext gem is not found [test_load_existent_po(TestRDocI18nLocale)]
========================================================================================

https://github.com/ruby/rdoc/commit/e5f85839e1
2021-01-24 16:46:11 +09:00
aycabta 743c44ee21 [ruby/irb] Indent correctly with method calling with receiver
https://github.com/ruby/irb/commit/e7c68e74a0
2021-01-24 14:35:34 +09:00
aycabta fc54af8aa1 [ruby/irb] Indent correctly with keyword "for" and "in"
https://github.com/ruby/irb/commit/47c83ea724
2021-01-24 14:35:26 +09:00
Gannon McGibbon 37258b64c7
[ruby/net-http] Replace "iff" with "if and only if"
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "if and only if"
instead should suffice.

https://github.com/ruby/net-http/commit/ffb87cad32
2021-01-23 10:20:28 +09:00
Gannon McGibbon 1def8a6004 [rubygems/rubygems] Replace "iff" with "whether" and "if and only if"
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "if and only if"
or "whether" should suffice.

https://github.com/rubygems/rubygems/commit/88318ebc6d
2021-01-23 09:50:47 +09:00
aycabta fb33ec0119 [ruby/irb] Delete a doodle-level memo comment...
https://github.com/ruby/irb/commit/fc3e1d9e0c
2021-01-22 08:15:31 +09:00
Gannon McGibbon 871b4612b0 [ruby/matrix] Replace "iff" with "whether" [doc]
iff means if and only if, but readers without that knowledge might
assume this to be a spelling mistake. To me, this seems like
exclusionary language that is unnecessary. Simply using "whether"
when describing return values should suffice.
2021-01-21 13:22:25 -05:00
Felix Wolfsteller e34f51fe60 [ruby/matrix] Add `Matrix#rotate_entries` [#19]
Co-authored-by: Marc-André Lafortune <github@marc-andre.ca>
2021-01-21 13:22:25 -05:00
Takashi Kokubun 724c289b5c [ruby/erb] Version 2.2.2
https://github.com/ruby/erb/commit/3d84ea83bc
2021-01-21 15:29:40 +09:00
Takashi Kokubun b12bd451af [ruby/erb] Let ERB.version just return a version
and deprecate ERB::Revision.

`'$Date::                           $'` has not been working since Git
migration from SVN. I'm sorry.

Because it has been already broken, I'd like to take this opportunity to
make `ERB.version` compatible with `Gem::Version.new`.

https://github.com/ruby/erb/commit/2b4182eb10
2021-01-21 15:26:55 +09:00
Takashi Kokubun e0d92d5e5d [ruby/erb] Version 2.2.1
https://github.com/ruby/erb/commit/c8aa019c26
2021-01-21 14:52:20 +09:00
Takashi Kokubun 3e8ca51b3b
Fix the relative path for Ruby core 2021-01-20 21:45:34 -08:00
Takashi Kokubun 5f7df72b56
[ruby/erb] Unify ERB version definitions
https://github.com/ruby/erb/commit/5df06b8473
2021-01-20 21:43:05 -08:00