lmdb 0.4.2 → 0.4.3

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: 19495dad2d084f39462d5938acbc27ad061f797e
4
- data.tar.gz: 8dfca9b055ccf2fa62a8bddbd822b8a14b0cb6f5
3
+ metadata.gz: d0e534de10f04a8bca911165a2e6a778307369bf
4
+ data.tar.gz: b4603ff6cf79b299b41baa2461942de8737fc590
5
5
  SHA512:
6
- metadata.gz: 9d671fbfae42a4d3ed1022deb479cebc57e31b740ba86fb2f125960b8fee38f8020fa0f008b2a35b9a6b2e62b6497b31bcb656dba9f95caafeab1d1f90710d54
7
- data.tar.gz: 9912e57edd9db4d966fc13c2603488cc1f50acd0560b678e98a5eb965d285b2974b1c06874d89ac69cead95b42b64634b3c2d8d240df81710693b309a792bfdc
6
+ metadata.gz: 4664b68e7e4e244787da36b13661e16420c1647ef664c446fb0418bdf713148e594c26f472a00eed48eef912370b2132a517c8d1c4666ab04888d86d63164a4c
7
+ data.tar.gz: 93cb16d9ba6dfe1a029a4280cc721975e504cc6983854ab5c00fa696b3ff28b2524083dd9ca10b196fb772c2e1b1c2289b913a6211b0d9bdb121329bf4fa565e
data/Rakefile CHANGED
@@ -49,7 +49,7 @@ task :release => "release:is_new_version" do
49
49
  sh "git push"
50
50
  sh "git push --tags"
51
51
 
52
- sh "gem push #{tag}.gem"
52
+ sh "gem push #{PRJ}-#{version}.gem"
53
53
  end
54
54
 
55
55
  namespace :release do
@@ -19,5 +19,8 @@ have_header 'assert.h'
19
19
 
20
20
  have_header 'ruby.h'
21
21
  have_func 'rb_funcall_passing_block'
22
+ have_func 'rb_thread_call_without_gvl2'
23
+
24
+ create_header
22
25
 
23
26
  create_makefile('lmdb_ext')
@@ -1,5 +1,24 @@
1
1
  #include "lmdb_ext.h"
2
+ #include "extconf.h"
3
+
4
+ #ifdef HAVE_RB_THREAD_CALL_WITHOUT_GVL2
5
+
6
+ // ruby 2
2
7
  #include "ruby/thread.h"
8
+ #define CALL_WITHOUT_GVL(func, data1, ubf, data2) \
9
+ rb_thread_call_without_gvl2(func, data1, ubf, data2)
10
+
11
+ #else
12
+
13
+ // ruby 193
14
+ // Expose the API from internal.h:
15
+ VALUE rb_thread_call_without_gvl(
16
+ rb_blocking_function_t *func, void *data1,
17
+ rb_unblock_function_t *ubf, void *data2);
18
+ #define CALL_WITHOUT_GVL(func, data1, ubf, data2) \
19
+ rb_thread_call_without_gvl((rb_blocking_function_t *)func, data1, ubf, data2)
20
+
21
+ #endif
3
22
 
4
23
  static void check(int code) {
5
24
  if (!code)
@@ -185,7 +204,7 @@ static VALUE with_transaction(VALUE venv, VALUE(*fn)(VALUE), VALUE arg, int flag
185
204
  call_txn_begin(&txn_args);
186
205
  }
187
206
  else {
188
- rb_thread_call_without_gvl2(
207
+ CALL_WITHOUT_GVL(
189
208
  call_txn_begin, &txn_args,
190
209
  stop_txn_begin, &txn_args);
191
210
 
data/lib/lmdb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module LMDB
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
data/lmdb.gemspec CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.test_files = `git ls-files -- spec/*`.split("\n")
20
20
  s.require_paths = ['lib']
21
21
 
22
+ s.required_ruby_version = "~> 1.9.3"
22
23
  s.add_development_dependency 'rake', "~> 10.0"
23
24
  s.add_development_dependency 'rake-compiler', '<=0.8.2'
24
25
  s.add_development_dependency 'rspec', "~> 3.0"
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.2
4
+ version: 0.4.3
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-26 00:00:00.000000000 Z
11
+ date: 2014-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -101,9 +101,9 @@ require_paths:
101
101
  - lib
102
102
  required_ruby_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - ">="
104
+ - - "~>"
105
105
  - !ruby/object:Gem::Version
106
- version: '0'
106
+ version: 1.9.3
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - ">="