mls 0.2.8 → 0.2.8.1
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.
- data/lib/mls/models/listing.rb +0 -3
- data/lib/mls/models/{PDF.rb → pdf.rb} +0 -0
- data/mls.gemspec +1 -1
- data/test/factories/listing.rb +0 -1
- data/test/units/models/test_listing.rb +0 -10
- metadata +2 -2
data/lib/mls/models/listing.rb
CHANGED
@@ -37,8 +37,6 @@ class MLS::Listing < MLS::Resource
|
|
37
37
|
property :rate_per_year, Decimal, :serialize => :false
|
38
38
|
property :total_rate_per_month, Decimal, :serialize => :false
|
39
39
|
property :total_rate_per_year, Decimal, :serialize => :false
|
40
|
-
property :tenant_improvements, String, :serialize => :if_present
|
41
|
-
property :nnn_expenses, Decimal
|
42
40
|
property :sublease_expiration, DateTime
|
43
41
|
|
44
42
|
property :available_on, DateTime
|
@@ -48,7 +46,6 @@ class MLS::Listing < MLS::Resource
|
|
48
46
|
property :offices, Fixnum
|
49
47
|
property :conference_rooms, Fixnum
|
50
48
|
property :bathrooms, Fixnum
|
51
|
-
property :desks, Fixnum
|
52
49
|
|
53
50
|
property :kitchen, Boolean
|
54
51
|
property :showers, Boolean
|
File without changes
|
data/mls.gemspec
CHANGED
data/test/factories/listing.rb
CHANGED
@@ -21,7 +21,6 @@ FactoryGirl.define do
|
|
21
21
|
#lease_type { ::MLS::Listing::LEASE_TYPES.sample }
|
22
22
|
space_type 'unit'
|
23
23
|
rate { rand(15..300) }
|
24
|
-
nnn_expenses { |l| l.lease_type == 'NNN' ? Kernel.rand(15..200) : nil }
|
25
24
|
available_on { Time.now + (20 + rand(0..360).to_i).days }
|
26
25
|
sublease_expiration { |l| l.sublease? ? (l.available_on + (30 + Kernel.rand(10..360)).days) : nil }
|
27
26
|
name { |l| l.kind == 'coworking' ? Faker::Name.name : nil }
|
@@ -25,8 +25,6 @@ class TestListing < ::Test::Unit::TestCase
|
|
25
25
|
assert listing.respond_to?(:rate_units)
|
26
26
|
assert listing.respond_to?(:rate_per_month)
|
27
27
|
assert listing.respond_to?(:rate_per_year)
|
28
|
-
assert listing.respond_to?(:tenant_improvements)
|
29
|
-
assert listing.respond_to?(:nnn_expenses)
|
30
28
|
assert listing.respond_to?(:sublease_expiration)
|
31
29
|
assert listing.respond_to?(:available_on)
|
32
30
|
assert listing.respond_to?(:maximum_term_length)
|
@@ -34,21 +32,13 @@ class TestListing < ::Test::Unit::TestCase
|
|
34
32
|
assert listing.respond_to?(:offices)
|
35
33
|
assert listing.respond_to?(:conference_rooms)
|
36
34
|
assert listing.respond_to?(:bathrooms)
|
37
|
-
assert listing.respond_to?(:desks)
|
38
35
|
assert listing.respond_to?(:kitchen)
|
39
36
|
assert listing.respond_to?(:showers)
|
40
|
-
assert listing.respond_to?(:bike_rack)
|
41
37
|
assert listing.respond_to?(:bikes_allowed)
|
42
|
-
assert listing.respond_to?(:server_room)
|
43
38
|
assert listing.respond_to?(:reception_area)
|
44
|
-
assert listing.respond_to?(:turnkey)
|
45
39
|
assert listing.respond_to?(:patio)
|
46
|
-
assert listing.respond_to?(:copy_room)
|
47
40
|
assert listing.respond_to?(:dog_friendly)
|
48
|
-
assert listing.respond_to?(:cabling)
|
49
41
|
assert listing.respond_to?(:ready_to_move_in)
|
50
|
-
assert listing.respond_to?(:recent_space_improvements)
|
51
|
-
assert listing.respond_to?(:printers)
|
52
42
|
assert listing.respond_to?(:furniture_available)
|
53
43
|
assert listing.respond_to?(:created_at)
|
54
44
|
assert listing.respond_to?(:updated_at)
|
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.8
|
4
|
+
version: 0.2.8.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -201,11 +201,11 @@ files:
|
|
201
201
|
- lib/mls.rb
|
202
202
|
- lib/mls/errors.rb
|
203
203
|
- lib/mls/model.rb
|
204
|
-
- lib/mls/models/PDF.rb
|
205
204
|
- lib/mls/models/account.rb
|
206
205
|
- lib/mls/models/address.rb
|
207
206
|
- lib/mls/models/flyer.rb
|
208
207
|
- lib/mls/models/listing.rb
|
208
|
+
- lib/mls/models/pdf.rb
|
209
209
|
- lib/mls/models/photo.rb
|
210
210
|
- lib/mls/models/region.rb
|
211
211
|
- lib/mls/models/tour_request.rb
|