snappy 0.2.0-java → 0.3.0-java

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: dc1e9d110a0bf1b0a6e04906ed2ed31223b95ed7b009c684b8e499a78b1a17e8
4
- data.tar.gz: 325f0fa94023b89a4ff06d6bb4cde178fef16f9d692e6f331227af3ee31b41b8
3
+ metadata.gz: d74af9c3e3f2fef63ef2854d4981cef05dd82512f0c7d5bbfb0fe217fb10c576
4
+ data.tar.gz: e7570cc0e8de765514257d78ff6f26e6bb47eef32caf5a2b2009c4bdd45da3d9
5
5
  SHA512:
6
- metadata.gz: 01bcc433736c9f9bf08d0cad2eb5647bc771099490c3a60f67a629a16acd8885179718f16f59f126610658292ba86a1a9058eb1243d81077efebe6d523895a57
7
- data.tar.gz: 9eaf7fff9956c56c6db98ba4b38370d5ef27c1ad1b97bb4437006092b7c78bd5d7c52f23b42bf1bcfc7f69a06a82fb288d1e42b277805d8d172850cf520537b4
6
+ metadata.gz: de6a09a41690131a13386d6a959cbf6ae4c40a51b65b4e9b53e14b25f60fc93595d6a925073a468211798bba6a3b904d8d67e18171405e1b957c4c9521c5ea97
7
+ data.tar.gz: 84b004e7605154d42634600b609234cd4ed31835762b2b6826a4ed3071427179a88d636eb60625f7eec4c60e11d7d454325a526a4e37afeb6910e22e10329dfd
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/lib/snappy_ext.jar CHANGED
Binary file
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: java
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
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -17,8 +17,8 @@ dependencies:
17
17
  - !ruby/object:Gem::Version
18
18
  version: 1.1.0
19
19
  name: snappy-jars
20
- type: :runtime
21
20
  prerelease: false
21
+ type: :runtime
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
@@ -31,10 +31,12 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
+ - ".dockerignore"
34
35
  - ".github/workflows/main.yml"
35
36
  - ".github/workflows/publish.yml"
36
37
  - ".gitignore"
37
38
  - ".gitmodules"
39
+ - Dockerfile
38
40
  - Gemfile
39
41
  - LICENSE.txt
40
42
  - README.md
@@ -53,6 +55,7 @@ files:
53
55
  - lib/snappy/writer.rb
54
56
  - lib/snappy_ext.jar
55
57
  - snappy.gemspec
58
+ - test.sh
56
59
  - test/hadoop/snappy_hadoop_reader_test.rb
57
60
  - test/hadoop/snappy_hadoop_writer_test.rb
58
61
  - test/snappy_hadoop_test.rb
@@ -107,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
110
  - !ruby/object:Gem::Version
108
111
  version: '0'
109
112
  requirements: []
110
- rubygems_version: 3.0.6
113
+ rubygems_version: 3.2.29
111
114
  signing_key:
112
115
  specification_version: 4
113
116
  summary: libsnappy binding for Ruby