snappy 0.2.0 → 0.3.0

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: 0f0d6e3b8ecb62795d4e7cc9b9f68b6028922bd1aa0d6d760b1524f1d791baca
4
- data.tar.gz: 225b39658d6a081b0bd45304b98414cc442830230f7b3c242552ff432cf9bfcb
3
+ metadata.gz: 4866cfb8c9b7b1e16e5d6c8ba7044d8e003d5a03274575a09d60227bbdf4c603
4
+ data.tar.gz: dfd8a8d4cdb51bce5a988b55c61940d9717fb95a9f9377f32db93708d43805ce
5
5
  SHA512:
6
- metadata.gz: e682ccd1e650089dc5b83d2e1020e02770d61e99d42406973311ec12a0897c18c652370679e50955f4644159e61c8ff922bfca8cd7b97ed446d4f46c83f63ba7
7
- data.tar.gz: 576ba5ed1c73fcf34b63f57afadc90a02f40944f810684b2211f87bfc50362cb71f5fc8c8c1faa414c0fe7549ceade05b611827bb906ee7b4b0cfb3177a82e84
6
+ metadata.gz: 1f3f35f369f73dee25075f72dc48693833d084d6bc6844243ef82585f41255bbf6bedaece227b05aa3ecc8bd9f9db2a13c98ea9ee1f9894204a719b9e0e0f57c
7
+ data.tar.gz: 36af767eded664e7bb25e120e807897d47a6d6c5a86d6f655970030a20636b14143ae8e1df84d9032aa175987b2d97a21c31d1c048f0422f7da00079bce38d23
data/.dockerignore ADDED
@@ -0,0 +1,2 @@
1
+ vendor/bundle
2
+ Dockerfile
@@ -7,7 +7,7 @@ jobs:
7
7
  strategy:
8
8
  fail-fast: false
9
9
  matrix:
10
- ruby: [2.5, 2.6, 2.7, jruby]
10
+ ruby: [2.5, 2.6, 2.7, 3.0, 3.1, jruby]
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - uses: actions/checkout@v2
data/.gitignore CHANGED
@@ -21,4 +21,5 @@ ext/config.h
21
21
  ext/*.o
22
22
  ext/*.log
23
23
  ext/snappy*
24
- ext/java/build
24
+ ext/java/build
25
+ vendor/bundle
data/.gitmodules CHANGED
@@ -1,3 +1,3 @@
1
1
  [submodule "vendor/snappy"]
2
2
  path = vendor/snappy
3
- url = git://github.com/google/snappy.git
3
+ url = https://github.com/google/snappy.git
data/Dockerfile ADDED
@@ -0,0 +1,13 @@
1
+ # syntax = docker/dockerfile:labs
2
+ ARG RUBY_VERSION=3.1
3
+ FROM ruby:${RUBY_VERSION}
4
+
5
+ ENV BUNDLE_JOBS=4
6
+
7
+ RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt <<EOF
8
+ apt-get update
9
+ apt-get install -y \
10
+ cmake
11
+ EOF
12
+
13
+ WORKDIR /app
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Snappy ![](https://travis-ci.org/miyucy/snappy.svg?branch=master)
1
+ # Snappy
2
2
 
3
3
  see https://github.com/google/snappy
4
4
 
data/ext/extconf.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  require 'mkmf'
2
2
  require 'fileutils'
3
3
 
4
+ $CXXFLAGS += " -std=c++11 "
5
+
4
6
  unless pkg_config('libsnappy') || have_library('snappy')
5
7
  # build vendor/snappy
6
8
  pwd = File.dirname File.expand_path __FILE__
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Snappy
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
data/test.sh ADDED
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+ docker build -t miyucy/snappy .
3
+ docker run --rm -v "$(pwd):/app" miyucy/snappy bash -c 'bundle install && bundle exec rake'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snappy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - miyucy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-26 00:00:00.000000000 Z
11
+ date: 2022-03-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: libsnappy binding for Ruby
14
14
  email:
@@ -18,10 +18,12 @@ extensions:
18
18
  - ext/extconf.rb
19
19
  extra_rdoc_files: []
20
20
  files:
21
+ - ".dockerignore"
21
22
  - ".github/workflows/main.yml"
22
23
  - ".github/workflows/publish.yml"
23
24
  - ".gitignore"
24
25
  - ".gitmodules"
26
+ - Dockerfile
25
27
  - Gemfile
26
28
  - LICENSE.txt
27
29
  - README.md
@@ -39,6 +41,7 @@ files:
39
41
  - lib/snappy/version.rb
40
42
  - lib/snappy/writer.rb
41
43
  - snappy.gemspec
44
+ - test.sh
42
45
  - test/hadoop/snappy_hadoop_reader_test.rb
43
46
  - test/hadoop/snappy_hadoop_writer_test.rb
44
47
  - test/snappy_hadoop_test.rb
@@ -93,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
96
  - !ruby/object:Gem::Version
94
97
  version: '0'
95
98
  requirements: []
96
- rubygems_version: 3.1.4
99
+ rubygems_version: 3.1.6
97
100
  signing_key:
98
101
  specification_version: 4
99
102
  summary: libsnappy binding for Ruby