ruby_isds 0.10.1 → 0.10.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20d8a37ab1cd7975762e787eb979835f475ab529
4
- data.tar.gz: 844e37890af48b244d4b5e0c70a30b7d7092764b
3
+ metadata.gz: fdfd9809b6456da08c884d2fd4e2e918cf4c8107
4
+ data.tar.gz: f012e60f6bb77b41c541ce5c43ec197886ef654a
5
5
  SHA512:
6
- metadata.gz: b189a1151c2ed1e4e447bb5f8078a3880d141a41923e234353d79364849d8fec3412ecdee07d713ff23affaa93408a0d759c8f08c3aeb56e7b16e8c82dcc4b09
7
- data.tar.gz: 6e9b639211b9a611ec8c3936e9ed2c84825accb9c14d8042d2f8deb752dce1620b2f99563fdddab2456ca8a1f90cb264935d4de2541c9b005ec672f8a11fdadd
6
+ metadata.gz: 530f3859d1f6b9dd0e2b6f5e55ced947f0b76e8c3957671e5da3daaac8f9f728d6f6b10f2854d4b056dc5bc39e7955f65364522f1cb89eb5aed8be5bc0a9bbd6
7
+ data.tar.gz: 00d16eb156c4262ca569b4bc4ab521d89aefab682548258032d1519a7ce7b017ed373e34cf86dd7cd1e632573a5511a976152349c70fa5928041fa90505d7468
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_isds (0.9.1)
4
+ ruby_isds (0.10.1)
5
5
  activesupport
6
6
  nokogiri
7
7
 
@@ -11,6 +11,7 @@ module RubyIsds
11
11
  end
12
12
 
13
13
  def load_messages
14
+ return [] if results.blank?
14
15
  return [::RubyIsds::DataMessage.new(results)] if results.is_a?(Hash)
15
16
  results.map do |result|
16
17
  ::RubyIsds::DataMessage.new(result)
@@ -20,7 +21,7 @@ module RubyIsds
20
21
  private
21
22
 
22
23
  def results
23
- parsed_body['dmRecords']['dmRecord']
24
+ parsed_body['dmRecords'].try(:[], 'dmRecord')
24
25
  end
25
26
  end
26
27
  end
@@ -1,3 +1,3 @@
1
1
  module RubyIsds
2
- VERSION = '0.10.1'.freeze
2
+ VERSION = '0.10.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_isds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrej Antas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-24 00:00:00.000000000 Z
11
+ date: 2018-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler