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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a16c836538970b0fa163ca860fd37026109affa
4
- data.tar.gz: a875dc4ef204234884099495037d356600c262a3
3
+ metadata.gz: 14c11d6e3fb6489302524938d95191ac9db4131a
4
+ data.tar.gz: e5e16ec5a67bc0e44a30753daf12c46c22f38fc1
5
5
  SHA512:
6
- metadata.gz: fe6fe683af3a1ef55562d18cf4b7997003bda0357b84c09aaf4ca1971339ae548648dd1b3ceba0bfdcc9b1d438750c0cf9a68c8e8729132e6ed5c998d257ca46
7
- data.tar.gz: d8922c31ad085fcb2de5ae0a6fd4e459c2b0364f86b805f1d95101d8dc5d3e825536dca99240b472681e97e3846f803b387ec2a85c7c63db14af15080528265c
6
+ metadata.gz: 621f7a59503333b623e1073c382cc0c2832e2e2648abed644faf0e812667a4282887ae5da1a78c67f54c15bcc5d9a504f0eb95dc9e15147d6f80dffaa9b7d5d7
7
+ data.tar.gz: c634c5c777b29f49804e3748349e750be8998450d6e0f0bf77a208c3a5a97ea918f7026f51a587a585d7c9421d9c9b486f9a489498c5a43009477479f00afaa4
@@ -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
- check(mdb_env_copy(environment->env, StringValueCStr(path)));
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
- check(mdb_env_open(env, StringValueCStr(path), options.flags, options.mode));
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);
@@ -1,3 +1,3 @@
1
1
  module LMDB
2
- VERSION = '0.4.4'
2
+ VERSION = '0.4.5'
3
3
  end
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
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-07-27 00:00:00.000000000 Z
11
+ date: 2014-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake