inforouter 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/inforouter/client.rb +2 -1
- data/lib/inforouter/responses/documents.rb +1 -0
- data/lib/inforouter/responses/folders.rb +2 -0
- data/lib/inforouter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWY5ZDQ0NmQxMjZkYmQyZDRjZDhhODY5ZTZkYWFiMmE5OTA1MDJhZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTkzNDY2Njk4MjQ1Y2M2YWExNTA4NDgxNDU1ZTQ2NDQ5OGUxODdjMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzI1OWY3YTkwYTRlN2FiOTQ2YzNmZTEwYjgyMzU0MTkwOTk0MDgxYTYyMmI5
|
10
|
+
NWEyZTE0ZGEwMGU3ODJmNDYxYjI2Mzc1NWFmNWQ3NmU1MzQ3ZThhODY5MTQ0
|
11
|
+
NjZhZGE0OGZkZDRkMWIwYzA2ZmZiMDJkODlhYWEzNzRkNWQ3MTc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODI5YTdmMzc0NTI0ZTA1N2EwOTVjYzBiZDc4YWRhNjQyYzJiYjVkNzYxYzJl
|
14
|
+
ZjhiY2QwM2ZmZjNjNDFiN2EzZmYyZDI1NjBkZDRmOTcwMDllMjYyOTY2MjIx
|
15
|
+
NGQxODY3NjdjNDc4OGRhNTFiZGFjYTc1M2U3OGQxOWM1MGFiNGM=
|
data/lib/inforouter/client.rb
CHANGED
@@ -17,6 +17,7 @@ module Inforouter #:nodoc:
|
|
17
17
|
response = new(savon_response)
|
18
18
|
data = response.match('get_documents1_response/get_documents1_result/response')
|
19
19
|
return [] if data[:@itemcount].to_i == 0
|
20
|
+
data[:d] = [data[:d]] if data[:d].is_a?(Hash)
|
20
21
|
data[:d].map do |document|
|
21
22
|
Inforouter::Document.new(
|
22
23
|
id: document[:@id].to_i,
|
@@ -17,6 +17,8 @@ module Inforouter #:nodoc:
|
|
17
17
|
response = new(savon_response)
|
18
18
|
data = response.match('get_folders1_response/get_folders1_result/response')
|
19
19
|
return [] if data[:@itemcount].to_i == 0
|
20
|
+
# Single folder returned as a Hash.
|
21
|
+
data[:f] = [data[:f]] if data[:f].is_a?(Hash)
|
20
22
|
data[:f].map do |folder|
|
21
23
|
Inforouter::Folder.new(
|
22
24
|
id: folder[:@id].to_i,
|
data/lib/inforouter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inforouter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Fenton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|