reso 0.1.5.7 → 0.1.5.9
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 +4 -4
- data/lib/class_extensions.rb +3 -0
- data/lib/generators/reso/templates/create_offices.rb +2 -2
- data/lib/mapper/reso.rb +3 -2
- data/lib/reso/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 210e98011de56936b6b52fc772274922e598bf9d
|
4
|
+
data.tar.gz: 3c921015017e6047d8a3f74ce6fc0c168f489e7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87832ab64f454189b6ffac3beaf29224071ff45b22960ad12ff95b7afbd145bc67f28c50dd08857db355fa0e376645953a04c2a61ccdaf5de1b6dea6c11677c0
|
7
|
+
data.tar.gz: 52657cbf4191b9405272034173e2a84599e9fd80c4a3143454ecddd659247d7d15a31cdf7ec77bc9f317a391223111872571ad88cc0d57cd627865cc3567dba3
|
data/lib/class_extensions.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
class CreateOffices < ActiveRecord::Migration
|
2
2
|
def change
|
3
3
|
create_table :offices, options: 'DEFAULT CHARSET=utf8' do |t|
|
4
|
-
t.string :office_key
|
4
|
+
t.string :office_key
|
5
5
|
t.string :office_identifier, null: false
|
6
6
|
t.string :level
|
7
7
|
t.string :office_code_identifier
|
8
|
-
t.string :name
|
8
|
+
t.string :name
|
9
9
|
t.string :franchise_affiliation
|
10
10
|
t.string :corporate_name
|
11
11
|
t.string :broker_identifier
|
data/lib/mapper/reso.rb
CHANGED
@@ -377,7 +377,8 @@ module Mapper
|
|
377
377
|
end
|
378
378
|
|
379
379
|
def self.lot_size queued_listing, listing
|
380
|
-
Mapper::get_value(queued_listing, %w(LotSize))
|
380
|
+
value = Mapper::get_value(queued_listing, %w(LotSize))
|
381
|
+
value.to_s.to_f.zero? ? nil : value
|
381
382
|
end
|
382
383
|
|
383
384
|
def self.mls_number queued_listing, listing
|
@@ -425,7 +426,7 @@ module Mapper
|
|
425
426
|
if (result = Mapper::get_value(queued_listing, %w(Offices Office)))
|
426
427
|
office = Office.find_or_initialize_by(
|
427
428
|
office_identifier: result.drilldown('OfficeId'),
|
428
|
-
name: result.drilldown('Name')
|
429
|
+
name: result.drilldown('Name'))
|
429
430
|
)
|
430
431
|
office.assign_attributes({
|
431
432
|
office_key: result.drilldown('OfficeKey'),
|
data/lib/reso/version.rb
CHANGED
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.
|
4
|
+
version: 0.1.5.9
|
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-
|
11
|
+
date: 2015-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|