bzip2-ruby 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/VERSION.yml +2 -2
- data/bzip2-ruby.gemspec +6 -3
- data/ext/bzip2.c +14 -0
- data/lib/bzip2.rb +1 -1
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
data/VERSION.yml
CHANGED
data/bzip2-ruby.gemspec
CHANGED
@@ -1,12 +1,15 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
5
|
|
3
6
|
Gem::Specification.new do |s|
|
4
7
|
s.name = %q{bzip2-ruby}
|
5
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.6"
|
6
9
|
|
7
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
11
|
s.authors = ["Guy Decoux", "Brian Lopez"]
|
9
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-10-06}
|
10
13
|
s.email = %q{seniorlopez@gmail.com}
|
11
14
|
s.extensions = ["ext/extconf.rb"]
|
12
15
|
s.extra_rdoc_files = [
|
@@ -31,7 +34,7 @@ Gem::Specification.new do |s|
|
|
31
34
|
s.homepage = %q{http://github.com/brianmario/bzip2-ruby}
|
32
35
|
s.rdoc_options = ["--charset=UTF-8"]
|
33
36
|
s.require_paths = ["lib", "ext"]
|
34
|
-
s.rubygems_version = %q{1.3.
|
37
|
+
s.rubygems_version = %q{1.3.5}
|
35
38
|
s.summary = %q{Ruby C bindings to libbzip2.}
|
36
39
|
s.test_files = [
|
37
40
|
"spec/reader_spec.rb",
|
data/ext/bzip2.c
CHANGED
@@ -18,6 +18,20 @@ static ID id_closed, id_close, id_str;
|
|
18
18
|
#define BZ2_RB_CLOSE 1
|
19
19
|
#define BZ2_RB_INTERNAL 2
|
20
20
|
|
21
|
+
// Older versions of Ruby (< 1.8.6) need these
|
22
|
+
#ifndef RSTRING_PTR
|
23
|
+
#define RSTRING_PTR(s) (RSTRING(s)->ptr)
|
24
|
+
#endif
|
25
|
+
#ifndef RSTRING_LEN
|
26
|
+
#define RSTRING_LEN(s) (RSTRING(s)->len)
|
27
|
+
#endif
|
28
|
+
#ifndef RARRAY_PTR
|
29
|
+
#define RARRAY_PTR(s) (RARRAY(s)->ptr)
|
30
|
+
#endif
|
31
|
+
#ifndef RARRAY_LEN
|
32
|
+
#define RARRAY_LEN(s) (RARRAY(s)->len)
|
33
|
+
#endif
|
34
|
+
|
21
35
|
struct bz_file {
|
22
36
|
bz_stream bzs;
|
23
37
|
VALUE in, io;
|
data/lib/bzip2.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bzip2-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guy Decoux
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-
|
13
|
+
date: 2009-10-06 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|