Sha256: 028e92253db622520fe12981dbef28b9b467306825c9a66a1da23dfe6230c4fa
Contents?: true
Size: 1.71 KB
Versions: 5
Compression:
Stored size: 1.71 KB
Contents
#include "ruby.h" #include "zip.h" #include "zipruby.h" #include "zipruby_zip.h" VALUE Zip; void Init_zipruby_zip() { Zip = rb_define_module("Zip"); rb_define_const(Zip, "VERSION", rb_str_new2(VERSION)); rb_define_const(Zip, "CREATE", INT2NUM(ZIP_CREATE)); rb_define_const(Zip, "EXCL", INT2NUM(ZIP_EXCL)); rb_define_const(Zip, "CHECKCONS", INT2NUM(ZIP_CHECKCONS)); rb_define_const(Zip, "TRUNC", INT2NUM(ZIP_TRUNC)); rb_define_const(Zip, "FL_NOCASE", INT2NUM(ZIP_FL_NOCASE)); rb_define_const(Zip, "FL_NODIR", INT2NUM(ZIP_FL_NODIR)); rb_define_const(Zip, "FL_COMPRESSED", INT2NUM(ZIP_FL_COMPRESSED)); rb_define_const(Zip, "FL_UNCHANGED", INT2NUM(ZIP_FL_UNCHANGED)); rb_define_const(Zip, "CM_DEFAULT" , INT2NUM(ZIP_CM_DEFAULT)); rb_define_const(Zip, "CM_STORE", INT2NUM(ZIP_CM_STORE)); rb_define_const(Zip, "CM_SHRINK", INT2NUM(ZIP_CM_SHRINK)); rb_define_const(Zip, "CM_REDUCE_1", INT2NUM(ZIP_CM_REDUCE_1)); rb_define_const(Zip, "CM_REDUCE_2", INT2NUM(ZIP_CM_REDUCE_2)); rb_define_const(Zip, "CM_REDUCE_3", INT2NUM(ZIP_CM_REDUCE_3)); rb_define_const(Zip, "CM_REDUCE_4", INT2NUM(ZIP_CM_REDUCE_4)); rb_define_const(Zip, "CM_IMPLODE", INT2NUM(ZIP_CM_IMPLODE)); rb_define_const(Zip, "CM_DEFLATE", INT2NUM(ZIP_CM_DEFLATE)); rb_define_const(Zip, "CM_DEFLATE64", INT2NUM(ZIP_CM_DEFLATE64)); rb_define_const(Zip, "CM_PKWARE_IMPLODE", INT2NUM(ZIP_CM_PKWARE_IMPLODE)); rb_define_const(Zip, "CM_BZIP2", INT2NUM(ZIP_CM_BZIP2)); rb_define_const(Zip, "EM_NONE", INT2NUM(ZIP_EM_NONE)); rb_define_const(Zip, "EM_TRAD_PKWARE", INT2NUM(ZIP_EM_TRAD_PKWARE)); // XXX: Strong Encryption Header not parsed yet }
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
zipruby-0.3.4 | ext/zipruby_zip.c |
zipruby-0.3.3 | ext/zipruby_zip.c |
zipruby-0.3.0 | ext/zipruby_zip.c |
zipruby-0.3.2 | ext/zipruby_zip.c |
zipruby-0.3.1 | ext/zipruby_zip.c |