libdeflate 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/libdeflate/libdeflate_ext.c +24 -0
- data/lib/libdeflate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7ee0a79b0d89444143345fedd33de7a96be9f54
|
4
|
+
data.tar.gz: d0ffc8949202a68544765a960ba503b4acfe9618
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93046b87d92e3659017591a506ab9fa637390d43937101a05e179d3423e96120572706d0047f826c280cb2b1caa14c08b42eb5d6e360fbe10b0af5bd5a935261
|
7
|
+
data.tar.gz: cb160d1a4407a026fe37ba63ee50d77d491b63f98f669ede35031965c0395bf035befa4f3409e7792be30e96500491b3e255483c8ef6b41663cb5a202a0dc53b
|
@@ -370,8 +370,32 @@ Init_libdeflate_ext(void)
|
|
370
370
|
rb_eLibdefalteError = rb_define_class_under(rb_mLibdeflate, "Error", rb_eStandardError);
|
371
371
|
rb_eBadDataError = rb_define_class_under(rb_mLibdeflate, "BadDataError", rb_eLibdefalteError);
|
372
372
|
|
373
|
+
/*
|
374
|
+
* Default compression level which is a compromise between speed and compression ratio
|
375
|
+
*
|
376
|
+
* See Compressor#initialize.
|
377
|
+
*/
|
378
|
+
rb_define_const(rb_mLibdeflate, "DEFAULT_COMPRESSION", INT2FIX(DEFAULT_COMPRESSION));
|
379
|
+
|
380
|
+
/*
|
381
|
+
* DEFLATE compressed data format
|
382
|
+
*
|
383
|
+
* See Compressor#compress and Decompressor#decompress.
|
384
|
+
*/
|
373
385
|
rb_define_const(rb_mLibdeflate, "DEFLATE", INT2FIX(FORMAT_DEFLATE));
|
386
|
+
|
387
|
+
/*
|
388
|
+
* ZLIB compressed data format
|
389
|
+
*
|
390
|
+
* See Compressor#compress and Decompressor#decompress.
|
391
|
+
*/
|
374
392
|
rb_define_const(rb_mLibdeflate, "ZLIB", INT2FIX(FORMAT_ZLIB));
|
393
|
+
|
394
|
+
/*
|
395
|
+
* GZIP compressed data format
|
396
|
+
*
|
397
|
+
* See Compressor#compress and Decompressor#decompress.
|
398
|
+
*/
|
375
399
|
rb_define_const(rb_mLibdeflate, "GZIP", INT2FIX(FORMAT_GZIP));
|
376
400
|
|
377
401
|
rb_define_module_function(rb_mLibdeflate, "adler32", rb_libdeflate_adler32, -1);
|
data/lib/libdeflate/version.rb
CHANGED