poller 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/matchers/xml/xpath_contains_text.rb +1 -0
- data/lib/poller/version.rb +1 -1
- metadata +2 -2
@@ -26,6 +26,7 @@ module Matchers
|
|
26
26
|
def matches?(document_s)
|
27
27
|
xml_doc = REXML::Document.new(document_s)
|
28
28
|
xpath = REXML::XPath.first(xml_doc, @xpath_expr_s)
|
29
|
+
return false if xpath.nil?
|
29
30
|
return @search_term.match(xpath.text) if @search_term.class == Regexp
|
30
31
|
xpath.text.include?(@search_term)
|
31
32
|
end
|
data/lib/poller/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|