g5_integrations_updatable 0.0.9 → 0.1.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d9aa7dcec30ecde2cf8042844bcd9bbf1b59163
|
4
|
+
data.tar.gz: 480f55965c718158eef9a944b49c694d69a27cb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dff100bf76e11421442dcedb9d65bd2d4dc3a96522ae8bc6dcd8beda7d101a094df7c3ce1db5c7b6e0e0376fc9ccc71bf9090ffdcccb5e39d67636f4f5084fb
|
7
|
+
data.tar.gz: d346baaa0440110baa0b4ea9b3c7f8253f8c957710837fb4d61c55abc986ac62ba998d5995efa73c36685e0d3a804fe1befb0ccf6d204460e8c1deb7283ef921
|
@@ -10,7 +10,6 @@ module G5IntegrationsUpdatable
|
|
10
10
|
def load_all_settings(all_uri)
|
11
11
|
result_hash = G5IntegrationsUpdatable::FeedFetcher.new(all_uri).process
|
12
12
|
G5IntegrationsUpdatable::LocationSetting.transaction do
|
13
|
-
destroy_existing result_hash
|
14
13
|
find_or_create_all result_hash
|
15
14
|
end
|
16
15
|
end
|
@@ -21,6 +20,7 @@ module G5IntegrationsUpdatable
|
|
21
20
|
end
|
22
21
|
|
23
22
|
def find_or_create_all(feed_array)
|
23
|
+
destroy_existing(feed_array)
|
24
24
|
feed_array.each do |location_setting_hash|
|
25
25
|
G5IntegrationsUpdatable::LocationSetting.find_or_create_from_feed(location_setting_hash)
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: g5_integrations_updatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perry Hertler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|