cb-api 0.0.6 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/cb/utils/api.rb CHANGED
@@ -49,7 +49,8 @@ module Cb::Utils
49
49
  criteria.instance_variables.each do |var|
50
50
  var_name = var.to_s
51
51
  var_name.slice!(0)
52
- var_name_hash_safe = var_name.camelize
52
+ # var_name_hash_safe = var_name.camelize
53
+ var_name_hash_safe = var_name
53
54
  params["#{var_name_hash_safe}"] = criteria.instance_variable_get(var)
54
55
  end
55
56
  end
@@ -1,10 +1,10 @@
1
- class String
1
+ # class String
2
2
 
3
- # Modified from Rails ActiveSupport::Inflector
4
- # Source: activesupport/lib/active_support/inflector/methods.rb, line 55
5
- # Documentation: http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html#method-i-camelize
6
- def camelize()
7
- self.sub!(/^[a-z\d]*/) { $&.capitalize }
8
- self.gsub(/(?:_|(\/))([a-z\d]*)/) { "#{$2.capitalize}" }.gsub('/', '::')
9
- end
10
- end
3
+ # # Modified from Rails ActiveSupport::Inflector
4
+ # # Source: activesupport/lib/active_support/inflector/methods.rb, line 55
5
+ # # Documentation: http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html#method-i-camelize
6
+ # def camelize()
7
+ # self.sub!(/^[a-z\d]*/) { $&.capitalize }
8
+ # self.gsub(/(?:_|(\/))([a-z\d]*)/) { "#{$2.capitalize}" }.gsub('/', '::')
9
+ # end
10
+ # end
data/lib/cb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cb
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cb-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: '0.10'
22
+ version: 0.11.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ~>
29
29
  - !ruby/object:Gem::Version
30
- version: '0.10'
30
+ version: 0.11.0
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: json
33
33
  requirement: !ruby/object:Gem::Requirement