reso 0.1.5.0 → 0.1.5.1

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: 1b9f3bc6097547cba1556a10231f8934bb28725c
4
- data.tar.gz: 49101dfc6562d4c22cd43b7f98c76e7bc3bae151
3
+ metadata.gz: b81542f3434718e37525f9c8c524702f20ee43bc
4
+ data.tar.gz: 0ee2d2b74b4fe0e05227c0382120c8617878b67c
5
5
  SHA512:
6
- metadata.gz: 7678896e82488361c4eda64b17af4da460c01f7ea3e2b18c817c0aa6415ffb6bc756c52e93f49fd52ca13641ec3ad8c84e481521675a208e6035bb7b83938076
7
- data.tar.gz: e4a6f4848989f1ad47cae211709961302d4afbce9e48ff031637ac6e40afc57a24db86b3034efd3e06d35b6715f0b6ebfa1d540ac6d7cf272719865255f45f0a
6
+ metadata.gz: e6f94b6095e9eff456279a4276b97ccfd252294cadfe0b11b375533d11635427a2fceab1cbc2469eb89df5dad5fcda1f6bc9f3156f777272ee2b85d113e7041d
7
+ data.tar.gz: 7ea8b91964402f3dad7760b97ee354e55e93f5e102c8c268223174ddd4603f9ec95231bec472403d6ba8b58051af117610be61930631b458af262fca0917e485
data/app/models/import.rb CHANGED
@@ -66,12 +66,13 @@ class Import < ActiveRecord::Base
66
66
  xml = stream[from_here..to_there + (close_tag.length-1)]
67
67
  doc = Nokogiri::XML([xml_header, xml].join).remove_namespaces!
68
68
  found_listing_keys << create_queued_listing_and_return_listing_key(doc, self)
69
+ import_result.update_attribute(:found_listing_keys, found_listing_keys)
69
70
  stream.gsub!(xml, '')
70
71
  if ((l += 1) % 100).zero?
71
72
  GC.start
72
73
  snapshots << [l, l/(Time.now - start_time)]
73
74
  import_result.update_attribute(:snapshots, snapshots)
74
- puts snapshots.inspect if Rails.env.development?
75
+ puts snapshots.last.inspect if Rails.env.development?
75
76
  end
76
77
  end
77
78
  end
@@ -5,9 +5,9 @@ class CreateImportResults < ActiveRecord::Migration
5
5
  t.datetime :source_data_modified
6
6
  t.datetime :start_time
7
7
  t.datetime :end_time
8
- t.text :found_listing_keys
9
- t.text :removed_listing_keys
10
- t.text :snapshots
8
+ t.text :found_listing_keys, :limit => 4294967295
9
+ t.text :removed_listing_keys, :limit => 4294967295
10
+ t.text :snapshots, :limit => 4294967295
11
11
 
12
12
  t.timestamps null: false
13
13
  end
data/lib/mapper/reso.rb CHANGED
@@ -332,7 +332,7 @@ module Mapper
332
332
  result.map do |item|
333
333
  listing.send(elements.last.tableize).find_or_initialize_by(
334
334
  media_url: item.drilldown('MediaURL'),
335
- media_modification_timestamp: item.drilldown('MediaModificationTimestamp'),
335
+ media_modification_timestamp: Chronic::parse(item.drilldown('MediaModificationTimestamp')),
336
336
  media_order_number: item.drilldown('MediaOrderNumber'),
337
337
  media_caption: item.drilldown('MediaCaption'),
338
338
  media_description: item.drilldown('MediaDescription')
data/lib/reso/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Reso
2
- VERSION = "0.1.5.0"
2
+ VERSION = "0.1.5.1"
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.5.0
4
+ version: 0.1.5.1
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-09-01 00:00:00.000000000 Z
11
+ date: 2015-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake