rod 0.7.4.0 → 0.7.4.2

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
- SHA1:
3
- metadata.gz: 1768fb8fe46b1bddd6b539d98768f745b26bb7af
4
- data.tar.gz: a4e2f7407df7b62bd52a34da8b817b921994de40
2
+ SHA256:
3
+ metadata.gz: d0d57873f671e23905136f38e1d8ba889a017d06bbee12c96c0d100a655ddbb9
4
+ data.tar.gz: e035c46a6bd28ad56b0f9beda7d5ead57e7a4ca14479526bca77c13486455c99
5
5
  SHA512:
6
- metadata.gz: 2c36c36db2e218615096b9c23ef7662163e1e8ea2af2e70686655d3e5a89c49b85389915a9fa7442145b3f1a2207b7013fa38c94e4627599c8fdfd9299f0384c
7
- data.tar.gz: c1ddc8783edf657c278c4131578ef6a5cf10710043c50c1284edad1410fcdc9f2ad1a746ab203c6e56fa7203a1965f560437dce33e9d91432958001c9f3cf4b8
6
+ metadata.gz: fe970e9eef5fbd34780b62ab2be50ef88408923a2835be1d9fbe9c077e5c25f3027272c8274e2ccf01fd88cdf4814256762cae8133f5aebc4c2cef0d02c11c6d
7
+ data.tar.gz: bda5a7889d76254306f9ab0c19bda83fc7dc342cc82a914372de5eedb400ae93f493fecc9c2b6803a1ac3fae7cec19b76ed0fe88dc2488e3fcd8de50b1783278
data/.travis.yml CHANGED
@@ -1,3 +1,3 @@
1
- rvm: 2.1.0
1
+ rvm: 2.2.7
2
2
  before_script:
3
- - "sudo apt-get install libdb4.8-dev"
3
+ - "sudo apt-get install libdb5.3-dev"
data/README.rdoc CHANGED
@@ -79,6 +79,9 @@ number of disk reads was designed. The Ruby interface facilitates it's usage.
79
79
 
80
80
  == TROUBLESHOOTING
81
81
 
82
+
83
+ === db.h problem
84
+
82
85
  If you get the following error:
83
86
 
84
87
  error: db.h: No such file or directory
@@ -87,6 +90,9 @@ then you don't have Berkeley DB installed or its header fiels are not available
87
90
  on the default path. Make sure that the library is installed and the headers
88
91
  are available.
89
92
 
93
+
94
+ === symbol lookup error related to Berkeley DB
95
+
90
96
  If you get the following error:
91
97
 
92
98
  .ruby: symbol lookup error: /home/vagrant/.ruby_inline/... undefined symbol: db_env_create
@@ -100,6 +106,18 @@ environment variable, e.g.
100
106
 
101
107
  This configuration option will select the libdb-4.8.so library.
102
108
 
109
+ === symbol lookup error not related to Berkeley DB
110
+
111
+ If you get the follwing error (or other lookup error):
112
+
113
+ symbol lookup error:
114
+ /net/people/plgapohl/.ruby_inline/... undefined symbol: __intel_avx_rep_memcpy
115
+
116
+ then make sure that you don't have any compiled shared objects linking to objects that are no longer
117
+ available in your system. Remove any libraries from the .ruby_inline by:
118
+
119
+ rm -f /net/people/plgapohl/.ruby_inline/*
120
+
103
121
  == BASIC USAGE:
104
122
 
105
123
  class MyDatabase < Rod::Database
@@ -140,7 +140,6 @@ module Rod
140
140
  |void _open(const char * path, VALUE method, VALUE options){
141
141
  | DB_ENV * env_pointer;
142
142
  | DB * db_pointer;
143
- | DBTYPE access_method;
144
143
  | u_int32_t flags;
145
144
  | int return_value;
146
145
  | VALUE environment;
@@ -222,7 +221,6 @@ module Rod
222
221
  |*/
223
222
  |void _close(){
224
223
  | DB * db_pointer;
225
- | int return_value;
226
224
  |
227
225
  | Data_Get_Struct(self,DB,db_pointer);
228
226
  | db_free(db_pointer);
@@ -323,7 +321,6 @@ module Rod
323
321
  |*/
324
322
  |VALUE _get_strings(VALUE key, VALUE transaction){
325
323
  | char buffer[1024];
326
- | VALUE result;
327
324
  | unsigned int size;
328
325
  |
329
326
  | size = _get(self,RSTRING_PTR(key),RSTRING_LEN(key),buffer,1024,transaction);
@@ -195,7 +195,6 @@ module Rod
195
195
  |*/
196
196
  |void _close(){
197
197
  | DB_ENV * env_pointer;
198
- | int return_value;
199
198
  |
200
199
  | Data_Get_Struct(self,DB_ENV,env_pointer);
201
200
  | env_free(env_pointer);
@@ -219,7 +219,6 @@ module Rod
219
219
  |*/
220
220
  |void _abort(){
221
221
  | DB_TXN * txn_pointer;
222
- | int return_value;
223
222
  |
224
223
  | Data_Get_Struct(self,DB_TXN,txn_pointer);
225
224
  | txn_free(txn_pointer);
data/lib/rod/constants.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Rod
2
- VERSION = "0.7.4.0"
2
+ VERSION = "0.7.4.2"
3
3
 
4
4
  # The name of file containing the data base.
5
5
  DATABASE_FILE = "database.yml"
@@ -164,8 +164,6 @@ module Rod
164
164
  def self.convert_key
165
165
  str =<<-END
166
166
  |void _convert_key(VALUE key, DBT *db_key_p){
167
- | long int_key;
168
- | double float_key;
169
167
  | DBT db_key;
170
168
  |
171
169
  | db_key = *db_key_p;
@@ -232,7 +230,7 @@ module Rod
232
230
  | DBT db_key, db_value;
233
231
  | DBC *cursor;
234
232
  | unsigned long rod_id, index;
235
- | VALUE key, result, cursor_object;
233
+ | VALUE key, cursor_object;
236
234
  | int return_value;
237
235
  |
238
236
  | index = 0;
@@ -280,7 +278,6 @@ module Rod
280
278
  | DBT db_key, db_value;
281
279
  | DBC *cursor;
282
280
  | int return_value;
283
- | rod_entry_struct *entry;
284
281
  | VALUE key;
285
282
  |
286
283
  | Data_Get_Struct(cursor_object,DBC,cursor);
@@ -399,7 +396,7 @@ module Rod
399
396
  | VALUE handle;
400
397
  | DB *db_pointer;
401
398
  | DBC *cursor;
402
- | VALUE key, cursor_object;
399
+ | VALUE cursor_object;
403
400
  |
404
401
  | handle = rb_iv_get(self,"@handle");
405
402
  | Data_Get_Struct(handle,DB,db_pointer);
@@ -450,7 +447,6 @@ module Rod
450
447
  | DB *db_pointer;
451
448
  | DBT db_key, db_value;
452
449
  | unsigned long rod_id;
453
- | VALUE result;
454
450
  | int return_value;
455
451
  |
456
452
  | handle = rb_iv_get(self,"@handle");
data/rod.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.require_path = "lib"
25
25
 
26
26
  s.add_dependency("RubyInline", [">= 3.10.0","< 4.0.0"])
27
- s.add_dependency("english", [">= 0.5.0","< 0.6.0"])
27
+ s.add_dependency("english", [">= 0.7.0","< 0.8.0"])
28
28
  s.add_dependency("activemodel", ["~> 3.2",'>= 3.2.2'])
29
29
  s.add_dependency("bsearch", [">= 1.5.0","< 1.6.0"])
30
30
  s.add_dependency("ref", [">= 1.0.5","< 2.0.0"])
@@ -34,4 +34,5 @@ Gem::Specification.new do |s|
34
34
  s.add_development_dependency("rake", [">= 0.9.0","< 1.0.0"])
35
35
  s.add_development_dependency("minitest", "~> 4.0", ">= 4.0.0")
36
36
  s.add_development_dependency("mocha", "~> 0.9", ">= 0.9.12")
37
+ s.add_development_dependency("test-unit", "~> 3.3.0", ">= 3.3.0")
37
38
  end
metadata CHANGED
@@ -1,224 +1,245 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4.0
4
+ version: 0.7.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksander Pohl
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-21 00:00:00.000000000 Z
11
+ date: 2023-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: RubyInline
15
- version_requirements: !ruby/object:Gem::Requirement
15
+ requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.10.0
20
- - - <
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 4.0.0
23
- requirement: !ruby/object:Gem::Requirement
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
24
26
  requirements:
25
- - - '>='
27
+ - - ">="
26
28
  - !ruby/object:Gem::Version
27
29
  version: 3.10.0
28
- - - <
30
+ - - "<"
29
31
  - !ruby/object:Gem::Version
30
32
  version: 4.0.0
31
- prerelease: false
32
- type: :runtime
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: english
35
- version_requirements: !ruby/object:Gem::Requirement
35
+ requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - '>='
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 0.5.0
40
- - - <
39
+ version: 0.7.0
40
+ - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: 0.6.0
43
- requirement: !ruby/object:Gem::Requirement
42
+ version: 0.8.0
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
44
46
  requirements:
45
- - - '>='
47
+ - - ">="
46
48
  - !ruby/object:Gem::Version
47
- version: 0.5.0
48
- - - <
49
+ version: 0.7.0
50
+ - - "<"
49
51
  - !ruby/object:Gem::Version
50
- version: 0.6.0
51
- prerelease: false
52
- type: :runtime
52
+ version: 0.8.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: activemodel
55
- version_requirements: !ruby/object:Gem::Requirement
55
+ requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - ~>
57
+ - - "~>"
58
58
  - !ruby/object:Gem::Version
59
59
  version: '3.2'
60
- - - '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: 3.2.2
63
- requirement: !ruby/object:Gem::Requirement
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
64
66
  requirements:
65
- - - ~>
67
+ - - "~>"
66
68
  - !ruby/object:Gem::Version
67
69
  version: '3.2'
68
- - - '>='
70
+ - - ">="
69
71
  - !ruby/object:Gem::Version
70
72
  version: 3.2.2
71
- prerelease: false
72
- type: :runtime
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: bsearch
75
- version_requirements: !ruby/object:Gem::Requirement
75
+ requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - '>='
77
+ - - ">="
78
78
  - !ruby/object:Gem::Version
79
79
  version: 1.5.0
80
- - - <
80
+ - - "<"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.6.0
83
- requirement: !ruby/object:Gem::Requirement
83
+ type: :runtime
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
84
86
  requirements:
85
- - - '>='
87
+ - - ">="
86
88
  - !ruby/object:Gem::Version
87
89
  version: 1.5.0
88
- - - <
90
+ - - "<"
89
91
  - !ruby/object:Gem::Version
90
92
  version: 1.6.0
91
- prerelease: false
92
- type: :runtime
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: ref
95
- version_requirements: !ruby/object:Gem::Requirement
95
+ requirement: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - '>='
97
+ - - ">="
98
98
  - !ruby/object:Gem::Version
99
99
  version: 1.0.5
100
- - - <
100
+ - - "<"
101
101
  - !ruby/object:Gem::Version
102
102
  version: 2.0.0
103
- requirement: !ruby/object:Gem::Requirement
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
104
106
  requirements:
105
- - - '>='
107
+ - - ">="
106
108
  - !ruby/object:Gem::Version
107
109
  version: 1.0.5
108
- - - <
110
+ - - "<"
109
111
  - !ruby/object:Gem::Version
110
112
  version: 2.0.0
111
- prerelease: false
112
- type: :runtime
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: cucumber
115
- version_requirements: !ruby/object:Gem::Requirement
115
+ requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ~>
117
+ - - "~>"
118
118
  - !ruby/object:Gem::Version
119
119
  version: '1.0'
120
- - - '>='
120
+ - - ">="
121
121
  - !ruby/object:Gem::Version
122
122
  version: 1.0.0
123
- requirement: !ruby/object:Gem::Requirement
123
+ type: :development
124
+ prerelease: false
125
+ version_requirements: !ruby/object:Gem::Requirement
124
126
  requirements:
125
- - - ~>
127
+ - - "~>"
126
128
  - !ruby/object:Gem::Version
127
129
  version: '1.0'
128
- - - '>='
130
+ - - ">="
129
131
  - !ruby/object:Gem::Version
130
132
  version: 1.0.0
131
- prerelease: false
132
- type: :development
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: rspec
135
- version_requirements: !ruby/object:Gem::Requirement
135
+ requirement: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - '>='
137
+ - - ">="
138
138
  - !ruby/object:Gem::Version
139
139
  version: 2.2.0
140
- - - <
140
+ - - "<"
141
141
  - !ruby/object:Gem::Version
142
142
  version: 2.3.0
143
- requirement: !ruby/object:Gem::Requirement
143
+ type: :development
144
+ prerelease: false
145
+ version_requirements: !ruby/object:Gem::Requirement
144
146
  requirements:
145
- - - '>='
147
+ - - ">="
146
148
  - !ruby/object:Gem::Version
147
149
  version: 2.2.0
148
- - - <
150
+ - - "<"
149
151
  - !ruby/object:Gem::Version
150
152
  version: 2.3.0
151
- prerelease: false
152
- type: :development
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rake
155
- version_requirements: !ruby/object:Gem::Requirement
155
+ requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: 0.9.0
160
- - - <
160
+ - - "<"
161
161
  - !ruby/object:Gem::Version
162
162
  version: 1.0.0
163
- requirement: !ruby/object:Gem::Requirement
163
+ type: :development
164
+ prerelease: false
165
+ version_requirements: !ruby/object:Gem::Requirement
164
166
  requirements:
165
- - - '>='
167
+ - - ">="
166
168
  - !ruby/object:Gem::Version
167
169
  version: 0.9.0
168
- - - <
170
+ - - "<"
169
171
  - !ruby/object:Gem::Version
170
172
  version: 1.0.0
171
- prerelease: false
172
- type: :development
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: minitest
175
- version_requirements: !ruby/object:Gem::Requirement
175
+ requirement: !ruby/object:Gem::Requirement
176
176
  requirements:
177
- - - ~>
177
+ - - "~>"
178
178
  - !ruby/object:Gem::Version
179
179
  version: '4.0'
180
- - - '>='
180
+ - - ">="
181
181
  - !ruby/object:Gem::Version
182
182
  version: 4.0.0
183
- requirement: !ruby/object:Gem::Requirement
183
+ type: :development
184
+ prerelease: false
185
+ version_requirements: !ruby/object:Gem::Requirement
184
186
  requirements:
185
- - - ~>
187
+ - - "~>"
186
188
  - !ruby/object:Gem::Version
187
189
  version: '4.0'
188
- - - '>='
190
+ - - ">="
189
191
  - !ruby/object:Gem::Version
190
192
  version: 4.0.0
191
- prerelease: false
192
- type: :development
193
193
  - !ruby/object:Gem::Dependency
194
194
  name: mocha
195
- version_requirements: !ruby/object:Gem::Requirement
195
+ requirement: !ruby/object:Gem::Requirement
196
196
  requirements:
197
- - - ~>
197
+ - - "~>"
198
198
  - !ruby/object:Gem::Version
199
199
  version: '0.9'
200
- - - '>='
200
+ - - ">="
201
201
  - !ruby/object:Gem::Version
202
202
  version: 0.9.12
203
- requirement: !ruby/object:Gem::Requirement
203
+ type: :development
204
+ prerelease: false
205
+ version_requirements: !ruby/object:Gem::Requirement
204
206
  requirements:
205
- - - ~>
207
+ - - "~>"
206
208
  - !ruby/object:Gem::Version
207
209
  version: '0.9'
208
- - - '>='
210
+ - - ">="
209
211
  - !ruby/object:Gem::Version
210
212
  version: 0.9.12
211
- prerelease: false
213
+ - !ruby/object:Gem::Dependency
214
+ name: test-unit
215
+ requirement: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - "~>"
218
+ - !ruby/object:Gem::Version
219
+ version: 3.3.0
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: 3.3.0
212
223
  type: :development
213
- description: Ruby Object Database is designed for large amounts of data, whose structure rarely changes.
224
+ prerelease: false
225
+ version_requirements: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: 3.3.0
230
+ - - ">="
231
+ - !ruby/object:Gem::Version
232
+ version: 3.3.0
233
+ description: Ruby Object Database is designed for large amounts of data, whose structure
234
+ rarely changes.
214
235
  email:
215
236
  - apohllo@o2.pl
216
237
  executables: []
217
238
  extensions: []
218
239
  extra_rdoc_files: []
219
240
  files:
220
- - .gitignore
221
- - .travis.yml
241
+ - ".gitignore"
242
+ - ".travis.yml"
222
243
  - Gemfile
223
244
  - README.rdoc
224
245
  - Rakefile
@@ -332,26 +353,25 @@ homepage: http://github.com/apohllo/rod
332
353
  licenses:
333
354
  - http://opensource.org/licenses/MIT
334
355
  metadata: {}
335
- post_install_message:
356
+ post_install_message:
336
357
  rdoc_options:
337
- - --main
358
+ - "--main"
338
359
  - README.rdoc
339
360
  require_paths:
340
361
  - lib
341
362
  required_ruby_version: !ruby/object:Gem::Requirement
342
363
  requirements:
343
- - - '>='
364
+ - - ">="
344
365
  - !ruby/object:Gem::Version
345
366
  version: 1.9.2
346
367
  required_rubygems_version: !ruby/object:Gem::Requirement
347
368
  requirements:
348
- - - '>='
369
+ - - ">="
349
370
  - !ruby/object:Gem::Version
350
371
  version: '0'
351
372
  requirements: []
352
- rubyforge_project: rod
353
- rubygems_version: 2.1.9
354
- signing_key:
373
+ rubygems_version: 3.1.4
374
+ signing_key:
355
375
  specification_version: 4
356
376
  summary: Ruby Object Database
357
377
  test_files: []