LVS-JSONService 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.specification +1 -1
- data/LVS-JSONService.gemspec +1 -1
- data/VERSION +1 -1
- data/lib/lvs/json_service/base.rb +6 -6
- metadata +1 -1
data/.specification
CHANGED
data/LVS-JSONService.gemspec
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
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
|
168
|
-
|
169
|
-
|
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
|