ox 2.14.5 → 2.14.6

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: f3288687ada02ee5a8c19fbde18da50329577718b7db9650a3cf544e423d3c20
4
- data.tar.gz: 711f74754b5e417028c8b6c1956eda6c6483ca7a1ce906bbdb64a60c36169de4
3
+ metadata.gz: 8cef7183a7bea9cd7baba3313afd0e008861d159ae8d99ef229dca9cb34ba1fd
4
+ data.tar.gz: 4929590f1b84ac3e5350c2657a3374eb49a2a258668bbf13d2ee5624110402c5
5
5
  SHA512:
6
- metadata.gz: 3ed4c311f6e5100b36db59aa46eaf5870479bee44ac733bd844591b87205da49437f715c504f0e048a73e7c0f82c953e74e5fe08772a723561c7b2c5ec30ef20
7
- data.tar.gz: 2149589a87c214dbbc5b999c4ae3123a106813d453b1f0e9c9b387d2356668d6b84de964b0e82a47f695810a776cb5e9960490ca6d391a4c77cbb1b6c8a39204
6
+ metadata.gz: fb7fb21b9be8f9e046b22e3dde36bb2469256daab163e17e082c9c15865926e21d2793052f544ebadaa958fb6589d30e9a5b7c6fed018f1fa6e32782271a2e8c
7
+ data.tar.gz: f259be386f39855faf5f871119cd60c16ee6c23872baf2239754f17512355fd19c2dbfa8c254746e1f44b0819f32b3e63700a5bfe3f6f0ff831c5f9c107f9df1
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All changes to the Ox gem are documented here. Releases follow semantic versioning.
4
4
 
5
+ ## [2.14.6] - 2021-11-03
6
+
7
+ ### Fixed
8
+
9
+ - Closing tags in builder are now escapped correctly thanks to ezekg.
10
+
5
11
  ## [2.14.5] - 2021-06-04
6
12
 
7
13
  ### Fixed
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Ox gem
2
2
  A fast XML parser and Object marshaller as a Ruby gem.
3
3
 
4
- [![Build status](https://ci.appveyor.com/api/projects/status/pg2w4wspbrflbi8c?svg=true)](https://ci.appveyor.com/project/ohler55/ox)
4
+ [![Build Status](https://img.shields.io/github/workflow/status/ohler55/ox/CI?logo=github)](https://github.com/ohler55/ox/actions/workflows/CI.yml)
5
5
 
6
6
  ## Installation
7
7
  gem install ox
data/ext/ox/builder.c CHANGED
@@ -286,7 +286,7 @@ pop(Builder b) {
286
286
  append_indent(b);
287
287
  }
288
288
  buf_append_string(&b->buf, "</", 2);
289
- buf_append_string(&b->buf, e->name, e->len);
289
+ append_string(b, e->name, e->len, xml_element_chars, false);
290
290
  buf_append(&b->buf, '>');
291
291
  b->col += e->len + 3;
292
292
  b->pos += e->len + 3;
data/ext/ox/extconf.rb CHANGED
@@ -38,6 +38,7 @@ have_func('rb_enc_find')
38
38
  have_func('rb_struct_alloc_noinit')
39
39
  have_func('rb_obj_encoding')
40
40
  have_func('rb_ivar_foreach')
41
+ have_func('rb_ext_ractor_safe', 'ruby.h')
41
42
 
42
43
  have_header('ruby/st.h')
43
44
  have_header('sys/uio.h')
data/ext/ox/ox.c CHANGED
@@ -1395,6 +1395,9 @@ cache8_test(VALUE self) {
1395
1395
  #endif
1396
1396
 
1397
1397
  void Init_ox() {
1398
+ #if HAVE_RB_EXT_RACTOR_SAFE
1399
+ rb_ext_ractor_safe(true);
1400
+ #endif
1398
1401
  Ox = rb_define_module("Ox");
1399
1402
 
1400
1403
  rb_define_module_function(Ox, "default_options", get_def_opts, 0);
data/ext/ox/sax.c CHANGED
@@ -123,6 +123,9 @@ str2sym(SaxDrive dr, const char *str, const char **strp) {
123
123
 
124
124
  void
125
125
  ox_sax_parse(VALUE handler, VALUE io, SaxOptions options) {
126
+ #if HAVE_RB_EXT_RACTOR_SAFE
127
+ rb_ext_ractor_safe(true);
128
+ #endif
126
129
  struct _saxDrive dr;
127
130
  int line = 0;
128
131
 
data/lib/ox/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Ox
3
3
  # Current version of the module.
4
- VERSION = '2.14.5'
4
+ VERSION = '2.14.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ox
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.5
4
+ version: 2.14.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Ohler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-04 00:00:00.000000000 Z
11
+ date: 2021-11-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: "A fast XML parser and object serializer that uses only standard C lib.\n\nOptimized
14
14
  XML (Ox), as the name implies was written to provide speed optimized\nXML handling.
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  requirements: []
104
- rubygems_version: 3.2.3
104
+ rubygems_version: 3.2.22
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: A fast XML parser and object serializer.