infopark_reactor 1.24.0 → 1.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reactor/tools/response_handler/xml_attribute.rb +6 -1
- data/lib/reactor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 120a29c7221d27d52ce6a0127253d0cc032f8001
|
4
|
+
data.tar.gz: c2b26618039f56626b28cf2e7f16d8e47c5c8f40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bb9bc6c05ec5ce8fc6e244aec7f5f2819b6c1a40a7ab5e7736c2ab667592db494f334fa7c795d578a060fff278d9c8ec41d63f38dcf08e2ee5a650125d106f2
|
7
|
+
data.tar.gz: 63a1870ce4031fd9f04806282f2e470213fcc35ace6702fc0b13cf3bca490df016c58d095934a03d68c8cfd89fcc6652aa52af7fcc659d58c7819bbcf4709f55
|
@@ -22,7 +22,12 @@ module Reactor
|
|
22
22
|
|
23
23
|
# Extracts a string value with the given +name+ and returns a string.
|
24
24
|
def extract_string(name)
|
25
|
-
self.response.xpath("//#{name}/text()")
|
25
|
+
result = self.response.xpath("//#{name}/text()")
|
26
|
+
if result.kind_of?(Array)
|
27
|
+
return result.first
|
28
|
+
else
|
29
|
+
return result.to_s
|
30
|
+
end
|
26
31
|
end
|
27
32
|
|
28
33
|
# Extracts a list value with the given +name+ and returns an array of strings.
|
data/lib/reactor/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_reactor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.24.
|
4
|
+
version: 1.24.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomasz Przedmojski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|