g5_updatable 0.7.1 → 0.7.2

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: 43f06bc38ca96cb022b56ce87834f37552738d9f
4
- data.tar.gz: e0379ee13b9fcd04e1ae7c3937a811b6fe1c0a00
3
+ metadata.gz: ed3729a2c43c76cf6b8f7a3d524d3dc3f36116bb
4
+ data.tar.gz: be1fccc6ff748ebf1e5fd0bc10274d70eb4bcff7
5
5
  SHA512:
6
- metadata.gz: f7c00575e9cf9da95dd2a9d118a48d1b9663678fc2fa94e83e4ebb0e6ef4081130dc0fa8fbc84a3822710e3c8af859e8629f499d9b6bbdb0fe110fc206d76958
7
- data.tar.gz: fa948d41fcfab80831224df7acad35d7e87a02f50a86dae62a97156fafe5f1a602538c34549e4210b9db17f8d7be9d964f5c1ed447b5165120c7f1af1e94e98c
6
+ metadata.gz: f0232b66bef9d00db3a4aa8a7b81d3377d9bdcaf36023f90306066f4ac99bff710ce9aa14bd4bbc60d381ce5bc0deea72cc97506360c8ff2f722c22ac84a5da1
7
+ data.tar.gz: 79be6ff822de0809abdffd5e0f926da033656f0767fbdbf22d2aed94e6eb8be0f96971df6d6e5b51d2892a3a420e46ee6380a322f65fad5486f6c11f632a0ba8
@@ -20,14 +20,15 @@ class G5Updatable::LocationsUpdater
20
20
  @g5_locations.each do |g5_location|
21
21
  attributes = g5_location.location_hash.dup
22
22
  location = G5Updatable::Location.
23
- find_or_initialize_by(uid: attributes[:uid]).
24
- update_attributes!(
25
- urn: attributes[:urn],
26
- name: attributes[:name],
27
- client_uid: attributes[:client_uid],
28
- properties: attributes,
29
- updated_at: DateTime.now
30
- )
23
+ find_or_initialize_by(uid: attributes[:uid])
24
+
25
+ location.update_attributes!(
26
+ urn: attributes[:urn],
27
+ name: attributes[:name],
28
+ client_uid: attributes[:client_uid],
29
+ properties: attributes,
30
+ updated_at: DateTime.now
31
+ )
31
32
  self.class.on_update_callbacks.each { |cb| cb.call(location) }
32
33
  end
33
34
  destroy_orphaned_locations!
@@ -1,3 +1,3 @@
1
1
  module G5Updatable
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -1,9 +1,9 @@
1
1
  development:
2
2
  adapter: postgresql
3
3
  database: g5_updatable_dummy_development
4
-
4
+ user: vagrant
5
5
 
6
6
  test:
7
7
  adapter: postgresql
8
8
  database: g5_updatable_dummy_test
9
-
9
+ user: vagrant