lmdb 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/lmdb_ext/lmdb_ext.c +5 -2
- data/lib/lmdb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14c11d6e3fb6489302524938d95191ac9db4131a
|
4
|
+
data.tar.gz: e5e16ec5a67bc0e44a30753daf12c46c22f38fc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 621f7a59503333b623e1073c382cc0c2832e2e2648abed644faf0e812667a4282887ae5da1a78c67f54c15bcc5d9a504f0eb95dc9e15147d6f80dffaa9b7d5d7
|
7
|
+
data.tar.gz: c634c5c777b29f49804e3748349e750be8998450d6e0f0bf77a208c3a5a97ea918f7026f51a587a585d7c9421d9c9b486f9a489498c5a43009477479f00afaa4
|
data/ext/lmdb_ext/lmdb_ext.c
CHANGED
@@ -47,6 +47,7 @@ static void transaction_free(Transaction* transaction) {
|
|
47
47
|
static void transaction_mark(Transaction* transaction) {
|
48
48
|
rb_gc_mark(transaction->parent);
|
49
49
|
rb_gc_mark(transaction->env);
|
50
|
+
rb_gc_mark(transaction->cursors);
|
50
51
|
}
|
51
52
|
|
52
53
|
/**
|
@@ -356,7 +357,8 @@ static VALUE environment_info(VALUE self) {
|
|
356
357
|
*/
|
357
358
|
static VALUE environment_copy(VALUE self, VALUE path) {
|
358
359
|
ENVIRONMENT(self, environment);
|
359
|
-
|
360
|
+
VALUE expanded_path = rb_file_expand_path(path, Qnil);
|
361
|
+
check(mdb_env_copy(environment->env, StringValueCStr(expanded_path)));
|
360
362
|
return Qnil;
|
361
363
|
}
|
362
364
|
|
@@ -470,7 +472,8 @@ static VALUE environment_new(int argc, VALUE *argv, VALUE klass) {
|
|
470
472
|
check(mdb_env_set_mapsize(env, options.mapsize));
|
471
473
|
|
472
474
|
check(mdb_env_set_maxdbs(env, options.maxdbs <= 0 ? 1 : options.maxdbs));
|
473
|
-
|
475
|
+
VALUE expanded_path = rb_file_expand_path(path, Qnil);
|
476
|
+
check(mdb_env_open(env, StringValueCStr(expanded_path), options.flags, options.mode));
|
474
477
|
|
475
478
|
if (rb_block_given_p())
|
476
479
|
return rb_ensure(rb_yield, venv, environment_close, venv);
|
data/lib/lmdb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lmdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Mendler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|