adiwg-mdtranslator 1.4.0.beta5 → 1.4.0.beta6

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: 9ba17196aff8c229217d2fdb3833a63487c9a23c
4
- data.tar.gz: f1293feb09446c035d88d913484b93bfe0c0b3e4
3
+ metadata.gz: fd64a08f18bf344a63ac59b192ff2431e79dec0e
4
+ data.tar.gz: 18f203870e0a7b5b2165d01bbe3213d9fa61761c
5
5
  SHA512:
6
- metadata.gz: 287a5ce6c2deb0dcb23e7fa5245d38117264a07b8d96a4955dd96884a18df6664e5369a71cf4e8e1fdbe3340c20bd76f79dab9343bd656599dddf9ac73818acc
7
- data.tar.gz: f3d1240d864b30151760b636ca00c00721aae70e386a5cc36e74de705f0266aacaeb0155115a00dde0eea5aca72f731184189027a6299370c156d2c326958a1c
6
+ metadata.gz: 174c184b9001a96b532e639fb1eeebef05541520569f20d81d3908646b4533470e4ec79f8591af0c582232b260b1d827f19e6e855c87e3ea29fa71cf7379c038
7
+ data.tar.gz: 5175d7ce45f5b3d5cc52297a83e613754701987fc144424d3b181ba8a221f7eb465a738fa941945c995f1b8569faa4670f47b7a026b69c7c00941dcf48d9e47f
@@ -61,6 +61,6 @@
61
61
  module ADIWG
62
62
  module Mdtranslator
63
63
  # current mdtranslator version
64
- VERSION = "1.4.0.beta5"
64
+ VERSION = "1.4.0.beta6"
65
65
  end
66
66
  end
@@ -14,24 +14,26 @@ module ADIWG
14
14
  json.name intObj[:indName] || intObj[:orgName]
15
15
  json.contactType type
16
16
  json.email intObj[:address][:eMailList][0] unless intObj[:address].empty?
17
- json.organization type == 'person' ? intObj[:orgName] : nil
17
+ json.organization type == 'person' ? {:displayText => intObj[:orgName]} : nil
18
18
  json.primaryLocation do
19
19
  json.officePhone intObj[:phones].collect { |ph|
20
- ph[:phoneNumber] if ph[:phoneServiceType] == 'voice' }.reject(&:nil?).first
20
+ ph[:phoneNumber] if ph[:phoneServiceType] == 'voice'
21
+ }.reject(&:nil?).first
21
22
  json.faxPhone intObj[:phones].collect { |ph|
22
- ph[:phoneNumber] if ph[:phoneServiceType] == 'fax' }.reject(&:nil?).first
23
+ ph[:phoneNumber] if ph[:phoneServiceType] == 'fax'
24
+ }.reject(&:nil?).first
25
+ json.streetAddress do
26
+ add = intObj[:address]
27
+ unless [:deliveryPoints].empty?
28
+ json.line1 add[:deliveryPoints][0]
29
+ json.line2 add[:deliveryPoints][1]
30
+ end
31
+ json.city add[:city]
32
+ json.state add[:adminArea]
33
+ json.zip add[:postalCode]
34
+ json.country add[:country]
35
+ end unless intObj[:address].empty?
23
36
  end
24
- json.streetAddress do
25
- add = intObj[:address]
26
- unless[:deliveryPoints].empty?
27
- json.line1 add[:deliveryPoints][0]
28
- json.line2 add[:deliveryPoints][1]
29
- end
30
- json.city add[:city]
31
- json.state add[:adminArea]
32
- json.zip add[:postalCode]
33
- json.country add[:country]
34
- end unless intObj[:address].empty?
35
37
  end
36
38
  end
37
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adiwg-mdtranslator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0.beta5
4
+ version: 1.4.0.beta6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stan Smith