snappy 0.0.17 → 0.3.0
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 +5 -5
- data/.dockerignore +2 -0
- data/.github/workflows/main.yml +34 -0
- data/.github/workflows/publish.yml +34 -0
- data/.gitignore +2 -1
- data/.gitmodules +1 -1
- data/Dockerfile +13 -0
- data/Gemfile +4 -0
- data/README.md +29 -5
- data/Rakefile +32 -29
- data/ext/api.c +6 -1
- data/ext/extconf.rb +23 -16
- data/lib/snappy/hadoop/reader.rb +62 -0
- data/lib/snappy/hadoop/writer.rb +51 -0
- data/lib/snappy/hadoop.rb +22 -0
- data/lib/snappy/reader.rb +14 -10
- data/lib/snappy/shim.rb +1 -1
- data/lib/snappy/version.rb +1 -1
- data/lib/snappy.rb +5 -4
- data/snappy.gemspec +13 -13
- data/test/hadoop/snappy_hadoop_reader_test.rb +115 -0
- data/test/hadoop/snappy_hadoop_writer_test.rb +48 -0
- data/test/snappy_hadoop_test.rb +26 -0
- data/test/snappy_reader_test.rb +148 -0
- data/test/snappy_test.rb +95 -0
- data/test/snappy_writer_test.rb +55 -0
- data/test/test_helper.rb +7 -0
- data/test.sh +3 -0
- data/vendor/snappy/CMakeLists.txt +297 -0
- data/vendor/snappy/CONTRIBUTING.md +26 -0
- data/vendor/snappy/NEWS +40 -0
- data/vendor/snappy/{README → README.md} +27 -18
- data/vendor/snappy/cmake/SnappyConfig.cmake.in +33 -0
- data/vendor/snappy/cmake/config.h.in +62 -0
- data/vendor/snappy/docs/README.md +72 -0
- data/vendor/snappy/snappy-internal.h +22 -18
- data/vendor/snappy/snappy-stubs-internal.cc +1 -1
- data/vendor/snappy/snappy-stubs-internal.h +116 -38
- data/vendor/snappy/snappy-stubs-public.h.in +20 -46
- data/vendor/snappy/snappy-test.cc +26 -22
- data/vendor/snappy/snappy-test.h +24 -98
- data/vendor/snappy/snappy.cc +380 -183
- data/vendor/snappy/snappy.h +14 -10
- data/vendor/snappy/snappy_compress_fuzzer.cc +59 -0
- data/vendor/snappy/snappy_uncompress_fuzzer.cc +57 -0
- data/vendor/snappy/snappy_unittest.cc +236 -261
- metadata +37 -92
- data/.travis.yml +0 -26
- data/smoke.sh +0 -8
- data/test/test-snappy-reader.rb +0 -129
- data/test/test-snappy-writer.rb +0 -55
- data/test/test-snappy.rb +0 -58
- data/vendor/snappy/ChangeLog +0 -2468
- data/vendor/snappy/INSTALL +0 -370
- data/vendor/snappy/Makefile +0 -982
- data/vendor/snappy/Makefile.am +0 -26
- data/vendor/snappy/Makefile.in +0 -982
- data/vendor/snappy/aclocal.m4 +0 -9738
- data/vendor/snappy/autogen.sh +0 -12
- data/vendor/snappy/autom4te.cache/output.0 +0 -18856
- data/vendor/snappy/autom4te.cache/output.1 +0 -18852
- data/vendor/snappy/autom4te.cache/requests +0 -297
- data/vendor/snappy/autom4te.cache/traces.0 +0 -2689
- data/vendor/snappy/autom4te.cache/traces.1 +0 -714
- data/vendor/snappy/config.guess +0 -1530
- data/vendor/snappy/config.h +0 -135
- data/vendor/snappy/config.h.in +0 -134
- data/vendor/snappy/config.log +0 -1640
- data/vendor/snappy/config.status +0 -2318
- data/vendor/snappy/config.sub +0 -1773
- data/vendor/snappy/configure +0 -18852
- data/vendor/snappy/configure.ac +0 -134
- data/vendor/snappy/depcomp +0 -688
- data/vendor/snappy/install-sh +0 -527
- data/vendor/snappy/libtool +0 -10246
- data/vendor/snappy/ltmain.sh +0 -9661
- data/vendor/snappy/m4/gtest.m4 +0 -74
- data/vendor/snappy/m4/libtool.m4 +0 -8001
- data/vendor/snappy/m4/ltoptions.m4 +0 -384
- data/vendor/snappy/m4/ltsugar.m4 +0 -123
- data/vendor/snappy/m4/ltversion.m4 +0 -23
- data/vendor/snappy/m4/lt~obsolete.m4 +0 -98
- data/vendor/snappy/missing +0 -331
- data/vendor/snappy/snappy-stubs-public.h +0 -100
- data/vendor/snappy/snappy.pc +0 -10
- data/vendor/snappy/snappy.pc.in +0 -10
- data/vendor/snappy/stamp-h1 +0 -1
data/vendor/snappy/config.h
DELETED
@@ -1,135 +0,0 @@
|
|
1
|
-
/* config.h. Generated from config.h.in by configure. */
|
2
|
-
/* config.h.in. Generated from configure.ac by autoheader. */
|
3
|
-
|
4
|
-
/* Define if building universal (internal helper macro) */
|
5
|
-
/* #undef AC_APPLE_UNIVERSAL_BUILD */
|
6
|
-
|
7
|
-
/* Define to 1 if the compiler supports __builtin_ctz and friends. */
|
8
|
-
#define HAVE_BUILTIN_CTZ 1
|
9
|
-
|
10
|
-
/* Define to 1 if the compiler supports __builtin_expect. */
|
11
|
-
#define HAVE_BUILTIN_EXPECT 1
|
12
|
-
|
13
|
-
/* Define to 1 if you have the <byteswap.h> header file. */
|
14
|
-
#define HAVE_BYTESWAP_H 1
|
15
|
-
|
16
|
-
/* Define to 1 if you have the <dlfcn.h> header file. */
|
17
|
-
#define HAVE_DLFCN_H 1
|
18
|
-
|
19
|
-
/* Use the gflags package for command-line parsing. */
|
20
|
-
/* #undef HAVE_GFLAGS */
|
21
|
-
|
22
|
-
/* Defined when Google Test is available. */
|
23
|
-
/* #undef HAVE_GTEST */
|
24
|
-
|
25
|
-
/* Define to 1 if you have the <inttypes.h> header file. */
|
26
|
-
#define HAVE_INTTYPES_H 1
|
27
|
-
|
28
|
-
/* Define to 1 if you have the `fastlz' library (-lfastlz). */
|
29
|
-
/* #undef HAVE_LIBFASTLZ */
|
30
|
-
|
31
|
-
/* Define to 1 if you have the `lzf' library (-llzf). */
|
32
|
-
/* #undef HAVE_LIBLZF */
|
33
|
-
|
34
|
-
/* Define to 1 if you have the `lzo2' library (-llzo2). */
|
35
|
-
/* #undef HAVE_LIBLZO2 */
|
36
|
-
|
37
|
-
/* Define to 1 if you have the `quicklz' library (-lquicklz). */
|
38
|
-
/* #undef HAVE_LIBQUICKLZ */
|
39
|
-
|
40
|
-
/* Define to 1 if you have the `z' library (-lz). */
|
41
|
-
#define HAVE_LIBZ 1
|
42
|
-
|
43
|
-
/* Define to 1 if you have the <memory.h> header file. */
|
44
|
-
#define HAVE_MEMORY_H 1
|
45
|
-
|
46
|
-
/* Define to 1 if you have the <stddef.h> header file. */
|
47
|
-
#define HAVE_STDDEF_H 1
|
48
|
-
|
49
|
-
/* Define to 1 if you have the <stdint.h> header file. */
|
50
|
-
#define HAVE_STDINT_H 1
|
51
|
-
|
52
|
-
/* Define to 1 if you have the <stdlib.h> header file. */
|
53
|
-
#define HAVE_STDLIB_H 1
|
54
|
-
|
55
|
-
/* Define to 1 if you have the <strings.h> header file. */
|
56
|
-
#define HAVE_STRINGS_H 1
|
57
|
-
|
58
|
-
/* Define to 1 if you have the <string.h> header file. */
|
59
|
-
#define HAVE_STRING_H 1
|
60
|
-
|
61
|
-
/* Define to 1 if you have the <sys/byteswap.h> header file. */
|
62
|
-
/* #undef HAVE_SYS_BYTESWAP_H */
|
63
|
-
|
64
|
-
/* Define to 1 if you have the <sys/endian.h> header file. */
|
65
|
-
/* #undef HAVE_SYS_ENDIAN_H */
|
66
|
-
|
67
|
-
/* Define to 1 if you have the <sys/mman.h> header file. */
|
68
|
-
#define HAVE_SYS_MMAN_H 1
|
69
|
-
|
70
|
-
/* Define to 1 if you have the <sys/resource.h> header file. */
|
71
|
-
#define HAVE_SYS_RESOURCE_H 1
|
72
|
-
|
73
|
-
/* Define to 1 if you have the <sys/stat.h> header file. */
|
74
|
-
#define HAVE_SYS_STAT_H 1
|
75
|
-
|
76
|
-
/* Define to 1 if you have the <sys/time.h> header file. */
|
77
|
-
#define HAVE_SYS_TIME_H 1
|
78
|
-
|
79
|
-
/* Define to 1 if you have the <sys/types.h> header file. */
|
80
|
-
#define HAVE_SYS_TYPES_H 1
|
81
|
-
|
82
|
-
/* Define to 1 if you have the <unistd.h> header file. */
|
83
|
-
#define HAVE_UNISTD_H 1
|
84
|
-
|
85
|
-
/* Define to 1 if you have the <windows.h> header file. */
|
86
|
-
/* #undef HAVE_WINDOWS_H */
|
87
|
-
|
88
|
-
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
89
|
-
*/
|
90
|
-
#define LT_OBJDIR ".libs/"
|
91
|
-
|
92
|
-
/* Name of package */
|
93
|
-
#define PACKAGE "snappy"
|
94
|
-
|
95
|
-
/* Define to the address where bug reports for this package should be sent. */
|
96
|
-
#define PACKAGE_BUGREPORT ""
|
97
|
-
|
98
|
-
/* Define to the full name of this package. */
|
99
|
-
#define PACKAGE_NAME "snappy"
|
100
|
-
|
101
|
-
/* Define to the full name and version of this package. */
|
102
|
-
#define PACKAGE_STRING "snappy 1.1.4"
|
103
|
-
|
104
|
-
/* Define to the one symbol short name of this package. */
|
105
|
-
#define PACKAGE_TARNAME "snappy"
|
106
|
-
|
107
|
-
/* Define to the home page for this package. */
|
108
|
-
#define PACKAGE_URL ""
|
109
|
-
|
110
|
-
/* Define to the version of this package. */
|
111
|
-
#define PACKAGE_VERSION "1.1.4"
|
112
|
-
|
113
|
-
/* Define to 1 if you have the ANSI C header files. */
|
114
|
-
#define STDC_HEADERS 1
|
115
|
-
|
116
|
-
/* Version number of package */
|
117
|
-
#define VERSION "1.1.4"
|
118
|
-
|
119
|
-
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
120
|
-
significant byte first (like Motorola and SPARC, unlike Intel). */
|
121
|
-
#if defined AC_APPLE_UNIVERSAL_BUILD
|
122
|
-
# if defined __BIG_ENDIAN__
|
123
|
-
# define WORDS_BIGENDIAN 1
|
124
|
-
# endif
|
125
|
-
#else
|
126
|
-
# ifndef WORDS_BIGENDIAN
|
127
|
-
/* # undef WORDS_BIGENDIAN */
|
128
|
-
# endif
|
129
|
-
#endif
|
130
|
-
|
131
|
-
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
132
|
-
/* #undef size_t */
|
133
|
-
|
134
|
-
/* Define to `int' if <sys/types.h> does not define. */
|
135
|
-
/* #undef ssize_t */
|
data/vendor/snappy/config.h.in
DELETED
@@ -1,134 +0,0 @@
|
|
1
|
-
/* config.h.in. Generated from configure.ac by autoheader. */
|
2
|
-
|
3
|
-
/* Define if building universal (internal helper macro) */
|
4
|
-
#undef AC_APPLE_UNIVERSAL_BUILD
|
5
|
-
|
6
|
-
/* Define to 1 if the compiler supports __builtin_ctz and friends. */
|
7
|
-
#undef HAVE_BUILTIN_CTZ
|
8
|
-
|
9
|
-
/* Define to 1 if the compiler supports __builtin_expect. */
|
10
|
-
#undef HAVE_BUILTIN_EXPECT
|
11
|
-
|
12
|
-
/* Define to 1 if you have the <byteswap.h> header file. */
|
13
|
-
#undef HAVE_BYTESWAP_H
|
14
|
-
|
15
|
-
/* Define to 1 if you have the <dlfcn.h> header file. */
|
16
|
-
#undef HAVE_DLFCN_H
|
17
|
-
|
18
|
-
/* Use the gflags package for command-line parsing. */
|
19
|
-
#undef HAVE_GFLAGS
|
20
|
-
|
21
|
-
/* Defined when Google Test is available. */
|
22
|
-
#undef HAVE_GTEST
|
23
|
-
|
24
|
-
/* Define to 1 if you have the <inttypes.h> header file. */
|
25
|
-
#undef HAVE_INTTYPES_H
|
26
|
-
|
27
|
-
/* Define to 1 if you have the `fastlz' library (-lfastlz). */
|
28
|
-
#undef HAVE_LIBFASTLZ
|
29
|
-
|
30
|
-
/* Define to 1 if you have the `lzf' library (-llzf). */
|
31
|
-
#undef HAVE_LIBLZF
|
32
|
-
|
33
|
-
/* Define to 1 if you have the `lzo2' library (-llzo2). */
|
34
|
-
#undef HAVE_LIBLZO2
|
35
|
-
|
36
|
-
/* Define to 1 if you have the `quicklz' library (-lquicklz). */
|
37
|
-
#undef HAVE_LIBQUICKLZ
|
38
|
-
|
39
|
-
/* Define to 1 if you have the `z' library (-lz). */
|
40
|
-
#undef HAVE_LIBZ
|
41
|
-
|
42
|
-
/* Define to 1 if you have the <memory.h> header file. */
|
43
|
-
#undef HAVE_MEMORY_H
|
44
|
-
|
45
|
-
/* Define to 1 if you have the <stddef.h> header file. */
|
46
|
-
#undef HAVE_STDDEF_H
|
47
|
-
|
48
|
-
/* Define to 1 if you have the <stdint.h> header file. */
|
49
|
-
#undef HAVE_STDINT_H
|
50
|
-
|
51
|
-
/* Define to 1 if you have the <stdlib.h> header file. */
|
52
|
-
#undef HAVE_STDLIB_H
|
53
|
-
|
54
|
-
/* Define to 1 if you have the <strings.h> header file. */
|
55
|
-
#undef HAVE_STRINGS_H
|
56
|
-
|
57
|
-
/* Define to 1 if you have the <string.h> header file. */
|
58
|
-
#undef HAVE_STRING_H
|
59
|
-
|
60
|
-
/* Define to 1 if you have the <sys/byteswap.h> header file. */
|
61
|
-
#undef HAVE_SYS_BYTESWAP_H
|
62
|
-
|
63
|
-
/* Define to 1 if you have the <sys/endian.h> header file. */
|
64
|
-
#undef HAVE_SYS_ENDIAN_H
|
65
|
-
|
66
|
-
/* Define to 1 if you have the <sys/mman.h> header file. */
|
67
|
-
#undef HAVE_SYS_MMAN_H
|
68
|
-
|
69
|
-
/* Define to 1 if you have the <sys/resource.h> header file. */
|
70
|
-
#undef HAVE_SYS_RESOURCE_H
|
71
|
-
|
72
|
-
/* Define to 1 if you have the <sys/stat.h> header file. */
|
73
|
-
#undef HAVE_SYS_STAT_H
|
74
|
-
|
75
|
-
/* Define to 1 if you have the <sys/time.h> header file. */
|
76
|
-
#undef HAVE_SYS_TIME_H
|
77
|
-
|
78
|
-
/* Define to 1 if you have the <sys/types.h> header file. */
|
79
|
-
#undef HAVE_SYS_TYPES_H
|
80
|
-
|
81
|
-
/* Define to 1 if you have the <unistd.h> header file. */
|
82
|
-
#undef HAVE_UNISTD_H
|
83
|
-
|
84
|
-
/* Define to 1 if you have the <windows.h> header file. */
|
85
|
-
#undef HAVE_WINDOWS_H
|
86
|
-
|
87
|
-
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
88
|
-
*/
|
89
|
-
#undef LT_OBJDIR
|
90
|
-
|
91
|
-
/* Name of package */
|
92
|
-
#undef PACKAGE
|
93
|
-
|
94
|
-
/* Define to the address where bug reports for this package should be sent. */
|
95
|
-
#undef PACKAGE_BUGREPORT
|
96
|
-
|
97
|
-
/* Define to the full name of this package. */
|
98
|
-
#undef PACKAGE_NAME
|
99
|
-
|
100
|
-
/* Define to the full name and version of this package. */
|
101
|
-
#undef PACKAGE_STRING
|
102
|
-
|
103
|
-
/* Define to the one symbol short name of this package. */
|
104
|
-
#undef PACKAGE_TARNAME
|
105
|
-
|
106
|
-
/* Define to the home page for this package. */
|
107
|
-
#undef PACKAGE_URL
|
108
|
-
|
109
|
-
/* Define to the version of this package. */
|
110
|
-
#undef PACKAGE_VERSION
|
111
|
-
|
112
|
-
/* Define to 1 if you have the ANSI C header files. */
|
113
|
-
#undef STDC_HEADERS
|
114
|
-
|
115
|
-
/* Version number of package */
|
116
|
-
#undef VERSION
|
117
|
-
|
118
|
-
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
119
|
-
significant byte first (like Motorola and SPARC, unlike Intel). */
|
120
|
-
#if defined AC_APPLE_UNIVERSAL_BUILD
|
121
|
-
# if defined __BIG_ENDIAN__
|
122
|
-
# define WORDS_BIGENDIAN 1
|
123
|
-
# endif
|
124
|
-
#else
|
125
|
-
# ifndef WORDS_BIGENDIAN
|
126
|
-
# undef WORDS_BIGENDIAN
|
127
|
-
# endif
|
128
|
-
#endif
|
129
|
-
|
130
|
-
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
131
|
-
#undef size_t
|
132
|
-
|
133
|
-
/* Define to `int' if <sys/types.h> does not define. */
|
134
|
-
#undef ssize_t
|