mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Bump strscan version to 3.0.1
This commit is contained in:
parent
d9a1f14805
commit
6775e9a21b
4 changed files with 9 additions and 13 deletions
|
|
@ -22,7 +22,7 @@ extern size_t onig_region_memsize(const struct re_registers *regs);
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#define STRSCAN_VERSION "3.0.0"
|
#define STRSCAN_VERSION "3.0.1"
|
||||||
|
|
||||||
/* =======================================================================
|
/* =======================================================================
|
||||||
Data Type Definitions
|
Data Type Definitions
|
||||||
|
|
@ -981,7 +981,7 @@ strscan_unscan(VALUE self)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 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 = StringScanner.new("test\ntest\n")
|
||||||
* s.bol? # => true
|
* s.bol? # => true
|
||||||
|
|
@ -1034,7 +1034,7 @@ strscan_empty_p(VALUE self)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 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.
|
* This method is obsolete; use #eos? instead.
|
||||||
*
|
*
|
||||||
* s = StringScanner.new('test string')
|
* s = StringScanner.new('test string')
|
||||||
|
|
@ -1051,7 +1051,7 @@ strscan_rest_p(VALUE self)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 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 = StringScanner.new('test string')
|
||||||
* s.match?(/\w+/) # => 4
|
* s.match?(/\w+/) # => 4
|
||||||
|
|
@ -1534,7 +1534,7 @@ strscan_fixed_anchor_p(VALUE self)
|
||||||
*
|
*
|
||||||
* === Finding Where we Are
|
* === Finding Where we Are
|
||||||
*
|
*
|
||||||
* - #beginning_of_line? (#bol?)
|
* - #beginning_of_line? (<tt>#bol?</tt>)
|
||||||
* - #eos?
|
* - #eos?
|
||||||
* - #rest?
|
* - #rest?
|
||||||
* - #rest_size
|
* - #rest_size
|
||||||
|
|
@ -1551,13 +1551,13 @@ strscan_fixed_anchor_p(VALUE self)
|
||||||
* - #matched
|
* - #matched
|
||||||
* - #matched?
|
* - #matched?
|
||||||
* - #matched_size
|
* - #matched_size
|
||||||
* - []
|
* - <tt>#[]</tt>
|
||||||
* - #pre_match
|
* - #pre_match
|
||||||
* - #post_match
|
* - #post_match
|
||||||
*
|
*
|
||||||
* === Miscellaneous
|
* === Miscellaneous
|
||||||
*
|
*
|
||||||
* - <<
|
* - <tt><<</tt>
|
||||||
* - #concat
|
* - #concat
|
||||||
* - #string
|
* - #string
|
||||||
* - #string=
|
* - #string=
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,4 @@ Gem::Specification.new do |s|
|
||||||
s.email = [nil, "kou@cozmixng.org"]
|
s.email = [nil, "kou@cozmixng.org"]
|
||||||
s.homepage = "https://github.com/ruby/strscan"
|
s.homepage = "https://github.com/ruby/strscan"
|
||||||
s.licenses = ["Ruby", "BSD-2-Clause"]
|
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
|
end
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ class Reline::WithinPipeTest < Reline::TestCase
|
||||||
@reader, @output_writer = IO.pipe((RELINE_TEST_ENCODING rescue Encoding.default_external))
|
@reader, @output_writer = IO.pipe((RELINE_TEST_ENCODING rescue Encoding.default_external))
|
||||||
@output = Reline.output = @output_writer
|
@output = Reline.output = @output_writer
|
||||||
@config = Reline.send(:core).config
|
@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
|
@line_editor = Reline.send(:core).line_editor
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ require 'test/unit'
|
||||||
|
|
||||||
class TestStringScannerRactor < Test::Unit::TestCase
|
class TestStringScannerRactor < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
skip unless defined? Ractor
|
pend unless defined? Ractor
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_ractor
|
def test_ractor
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue