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: 9dc234f45b806642204f618570deacc29862937e
4
- data.tar.gz: 7d16c46d161ae84943bf9a1bbf8005e8f8db3d7f
3
+ metadata.gz: 6d9aa7dcec30ecde2cf8042844bcd9bbf1b59163
4
+ data.tar.gz: 480f55965c718158eef9a944b49c694d69a27cb1
5
5
  SHA512:
6
- metadata.gz: cb5e85c775bc1aa20573da21f094cd93c003d0480a8eadf8b889e60c6e5bdcc330bec7320db7eff0d4b3b81880d39dbb86fce7bea88469c57c77ec84960397c9
7
- data.tar.gz: cbc06aff0918a7657cebc9c8d08d567d06fae629aa3f9e2f0447d3608e6f7ebd7d860ec24711014a4fb21c2f2a83a9f73a2b98f8b726afbbc4ffdeea4c8d2a10
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
@@ -1,3 +1,3 @@
1
1
  module G5IntegrationsUpdatable
2
- VERSION = '0.0.9'
2
+ VERSION = '0.1.0'
3
3
  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.9
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-01-21 00:00:00.000000000 Z
11
+ date: 2015-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails