baza 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.10
1
+ 0.0.11
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "baza"
8
- s.version = "0.0.10"
8
+ s.version = "0.0.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kasper Johansen"]
12
- s.date = "2013-05-16"
12
+ s.date = "2013-05-17"
13
13
  s.description = "A database abstraction layer, model framework and database framework."
14
14
  s.email = "kj@gfish.com"
15
15
  s.extra_rdoc_files = [
@@ -28,7 +28,6 @@ Gem::Specification.new do |s|
28
28
  "baza.gemspec",
29
29
  "include/db.rb",
30
30
  "include/dbtime.rb",
31
- "include/drivers/.DS_Store",
32
31
  "include/drivers/mysql/mysql.rb",
33
32
  "include/drivers/mysql/mysql_columns.rb",
34
33
  "include/drivers/mysql/mysql_indexes.rb",
@@ -151,7 +151,7 @@ class Baza::Model
151
151
  end
152
152
 
153
153
  raise "No classname given." if !classname
154
- methodname = "#{classname.to_s.downcase}s".to_sym if !methodname
154
+ methodname = "#{StringCases.camel_to_snake(classname)}s".to_sym if !methodname
155
155
  raise "No column was given for '#{self.name}' regarding has-many-class: '#{classname}'." if !colname
156
156
 
157
157
  if val.is_a?(Hash) and val.key?(:where)
@@ -226,7 +226,7 @@ class Baza::Model
226
226
  raise "Unknown argument-type: '#{arr.class.name}'."
227
227
  end
228
228
 
229
- methodname = classname.to_s.downcase if !methodname
229
+ methodname = StringCases.camel_to_snake(classname) if !methodname
230
230
  colname = "#{classname.to_s.downcase}_id".to_sym if !colname
231
231
  self.define_one_methods(classname, methodname, colname)
232
232
 
@@ -882,14 +882,4 @@ class Baza::Model
882
882
 
883
883
  return attrs
884
884
  end
885
-
886
- private
887
-
888
- def str_snake_to_camel(str)
889
-
890
- end
891
-
892
- def str_camel_to_snake(str)
893
-
894
- end
895
885
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: baza
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.10
5
+ version: 0.0.11
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kasper Johansen
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-16 00:00:00.000000000 Z
12
+ date: 2013-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  version_requirements: !ruby/object:Gem::Requirement
@@ -206,7 +206,6 @@ files:
206
206
  - baza.gemspec
207
207
  - include/db.rb
208
208
  - include/dbtime.rb
209
- - include/drivers/.DS_Store
210
209
  - include/drivers/mysql/mysql.rb
211
210
  - include/drivers/mysql/mysql_columns.rb
212
211
  - include/drivers/mysql/mysql_indexes.rb
@@ -250,7 +249,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
250
249
  - !ruby/object:Gem::Version
251
250
  segments:
252
251
  - 0
253
- hash: 2079390994227772700
252
+ hash: 2453042762311867142
254
253
  version: '0'
255
254
  required_rubygems_version: !ruby/object:Gem::Requirement
256
255
  none: false
Binary file