re2 2.4.2-x86-mingw32 → 2.4.3-x86-mingw32

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: f0355bba5b5114429a4ee5cba3e4c381d5a768117606943e7b481bede9537f1d
4
- data.tar.gz: 65c3d78cf9c4ca4549d1747eba66d1d2ee662e8c8f0dbf55e646fad95d9e1cfe
3
+ metadata.gz: d1ebe47cba2d44757a43bbb8d93f7d961cdceb4083e2837fedccb5d4b510ca13
4
+ data.tar.gz: b414d60508bd6f5eae6a5356ab669e35fd970b4deb66af1a23042109e0e2d7b1
5
5
  SHA512:
6
- metadata.gz: e59481cc9329f510dfbfc38d8fd988c16babd6329862c3caa5c29f6f464a371dee4257e7006bfe1a2d8d48184c850fcd9242a36c9283e0777ff356dd6ae206c0
7
- data.tar.gz: 641b8217de66b798792e57bd164a7356593654cb0a1248f12b81b5318c3df007cc64f30c6160b500f53c9e0167c71f91967a144aec8b82c390c1525a5caec3ee
6
+ metadata.gz: 5197a06bf93b44df4a1b6cf4fe2fae5553c84e58b968396bd53c06f7e7e1606ce11456d325a6182fb569540ce45c66a5861f186def51dfd46f09a8a6e8f2dd52
7
+ data.tar.gz: 7770418b932324fa83bc7182ce6e29bf76edd06f34fc2ba5b4559234f3528f87ec51273f4f48d862cfbfb2c18530e5f5f8273a84d4b1c67857dbb46c8e60b07f
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.2
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)
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) {
@@ -208,16 +210,18 @@ static size_t re2_scanner_memsize(const void *ptr) {
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) {
@@ -239,15 +243,17 @@ static size_t re2_regexp_memsize(const void *ptr) {
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) {
@@ -1598,15 +1604,17 @@ static size_t re2_set_memsize(const void *ptr) {
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.so CHANGED
Binary file
data/lib/2.7/re2.so CHANGED
Binary file
data/lib/3.0/re2.so CHANGED
Binary file
data/lib/3.1/re2.so CHANGED
Binary file
data/lib/3.2/re2.so 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.2"
4
+ VERSION = "2.4.3"
5
5
  end
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.2
4
+ version: 2.4.3
5
5
  platform: x86-mingw32
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-17 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