yajl-ruby 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/yajl/yajl_buf.c +2 -2
- data/ext/yajl/yajl_ext.c +2 -0
- data/lib/yajl/version.rb +1 -1
- data/yajl-ruby.gemspec +1 -4
- metadata +4 -94
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97244a96c7a9bbe0b79ed421a8d31932c491b7f2ed1b0262e024e8aa300cb2ae
|
4
|
+
data.tar.gz: faba4c8204d5a0b0c04781e7806216fb953a1838bd7069b2c6a380a52028735d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9599fee49c68703901d7a6ff6ff48bd95f9c89a07cdd5986d2e61004590cb79489631d3e705c81c9ad35ca7292914aac00f443b30dcc494d50d7106fcdf86ec
|
7
|
+
data.tar.gz: df276e96c9273e2e9adc66e117fe1d03290a678b669e93ae0e882bac56cb04db07e38f2b2da8ab4d65e4736fafe5d6dd4b7c6348a026a81aec7b7a867ceadf30
|
data/ext/yajl/yajl_buf.c
CHANGED
@@ -116,10 +116,10 @@ yajl_buf_state yajl_buf_ensure_available(yajl_buf buf, unsigned int want)
|
|
116
116
|
|
117
117
|
need = buf->len;
|
118
118
|
|
119
|
-
while (want >= (need - buf->used)) need <<= 1;
|
119
|
+
while (want >= (need - buf->used) && need > 0) need <<= 1;
|
120
120
|
|
121
121
|
// Check for overflow
|
122
|
-
if (need < buf->used) {
|
122
|
+
if (need < buf->used || need == 0) {
|
123
123
|
return yajl_buf_set_error(buf, yajl_buf_overflow);
|
124
124
|
}
|
125
125
|
|
data/ext/yajl/yajl_ext.c
CHANGED
@@ -1379,6 +1379,7 @@ void Init_yajl() {
|
|
1379
1379
|
cStandardError = rb_const_get(rb_cObject, rb_intern("StandardError"));
|
1380
1380
|
|
1381
1381
|
cParser = rb_define_class_under(mYajl, "Parser", rb_cObject);
|
1382
|
+
rb_undef_alloc_func(cParser);
|
1382
1383
|
rb_define_singleton_method(cParser, "new", rb_yajl_parser_new, -1);
|
1383
1384
|
rb_define_method(cParser, "initialize", rb_yajl_parser_init, -1);
|
1384
1385
|
rb_define_method(cParser, "parse", rb_yajl_parser_parse, -1);
|
@@ -1390,6 +1391,7 @@ void Init_yajl() {
|
|
1390
1391
|
rb_define_method(cProjector, "project", rb_yajl_projector_project, 1);
|
1391
1392
|
|
1392
1393
|
cEncoder = rb_define_class_under(mYajl, "Encoder", rb_cObject);
|
1394
|
+
rb_undef_alloc_func(cEncoder);
|
1393
1395
|
rb_define_singleton_method(cEncoder, "new", rb_yajl_encoder_new, -1);
|
1394
1396
|
rb_define_method(cEncoder, "initialize", rb_yajl_encoder_init, -1);
|
1395
1397
|
rb_define_method(cEncoder, "encode", rb_yajl_encoder_encode, -1);
|
data/lib/yajl/version.rb
CHANGED
data/yajl-ruby.gemspec
CHANGED
@@ -5,15 +5,12 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.version = Yajl::VERSION
|
6
6
|
s.license = "MIT"
|
7
7
|
s.authors = ["Brian Lopez", "Lloyd Hilaiel"]
|
8
|
-
s.date = Time.now.utc.strftime("%Y-%m-%d")
|
9
8
|
s.email = %q{seniorlopez@gmail.com}
|
10
9
|
s.extensions = ["ext/yajl/extconf.rb"]
|
11
10
|
s.files = `git ls-files`.split("\n")
|
12
|
-
s.homepage = %q{
|
11
|
+
s.homepage = %q{https://github.com/brianmario/yajl-ruby}
|
13
12
|
s.require_paths = ["lib"]
|
14
|
-
s.rubygems_version = %q{1.4.2}
|
15
13
|
s.summary = %q{Ruby C bindings to the excellent Yajl JSON stream-based parser library.}
|
16
|
-
s.test_files = `git ls-files spec examples`.split("\n")
|
17
14
|
s.required_ruby_version = ">= 2.6.0"
|
18
15
|
|
19
16
|
# tests
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yajl-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Lopez
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-05-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
@@ -242,7 +242,7 @@ files:
|
|
242
242
|
- tasks/compile.rake
|
243
243
|
- tasks/rspec.rake
|
244
244
|
- yajl-ruby.gemspec
|
245
|
-
homepage:
|
245
|
+
homepage: https://github.com/brianmario/yajl-ruby
|
246
246
|
licenses:
|
247
247
|
- MIT
|
248
248
|
metadata: {}
|
@@ -265,94 +265,4 @@ rubygems_version: 3.3.3
|
|
265
265
|
signing_key:
|
266
266
|
specification_version: 4
|
267
267
|
summary: Ruby C bindings to the excellent Yajl JSON stream-based parser library.
|
268
|
-
test_files:
|
269
|
-
- examples/encoding/chunked_encoding.rb
|
270
|
-
- examples/encoding/one_shot.rb
|
271
|
-
- examples/encoding/to_an_io.rb
|
272
|
-
- examples/http/twitter_search_api.rb
|
273
|
-
- examples/http/twitter_stream_api.rb
|
274
|
-
- examples/parsing/from_file.rb
|
275
|
-
- examples/parsing/from_stdin.rb
|
276
|
-
- examples/parsing/from_string.rb
|
277
|
-
- spec/encoding/encoding_spec.rb
|
278
|
-
- spec/global/global_spec.rb
|
279
|
-
- spec/http/fixtures/http.bzip2.dump
|
280
|
-
- spec/http/fixtures/http.chunked.dump
|
281
|
-
- spec/http/fixtures/http.deflate.dump
|
282
|
-
- spec/http/fixtures/http.error.dump
|
283
|
-
- spec/http/fixtures/http.gzip.dump
|
284
|
-
- spec/http/fixtures/http.html.dump
|
285
|
-
- spec/http/fixtures/http.raw.dump
|
286
|
-
- spec/http/http_delete_spec.rb
|
287
|
-
- spec/http/http_error_spec.rb
|
288
|
-
- spec/http/http_get_spec.rb
|
289
|
-
- spec/http/http_post_spec.rb
|
290
|
-
- spec/http/http_put_spec.rb
|
291
|
-
- spec/http/http_stream_options_spec.rb
|
292
|
-
- spec/json_gem_compatibility/compatibility_spec.rb
|
293
|
-
- spec/parsing/active_support_spec.rb
|
294
|
-
- spec/parsing/chunked_spec.rb
|
295
|
-
- spec/parsing/fixtures/fail.15.json
|
296
|
-
- spec/parsing/fixtures/fail.16.json
|
297
|
-
- spec/parsing/fixtures/fail.17.json
|
298
|
-
- spec/parsing/fixtures/fail.26.json
|
299
|
-
- spec/parsing/fixtures/fail11.json
|
300
|
-
- spec/parsing/fixtures/fail12.json
|
301
|
-
- spec/parsing/fixtures/fail13.json
|
302
|
-
- spec/parsing/fixtures/fail14.json
|
303
|
-
- spec/parsing/fixtures/fail19.json
|
304
|
-
- spec/parsing/fixtures/fail20.json
|
305
|
-
- spec/parsing/fixtures/fail21.json
|
306
|
-
- spec/parsing/fixtures/fail22.json
|
307
|
-
- spec/parsing/fixtures/fail23.json
|
308
|
-
- spec/parsing/fixtures/fail24.json
|
309
|
-
- spec/parsing/fixtures/fail25.json
|
310
|
-
- spec/parsing/fixtures/fail27.json
|
311
|
-
- spec/parsing/fixtures/fail28.json
|
312
|
-
- spec/parsing/fixtures/fail3.json
|
313
|
-
- spec/parsing/fixtures/fail4.json
|
314
|
-
- spec/parsing/fixtures/fail5.json
|
315
|
-
- spec/parsing/fixtures/fail6.json
|
316
|
-
- spec/parsing/fixtures/fail9.json
|
317
|
-
- spec/parsing/fixtures/pass.array.json
|
318
|
-
- spec/parsing/fixtures/pass.codepoints_from_unicode_org.json
|
319
|
-
- spec/parsing/fixtures/pass.contacts.json
|
320
|
-
- spec/parsing/fixtures/pass.db100.xml.json
|
321
|
-
- spec/parsing/fixtures/pass.db1000.xml.json
|
322
|
-
- spec/parsing/fixtures/pass.dc_simple_with_comments.json
|
323
|
-
- spec/parsing/fixtures/pass.deep_arrays.json
|
324
|
-
- spec/parsing/fixtures/pass.difficult_json_c_test_case.json
|
325
|
-
- spec/parsing/fixtures/pass.difficult_json_c_test_case_with_comments.json
|
326
|
-
- spec/parsing/fixtures/pass.doubles.json
|
327
|
-
- spec/parsing/fixtures/pass.empty_array.json
|
328
|
-
- spec/parsing/fixtures/pass.empty_string.json
|
329
|
-
- spec/parsing/fixtures/pass.escaped_bulgarian.json
|
330
|
-
- spec/parsing/fixtures/pass.escaped_foobar.json
|
331
|
-
- spec/parsing/fixtures/pass.item.json
|
332
|
-
- spec/parsing/fixtures/pass.json-org-sample1.json
|
333
|
-
- spec/parsing/fixtures/pass.json-org-sample2.json
|
334
|
-
- spec/parsing/fixtures/pass.json-org-sample3.json
|
335
|
-
- spec/parsing/fixtures/pass.json-org-sample4-nows.json
|
336
|
-
- spec/parsing/fixtures/pass.json-org-sample4.json
|
337
|
-
- spec/parsing/fixtures/pass.json-org-sample5.json
|
338
|
-
- spec/parsing/fixtures/pass.map-spain.xml.json
|
339
|
-
- spec/parsing/fixtures/pass.ns-invoice100.xml.json
|
340
|
-
- spec/parsing/fixtures/pass.ns-soap.xml.json
|
341
|
-
- spec/parsing/fixtures/pass.numbers-fp-4k.json
|
342
|
-
- spec/parsing/fixtures/pass.numbers-fp-64k.json
|
343
|
-
- spec/parsing/fixtures/pass.numbers-int-4k.json
|
344
|
-
- spec/parsing/fixtures/pass.numbers-int-64k.json
|
345
|
-
- spec/parsing/fixtures/pass.twitter-search.json
|
346
|
-
- spec/parsing/fixtures/pass.twitter-search2.json
|
347
|
-
- spec/parsing/fixtures/pass.unicode.json
|
348
|
-
- spec/parsing/fixtures/pass.yelp.json
|
349
|
-
- spec/parsing/fixtures/pass1.json
|
350
|
-
- spec/parsing/fixtures/pass2.json
|
351
|
-
- spec/parsing/fixtures/pass3.json
|
352
|
-
- spec/parsing/fixtures_spec.rb
|
353
|
-
- spec/parsing/large_number_spec.rb
|
354
|
-
- spec/parsing/one_off_spec.rb
|
355
|
-
- spec/projection/project_file.rb
|
356
|
-
- spec/projection/projection.rb
|
357
|
-
- spec/rcov.opts
|
358
|
-
- spec/spec_helper.rb
|
268
|
+
test_files: []
|