yaz0 0.4.0 → 0.4.1

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: 4dea3dd6f151a4a0aeebb87258fd9ca033d92a91462ebe2ad9e121777c23aea5
4
- data.tar.gz: c9885eb2142c21af2026b226c3c2a4175e8b7f3f1ac745d013135b282c963703
3
+ metadata.gz: 42f0c89e2edf019afff5f5e96f7cbf1797036ab93ed0725cf58efcdf23607e8f
4
+ data.tar.gz: 03440e46538b5197eea2d7d490ace2137d83879948ab23e066c779ceffad070b
5
5
  SHA512:
6
- metadata.gz: 483a8e9de03d2c6f0e5fea0a0be1b048a2b46641528e3b00e165effc7a2794d3b04aa84d8aa5d07c9509baee680ee7783cba3fd0fa44b2e9435c44fd03011904
7
- data.tar.gz: 243f77ffbd66fe1c0df94e474dcf92297e792bfb02fb3481e5518a5627c733c505cf5f282ff338a9d6a692ccd5d39e9c6f5b3984f364ac390d99976be454b572
6
+ metadata.gz: 20d3ce38706053cce8975aa079e02b267418f80c4eca0f054b0a09d6116c9a74ce8badbfb4fd12f7c7e88ef074b16d00bef251275961ce38cec6510997e4c3f8
7
+ data.tar.gz: f5ae97c8115585c113fc5cd139c393c253cb1efc217815e108afdd4f720db315b2e19dc688696f63f3385a0771583a5a2dfc64192ffb71eabfecfe7ecf026a13
data/ext/yaz0/ext_yaz0.c CHANGED
@@ -106,9 +106,9 @@ run(VALUE self, VALUE io_in, VALUE io_out, int compress, int size, int level)
106
106
  break;
107
107
  case YAZ0_NEED_AVAIL_OUT:
108
108
  /* Need more output */
109
- rb_str_set_len(buffer_out, yaz0OutputChunkSize(s));
109
+ rb_str_resize(buffer_out, yaz0OutputChunkSize(s));
110
110
  rb_funcall(io_out, rb_intern("write"), 1, buffer_out);
111
- rb_str_set_len(buffer_out, BUFSIZE);
111
+ rb_str_resize(buffer_out, BUFSIZE);
112
112
  yaz0Output(s, RSTRING_PTR(buffer_out), BUFSIZE);
113
113
  break;
114
114
  case YAZ0_BAD_MAGIC:
@@ -123,7 +123,7 @@ run(VALUE self, VALUE io_in, VALUE io_out, int compress, int size, int level)
123
123
 
124
124
  end:
125
125
  /* There might still be unflushed output */
126
- rb_str_set_len(buffer_out, yaz0OutputChunkSize(s));
126
+ rb_str_resize(buffer_out, yaz0OutputChunkSize(s));
127
127
  rb_funcall(io_out, rb_intern("write"), 1, buffer_out);
128
128
 
129
129
  rb_gc_unregister_address(&buffer_in);
data/lib/yaz0/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Yaz0
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/lib/yaz0/yaz0.so ADDED
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaz0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nax
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-09 00:00:00.000000000 Z
11
+ date: 2022-08-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -28,7 +28,7 @@ files:
28
28
  - ext/yaz0/extconf.rb
29
29
  - lib/yaz0.rb
30
30
  - lib/yaz0/version.rb
31
- - lib/yaz0/yaz0.bundle
31
+ - lib/yaz0/yaz0.so
32
32
  - libyaz0/include/yaz0.h
33
33
  - libyaz0/src/libyaz0/CMakeLists.txt
34
34
  - libyaz0/src/libyaz0/compress.c
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  requirements: []
62
- rubygems_version: 3.3.4
62
+ rubygems_version: 3.3.19
63
63
  signing_key:
64
64
  specification_version: 4
65
65
  summary: Compress and decompress Yaz0 data.
data/lib/yaz0/yaz0.bundle DELETED
Binary file