polyphony 0.89 → 0.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b79252b4e1c8617c398d6804b93063b8d155d1b5d813b65cb2c9a2a1ce4e5e0
4
- data.tar.gz: 619e0c77d6ed5bc3d4d0c33e143d5f18eaf83e34d5fc8fe576524a554843faeb
3
+ metadata.gz: d9f125403a124d0374ebef23adfd4fe7f553767797003d63513ef780a248370b
4
+ data.tar.gz: 682134740af1614ac5e31d49c7d6a8ac8b881bbc26e5911e2f12a81f5ea52b27
5
5
  SHA512:
6
- metadata.gz: 137e6a8387305c160af5a59c7d7df91c18e09cd5ba954da3fcd78f339d877aa7d91430ae212852dc8bba5771e12cce4e6fa5b51350ebfb75cc3c61e979babf8c
7
- data.tar.gz: 8f0bfeb1b9d05fd7b6494a17f23d79ecb28b825b0e37ace7be913a42eee589859320ebd904313f28e691eef0e5951109acca4be95dfe53156edc108c3dab060f
6
+ metadata.gz: d6292c9f2ddd6faf3d8df9565f8e6dce3be9ecd64fff95201bd2907cfacdb46eac5ef87a9281a3e88324471951493b6ebaa150dad40afb6a19958dd1e5992c0c
7
+ data.tar.gz: 10f8e607a0bd403664318e03abd4bbb4ab16704a69d1c0858ce5c9269c5c883e081dd95c51488dce7732ae471bf04cd139c0cbfb9623d6751a857551304e60f5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.90 2022-03-21
2
+
3
+ - Fix possible compilation error on Ruby 2.7.5 (#79)
4
+
1
5
  ## 0.89 2022-03-21
2
6
 
3
7
  - Implement compression/decompression to/from strings (#86)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- polyphony (0.89)
4
+ polyphony (0.90)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -264,7 +264,6 @@ inline struct backend_stats backend_get_stats(VALUE self) {
264
264
 
265
265
  static inline struct io_uring_sqe *io_uring_backend_get_sqe(Backend_t *backend) {
266
266
  struct io_uring_sqe *sqe;
267
- try:
268
267
  sqe = io_uring_get_sqe(&backend->ring);
269
268
  if (sqe) goto done;
270
269
 
@@ -384,7 +383,7 @@ VALUE Backend_read(VALUE self, VALUE io, VALUE str, VALUE length, VALUE to_eof,
384
383
 
385
384
  if (string_cap < expected_read_length + buf_pos) {
386
385
  shrinkable_string = io_setstrbuf(&str, expected_read_length + buf_pos);
387
- buffer.ptr = RSTRING_PTR(str) + buf_pos;
386
+ buffer.ptr = (unsigned char *)RSTRING_PTR(str) + buf_pos;
388
387
  buffer.len = expected_read_length;
389
388
  }
390
389
  else {
@@ -431,7 +430,7 @@ VALUE Backend_read(VALUE self, VALUE io, VALUE str, VALUE length, VALUE to_eof,
431
430
  rb_str_resize(str, total + buf_pos);
432
431
  rb_str_modify_expand(str, rb_str_capacity(str));
433
432
  shrinkable_string = 0;
434
- buffer.ptr = RSTRING_PTR(str) + total + buf_pos;
433
+ buffer.ptr = (unsigned char *)RSTRING_PTR(str) + total + buf_pos;
435
434
  buffer.len = rb_str_capacity(str) - total - buf_pos;
436
435
  }
437
436
  else {
@@ -688,7 +687,7 @@ VALUE Backend_recv(VALUE self, VALUE io, VALUE str, VALUE length, VALUE pos) {
688
687
 
689
688
  if (string_cap < expected_read_length + buf_pos) {
690
689
  shrinkable_string = io_setstrbuf(&str, expected_read_length + buf_pos);
691
- buffer.ptr = RSTRING_PTR(str) + buf_pos;
690
+ buffer.ptr = (unsigned char *)RSTRING_PTR(str) + buf_pos;
692
691
  buffer.len = expected_read_length;
693
692
  }
694
693
  else {
@@ -311,7 +311,7 @@ VALUE Backend_read(VALUE self, VALUE io, VALUE str, VALUE length, VALUE to_eof,
311
311
 
312
312
  if (string_cap < expected_read_length + buf_pos) {
313
313
  shrinkable_string = io_setstrbuf(&str, expected_read_length + buf_pos);
314
- buffer.ptr = RSTRING_PTR(str) + buf_pos;
314
+ buffer.ptr = (unsigned char *)RSTRING_PTR(str) + buf_pos;
315
315
  buffer.len = expected_read_length;
316
316
  }
317
317
  else {
@@ -353,7 +353,7 @@ VALUE Backend_read(VALUE self, VALUE io, VALUE str, VALUE length, VALUE to_eof,
353
353
  rb_str_resize(str, total + buf_pos);
354
354
  rb_str_modify_expand(str, rb_str_capacity(str));
355
355
  shrinkable_string = 0;
356
- buffer.ptr = RSTRING_PTR(str) + total + buf_pos;
356
+ buffer.ptr = (unsigned char *)RSTRING_PTR(str) + total + buf_pos;
357
357
  buffer.len = rb_str_capacity(str) - total - buf_pos;
358
358
  }
359
359
  else {
@@ -71,7 +71,8 @@ $defs << '-DPOLYPHONY_PLAYGROUND' if ENV['POLYPHONY_PLAYGROUND']
71
71
 
72
72
  CONFIG['optflags'] << ' -fno-strict-aliasing' unless RUBY_PLATFORM =~ /mswin/
73
73
 
74
- have_func('rb_fiber_transfer', 'ruby.h')
75
-
74
+ if RUBY_VERSION >= '3.1'
75
+ have_func('rb_fiber_transfer', 'ruby.h')
76
+ end
76
77
 
77
78
  create_makefile 'polyphony_ext'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Polyphony
4
- VERSION = '0.89'
4
+ VERSION = '0.90'
5
5
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyphony
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.89'
4
+ version: '0.90'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sharon Rosner
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2022-03-21 00:00:00.000000000 Z
@@ -136,7 +136,7 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 1.1.4
139
- description:
139
+ description:
140
140
  email: sharon@noteflakes.com
141
141
  executables: []
142
142
  extensions:
@@ -639,7 +639,7 @@ metadata:
639
639
  documentation_uri: https://digital-fabric.github.io/polyphony/
640
640
  homepage_uri: https://digital-fabric.github.io/polyphony/
641
641
  changelog_uri: https://github.com/digital-fabric/polyphony/blob/master/CHANGELOG.md
642
- post_install_message:
642
+ post_install_message:
643
643
  rdoc_options:
644
644
  - "--title"
645
645
  - polyphony
@@ -658,8 +658,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
658
658
  - !ruby/object:Gem::Version
659
659
  version: '0'
660
660
  requirements: []
661
- rubygems_version: 3.3.3
662
- signing_key:
661
+ rubygems_version: 3.1.6
662
+ signing_key:
663
663
  specification_version: 4
664
664
  summary: Fine grained concurrency for Ruby
665
665
  test_files: []