tokyocabinet 1.29 → 1.29.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +15 -0
  2. data/tokyocabinet.c +16 -16
  3. metadata +34 -38
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MWM1YzIwYTIwMDQ4ODljODI5ZDg5M2ViMjIzYmJiZTg0NTM0ZTA4Yg==
5
+ data.tar.gz: !binary |-
6
+ YjIwMzU3YWQyMmQxZGNjNDUzMGZmM2Q5NGE2M2QwNWEyMjYzMjA1Ng==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ OGQyNGFkNzFjNDEyM2RmMzYyZThkZTdhMTJlMWJiMzM1ODE1N2EyYzhjN2Fj
10
+ OGI1MjYxMGVmMjE0YzNlODg5MmIzYjRlNzBkMzJhNjUxZDFiMjdhYzAxODM3
11
+ YzE3ZWFiMjc4YjY0ZWU4YzM1MmUzMTAxMjNhMWRiN2ExMTYxYmQ=
12
+ data.tar.gz: !binary |-
13
+ Njc1YTQ1Y2RlMjJhOGUxM2M2Zjc3NDFmOTFkNGYxYTVlOWQyN2Y0NmZlMTRm
14
+ ZGJjZWFjMDc1MzJhZGExMDk5MGIwMGExY2NlYmUzYzhjYTJhMDFlOGNkYTBh
15
+ MDQyN2UzMTBjNDM2Mjg2YzIxMWZiN2Y4Yjk4NjlkOWY2OGRjYjY=
@@ -951,7 +951,7 @@ static VALUE hdb_each(VALUE vself){
951
951
  VALUE vhdb, vrv;
952
952
  TCHDB *hdb;
953
953
  TCXSTR *kxstr, *vxstr;
954
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
954
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
955
955
  vhdb = rb_iv_get(vself, HDBVNDATA);
956
956
  Data_Get_Struct(vhdb, TCHDB, hdb);
957
957
  vrv = Qnil;
@@ -972,7 +972,7 @@ static VALUE hdb_each_key(VALUE vself){
972
972
  VALUE vhdb, vrv;
973
973
  TCHDB *hdb;
974
974
  TCXSTR *kxstr, *vxstr;
975
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
975
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
976
976
  vhdb = rb_iv_get(vself, HDBVNDATA);
977
977
  Data_Get_Struct(vhdb, TCHDB, hdb);
978
978
  vrv = Qnil;
@@ -992,7 +992,7 @@ static VALUE hdb_each_value(VALUE vself){
992
992
  VALUE vhdb, vrv;
993
993
  TCHDB *hdb;
994
994
  TCXSTR *kxstr, *vxstr;
995
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
995
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
996
996
  vhdb = rb_iv_get(vself, HDBVNDATA);
997
997
  Data_Get_Struct(vhdb, TCHDB, hdb);
998
998
  vrv = Qnil;
@@ -1697,7 +1697,7 @@ static VALUE bdb_each(VALUE vself){
1697
1697
  TCBDB *bdb;
1698
1698
  BDBCUR *cur;
1699
1699
  TCXSTR *kxstr, *vxstr;
1700
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
1700
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
1701
1701
  vbdb = rb_iv_get(vself, BDBVNDATA);
1702
1702
  Data_Get_Struct(vbdb, TCBDB, bdb);
1703
1703
  vrv = Qnil;
@@ -1723,7 +1723,7 @@ static VALUE bdb_each_key(VALUE vself){
1723
1723
  BDBCUR *cur;
1724
1724
  const char *kbuf;
1725
1725
  int ksiz;
1726
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
1726
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
1727
1727
  vbdb = rb_iv_get(vself, BDBVNDATA);
1728
1728
  Data_Get_Struct(vbdb, TCBDB, bdb);
1729
1729
  vrv = Qnil;
@@ -1744,7 +1744,7 @@ static VALUE bdb_each_value(VALUE vself){
1744
1744
  BDBCUR *cur;
1745
1745
  const char *vbuf;
1746
1746
  int vsiz;
1747
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
1747
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
1748
1748
  vbdb = rb_iv_get(vself, BDBVNDATA);
1749
1749
  Data_Get_Struct(vbdb, TCBDB, bdb);
1750
1750
  vrv = Qnil;
@@ -2413,7 +2413,7 @@ static VALUE fdb_each(VALUE vself){
2413
2413
  char *vbuf, kbuf[NUMBUFSIZ];
2414
2414
  int vsiz, ksiz;
2415
2415
  uint64_t id;
2416
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
2416
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
2417
2417
  vfdb = rb_iv_get(vself, FDBVNDATA);
2418
2418
  Data_Get_Struct(vfdb, TCFDB, fdb);
2419
2419
  vrv = Qnil;
@@ -2436,7 +2436,7 @@ static VALUE fdb_each_key(VALUE vself){
2436
2436
  char kbuf[NUMBUFSIZ];
2437
2437
  int ksiz;
2438
2438
  uint64_t id;
2439
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
2439
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
2440
2440
  vfdb = rb_iv_get(vself, FDBVNDATA);
2441
2441
  Data_Get_Struct(vfdb, TCFDB, fdb);
2442
2442
  vrv = Qnil;
@@ -2455,7 +2455,7 @@ static VALUE fdb_each_value(VALUE vself){
2455
2455
  char *vbuf;
2456
2456
  int vsiz;
2457
2457
  uint64_t id;
2458
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
2458
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
2459
2459
  vfdb = rb_iv_get(vself, FDBVNDATA);
2460
2460
  Data_Get_Struct(vfdb, TCFDB, fdb);
2461
2461
  vrv = Qnil;
@@ -3024,7 +3024,7 @@ static VALUE tdb_each(VALUE vself){
3024
3024
  TCMAP *cols;
3025
3025
  char *kbuf;
3026
3026
  int ksiz;
3027
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
3027
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
3028
3028
  vtdb = rb_iv_get(vself, TDBVNDATA);
3029
3029
  Data_Get_Struct(vtdb, TCTDB, tdb);
3030
3030
  vrv = Qnil;
@@ -3045,7 +3045,7 @@ static VALUE tdb_each_key(VALUE vself){
3045
3045
  TCTDB *tdb;
3046
3046
  char *kbuf;
3047
3047
  int ksiz;
3048
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
3048
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
3049
3049
  vtdb = rb_iv_get(vself, TDBVNDATA);
3050
3050
  Data_Get_Struct(vtdb, TCTDB, tdb);
3051
3051
  vrv = Qnil;
@@ -3064,7 +3064,7 @@ static VALUE tdb_each_value(VALUE vself){
3064
3064
  TCMAP *cols;
3065
3065
  char *kbuf;
3066
3066
  int ksiz;
3067
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
3067
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
3068
3068
  vtdb = rb_iv_get(vself, TDBVNDATA);
3069
3069
  Data_Get_Struct(vtdb, TCTDB, tdb);
3070
3070
  vrv = Qnil;
@@ -3274,7 +3274,7 @@ static VALUE tdbqry_searchout(VALUE vself){
3274
3274
  static VALUE tdbqry_proc(VALUE vself, VALUE vproc){
3275
3275
  VALUE vqry;
3276
3276
  TDBQRY *qry;
3277
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
3277
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
3278
3278
  vqry = rb_iv_get(vself, TDBQRYVNDATA);
3279
3279
  Data_Get_Struct(vqry, TDBQRY, qry);
3280
3280
  return tctdbqryproc(qry, (TDBQRYPROC)tdbqry_procrec, NULL) ? Qtrue : Qfalse;
@@ -3794,7 +3794,7 @@ static VALUE adb_each(VALUE vself){
3794
3794
  TCADB *adb;
3795
3795
  char *tkbuf, *tvbuf;
3796
3796
  int tksiz, tvsiz;
3797
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
3797
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
3798
3798
  vadb = rb_iv_get(vself, ADBVNDATA);
3799
3799
  Data_Get_Struct(vadb, TCADB, adb);
3800
3800
  vrv = Qnil;
@@ -3816,7 +3816,7 @@ static VALUE adb_each_key(VALUE vself){
3816
3816
  TCADB *adb;
3817
3817
  char *tkbuf;
3818
3818
  int tksiz;
3819
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
3819
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
3820
3820
  vadb = rb_iv_get(vself, ADBVNDATA);
3821
3821
  Data_Get_Struct(vadb, TCADB, adb);
3822
3822
  vrv = Qnil;
@@ -3834,7 +3834,7 @@ static VALUE adb_each_value(VALUE vself){
3834
3834
  TCADB *adb;
3835
3835
  char *tkbuf, *tvbuf;
3836
3836
  int tksiz, tvsiz;
3837
- if(rb_block_given_p() != Qtrue) rb_raise(rb_eArgError, "no block given");
3837
+ if(!rb_block_given_p()) rb_raise(rb_eArgError, "no block given");
3838
3838
  vadb = rb_iv_get(vself, ADBVNDATA);
3839
3839
  Data_Get_Struct(vadb, TCADB, adb);
3840
3840
  vrv = Qnil;
metadata CHANGED
@@ -1,56 +1,52 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: tokyocabinet
3
- version: !ruby/object:Gem::Version
4
- version: "1.29"
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.29.1
5
5
  platform: ruby
6
- authors: []
7
-
6
+ authors:
7
+ - peleteiro
8
+ - Miguel Vazquez
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
-
12
- date: 2009-10-22 00:00:00 -02:00
13
- default_executable:
12
+ date: 2013-08-02 00:00:00.000000000 Z
14
13
  dependencies: []
15
-
16
- description: Tokyo Cabinet is a library of routines for managing a database. The database is a simple data file containing records, each is a pair of a key and a value. Every key and value is serial bytes with variable length. Both binary data and character string can be used as a key and a value. There is neither concept of data tables nor data types. Records are organized in hash table, B+ tree, or fixed-length array.
17
- email: mikio@users.sourceforge.net
14
+ description: ! "Tokyo Cabinet is a library of routines for managing a database. The\n
15
+ \ database is a simple data file containing records, each is a pair of a key
16
+ and a\n value. Every key and value is serial bytes with variable length. Both
17
+ binary data\n and character string can be used as a key and a value. There
18
+ is neither concept\n of data tables nor data types. Records are organized
19
+ in hash table, B+ tree, or\n fixed-length array. Miguel Vazquez introduced
20
+ a small modification to make it work \n on ruby 1.9."
21
+ email: mikisvaz@gmail.com
18
22
  executables: []
19
-
20
- extensions:
23
+ extensions:
21
24
  - extconf.rb
22
25
  extra_rdoc_files: []
23
-
24
- files:
25
- - tokyocabinet.c
26
+ files:
26
27
  - extconf.rb
27
- has_rdoc: true
28
- homepage: http://tokyocabinet.sourceforge.net/
28
+ - tokyocabinet.c
29
+ homepage: http://fallabs.com/tokyocabinet/
29
30
  licenses: []
30
-
31
+ metadata: {}
31
32
  post_install_message:
32
33
  rdoc_options: []
33
-
34
- require_paths:
34
+ require_paths:
35
35
  - .
36
- required_ruby_version: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: "0"
41
- version:
42
- required_rubygems_version: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
47
- version:
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
48
46
  requirements: []
49
-
50
47
  rubyforge_project:
51
- rubygems_version: 1.3.5
48
+ rubygems_version: 2.0.3
52
49
  signing_key:
53
- specification_version: 3
54
- summary: "Tokyo Cabinet: a modern implementation of DBM."
50
+ specification_version: 4
51
+ summary: ! 'Tokyo Cabinet: a modern implementation of DBM.'
55
52
  test_files: []
56
-