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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c72f2ff31f2b0c3194da1a52350e269cde8f0c8
4
- data.tar.gz: dceb1c67143dd30e20424061bfb08e5ac50b3666
3
+ metadata.gz: ae7f726733a482f11f52986405337237bf4f3b13
4
+ data.tar.gz: b05cdb76e8659f862df6ee679c2b907d4530eb86
5
5
  SHA512:
6
- metadata.gz: 89e713c5c201d2151849c52477c3654a566d53f94eaa492c26c02b241c529728a140af4cb2313c2736ce64fcce7637a496e636a595198d94f7d62f829bdebadb
7
- data.tar.gz: dce53205b5a06d65b909aa5f5cd756ec26e2791b5d2a3215019fafa7d9b38fc268e89b694983ecff846b6612106a2fba6929256d08660b733b1e9bf5cf5e3af2
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 = json.id
35
- self.lolcation_latitude = json.latitude
36
- self.lolcation_longitude = json.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
 
@@ -1,3 +1,3 @@
1
1
  module LolcationClient
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
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.6
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-19 00:00:00.000000000 Z
12
+ date: 2017-09-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler