reso 0.1.4.2 → 0.1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6184b17068342703c8b54daa7cc18a9804dd90fc
4
- data.tar.gz: 7a21f8f0f306fdb79399a9daea3b2e49bf5af252
3
+ metadata.gz: ca58f3464ba417971d5acd3b87c679322a8e9d05
4
+ data.tar.gz: 916803a8d34eecf022bd895c6fddd8aaaa0e3f82
5
5
  SHA512:
6
- metadata.gz: 71686195435ed2ba88b2419329c1f87f9876bd90b323e6967c60b6c2324107709244790747cd38db076cac7d5605d454023a851e4c8fd4334e5b6bb4a7602c98
7
- data.tar.gz: d901b1482c0a6a8be75c520a34156d669d67ea39038b76ba00aea1ef648e9188dff55df4cc622977f90c827c4276626388c0c597086941c8a41856fd4a31d30a
6
+ metadata.gz: fbc863d0a0564216a93a74dcc06d26dfb17ce21d4034d2467bdc4910a807bbd6123a0f5abc742ec1a6b94a5afdfd022006bb986279707ffc13981b7d100f32a7
7
+ data.tar.gz: 8bbc41aae82a81f5c439184ee8aa4e45d8f91fecd8e0ebfbc90822ad658784b10c8f68b7a5af8da69957595e4af1fe2112332e15fe693a77a008d534788aa7dc
@@ -32,14 +32,16 @@ class Import < ActiveRecord::Base
32
32
  end
33
33
 
34
34
  def new_source_data_exists?
35
- self.source_data_modified.eql? self.source_url_last_modified ? false : true
35
+ (self.source_url_last_modified > self.source_data_modified) ? true : false
36
36
  end
37
37
 
38
38
  def run_import
39
39
  if self.status == 'active'
40
- unless self.new_source_data_exists?
40
+ if self.new_source_data_exists?
41
+
41
42
  self.update_attribute(:status, :running)
42
43
  source_data_modified = self.source_url_last_modified
44
+
43
45
  l, count, found_listing_keys, stream = 0, 0, [], ''
44
46
  open_tag, close_tag = get_open_and_closing_tag_for self.repeating_element
45
47
 
@@ -1,3 +1,3 @@
1
1
  module Reso
2
- VERSION = "0.1.4.2"
2
+ VERSION = "0.1.4.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.2
4
+ version: 0.1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Edlund
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-26 00:00:00.000000000 Z
11
+ date: 2015-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake