strscan 3.0.1 → 3.0.2.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/strscan/strscan.c +6 -6
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9fd5b208e7aacf23888bbe6a3f8b935b094c1baef2ab4756b9e7b41804a1b8c
|
4
|
+
data.tar.gz: 709f8ad4e2d4d8832e2d85e1be00654f621312533646df6f5234f0cb9ea414db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a08b38d5075dee6450a14904b6e0220423247609d78e84e28272e1f257235d45d4902de656db61286d98e03dcfc1231a60174cdf5eb26b5e2b6735c59dda9a6
|
7
|
+
data.tar.gz: cc2b8c1637db23c98a590f1d20f59a56ac64b3372afba40dd7aee85fa98fe47708e40238d70ca322a9e93e4d89c216f82a7c9d545c7189e177b5b0e7d0feec77
|
data/ext/strscan/strscan.c
CHANGED
@@ -22,7 +22,7 @@ extern size_t onig_region_memsize(const struct re_registers *regs);
|
|
22
22
|
|
23
23
|
#include <stdbool.h>
|
24
24
|
|
25
|
-
#define STRSCAN_VERSION "3.0.
|
25
|
+
#define STRSCAN_VERSION "3.0.2.pre1"
|
26
26
|
|
27
27
|
/* =======================================================================
|
28
28
|
Data Type Definitions
|
@@ -435,11 +435,11 @@ strscan_get_pos(VALUE self)
|
|
435
435
|
*
|
436
436
|
* In short, it's a 0-based index into the string.
|
437
437
|
*
|
438
|
-
* s = StringScanner.new("
|
439
|
-
* s.charpos
|
440
|
-
* s.scan_until(
|
441
|
-
* s.pos
|
442
|
-
* s.charpos
|
438
|
+
* s = StringScanner.new("abc\u00e4def\u00f6ghi")
|
439
|
+
* s.charpos # -> 0
|
440
|
+
* s.scan_until(/\u00e4/) # -> "abc\u00E4"
|
441
|
+
* s.pos # -> 5
|
442
|
+
* s.charpos # -> 4
|
443
443
|
*/
|
444
444
|
static VALUE
|
445
445
|
strscan_get_charpos(VALUE self)
|
metadata
CHANGED
@@ -1,20 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strscan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Minero Aoki
|
8
8
|
- Sutou Kouhei
|
9
|
+
- Charles Oliver Nutter
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2022-04-19 00:00:00.000000000 Z
|
13
14
|
dependencies: []
|
14
15
|
description: Provides lexical scanning operations on a String.
|
15
16
|
email:
|
16
17
|
-
|
17
18
|
- kou@cozmixng.org
|
19
|
+
- headius@headius.com
|
18
20
|
executables: []
|
19
21
|
extensions:
|
20
22
|
- ext/strscan/extconf.rb
|
@@ -38,11 +40,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
38
40
|
version: 2.4.0
|
39
41
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
42
|
requirements:
|
41
|
-
- - "
|
43
|
+
- - ">"
|
42
44
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
45
|
+
version: 1.3.1
|
44
46
|
requirements: []
|
45
|
-
rubygems_version: 3.3.
|
47
|
+
rubygems_version: 3.3.7
|
46
48
|
signing_key:
|
47
49
|
specification_version: 4
|
48
50
|
summary: Provides lexical scanning operations on a String.
|