mits 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/README.md +4 -4
  4. data/lib/mits.rb +4 -1
  5. data/lib/mits/base_mapper.rb +20 -0
  6. data/lib/mits/document.rb +16 -5
  7. data/lib/mits/saxerator_ext.rb +8 -1
  8. data/lib/mits/v3.0/address.rb +20 -0
  9. data/lib/mits/v3.0/amenity.rb +12 -0
  10. data/lib/mits/v3.0/company.rb +13 -0
  11. data/lib/mits/v3.0/deposit.rb +13 -0
  12. data/lib/mits/v3.0/fees.rb +17 -0
  13. data/lib/mits/v3.0/file.rb +18 -0
  14. data/lib/mits/v3.0/floorplan.rb +13 -0
  15. data/lib/mits/v3.0/mapper.rb +50 -0
  16. data/lib/mits/v3.0/mapper/address_mapper.rb +35 -0
  17. data/lib/mits/v3.0/mapper/amenities_mapper.rb +19 -0
  18. data/lib/mits/v3.0/mapper/company_mapper.rb +15 -0
  19. data/lib/mits/v3.0/mapper/deposit_mapper.rb +32 -0
  20. data/lib/mits/v3.0/mapper/fees_mapper.rb +19 -0
  21. data/lib/mits/v3.0/mapper/files_mapper.rb +25 -0
  22. data/lib/mits/v3.0/mapper/floorplan_mapper.rb +27 -0
  23. data/lib/mits/v3.0/mapper/pet_policy_mapper.rb +37 -0
  24. data/lib/mits/v3.0/mapper/policy_mapper.rb +12 -0
  25. data/lib/mits/v3.0/mapper/property_mapper.rb +57 -0
  26. data/lib/mits/v3.0/pet.rb +13 -0
  27. data/lib/mits/v3.0/pet_policy.rb +17 -0
  28. data/lib/mits/v3.0/policy.rb +10 -0
  29. data/lib/mits/v3.0/property.rb +23 -0
  30. data/lib/mits/v4.1/address.rb +21 -0
  31. data/lib/mits/v4.1/amenity.rb +21 -0
  32. data/lib/mits/v4.1/company.rb +8 -0
  33. data/lib/mits/v4.1/deposit.rb +8 -0
  34. data/lib/mits/v4.1/fees.rb +8 -0
  35. data/lib/mits/v4.1/file.rb +8 -0
  36. data/lib/mits/v4.1/mapper.rb +45 -0
  37. data/lib/mits/v4.1/mapper/address_mapper.rb +29 -0
  38. data/lib/mits/v4.1/mapper/company_mapper.rb +9 -0
  39. data/lib/mits/v4.1/mapper/property_mapper.rb +48 -0
  40. data/lib/mits/v4.1/mapper/units_mapper.rb +26 -0
  41. data/lib/mits/v4.1/pet.rb +8 -0
  42. data/lib/mits/v4.1/pet_policy.rb +8 -0
  43. data/lib/mits/v4.1/policy.rb +8 -0
  44. data/lib/mits/v4.1/property.rb +22 -0
  45. data/lib/mits/v4.1/unit.rb +13 -0
  46. data/lib/mits/version.rb +1 -1
  47. data/mits.gemspec +5 -4
  48. data/spec/fixtures/MITS_3.0_Property.yml +583 -0
  49. data/spec/fixtures/MITS_3.0_Sample.xml +589 -0
  50. data/spec/fixtures/{property.yml → MITS_4.1_Property.yml} +0 -0
  51. data/spec/fixtures/{mits.xml → MITS_4.1_Sample.xml} +0 -0
  52. data/spec/lib/mits/document_spec.rb +3 -3
  53. data/spec/lib/mits/v3.0/address_spec.rb +21 -0
  54. data/spec/lib/mits/v3.0/amenity_spec.rb +13 -0
  55. data/spec/lib/mits/{entities → v3.0}/company_spec.rb +0 -0
  56. data/spec/lib/mits/v3.0/deposit_spec.rb +14 -0
  57. data/spec/lib/mits/v3.0/fees_spec.rb +18 -0
  58. data/spec/lib/mits/v3.0/file_spec.rb +20 -0
  59. data/spec/lib/mits/v3.0/floorplan_spec.rb +14 -0
  60. data/spec/lib/mits/v3.0/mapper_spec.rb +198 -0
  61. data/spec/lib/mits/v3.0/pet_policy_spec.rb +17 -0
  62. data/spec/lib/mits/v3.0/pet_spec.rb +15 -0
  63. data/spec/lib/mits/v3.0/property_spec.rb +23 -0
  64. data/spec/lib/mits/v4.1/address_spec.rb +22 -0
  65. data/spec/lib/mits/v4.1/amenity_spec.rb +11 -0
  66. data/spec/lib/mits/v4.1/company_spec.rb +0 -0
  67. data/spec/lib/mits/v4.1/deposit_spec.rb +14 -0
  68. data/spec/lib/mits/v4.1/fees_spec.rb +18 -0
  69. data/spec/lib/mits/v4.1/file_spec.rb +20 -0
  70. data/spec/lib/mits/v4.1/mapper_spec.rb +194 -0
  71. data/spec/lib/mits/v4.1/pet_policy_spec.rb +16 -0
  72. data/spec/lib/mits/v4.1/pet_spec.rb +15 -0
  73. data/spec/lib/mits/v4.1/property_spec.rb +23 -0
  74. data/spec/lib/mits/v4.1/unit_spec.rb +14 -0
  75. metadata +112 -53
  76. data/lib/mits/entities/address.rb +0 -16
  77. data/lib/mits/entities/amenity.rb +0 -8
  78. data/lib/mits/entities/company.rb +0 -11
  79. data/lib/mits/entities/deposit.rb +0 -11
  80. data/lib/mits/entities/fees.rb +0 -15
  81. data/lib/mits/entities/file.rb +0 -16
  82. data/lib/mits/entities/pet.rb +0 -11
  83. data/lib/mits/entities/pet_policy.rb +0 -15
  84. data/lib/mits/entities/property.rb +0 -20
  85. data/lib/mits/entities/unit.rb +0 -11
  86. data/lib/mits/mapper.rb +0 -48
  87. data/lib/mits/mappers/address_mapper.rb +0 -29
  88. data/lib/mits/mappers/amenities_mapper.rb +0 -14
  89. data/lib/mits/mappers/company_mapper.rb +0 -11
  90. data/lib/mits/mappers/deposit_mapper.rb +0 -24
  91. data/lib/mits/mappers/fees_mapper.rb +0 -15
  92. data/lib/mits/mappers/files_mapper.rb +0 -19
  93. data/lib/mits/mappers/pet_policy_mapper.rb +0 -28
  94. data/lib/mits/mappers/property_mapper.rb +0 -41
  95. data/lib/mits/mappers/units_mapper.rb +0 -22
  96. data/spec/lib/mits/entities/address_spec.rb +0 -16
  97. data/spec/lib/mits/entities/amenity_spec.rb +0 -8
  98. data/spec/lib/mits/entities/deposit_spec.rb +0 -11
  99. data/spec/lib/mits/entities/fees_spec.rb +0 -15
  100. data/spec/lib/mits/entities/file_spec.rb +0 -17
  101. data/spec/lib/mits/entities/pet_policy_spec.rb +0 -14
  102. data/spec/lib/mits/entities/pet_spec.rb +0 -12
  103. data/spec/lib/mits/entities/property_spec.rb +0 -20
  104. data/spec/lib/mits/entities/unit_spec.rb +0 -11
  105. data/spec/lib/mits/mapper_spec.rb +0 -180
@@ -0,0 +1,18 @@
1
+ require 'spec_helper'
2
+ require 'mits/v4.1/fees'
3
+
4
+ module MITS
5
+ module V4_1
6
+ describe Fees do
7
+ it { is_expected.to respond_to(:admin_fee) }
8
+ it { is_expected.to respond_to(:application_fee) }
9
+ it { is_expected.to respond_to(:broker_fee) }
10
+ it { is_expected.to respond_to(:late_fee_per_day) }
11
+ it { is_expected.to respond_to(:late_min_fee) }
12
+ it { is_expected.to respond_to(:late_percent) }
13
+ it { is_expected.to respond_to(:late_type) }
14
+ it { is_expected.to respond_to(:non_refundable_hold_fee) }
15
+ it { is_expected.to respond_to(:prorate_type) }
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+ require 'mits/v4.1/file'
3
+
4
+ module MITS
5
+ module V4_1
6
+ describe File do
7
+ it { is_expected.to respond_to(:active) }
8
+ it { is_expected.to respond_to(:caption) }
9
+ it { is_expected.to respond_to(:description) }
10
+ it { is_expected.to respond_to(:format) }
11
+ it { is_expected.to respond_to(:height) }
12
+ it { is_expected.to respond_to(:id) }
13
+ it { is_expected.to respond_to(:name) }
14
+ it { is_expected.to respond_to(:rank) }
15
+ it { is_expected.to respond_to(:source) }
16
+ it { is_expected.to respond_to(:width) }
17
+ end
18
+ end
19
+ end
20
+
@@ -0,0 +1,194 @@
1
+ require 'spec_helper'
2
+ require 'mits/v4.1/mapper'
3
+
4
+ module MITS
5
+ module V4_1
6
+ describe Mapper do
7
+ let(:fixture) { YAML.load_file('./spec/fixtures/MITS_4.1_Property.yml') }
8
+
9
+ describe '.address' do
10
+ subject { Mapper.address(fixture[:PropertyID][:Address], fixture[:ILS_Identification], Address) }
11
+
12
+ it { is_expected.to be_a Address }
13
+
14
+ it 'include various amenities' do
15
+ expect(subject.address1).to eq '123 Main St'
16
+ expect(subject.latitude).to eq 44.0
17
+ expect(subject.longitude).to eq 45.55
18
+ end
19
+ end
20
+
21
+ describe '.amenities' do
22
+ subject { Mapper.amenities(fixture[:ILS_Unit][:Amenity], Amenity) }
23
+
24
+ it { is_expected.to be_a Array }
25
+
26
+ it 'include various amenities' do
27
+ first = subject.first
28
+ expect(first).to be_a Amenity
29
+ expect(first.description).to eq 'Refrigerator'
30
+ expect(first.type).to eq 'Refrigerator'
31
+ end
32
+ end
33
+
34
+ describe '.company' do
35
+ let(:tag) do
36
+ {
37
+ Identification: {
38
+ IDValue: 'id value',
39
+ IDType: 'id type'
40
+ },
41
+ CompanyName: 'name',
42
+ Address: fixture[:PropertyID][:Address],
43
+ Website: 'http://...',
44
+ Logo: 'http://...',
45
+ }
46
+ end
47
+
48
+ subject { Mapper.company(tag, Company) }
49
+
50
+ it { is_expected.to be_a Company }
51
+ end
52
+
53
+ describe '.deposit' do
54
+ subject { Mapper.deposit(fixture[:Deposit], Deposit) }
55
+
56
+ it { is_expected.to be_a Deposit }
57
+
58
+ it 'include deposit details' do
59
+ expect(subject.amount).to eq 3000.00
60
+ expect(subject.description).to be_nil
61
+ expect(subject.type).to eq 'Security Deposit'
62
+ end
63
+
64
+ context 'when a range' do
65
+ let(:ranged_deposit) do
66
+ { Amount: { ValueRange: { Min: 100, Max: 1000 } } }
67
+ end
68
+
69
+ subject { Mapper.deposit(ranged_deposit, Deposit) }
70
+
71
+ it 'include deposit details' do
72
+ expect(subject.amount).to eq 100..1000
73
+ end
74
+ end
75
+ end
76
+
77
+ describe '.fees' do
78
+ subject { Mapper.fees(fixture[:Fee], Fees) }
79
+
80
+ it { is_expected.to be_a Fees }
81
+
82
+ it 'include individual fee amounts' do
83
+ expect(subject.admin_fee).to eq 0.0
84
+ expect(subject.application_fee).to eq 50.0
85
+ expect(subject.broker_fee).to eq 0.0
86
+ expect(subject.late_fee_per_day).to eq 0.0
87
+ expect(subject.late_min_fee).to eq 0.0
88
+ expect(subject.late_percent).to eq 0.0
89
+ expect(subject.late_type).to eq 'Standard'
90
+ expect(subject.non_refundable_hold_fee).to eq 0.0
91
+ expect(subject.prorate_type).to eq 'Standard'
92
+ end
93
+ end
94
+
95
+ describe '.files' do
96
+ subject { Mapper.files(fixture[:File], File) }
97
+
98
+ it { is_expected.to be_a Array }
99
+
100
+ it 'includes each file' do
101
+ first = subject.first
102
+ expect(first).to be_a File
103
+ expect(first.source).to eq 'http://douglaslebsack.name/triston_botsford'
104
+ end
105
+ end
106
+
107
+ describe '.pets' do
108
+ subject { Mapper.pets(fixture[:Policy][:Pet][:Pets], Pet) }
109
+
110
+ it { is_expected.to be_a Array }
111
+
112
+ it 'includes each allowed pet' do
113
+ first = subject.first
114
+ expect(first).to be_a Pet
115
+ expect(first.count).to eq 1
116
+ expect(first.size).to eq 'Large'
117
+ expect(first.type).to eq 'Dog'
118
+ expect(first.weight).to eq '60lbs'
119
+ end
120
+ end
121
+
122
+ describe '.pet_policy' do
123
+ subject { Mapper.pet_policy(fixture[:Policy][:Pet], PetPolicy, Pet) }
124
+
125
+ it { is_expected.to be_a PetPolicy }
126
+
127
+ it 'includes details' do
128
+ expect(subject.allowed).to be_truthy
129
+ expect(subject.care).to be_truthy
130
+ expect(subject.fee).to eq 25.00
131
+ expect(subject.pets).to be_a Array
132
+ expect(subject.rent).to eq 100.00
133
+ end
134
+
135
+ context 'when no pets allowed' do
136
+ before { fixture[:Policy][:Pet][:Allowed] = 'false' }
137
+
138
+ it 'will reflect that' do
139
+ expect(subject.allowed).to be_falsey
140
+ end
141
+ end
142
+ end
143
+
144
+ describe '.policy' do
145
+ subject { Mapper.policy(fixture[:Policy], Policy, PetPolicy, Pet) }
146
+
147
+ it { is_expected.to be_a Policy }
148
+
149
+ it 'includes details' do
150
+ expect(subject.general).to be_nil
151
+ expect(subject.pet).to be_a Array
152
+ end
153
+ end
154
+
155
+ describe '.property' do
156
+ subject { Mapper.property(fixture) }
157
+
158
+ it { is_expected.to be_a Property }
159
+
160
+ it 'includes details' do
161
+ expect(subject.address).to be_a Address
162
+ expect(subject.amenities.size).to eq 14
163
+ expect(subject.company_id).to eq 'guid: 1'
164
+ expect(subject.deposit).to be_a Deposit
165
+ expect(subject.description).to eq 'hello. this is a description'
166
+ expect(subject.fees).to be_a Fees
167
+ expect(subject.files).to be_a Array
168
+ expect(subject.id).to eq 'SomethingRandom1'
169
+ expect(subject.name).to eq 'Cool New Apartment!!!!'
170
+ expect(subject.policy).to be_a Policy
171
+ expect(subject.summary).to eq 'Cool New Apartment!!!!'
172
+ expect(subject.units).to be_a Array
173
+ expect(subject.website).to eq 'http://harris.net/juwan'
174
+ end
175
+ end
176
+
177
+ describe '.units' do
178
+ subject { Mapper.units(fixture[:ILS_Unit][:Units][:Unit]) }
179
+
180
+ it { is_expected.to be_a Array }
181
+
182
+ it 'includes individual units' do
183
+ first = subject.first
184
+ expect(first).to be_a Unit
185
+ expect(first.bathrooms).to eq 4.0
186
+ expect(first.bedrooms).to eq 4.0
187
+ expect(first.name).to eq 'Cool New Apartment!!!!'
188
+ expect(first.rent).to eq 3400.0
189
+ expect(first.sqft).to eq 3400..3400
190
+ end
191
+ end
192
+ end
193
+ end
194
+ end
@@ -0,0 +1,16 @@
1
+ require 'spec_helper'
2
+
3
+ module MITS
4
+ module V4_1
5
+ describe PetPolicy do
6
+ it { is_expected.to respond_to(:allowed) }
7
+ it { is_expected.to respond_to(:allowed?) }
8
+ it { is_expected.to respond_to(:care) }
9
+ it { is_expected.to respond_to(:deposit) }
10
+ it { is_expected.to respond_to(:fee) }
11
+ it { is_expected.to respond_to(:pets) }
12
+ it { is_expected.to respond_to(:rent) }
13
+ it { is_expected.to respond_to(:restrictions) }
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+ require 'mits/v4.1/pet'
3
+
4
+ module MITS
5
+ module V4_1
6
+ describe Pet do
7
+ it { is_expected.to respond_to(:count) }
8
+ it { is_expected.to respond_to(:description) }
9
+ it { is_expected.to respond_to(:size) }
10
+ it { is_expected.to respond_to(:type) }
11
+ it { is_expected.to respond_to(:weight) }
12
+ end
13
+ end
14
+ end
15
+
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+ require 'mits/v4.1/property'
3
+
4
+ module MITS
5
+ module V4_1
6
+ describe Property do
7
+ it { is_expected.to respond_to(:address) }
8
+ it { is_expected.to respond_to(:amenities) }
9
+ it { is_expected.to respond_to(:company_id) }
10
+ it { is_expected.to respond_to(:deposit) }
11
+ it { is_expected.to respond_to(:description) }
12
+ it { is_expected.to respond_to(:fees) }
13
+ it { is_expected.to respond_to(:files) }
14
+ it { is_expected.to respond_to(:id) }
15
+ it { is_expected.to respond_to(:name) }
16
+ it { is_expected.to respond_to(:policy) }
17
+ it { is_expected.to respond_to(:summary) }
18
+ it { is_expected.to respond_to(:type) }
19
+ it { is_expected.to respond_to(:units) }
20
+ it { is_expected.to respond_to(:website) }
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,14 @@
1
+ require 'spec_helper'
2
+ require 'mits/v4.1/unit'
3
+
4
+ module MITS
5
+ module V4_1
6
+ describe Unit do
7
+ it { is_expected.to respond_to(:bathrooms) }
8
+ it { is_expected.to respond_to(:bedrooms) }
9
+ it { is_expected.to respond_to(:name) }
10
+ it { is_expected.to respond_to(:rent) }
11
+ it { is_expected.to respond_to(:sqft) }
12
+ end
13
+ end
14
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mits
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Callan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-18 00:00:00.000000000 Z
11
+ date: 2015-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_objects
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.1'
19
+ version: '1.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.1'
26
+ version: '1.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: saxerator
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.9.5
41
+ - !ruby/object:Gem::Dependency
42
+ name: versions.rb
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.1'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -136,8 +150,8 @@ dependencies:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0.9'
139
- description: A SAX powered Multifamily Information and Transactions Standard (MITS)
140
- reader for Ruby.
153
+ description: A SAX powered reader for Multifamily Information and Transactions Standard
154
+ (MITS) files.
141
155
  email:
142
156
  - seancallan@gmail.com
143
157
  executables: []
@@ -151,44 +165,76 @@ files:
151
165
  - README.md
152
166
  - Rakefile
153
167
  - lib/mits.rb
168
+ - lib/mits/base_mapper.rb
154
169
  - lib/mits/document.rb
155
- - lib/mits/entities/address.rb
156
- - lib/mits/entities/amenity.rb
157
- - lib/mits/entities/company.rb
158
- - lib/mits/entities/deposit.rb
159
- - lib/mits/entities/fees.rb
160
- - lib/mits/entities/file.rb
161
- - lib/mits/entities/pet.rb
162
- - lib/mits/entities/pet_policy.rb
163
- - lib/mits/entities/property.rb
164
- - lib/mits/entities/unit.rb
165
- - lib/mits/mapper.rb
166
- - lib/mits/mappers/address_mapper.rb
167
- - lib/mits/mappers/amenities_mapper.rb
168
- - lib/mits/mappers/company_mapper.rb
169
- - lib/mits/mappers/deposit_mapper.rb
170
- - lib/mits/mappers/fees_mapper.rb
171
- - lib/mits/mappers/files_mapper.rb
172
- - lib/mits/mappers/pet_policy_mapper.rb
173
- - lib/mits/mappers/property_mapper.rb
174
- - lib/mits/mappers/units_mapper.rb
175
170
  - lib/mits/saxerator_ext.rb
171
+ - lib/mits/v3.0/address.rb
172
+ - lib/mits/v3.0/amenity.rb
173
+ - lib/mits/v3.0/company.rb
174
+ - lib/mits/v3.0/deposit.rb
175
+ - lib/mits/v3.0/fees.rb
176
+ - lib/mits/v3.0/file.rb
177
+ - lib/mits/v3.0/floorplan.rb
178
+ - lib/mits/v3.0/mapper.rb
179
+ - lib/mits/v3.0/mapper/address_mapper.rb
180
+ - lib/mits/v3.0/mapper/amenities_mapper.rb
181
+ - lib/mits/v3.0/mapper/company_mapper.rb
182
+ - lib/mits/v3.0/mapper/deposit_mapper.rb
183
+ - lib/mits/v3.0/mapper/fees_mapper.rb
184
+ - lib/mits/v3.0/mapper/files_mapper.rb
185
+ - lib/mits/v3.0/mapper/floorplan_mapper.rb
186
+ - lib/mits/v3.0/mapper/pet_policy_mapper.rb
187
+ - lib/mits/v3.0/mapper/policy_mapper.rb
188
+ - lib/mits/v3.0/mapper/property_mapper.rb
189
+ - lib/mits/v3.0/pet.rb
190
+ - lib/mits/v3.0/pet_policy.rb
191
+ - lib/mits/v3.0/policy.rb
192
+ - lib/mits/v3.0/property.rb
193
+ - lib/mits/v4.1/address.rb
194
+ - lib/mits/v4.1/amenity.rb
195
+ - lib/mits/v4.1/company.rb
196
+ - lib/mits/v4.1/deposit.rb
197
+ - lib/mits/v4.1/fees.rb
198
+ - lib/mits/v4.1/file.rb
199
+ - lib/mits/v4.1/mapper.rb
200
+ - lib/mits/v4.1/mapper/address_mapper.rb
201
+ - lib/mits/v4.1/mapper/company_mapper.rb
202
+ - lib/mits/v4.1/mapper/property_mapper.rb
203
+ - lib/mits/v4.1/mapper/units_mapper.rb
204
+ - lib/mits/v4.1/pet.rb
205
+ - lib/mits/v4.1/pet_policy.rb
206
+ - lib/mits/v4.1/policy.rb
207
+ - lib/mits/v4.1/property.rb
208
+ - lib/mits/v4.1/unit.rb
176
209
  - lib/mits/version.rb
177
210
  - mits.gemspec
178
- - spec/fixtures/mits.xml
179
- - spec/fixtures/property.yml
211
+ - spec/fixtures/MITS_3.0_Property.yml
212
+ - spec/fixtures/MITS_3.0_Sample.xml
213
+ - spec/fixtures/MITS_4.1_Property.yml
214
+ - spec/fixtures/MITS_4.1_Sample.xml
180
215
  - spec/lib/mits/document_spec.rb
181
- - spec/lib/mits/entities/address_spec.rb
182
- - spec/lib/mits/entities/amenity_spec.rb
183
- - spec/lib/mits/entities/company_spec.rb
184
- - spec/lib/mits/entities/deposit_spec.rb
185
- - spec/lib/mits/entities/fees_spec.rb
186
- - spec/lib/mits/entities/file_spec.rb
187
- - spec/lib/mits/entities/pet_policy_spec.rb
188
- - spec/lib/mits/entities/pet_spec.rb
189
- - spec/lib/mits/entities/property_spec.rb
190
- - spec/lib/mits/entities/unit_spec.rb
191
- - spec/lib/mits/mapper_spec.rb
216
+ - spec/lib/mits/v3.0/address_spec.rb
217
+ - spec/lib/mits/v3.0/amenity_spec.rb
218
+ - spec/lib/mits/v3.0/company_spec.rb
219
+ - spec/lib/mits/v3.0/deposit_spec.rb
220
+ - spec/lib/mits/v3.0/fees_spec.rb
221
+ - spec/lib/mits/v3.0/file_spec.rb
222
+ - spec/lib/mits/v3.0/floorplan_spec.rb
223
+ - spec/lib/mits/v3.0/mapper_spec.rb
224
+ - spec/lib/mits/v3.0/pet_policy_spec.rb
225
+ - spec/lib/mits/v3.0/pet_spec.rb
226
+ - spec/lib/mits/v3.0/property_spec.rb
227
+ - spec/lib/mits/v4.1/address_spec.rb
228
+ - spec/lib/mits/v4.1/amenity_spec.rb
229
+ - spec/lib/mits/v4.1/company_spec.rb
230
+ - spec/lib/mits/v4.1/deposit_spec.rb
231
+ - spec/lib/mits/v4.1/fees_spec.rb
232
+ - spec/lib/mits/v4.1/file_spec.rb
233
+ - spec/lib/mits/v4.1/mapper_spec.rb
234
+ - spec/lib/mits/v4.1/pet_policy_spec.rb
235
+ - spec/lib/mits/v4.1/pet_spec.rb
236
+ - spec/lib/mits/v4.1/property_spec.rb
237
+ - spec/lib/mits/v4.1/unit_spec.rb
192
238
  - spec/spec_helper.rb
193
239
  homepage: https://github.com/doomspork/mits
194
240
  licenses:
@@ -213,21 +259,34 @@ rubyforge_project:
213
259
  rubygems_version: 2.4.5
214
260
  signing_key:
215
261
  specification_version: 4
216
- summary: A SAX powered MITS reader for Ruby.
262
+ summary: A Multifamily Information and Transactions Standard (MITS) reader for Ruby.
217
263
  test_files:
218
- - spec/fixtures/mits.xml
219
- - spec/fixtures/property.yml
264
+ - spec/fixtures/MITS_3.0_Property.yml
265
+ - spec/fixtures/MITS_3.0_Sample.xml
266
+ - spec/fixtures/MITS_4.1_Property.yml
267
+ - spec/fixtures/MITS_4.1_Sample.xml
220
268
  - spec/lib/mits/document_spec.rb
221
- - spec/lib/mits/entities/address_spec.rb
222
- - spec/lib/mits/entities/amenity_spec.rb
223
- - spec/lib/mits/entities/company_spec.rb
224
- - spec/lib/mits/entities/deposit_spec.rb
225
- - spec/lib/mits/entities/fees_spec.rb
226
- - spec/lib/mits/entities/file_spec.rb
227
- - spec/lib/mits/entities/pet_policy_spec.rb
228
- - spec/lib/mits/entities/pet_spec.rb
229
- - spec/lib/mits/entities/property_spec.rb
230
- - spec/lib/mits/entities/unit_spec.rb
231
- - spec/lib/mits/mapper_spec.rb
269
+ - spec/lib/mits/v3.0/address_spec.rb
270
+ - spec/lib/mits/v3.0/amenity_spec.rb
271
+ - spec/lib/mits/v3.0/company_spec.rb
272
+ - spec/lib/mits/v3.0/deposit_spec.rb
273
+ - spec/lib/mits/v3.0/fees_spec.rb
274
+ - spec/lib/mits/v3.0/file_spec.rb
275
+ - spec/lib/mits/v3.0/floorplan_spec.rb
276
+ - spec/lib/mits/v3.0/mapper_spec.rb
277
+ - spec/lib/mits/v3.0/pet_policy_spec.rb
278
+ - spec/lib/mits/v3.0/pet_spec.rb
279
+ - spec/lib/mits/v3.0/property_spec.rb
280
+ - spec/lib/mits/v4.1/address_spec.rb
281
+ - spec/lib/mits/v4.1/amenity_spec.rb
282
+ - spec/lib/mits/v4.1/company_spec.rb
283
+ - spec/lib/mits/v4.1/deposit_spec.rb
284
+ - spec/lib/mits/v4.1/fees_spec.rb
285
+ - spec/lib/mits/v4.1/file_spec.rb
286
+ - spec/lib/mits/v4.1/mapper_spec.rb
287
+ - spec/lib/mits/v4.1/pet_policy_spec.rb
288
+ - spec/lib/mits/v4.1/pet_spec.rb
289
+ - spec/lib/mits/v4.1/property_spec.rb
290
+ - spec/lib/mits/v4.1/unit_spec.rb
232
291
  - spec/spec_helper.rb
233
292
  has_rdoc: