leveldb-ruby 0.8 → 0.9
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.
- data/ext/leveldb/extconf.rb +4 -1
- data/ext/leveldb/leveldb.cc +0 -3
- metadata +22 -35
data/ext/leveldb/extconf.rb
CHANGED
@@ -8,5 +8,8 @@ Dir.chdir "../ext/leveldb"
|
|
8
8
|
CONFIG['LDSHARED'] = "$(CXX) -shared"
|
9
9
|
|
10
10
|
$CFLAGS << " -I../../leveldb/include"
|
11
|
-
$
|
11
|
+
$CFLAGS.sub! "-arch i386", ""
|
12
|
+
$LDFLAGS.sub! "-arch i386", ""
|
13
|
+
$LIBS << " -L../../leveldb -lleveldb -lruby"
|
14
|
+
|
12
15
|
create_makefile "leveldb/leveldb"
|
data/ext/leveldb/leveldb.cc
CHANGED
@@ -36,7 +36,6 @@ static VALUE db_make(VALUE klass, VALUE v_pathname, VALUE v_create_if_necessary,
|
|
36
36
|
Check_Type(v_pathname, T_STRING);
|
37
37
|
|
38
38
|
bound_db* db = new bound_db;
|
39
|
-
char* pathname_c = RSTRING_PTR(v_pathname);
|
40
39
|
std::string pathname = std::string((char*)RSTRING_PTR(v_pathname));
|
41
40
|
|
42
41
|
leveldb::Options options;
|
@@ -170,8 +169,6 @@ static VALUE db_init(VALUE self, VALUE v_pathname) {
|
|
170
169
|
|
171
170
|
extern "C" {
|
172
171
|
void Init_leveldb() {
|
173
|
-
VALUE m_leveldb;
|
174
|
-
|
175
172
|
m_leveldb = rb_define_module("LevelDB");
|
176
173
|
|
177
174
|
c_db = rb_define_class_under(m_leveldb, "DB", rb_cObject);
|
metadata
CHANGED
@@ -1,32 +1,26 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: leveldb-ruby
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 8
|
8
|
-
version: "0.8"
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.9'
|
5
|
+
prerelease:
|
9
6
|
platform: ruby
|
10
|
-
authors:
|
7
|
+
authors:
|
11
8
|
- William Morgan
|
12
9
|
autorequire:
|
13
10
|
bindir: bin
|
14
11
|
cert_chain: []
|
15
|
-
|
16
|
-
date: 2011-10-25 19:39:38 +00:00
|
12
|
+
date: 2011-10-26 14:01:14.000000000 -07:00
|
17
13
|
default_executable:
|
18
14
|
dependencies: []
|
19
|
-
|
20
15
|
description: LevelDB-Ruby is a Ruby binding to LevelDB.
|
21
16
|
email: wmorgan-leveldb-ruby-gemspec@masanjin.net
|
22
17
|
executables: []
|
23
|
-
|
24
|
-
extensions:
|
18
|
+
extensions:
|
25
19
|
- ext/leveldb/extconf.rb
|
26
|
-
extra_rdoc_files:
|
20
|
+
extra_rdoc_files:
|
27
21
|
- README
|
28
22
|
- ext/leveldb/leveldb.cc
|
29
|
-
files:
|
23
|
+
files:
|
30
24
|
- README
|
31
25
|
- ext/leveldb/extconf.rb
|
32
26
|
- lib/leveldb.rb
|
@@ -148,39 +142,32 @@ files:
|
|
148
142
|
has_rdoc: true
|
149
143
|
homepage: http://github.com/wmorgan/leveldb-ruby
|
150
144
|
licenses: []
|
151
|
-
|
152
145
|
post_install_message:
|
153
|
-
rdoc_options:
|
146
|
+
rdoc_options:
|
154
147
|
- -c
|
155
148
|
- utf8
|
156
149
|
- --main
|
157
150
|
- README
|
158
151
|
- --title
|
159
152
|
- LevelDB
|
160
|
-
require_paths:
|
153
|
+
require_paths:
|
161
154
|
- lib
|
162
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
155
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
163
156
|
none: false
|
164
|
-
requirements:
|
165
|
-
- -
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
|
168
|
-
|
169
|
-
version: "0"
|
170
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - ! '>='
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
162
|
none: false
|
172
|
-
requirements:
|
173
|
-
- -
|
174
|
-
- !ruby/object:Gem::Version
|
175
|
-
|
176
|
-
- 0
|
177
|
-
version: "0"
|
163
|
+
requirements:
|
164
|
+
- - ! '>='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
178
167
|
requirements: []
|
179
|
-
|
180
168
|
rubyforge_project:
|
181
|
-
rubygems_version: 1.
|
169
|
+
rubygems_version: 1.6.0
|
182
170
|
signing_key:
|
183
171
|
specification_version: 3
|
184
172
|
summary: a Ruby binding to LevelDB
|
185
173
|
test_files: []
|
186
|
-
|