rentlinx 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rentlinx/modules/photo_client_methods.rb +4 -4
- data/lib/rentlinx/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: 7c4c82401201b6ad6f998bdbc418d05f5a384cf4
|
4
|
+
data.tar.gz: 1e61f78593e5d405c3f1df858dfb2a67efa00326
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e98fcebad846c67cb45f6dfef0c7225b0c00029d0e6b3ffa6845a565a5137f7d720a72804ff63f08360a2440433a01cf7926b0d6d56b384edf2e3a2e16c13c9c
|
7
|
+
data.tar.gz: e1f7c46e79a89598c968fcd639d54acf132ae5d009dc4bd446ef5e0a966cea7a7a53cadaa5dcd35a2454bbe9b511a1cae432552fd7d6e7f81478d52929a93427
|
@@ -3,7 +3,7 @@ module Rentlinx
|
|
3
3
|
def post_photos(photos)
|
4
4
|
return false unless photos.all?(&:valid?)
|
5
5
|
return false unless photos.all? { |p| p.propertyID == photos.first.propertyID }
|
6
|
-
property_photos = photos.select { |p| p.
|
6
|
+
property_photos = photos.select { |p| p.class == Rentlinx::PropertyPhoto }
|
7
7
|
unit_photos = photos - property_photos
|
8
8
|
|
9
9
|
post_property_photos(property_photos) unless property_photos.empty?
|
@@ -24,12 +24,12 @@ module Rentlinx
|
|
24
24
|
|
25
25
|
def unpost_photo(photo)
|
26
26
|
case photo
|
27
|
-
when Rentlinx::PropertyPhoto
|
28
|
-
unpost_property_photo(photo.propertyID, photo.url)
|
29
27
|
when Rentlinx::UnitPhoto
|
30
28
|
unpost_unit_photo(photo.unitID, photo.url)
|
29
|
+
when Rentlinx::PropertyPhoto
|
30
|
+
unpost_property_photo(photo.propertyID, photo.url)
|
31
31
|
else
|
32
|
-
raise TypeError, "Invalid type: #{
|
32
|
+
raise TypeError, "Invalid type: #{photo.class}"
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
data/lib/rentlinx/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rentlinx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AppFolio, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|