• Stars
    star
    180
  • Rank 213,097 (Top 5 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 13 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

libsnappy binding for Ruby

Snappy

see https://github.com/google/snappy

Preparation

macOS

$ brew install snappy
$ brew install autoconf automake cmake libtool

Ubuntu

$ apt-get install libsnappy-dev -y
$ apt-get install libtool automake autoconf -y

Alpine

$ apk install snappy
$ apk install build-base libexecinfo automake autoconf libtool

Windows

Ruby Installer 3.0 and earlier:

(in MSYS2 shell)
$ pacman -S mingw-w64-x86_64-snappy

Ruby Installer 3.1 and later:

(in MSYS2 shell)
pacman -S mingw-w64-ucrt-x86_64-snappy

Installation

Add this line to your application's Gemfile:

gem 'snappy'

And then execute:

$ bundle

Or install it yourself as:

$ gem install snappy

Usage

Snappy-java format

require 'snappy'

Snappy.deflate(source)
# => Compressed data

Snappy.inflate(source)
# => Decompressed data

Hadoop-snappy format

Snappy::Hadoop.deflate(source)
# => Compressed data

Snappy::Hadoop.inflate(source)
# => Decompressed data

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

More Repositories

1

brotli

C
59
star
2

handlersocket

libhsclient(HandlerSocket) binding for Ruby
Ruby
33
star
3

zopfli

Ruby
15
star
4

e4u-encode

Emoji Converter using E4U
Ruby
13
star
5

sophia-ruby

C
8
star
6

swfmill

swfmill bindings for Ruby
Ruby
7
star
7

web_push

Ruby
6
star
8

gitg-ja

gitgใฎๆ—ฅๆœฌ่ชž่จณpoใ‚’ไฝœใ‚‹ไผš
4
star
9

docomoid

Ruby
4
star
10

test-mysqld

port of Test::mysqld
Ruby
4
star
11

ffi-taglib

A ruby-ffi binding to TagLib.
Ruby
4
star
12

miyucy.github.io

XSLT
3
star
13

ts-checker-webpack-plugin

TypeScript
3
star
14

e4u

emoji for unicode(emoji4unicode)
Ruby
3
star
15

ruby-pg

A PRIVATE MIRROR of the ruby-pg (PostgreSQL) project.
C
2
star
16

swf_embed

Parameter Injector for Flash Lite
C
2
star
17

app-config-generator

Rails generator that makes an application.yml file for configurable globale settings. Inspired by Topfunky's Rails Code Review PDF.
Ruby
2
star
18

rgeoip

alternative libGeoIP binding for Ruby
C
2
star
19

newrelic-dragonfly

Ruby
2
star
20

exceptional-me

JavaScript
2
star
21

aspirin

evhttp wrapper for ruby
C
2
star
22

kana

Ruby
2
star
23

e4u-emoji

Emoji implementation using E4U
Ruby
2
star
24

n

The Kernel.n that works like Kernel.p on notify-send ;)
Ruby
2
star
25

depot

sample
Ruby
1
star
26

deep-change-case

JavaScript
1
star
27

tartarus

Exception logging for Rails, with a clean interface.
Ruby
1
star
28

github-contest

contest.github entry
1
star
29

github-deployment-status

Ruby
1
star
30

rack-accept_language

Ruby
1
star
31

jagamo

Ruby
1
star
32

like_a_virgin

autospec + parallel_tests
Ruby
1
star
33

flareinfo

N/A
PHP
1
star
34

ises5-webpack-plugin

JavaScript
1
star
35

sassc-image-size

Ruby
1
star
36

assetproxy

JavaScript
1
star
37

keitai

1
star