re2 2.4.1-x86_64-darwin → 2.4.3-x86_64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf33390b57a9ac1f50def820182c027a4a4d2a79cf6d120d9a835d701c2df96f
4
- data.tar.gz: ad0f77f22597ef72d8b593dad32d5c0316d6873a4e77a914db0807c457509fe5
3
+ metadata.gz: 822008e1199c07c821f16249864d291a00792cb1c230d3c36b2e9eff80849012
4
+ data.tar.gz: 10ae0e0e93d71f37414daeca203c42b401db3a777f586f815147c6baa5b08f6a
5
5
  SHA512:
6
- metadata.gz: 40431501e5e3c37b900034d07ed01a0aca8f2098502bd3b8c72cb0ef0d7fe146f0d25d36e2416ef404c8c473f0ad2bcf646bfd9bb587de863b9c9254d11e5b1d
7
- data.tar.gz: a1ea0a37ea7229945421f0a93e235c9fba3ee998e21fa06e6327bc9b1498d62334782e598dfbd765da01e5411846343cf543bab8a42b5ce450df94ab13a6488a
6
+ metadata.gz: ae93fd47e370351e1ff37d575e1c90b0cc5a47371dc2e7450d5da94f6774571a88831c9f8af1ee8a4318828bf8a1454aac89c7646e1c047d9656a4a42b8e8e9d
7
+ data.tar.gz: 90277c43b21578c1e2f3992f60bafdcf46a534598d1654b76be7a6d8312cffa1b8142f525259713c2806ad97f88e1bc307af6aef37ac1a7821ec2bb0423a2a35
data/README.md CHANGED
@@ -5,7 +5,7 @@ Ruby bindings to [RE2][], a "fast, safe, thread-friendly alternative to
5
5
  backtracking regular expression engines like those used in PCRE, Perl, and
6
6
  Python".
7
7
 
8
- **Current version:** 2.4.1
8
+ **Current version:** 2.4.3
9
9
  **Supported Ruby versions:** 2.6, 2.7, 3.0, 3.1, 3.2
10
10
  **Bundled RE2 version:** libre2.11 (2023-11-01)
11
11
  **Supported RE2 versions:** libre2.0 (< 2020-03-02), libre2.1 (2020-03-02), libre2.6 (2020-03-03), libre2.7 (2020-05-01), libre2.8 (2020-07-06), libre2.9 (2020-11-01), libre2.10 (2022-12-01), libre2.11 (2023-07-01)
@@ -256,13 +256,17 @@ Contributions
256
256
  -------------
257
257
 
258
258
  * Thanks to [Jason Woods](https://github.com/driskell) who contributed the
259
- original implementations of `RE2::MatchData#begin` and `RE2::MatchData#end`;
260
- * Thanks to [Stefano Rivera](https://github.com/stefanor) who first contributed C++11 support;
261
- * Thanks to [Stan Hu](https://github.com/stanhu) for reporting a bug with empty patterns and `RE2::Regexp#scan`, contributing support for libre2.11 (2023-07-01) and for vendoring RE2 and abseil and compiling native gems in 2.0;
259
+ original implementations of `RE2::MatchData#begin` and `RE2::MatchData#end`.
260
+ * Thanks to [Stefano Rivera](https://github.com/stefanor) who first contributed
261
+ C++11 support.
262
+ * Thanks to [Stan Hu](https://github.com/stanhu) for reporting a bug with empty
263
+ patterns and `RE2::Regexp#scan`, contributing support for libre2.11
264
+ (2023-07-01) and for vendoring RE2 and abseil and compiling native gems in
265
+ 2.0.
262
266
  * Thanks to [Sebastian Reitenbach](https://github.com/buzzdeee) for reporting
263
- the deprecation and removal of the `utf8` encoding option in RE2;
267
+ the deprecation and removal of the `utf8` encoding option in RE2.
264
268
  * Thanks to [Sergio Medina](https://github.com/serch) for reporting a bug when
265
- using `RE2::Scanner#scan` with an invalid regular expression;
269
+ using `RE2::Scanner#scan` with an invalid regular expression.
266
270
  * Thanks to [Pritam Baral](https://github.com/pritambaral) for contributing the
267
271
  initial support for `RE2::Set`.
268
272
  * Thanks to [Mike Dalessio](https://github.com/flavorjones) for reviewing the
data/ext/re2/re2.cc CHANGED
@@ -124,7 +124,7 @@ static void parse_re2_options(RE2::Options* re2_options, const VALUE options) {
124
124
 
125
125
  /* For compatibility with ruby < 2.7 */
126
126
  #ifdef HAVE_RB_GC_MARK_MOVABLE
127
- #define re2_compact_callback(x) .dcompact = (x),
127
+ #define re2_compact_callback(x) (x),
128
128
  #else
129
129
  #define rb_gc_mark_movable(x) rb_gc_mark(x)
130
130
  #define re2_compact_callback(x)
@@ -163,16 +163,18 @@ static size_t re2_matchdata_memsize(const void *ptr) {
163
163
  }
164
164
 
165
165
  static const rb_data_type_t re2_matchdata_data_type = {
166
- .wrap_struct_name = "RE2::MatchData",
167
- .function = {
168
- .dmark = re2_matchdata_mark,
169
- .dfree = re2_matchdata_free,
170
- .dsize = re2_matchdata_memsize,
166
+ "RE2::MatchData",
167
+ {
168
+ re2_matchdata_mark,
169
+ re2_matchdata_free,
170
+ re2_matchdata_memsize,
171
171
  re2_compact_callback(re2_matchdata_compact)
172
172
  },
173
+ 0,
174
+ 0,
173
175
  // IMPORTANT: WB_PROTECTED objects must only use the RB_OBJ_WRITE()
174
176
  // macro to update VALUE references, as to trigger write barriers.
175
- .flags = RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
177
+ RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
176
178
  };
177
179
 
178
180
  static void re2_scanner_mark(void *ptr) {
@@ -201,23 +203,25 @@ static size_t re2_scanner_memsize(const void *ptr) {
201
203
  const re2_scanner *s = reinterpret_cast<const re2_scanner *>(ptr);
202
204
  size_t size = sizeof(*s);
203
205
  if (s->input) {
204
- size += sizeof(s->input);
206
+ size += sizeof(*s->input);
205
207
  }
206
208
 
207
209
  return size;
208
210
  }
209
211
 
210
212
  static const rb_data_type_t re2_scanner_data_type = {
211
- .wrap_struct_name = "RE2::Scanner",
212
- .function = {
213
- .dmark = re2_scanner_mark,
214
- .dfree = re2_scanner_free,
215
- .dsize = re2_scanner_memsize,
213
+ "RE2::Scanner",
214
+ {
215
+ re2_scanner_mark,
216
+ re2_scanner_free,
217
+ re2_scanner_memsize,
216
218
  re2_compact_callback(re2_scanner_compact)
217
219
  },
220
+ 0,
221
+ 0,
218
222
  // IMPORTANT: WB_PROTECTED objects must only use the RB_OBJ_WRITE()
219
223
  // macro to update VALUE references, as to trigger write barriers.
220
- .flags = RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
224
+ RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
221
225
  };
222
226
 
223
227
  static void re2_regexp_free(void *ptr) {
@@ -232,22 +236,24 @@ static size_t re2_regexp_memsize(const void *ptr) {
232
236
  const re2_pattern *p = reinterpret_cast<const re2_pattern *>(ptr);
233
237
  size_t size = sizeof(*p);
234
238
  if (p->pattern) {
235
- size += sizeof(p->pattern);
239
+ size += sizeof(*p->pattern);
236
240
  }
237
241
 
238
242
  return size;
239
243
  }
240
244
 
241
245
  static const rb_data_type_t re2_regexp_data_type = {
242
- .wrap_struct_name = "RE2::Regexp",
243
- .function = {
244
- .dmark = NULL,
245
- .dfree = re2_regexp_free,
246
- .dsize = re2_regexp_memsize,
246
+ "RE2::Regexp",
247
+ {
248
+ 0,
249
+ re2_regexp_free,
250
+ re2_regexp_memsize,
247
251
  },
252
+ 0,
253
+ 0,
248
254
  // IMPORTANT: WB_PROTECTED objects must only use the RB_OBJ_WRITE()
249
255
  // macro to update VALUE references, as to trigger write barriers.
250
- .flags = RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
256
+ RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
251
257
  };
252
258
 
253
259
  static VALUE re2_matchdata_allocate(VALUE klass) {
@@ -1591,22 +1597,24 @@ static size_t re2_set_memsize(const void *ptr) {
1591
1597
  const re2_set *s = reinterpret_cast<const re2_set *>(ptr);
1592
1598
  size_t size = sizeof(*s);
1593
1599
  if (s->set) {
1594
- size += sizeof(s->set);
1600
+ size += sizeof(*s->set);
1595
1601
  }
1596
1602
 
1597
1603
  return size;
1598
1604
  }
1599
1605
 
1600
1606
  static const rb_data_type_t re2_set_data_type = {
1601
- .wrap_struct_name = "RE2::Set",
1602
- .function = {
1603
- .dmark = NULL,
1604
- .dfree = re2_set_free,
1605
- .dsize = re2_set_memsize,
1607
+ "RE2::Set",
1608
+ {
1609
+ 0,
1610
+ re2_set_free,
1611
+ re2_set_memsize,
1606
1612
  },
1613
+ 0,
1614
+ 0,
1607
1615
  // IMPORTANT: WB_PROTECTED objects must only use the RB_OBJ_WRITE()
1608
1616
  // macro to update VALUE references, as to trigger write barriers.
1609
- .flags = RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
1617
+ RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
1610
1618
  };
1611
1619
 
1612
1620
  static VALUE re2_set_allocate(VALUE klass) {
data/lib/2.6/re2.bundle CHANGED
Binary file
data/lib/2.7/re2.bundle CHANGED
Binary file
data/lib/3.0/re2.bundle CHANGED
Binary file
data/lib/3.1/re2.bundle CHANGED
Binary file
data/lib/3.2/re2.bundle CHANGED
Binary file
data/lib/re2/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RE2
4
- VERSION = "2.4.1"
4
+ VERSION = "2.4.3"
5
5
  end
data/re2.gemspec CHANGED
@@ -11,7 +11,6 @@ Gem::Specification.new do |s|
11
11
  s.license = "BSD-3-Clause"
12
12
  s.required_ruby_version = ">= 2.6.0"
13
13
  s.files = [
14
- ".rspec",
15
14
  "dependencies.yml",
16
15
  "ext/re2/extconf.rb",
17
16
  "ext/re2/re2.cc",
@@ -28,6 +27,7 @@ Gem::Specification.new do |s|
28
27
  "re2.gemspec"
29
28
  ]
30
29
  s.test_files = [
30
+ ".rspec",
31
31
  "spec/spec_helper.rb",
32
32
  "spec/re2_spec.rb",
33
33
  "spec/kernel_spec.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: re2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.3
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Paul Mucur
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-11-12 00:00:00.000000000 Z
12
+ date: 2023-11-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler
@@ -115,6 +115,7 @@ signing_key:
115
115
  specification_version: 4
116
116
  summary: Ruby bindings to RE2.
117
117
  test_files:
118
+ - ".rspec"
118
119
  - spec/spec_helper.rb
119
120
  - spec/re2_spec.rb
120
121
  - spec/kernel_spec.rb