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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1e0ac63427fdf3e2431003fea33736910da7900
4
- data.tar.gz: d00ae780a93b2b1be15ecf749a18065f8bd8f5a7
3
+ metadata.gz: 120a29c7221d27d52ce6a0127253d0cc032f8001
4
+ data.tar.gz: c2b26618039f56626b28cf2e7f16d8e47c5c8f40
5
5
  SHA512:
6
- metadata.gz: 5ea0d75fe981bbfb78d9e7e44ab80ddcdb2c343757e8ba8fad08141d5555a13de510ec7a48cae20f4b2ab02c366f83e70bbd7a39792ccc83f8a2efdca3853731
7
- data.tar.gz: e3ebce08f0c559a1c67713faef6c7214a4b896164479610f34571355a66aed7f17e1f9958596ffa696ecded5e3a8fb279219e015cfa6ca1a21f3c7fd06066b30
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()").to_s
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.
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Reactor
3
- VERSION = "1.24.0"
3
+ VERSION = "1.24.1"
4
4
  end
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.0
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-02-15 00:00:00.000000000 Z
11
+ date: 2017-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails