caboose-rets 0.1.29 → 0.1.30

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
- SHA1:
3
- metadata.gz: dc4120a3dac2c110af9699822e797bb84a7c8b76
4
- data.tar.gz: 77a150147f86a51163a4e4a1044023f5dbe4aa8c
2
+ SHA256:
3
+ metadata.gz: a686846b3cea2627eef00f80be9455f4bd67a414e0b12136becfd08f5d184c94
4
+ data.tar.gz: a93422bfb3ec035d70549208c55ed97c8156afebb09a2957a93a1b5886410f3c
5
5
  SHA512:
6
- metadata.gz: 44190ca24b48f9640c79272ba969973acd39a303dbd340d8aaee36de3e76484a0d8c2c854990f19ee0c4c60528793de5916a1861b0d7398978db6c784a35a982
7
- data.tar.gz: 2ca6eb43b5a4e5a3cd5c42d6d72af6699c5c7618f3bb408f91cac8adc2bbefe4c3b5acff872a32ea51e9287ab5146bbfb60b3c55a5fcaf6b5776a492438564e7
6
+ metadata.gz: c03936d010fdf016fa8843c5eab9f74ac526e82398fecc38afc17808cae0fac62cfd63b0093b51a6fb120cec8675370a005b74ea6c14fd432b42ec854b1fa735
7
+ data.tar.gz: 7d4655c18173a3fa59feb4c62dd898fe86295f149381f87dcd258250af3e0f97108e54e19526c2d11ac5296cbfca3adc9eed12c3a164598e758d23839385aa8b
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.1.29'
2
+ VERSION = '0.1.30'
3
3
  end
@@ -65,6 +65,16 @@ namespace :caboose_rets do
65
65
  CabooseRets::RetsImporter.download_property_images(p)
66
66
  end
67
67
 
68
+ desc "Reimports Property Images"
69
+ task :reimport_property_images => :environment do
70
+ props = CabooseRets::Property.all
71
+ props.each do |p|
72
+ CabooseRets::RetsImporter.log("- Reimporting images for #{p.matrix_unique_id}...")
73
+ CabooseRets::Media.where(:media_mui => p.matrix_unique_id, :media_type => 'Photo').destroy_all
74
+ CabooseRets::RetsImporter.download_property_images(p)
75
+ end
76
+ end
77
+
68
78
  desc "Import rets data"
69
79
  task :import => :environment do
70
80
  CabooseRets::RetsImporter.import('Agent' , "(Matrix_Unique_ID=0+)")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-rets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.29
4
+ version: 0.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-22 00:00:00.000000000 Z
11
+ date: 2018-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caboose-cms
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  requirements: []
153
153
  rubyforge_project:
154
- rubygems_version: 2.2.0
154
+ rubygems_version: 2.7.7
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: Library to download RETS data to a local website.