rod 0.7.4.1 → 0.7.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
- !binary "U0hBMQ==":
3
- metadata.gz: 8ef1038190c933014f9e10064aedec2cf43beeeb
4
- data.tar.gz: d819dbddefe0137bbb0083f83758408b569e7c53
2
+ SHA256:
3
+ metadata.gz: afe10c0ca8fa0a6368f22d7e53d44c79ab2dbf7f63a6789d5f21b63dece9b8ad
4
+ data.tar.gz: 3f67e8aa7e89b323bfab7ec58074632ff0958ebdc15c01514d7160e991663cf8
5
5
  SHA512:
6
- metadata.gz: 33429ef41e14881be813348e29c2b72d1dcd4544ab15033b4870c313e7e53eaab739173a5d903b766380f631870aec6a38e409f1645c4f897b2de889d8d70d73
7
- data.tar.gz: 412090427a79f0ed967259abe25cc39619095b79ec1ac2b48aa2ce4de1d42e4a83086e0d6cc5670497347cb341c19ab451bed55f383c033897ac6102986c705b
6
+ metadata.gz: 22bcbceb8bbad82896fa1f32248fbb2049a4c0df0295c0c780d3a18bb7f2dcd3e021bf3c9b3a5e6b84b15d9bfa46af03556d5ffbbab7eea52b2d6b1a969f066b
7
+ data.tar.gz: 5fc67a74d13127de1c57074ada42eb36ec247f0c90740790a0dfbc63500a13fddc13837bee8cd876ca5a9f0a3820672a3d7b622973359c521b46928569266d30
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
@@ -178,7 +178,6 @@ module Rod
178
178
  |unsigned long _next(VALUE transaction,int delta,VALUE options){
179
179
  | DB_SEQUENCE *seq_pointer;
180
180
  | DB_TXN *txn_pointer;
181
- | int return_value;
182
181
  | db_seq_t next_value;
183
182
  | u_int32_t flags;
184
183
  |
@@ -192,10 +191,10 @@ module Rod
192
191
  | flags |= DB_TXN_NOSYNC;
193
192
  | }
194
193
  | if(NIL_P(transaction)){
195
- | return_value = seq_pointer->get(seq_pointer,NULL,(int32_t)delta,&next_value,flags);
194
+ | seq_pointer->get(seq_pointer,NULL,(int32_t)delta,&next_value,flags);
196
195
  | } else {
197
196
  | Data_Get_Struct(transaction,DB_TXN,txn_pointer);
198
- | return_value = seq_pointer->get(seq_pointer,txn_pointer,(int32_t)delta,&next_value,flags);
197
+ | seq_pointer->get(seq_pointer,txn_pointer,(int32_t)delta,&next_value,flags);
199
198
  | }
200
199
  | return (unsigned long)next_value;
201
200
  |}
@@ -208,7 +207,6 @@ module Rod
208
207
  |*/
209
208
  |void _close(){
210
209
  | DB_SEQUENCE * seq_pointer;
211
- | int return_value;
212
210
  |
213
211
  | Data_Get_Struct(self,DB_SEQUENCE,seq_pointer);
214
212
  | seq_free(seq_pointer);
data/lib/rod/constants.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Rod
2
- VERSION = "0.7.4.1"
2
+ VERSION = "0.7.4.3"
3
3
 
4
4
  # The name of file containing the data base.
5
5
  DATABASE_FILE = "database.yml"
@@ -80,7 +80,7 @@ module Rod
80
80
  if options[:class_name]
81
81
  options[:class_name]
82
82
  else
83
- "#{@klass.scope_name}::#{::English::Inflect.singular(name).camelcase}"
83
+ "#{@klass.scope_name}::#{::Strings::Inflection.singularize(name).camelcase}"
84
84
  end
85
85
  klass = options[:polymorphic] ? nil : class_name.constantize
86
86
  database = @klass.database
data/lib/rod.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'inline'
2
- require 'english/inflect'
2
+ require 'strings-inflection'
3
3
  require 'active_support/deprecation'
4
4
  require 'active_model/validator'
5
5
  require 'active_model/naming'
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("strings-inflection", [">= 0.1.0","< 0.2.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,215 +1,235 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4.1
4
+ version: 0.7.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksander Pohl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-15 00:00:00.000000000 Z
11
+ date: 2024-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: RubyInline
15
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
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ! '>='
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: 3.10.0
30
- - - <
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 4.0.0
33
33
  - !ruby/object:Gem::Dependency
34
- name: english
34
+ name: strings-inflection
35
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.1.0
40
+ - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: 0.6.0
42
+ version: 0.2.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ! '>='
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 0.5.0
50
- - - <
49
+ version: 0.1.0
50
+ - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: 0.6.0
52
+ version: 0.2.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: activemodel
55
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
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '3.2'
70
- - - ! '>='
70
+ - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: 3.2.2
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: bsearch
75
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
83
  type: :runtime
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: 1.5.0
90
- - - <
90
+ - - "<"
91
91
  - !ruby/object:Gem::Version
92
92
  version: 1.6.0
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: ref
95
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
103
  type: :runtime
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ! '>='
107
+ - - ">="
108
108
  - !ruby/object:Gem::Version
109
109
  version: 1.0.5
110
- - - <
110
+ - - "<"
111
111
  - !ruby/object:Gem::Version
112
112
  version: 2.0.0
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: cucumber
115
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
123
  type: :development
124
124
  prerelease: false
125
125
  version_requirements: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - ~>
127
+ - - "~>"
128
128
  - !ruby/object:Gem::Version
129
129
  version: '1.0'
130
- - - ! '>='
130
+ - - ">="
131
131
  - !ruby/object:Gem::Version
132
132
  version: 1.0.0
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: rspec
135
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
143
  type: :development
144
144
  prerelease: false
145
145
  version_requirements: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - ! '>='
147
+ - - ">="
148
148
  - !ruby/object:Gem::Version
149
149
  version: 2.2.0
150
- - - <
150
+ - - "<"
151
151
  - !ruby/object:Gem::Version
152
152
  version: 2.3.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rake
155
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
163
  type: :development
164
164
  prerelease: false
165
165
  version_requirements: !ruby/object:Gem::Requirement
166
166
  requirements:
167
- - - ! '>='
167
+ - - ">="
168
168
  - !ruby/object:Gem::Version
169
169
  version: 0.9.0
170
- - - <
170
+ - - "<"
171
171
  - !ruby/object:Gem::Version
172
172
  version: 1.0.0
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: minitest
175
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
183
  type: :development
184
184
  prerelease: false
185
185
  version_requirements: !ruby/object:Gem::Requirement
186
186
  requirements:
187
- - - ~>
187
+ - - "~>"
188
188
  - !ruby/object:Gem::Version
189
189
  version: '4.0'
190
- - - ! '>='
190
+ - - ">="
191
191
  - !ruby/object:Gem::Version
192
192
  version: 4.0.0
193
193
  - !ruby/object:Gem::Dependency
194
194
  name: mocha
195
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
203
  type: :development
204
204
  prerelease: false
205
205
  version_requirements: !ruby/object:Gem::Requirement
206
206
  requirements:
207
- - - ~>
207
+ - - "~>"
208
208
  - !ruby/object:Gem::Version
209
209
  version: '0.9'
210
- - - ! '>='
210
+ - - ">="
211
211
  - !ruby/object:Gem::Version
212
212
  version: 0.9.12
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
223
+ type: :development
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
213
233
  description: Ruby Object Database is designed for large amounts of data, whose structure
214
234
  rarely changes.
215
235
  email:
@@ -218,8 +238,8 @@ executables: []
218
238
  extensions: []
219
239
  extra_rdoc_files: []
220
240
  files:
221
- - .gitignore
222
- - .travis.yml
241
+ - ".gitignore"
242
+ - ".travis.yml"
223
243
  - Gemfile
224
244
  - README.rdoc
225
245
  - Rakefile
@@ -335,25 +355,23 @@ licenses:
335
355
  metadata: {}
336
356
  post_install_message:
337
357
  rdoc_options:
338
- - --main
358
+ - "--main"
339
359
  - README.rdoc
340
360
  require_paths:
341
361
  - lib
342
362
  required_ruby_version: !ruby/object:Gem::Requirement
343
363
  requirements:
344
- - - ! '>='
364
+ - - ">="
345
365
  - !ruby/object:Gem::Version
346
366
  version: 1.9.2
347
367
  required_rubygems_version: !ruby/object:Gem::Requirement
348
368
  requirements:
349
- - - ! '>='
369
+ - - ">="
350
370
  - !ruby/object:Gem::Version
351
371
  version: '0'
352
372
  requirements: []
353
- rubyforge_project: rod
354
- rubygems_version: 2.2.2
373
+ rubygems_version: 3.1.4
355
374
  signing_key:
356
375
  specification_version: 4
357
376
  summary: Ruby Object Database
358
377
  test_files: []
359
- has_rdoc: