chunkio 0.1.3 → 0.1.4
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 +4 -4
- data/.github/workflows/run_rspec.yml +6 -3
- data/ext/chunkio/chunkio_chunk.c +8 -0
- data/lib/chunkio/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 328b09a0f74379b9a415ccefd4ac6bfc0cb8ff47ec1944ce99a02a1e91780066
|
4
|
+
data.tar.gz: 39cbef7c28eae30b08aab87f436bcad8265b196079226535d2929dc9b885a68b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
11
|
+
- name: Set up Ruby ${{ matrix.ruby_version }}
|
9
12
|
uses: actions/setup-ruby@v1
|
10
13
|
with:
|
11
|
-
ruby-version:
|
12
|
-
- name: Build and test
|
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
|
data/ext/chunkio/chunkio_chunk.c
CHANGED
@@ -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;
|
data/lib/chunkio/version.rb
CHANGED