summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-11-11 18:28:47 +0900
committernagachika <nagachika@ruby-lang.org>2021-11-22 10:51:35 +0900
commit6775e9a21b240279dfda889364b50ac9160e7cd6 (patch)
tree39dda0b9dee9442e6b859b281f1256ee3d79365b /ext
parentd9a1f148052c49398975f3f3284d2822e03b92f7 (diff)
Bump strscan version to 3.0.1
Diffstat (limited to 'ext')
-rw-r--r--ext/strscan/strscan.c14
-rw-r--r--ext/strscan/strscan.gemspec4
2 files changed, 7 insertions, 11 deletions
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c
index fb722ecefa..e1426380b4 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);
#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)
}
/*
- * 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)
}
/*
- * 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)
}
/*
- * 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)
*
* === 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)
* - #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 fa9b895a9c..5d8119ea4c 100644
--- a/ext/strscan/strscan.gemspec
+++ b/ext/strscan/strscan.gemspec
@@ -25,8 +25,4 @@ Gem::Specification.new do |s|
s.email = [nil, "kou@cozmixng.org"]
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