mls 0.2.28 → 0.2.29

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.
@@ -81,7 +81,7 @@ class MLS::Address < MLS::Resource
81
81
  def to_hash
82
82
  hash = super
83
83
  hash[:photo_ids] = photos.map(&:id) if photos
84
- hash[:videos_attributes] = videos.map(&:to_hash) if videos
84
+ hash[:videos_attributes] = videos.map(&:to_hash) unless videos.blank?
85
85
  hash
86
86
  end
87
87
 
@@ -169,7 +169,7 @@ class MLS::Listing < MLS::Resource
169
169
  hash[:address_attributes] = address.to_hash if address
170
170
  hash[:agents_attributes] = agents.inject([]) { |acc, x| acc << x.to_hash; acc } if agents
171
171
  hash[:photo_ids] = photos.map(&:id) if photos
172
- hash[:videos_attributes] = videos.map(&:to_hash) if videos
172
+ hash[:videos_attributes] = videos.map(&:to_hash) unless videos.blank?
173
173
  hash
174
174
  end
175
175
 
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "mls"
6
- s.version = '0.2.28'
6
+ s.version = '0.2.29'
7
7
  s.authors = ["James R. Bracy", "Jon Bracy"]
8
8
  s.email = ["james@42floors.com"]
9
9
  s.homepage = "http://mls.42floors.com"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.28
4
+ version: 0.2.29
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-04 00:00:00.000000000 Z
13
+ date: 2013-02-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -283,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
283
283
  version: '0'
284
284
  requirements: []
285
285
  rubyforge_project: mls
286
- rubygems_version: 1.8.23
286
+ rubygems_version: 1.8.24
287
287
  signing_key:
288
288
  specification_version: 3
289
289
  summary: 42Floors MLS Client