LVS-JSONService 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: LVS-JSONService
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  require_paths:
6
6
  - lib
7
7
  platform: ruby
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{LVS-JSONService}
5
- s.version = "0.3.5"
5
+ s.version = "0.3.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["LVS", "andyjeffries"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.5
1
+ 0.3.6
@@ -164,11 +164,11 @@ module LVS
164
164
 
165
165
  def value_for_key(key)
166
166
  value = @data[key]
167
- if value.blank?
168
- key[0..0] = key[0..0].upcase # TODO: This feels like an awful hack, but having a day when nothing's working
169
- value = @data[key]
167
+ if @data.has_key?(key)
168
+ value
169
+ else
170
+ @data[key.camelize]
170
171
  end
171
- value
172
172
  end
173
173
 
174
174
  def method_missing(name, *args)
@@ -199,10 +199,10 @@ module LVS
199
199
  end
200
200
  if value.nil?
201
201
  if self.class.ignore_missing
202
- self.class.debug("Method #{name} called on #{self.class} but is non-existant, returned nil")
202
+ self.class.debug("Method #{name} with key #{key} called on #{self.class} but is non-existant, returned nil")
203
203
  return nil
204
204
  else
205
- raise NoMethodError.new("Method #{name} called on #{self.class} but is non-existant, returned nil")
205
+ raise NoMethodError.new("Method #{name} with key #{key} called on #{self.class} but is non-existant, returned nil")
206
206
  end
207
207
  end
208
208
  value
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: LVS-JSONService
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - LVS