rod 0.7.4.2 → 0.7.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rod/berkeley/sequence.rb +2 -4
- data/lib/rod/constants.rb +1 -1
- data/lib/rod/property/plural_association.rb +1 -1
- data/lib/rod.rb +1 -1
- data/rod.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afe10c0ca8fa0a6368f22d7e53d44c79ab2dbf7f63a6789d5f21b63dece9b8ad
|
4
|
+
data.tar.gz: 3f67e8aa7e89b323bfab7ec58074632ff0958ebdc15c01514d7160e991663cf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22bcbceb8bbad82896fa1f32248fbb2049a4c0df0295c0c780d3a18bb7f2dcd3e021bf3c9b3a5e6b84b15d9bfa46af03556d5ffbbab7eea52b2d6b1a969f066b
|
7
|
+
data.tar.gz: 5fc67a74d13127de1c57074ada42eb36ec247f0c90740790a0dfbc63500a13fddc13837bee8cd876ca5a9f0a3820672a3d7b622973359c521b46928569266d30
|
@@ -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
|
-
|
|
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
|
-
|
|
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
@@ -80,7 +80,7 @@ module Rod
|
|
80
80
|
if options[:class_name]
|
81
81
|
options[:class_name]
|
82
82
|
else
|
83
|
-
"#{@klass.scope_name}::#{::
|
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
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("
|
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"])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.4.
|
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:
|
11
|
+
date: 2024-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: RubyInline
|
@@ -31,25 +31,25 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 4.0.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
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.
|
39
|
+
version: 0.1.0
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 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.
|
49
|
+
version: 0.1.0
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: 0.
|
52
|
+
version: 0.2.0
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: activemodel
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|