chunkio 0.1.3 → 0.1.4

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: 460315c74fc22187a8a9256c91bc84e51f10f965bf3b8099afed88cbff4b34ee
4
- data.tar.gz: 7a835dbbf371b8fbab4e60005807f03cb231f7a0f279c59539dbc36135170d4a
3
+ metadata.gz: 328b09a0f74379b9a415ccefd4ac6bfc0cb8ff47ec1944ce99a02a1e91780066
4
+ data.tar.gz: 39cbef7c28eae30b08aab87f436bcad8265b196079226535d2929dc9b885a68b
5
5
  SHA512:
6
- metadata.gz: 147c6a423b0cd1ba99d8e2449516aa28fa0b8419a5781f0f68a95e9cebbaccf5b7260fe9d1b0d983af5e5b7afc4e5ed31f500d42bbbc2e658ceea8ed8da8b8cb
7
- data.tar.gz: 1de878786e978061335001e18ec311e0b2708ec55099d8fa1afbb072e341bbe276baa1ffd9e57883446042f433e021274bde67cf5a4cd1380477df937cf5a78c
6
+ metadata.gz: 1e2f403020ea65060493f75e0c4785aa726946d01f370a57b96611b323cf9325a3c349be727a475b36ef1ab6763d1aaeca466c31277667d59d7000d04135a838
7
+ data.tar.gz: 62dd1a7226e4c2c492cf74ce5c77c84e18210621e40bf934f2f092e2e61ee52eef6bd0125efa898411835ed3be2f423c89b00d73cb2da59b074afa6e6c74df62
@@ -3,13 +3,16 @@ on: [push]
3
3
  jobs:
4
4
  build:
5
5
  runs-on: ubuntu-latest
6
+ strategy:
7
+ matrix:
8
+ ruby_version: [2.3.x, 2.4.x, 2.5.x, 2.6.x]
6
9
  steps:
7
10
  - uses: actions/checkout@v1
8
- - name: Set up Ruby 2.6
11
+ - name: Set up Ruby ${{ matrix.ruby_version }}
9
12
  uses: actions/setup-ruby@v1
10
13
  with:
11
- ruby-version: 2.6.x
12
- - name: Build and test with Rake
14
+ ruby-version: ${{ matrix.ruby_version }}
15
+ - name: Build and test
13
16
  run: |
14
17
  gem install bundler
15
18
  bundle install --jobs 4 --retry 3
@@ -5,6 +5,14 @@ VALUE cCIO_Chunk;
5
5
  void *chunkio_chunk_free(chunkio_chunk *ch)
6
6
  {
7
7
  if (ch->inner != NULL) {
8
+ /*
9
+ cio_stream can be freed before this line.
10
+ but cio_chunk_close and cio_chunk_sync needs to stream->type.
11
+ So creating dummy object to work correctly.
12
+ */
13
+ struct cio_stream st;
14
+ st.type = CIO_STORE_FS;
15
+ ch->inner->st = &st;
8
16
  cio_chunk_sync(ch->inner);
9
17
  cio_chunk_close(ch->inner, CIO_FALSE);
10
18
  ch->inner = NULL;
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ChunkIO
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chunkio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuta Iwama