afasgem 0.0.2 → 0.0.3

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: 6c45e701f6fd82825397d94ad4fac43f183ca6fb
4
- data.tar.gz: 1710729c5e46b28bd97326ff7c23915e801b984a
3
+ metadata.gz: 78321ab6da053def8a108e5e48feb67dce19d969
4
+ data.tar.gz: 46f05bfae9c074466659c88683a84b15da26c3a9
5
5
  SHA512:
6
- metadata.gz: 707925f2ad1e4952f59454ece2e6608cdb2af44e119aa2ac650f165112eb15879a617bc849f866df1e641d6270547fc63a346bfd35c4ab95157eda8d85547ffc
7
- data.tar.gz: 84c4ed371a808a828692c747717126c40192500f77bbf0d7ab6415b8efb5f815cfe16af8bfcab5f7f636f5ea5e10accd81be32ca5f33c15fa4b85637e29aef6c
6
+ metadata.gz: e2e9d59dcb195fabb3311f4d2f3fc92fcfa01a861feda870a8add471f705fd4eb9c076dec6a3b7c216e25cb7a369d63f7cc58e607c8170c5ac9ce40b7a1d740f
7
+ data.tar.gz: 3b99c821aacf4f3cd809a17f3103f813ebbae2275aec7eac4f04ec8b923a89db533968bf736238e9331ffb0505ca3e69fed96794c67079bbccb8b2815a12e667
@@ -219,7 +219,10 @@ class GetConnector
219
219
 
220
220
  # Returns the actual rows from a parsed response hash
221
221
  def get_data_from_result(result)
222
- return result[:AfasGetConnector][@connectorname.to_sym] || []
222
+ val = result[:AfasGetConnector][@connectorname.to_sym]
223
+ val = [] if val.nil?
224
+ val = [val] unless val.is_a?(Array)
225
+ return val
223
226
  end
224
227
 
225
228
 
@@ -1,3 +1,3 @@
1
1
  module Afasgem
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: afasgem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Subhi Dweik
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-17 00:00:00.000000000 Z
11
+ date: 2016-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon