lolcation_client 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lolcation_client/interceptor.rb +3 -4
- data/lib/lolcation_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae7f726733a482f11f52986405337237bf4f3b13
|
4
|
+
data.tar.gz: b05cdb76e8659f862df6ee679c2b907d4530eb86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ec338e49301a0637bf68b1cd4054a28acb01b222a448de66c7433722bb77f2998fad884aa1feb2945478f6ad37b082f6cea28d5d8c7df0b4109797a5095a21f
|
7
|
+
data.tar.gz: 262508aa1e0e05e0917d1fbd7e92799dd1acb18051197e3160908416cf68a97cfba91d1ef2768dcecf5bc1423c2d65235c588013717086b5366ab507b05c669c
|
@@ -31,10 +31,9 @@ module LolcationClient
|
|
31
31
|
json = JSON.parse(response.body, object_class: OpenStruct)
|
32
32
|
|
33
33
|
if json.success
|
34
|
-
self.lolcation_id
|
35
|
-
self.lolcation_latitude
|
36
|
-
self.lolcation_longitude
|
37
|
-
true
|
34
|
+
self.update_column(:lolcation_id , json.id)
|
35
|
+
self.update_column(:lolcation_latitude , json.latitude)
|
36
|
+
self.update_column(:lolcation_longitude, json.longitude)
|
38
37
|
else
|
39
38
|
json.errors.collect{|error| self.errors.add("lolcation_#{error.field}", error.message)}
|
40
39
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolcation_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduardo Zaghi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-09-
|
12
|
+
date: 2017-09-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|