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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0d57873f671e23905136f38e1d8ba889a017d06bbee12c96c0d100a655ddbb9
4
- data.tar.gz: e035c46a6bd28ad56b0f9beda7d5ead57e7a4ca14479526bca77c13486455c99
3
+ metadata.gz: afe10c0ca8fa0a6368f22d7e53d44c79ab2dbf7f63a6789d5f21b63dece9b8ad
4
+ data.tar.gz: 3f67e8aa7e89b323bfab7ec58074632ff0958ebdc15c01514d7160e991663cf8
5
5
  SHA512:
6
- metadata.gz: fe970e9eef5fbd34780b62ab2be50ef88408923a2835be1d9fbe9c077e5c25f3027272c8274e2ccf01fd88cdf4814256762cae8133f5aebc4c2cef0d02c11c6d
7
- data.tar.gz: bda5a7889d76254306f9ab0c19bda83fc7dc342cc82a914372de5eedb400ae93f493fecc9c2b6803a1ac3fae7cec19b76ed0fe88dc2488e3fcd8de50b1783278
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
- | 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.2"
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.7.0","< 0.8.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"])
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.2
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: 2023-10-04 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
@@ -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: 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.7.0
39
+ version: 0.1.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: 0.8.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.7.0
49
+ version: 0.1.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: 0.8.0
52
+ version: 0.2.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: activemodel
55
55
  requirement: !ruby/object:Gem::Requirement