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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abe69ba3d8d916419927c5594f19421d9e1011cf
4
- data.tar.gz: 61e3cf2e83104c42c789754f269052dc2eedd173
3
+ metadata.gz: 7c4c82401201b6ad6f998bdbc418d05f5a384cf4
4
+ data.tar.gz: 1e61f78593e5d405c3f1df858dfb2a67efa00326
5
5
  SHA512:
6
- metadata.gz: aad4c7a1bc61e270bec27aae62e15d4a8473ef3dadcb14f44fbfe5e2e72da7818b5729e9812af4257a70ec08eedb120a8e68705f198f125f7788a965915180e1
7
- data.tar.gz: 513b90f3c2f2d95a5f002758bbd2819601bd55f2a6c7b948e54e5b4a7483b87a081209eb995586a94c5b29b939c4d85cd216279e50b3f72a3b747157776ff938
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.is_a? Rentlinx::PropertyPhoto }
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: #{type}"
32
+ raise TypeError, "Invalid type: #{photo.class}"
33
33
  end
34
34
  end
35
35
 
@@ -1,3 +1,3 @@
1
1
  module Rentlinx
2
- VERSION = '0.6.2'
2
+ VERSION = '0.6.3'
3
3
  end
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.2
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-22 00:00:00.000000000 Z
11
+ date: 2015-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient