ruby-changes:69864
From: Hiroshi <ko1@a...>
Date: Mon, 22 Nov 2021 10:52:14 +0900 (JST)
Subject: [ruby-changes:69864] 6775e9a21b (ruby_3_0): Bump strscan version to 3.0.1
https://git.ruby-lang.org/ruby.git/commit/?id=6775e9a21b From 6775e9a21b240279dfda889364b50ac9160e7cd6 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Thu, 11 Nov 2021 18:28:47 +0900 Subject: Bump strscan version to 3.0.1 --- ext/strscan/strscan.c | 14 +++++++------- ext/strscan/strscan.gemspec | 4 ---- test/reline/test_within_pipe.rb | 2 +- test/strscan/test_ractor.rb | 2 +- 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c index fb722ecefad..e1426380b4e 100644 --- a/ext/strscan/strscan.c +++ b/ext/strscan/strscan.c @@ -22,7 +22,7 @@ extern size_t onig_region_memsize(const struct re_registers *regs); https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.c#L22 #include <stdbool.h> -#define STRSCAN_VERSION "3.0.0" +#define STRSCAN_VERSION "3.0.1" /* ======================================================================= Data Type Definitions @@ -981,7 +981,7 @@ strscan_unscan(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.c#L981 } /* - * Returns +true+ iff the scan pointer is at the beginning of the line. + * Returns +true+ if and only if the scan pointer is at the beginning of the line. * * s = StringScanner.new("test\ntest\n") * s.bol? # => true @@ -1034,7 +1034,7 @@ strscan_empty_p(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.c#L1034 } /* - * Returns true iff there is more data in the string. See #eos?. + * Returns true if and only if there is more data in the string. See #eos?. * This method is obsolete; use #eos? instead. * * s = StringScanner.new('test string') @@ -1051,7 +1051,7 @@ strscan_rest_p(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.c#L1051 } /* - * Returns +true+ iff the last match was successful. + * Returns +true+ if and only if the last match was successful. * * s = StringScanner.new('test string') * s.match?(/\w+/) # => 4 @@ -1534,7 +1534,7 @@ strscan_fixed_anchor_p(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.c#L1534 * * === Finding Where we Are * - * - #beginning_of_line? (#bol?) + * - #beginning_of_line? (<tt>#bol?</tt>) * - #eos? * - #rest? * - #rest_size @@ -1551,13 +1551,13 @@ strscan_fixed_anchor_p(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.c#L1551 * - #matched * - #matched? * - #matched_size - * - [] + * - <tt>#[]</tt> * - #pre_match * - #post_match * * === Miscellaneous * - * - << + * - <tt><<</tt> * - #concat * - #string * - #string= diff --git a/ext/strscan/strscan.gemspec b/ext/strscan/strscan.gemspec index fa9b895a9ca..5d8119ea4c7 100644 --- a/ext/strscan/strscan.gemspec +++ b/ext/strscan/strscan.gemspec @@ -25,8 +25,4 @@ Gem::Specification.new do |s| https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.gemspec#L25 s.email = [nil, "kou@c..."] s.homepage = "https://github.com/ruby/strscan" s.licenses = ["Ruby", "BSD-2-Clause"] - - s.add_development_dependency "rake-compiler" - s.add_development_dependency "benchmark-driver" - s.add_development_dependency "test-unit" end diff --git a/test/reline/test_within_pipe.rb b/test/reline/test_within_pipe.rb index e453b1902ef..36a2f1e8052 100644 --- a/test/reline/test_within_pipe.rb +++ b/test/reline/test_within_pipe.rb @@ -8,7 +8,7 @@ class Reline::WithinPipeTest < Reline::TestCase https://github.com/ruby/ruby/blob/trunk/test/reline/test_within_pipe.rb#L8 @reader, @output_writer = IO.pipe((RELINE_TEST_ENCODING rescue Encoding.default_external)) @output = Reline.output = @output_writer @config = Reline.send(:core).config - @config.keyseq_timeout *= 600 if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? # for --jit-wait CI + @config.keyseq_timeout *= 600 if defined?(RubyVM::JIT) && RubyVM::JIT.enabled? # for --jit-wait CI @line_editor = Reline.send(:core).line_editor end diff --git a/test/strscan/test_ractor.rb b/test/strscan/test_ractor.rb index 0d44242304b..480c1ae8a6d 100644 --- a/test/strscan/test_ractor.rb +++ b/test/strscan/test_ractor.rb @@ -3,7 +3,7 @@ require 'test/unit' https://github.com/ruby/ruby/blob/trunk/test/strscan/test_ractor.rb#L3 class TestStringScannerRactor < Test::Unit::TestCase def setup - skip unless defined? Ractor + pend unless defined? Ractor end def test_ractor -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/