mits 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mits/v3.0/mapper/address_mapper.rb +10 -10
- data/lib/mits/version.rb +1 -1
- data/spec/fixtures/MITS_3.0_Sample.xml +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: 60a543cc366b0d808fb57d9bc4f301b0fcb94b58
|
4
|
+
data.tar.gz: 8c41a13e00bd03e94da1d05ab767dc04cf2de651
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51f5947b37d9e4abbc4753e15bae02c5cc37c65a1463035bcd9288eafd1c5674982bec4018fc89fbaa53223d36b39e1bd543120df386fc48d292bf1908619da5
|
7
|
+
data.tar.gz: e89694e617260d903314b2be2930c1e21c46ef0b0f1c7e20d75652b5893e4cb682016284ffd177633260f95f79f43c828f43f898b95e0318c0ed3cfa7375a165
|
@@ -17,16 +17,16 @@ module MITS
|
|
17
17
|
|
18
18
|
def address_attributes(tag)
|
19
19
|
{
|
20
|
-
address: tag[:Address],
|
21
|
-
city: tag[:City],
|
22
|
-
country: tag[:Country],
|
23
|
-
country_name: tag[:CountyName],
|
24
|
-
description: tag[:Description],
|
25
|
-
postal_code: tag[:PostalCode],
|
26
|
-
province: tag[:Province],
|
27
|
-
state: tag[:State],
|
28
|
-
type: tag[:AddressType],
|
29
|
-
unparsed_address: tag[:UnparsedAddress]
|
20
|
+
address: try(tag[:Address], :strip),
|
21
|
+
city: try(tag[:City], :strip),
|
22
|
+
country: try(tag[:Country], :strip),
|
23
|
+
country_name: try(tag[:CountyName], :strip),
|
24
|
+
description: try(tag[:Description], :strip),
|
25
|
+
postal_code: try(tag[:PostalCode], :strip),
|
26
|
+
province: try(tag[:Province], :strip),
|
27
|
+
state: try(tag[:State], :strip),
|
28
|
+
type: try(tag[:AddressType], :strip),
|
29
|
+
unparsed_address: try(tag[:UnparsedAddress], :strip)
|
30
30
|
}
|
31
31
|
end
|
32
32
|
end
|
data/lib/mits/version.rb
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
<Address AddressType = "property">
|
29
29
|
<Address>11401 Dr. Martin Luther King Jr. St N</Address>
|
30
30
|
<City>Saint Petersburg</City>
|
31
|
-
<State>FL</State>
|
31
|
+
<State>FL </State>
|
32
32
|
<PostalCode>33716</PostalCode>
|
33
33
|
<Email>sales@camdenliving.com</Email>
|
34
34
|
</Address>
|
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.2.
|
4
|
+
version: 0.2.1
|
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-
|
11
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simple_objects
|