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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbed76e9f570ddc78b834b3bd6b26afc0044c8e8
4
- data.tar.gz: 4f5122214d0e595df65971b65966c1c78ba6575e
3
+ metadata.gz: 60a543cc366b0d808fb57d9bc4f301b0fcb94b58
4
+ data.tar.gz: 8c41a13e00bd03e94da1d05ab767dc04cf2de651
5
5
  SHA512:
6
- metadata.gz: 12b04c823773fb1917f4fac79739a74c4f955a93e1cc16fa279a89331070f0c06ba651a53cb9b88324cc589afef949f8b8bae4ace94162b2c88b34e43f92c90a
7
- data.tar.gz: 9a6eac1e8f0b43a2bb35df3b891f8e8de40a49302872647207aa2f87308dbed867b3918c81f6c5085e56bb06e95f4e9d7e862d9912c3dbdb0862f37abe9fc55c
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
@@ -1,3 +1,3 @@
1
1
  module MITS
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -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.0
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-04-26 00:00:00.000000000 Z
11
+ date: 2015-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_objects