sleipnir-api 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/lib/sleipnir_api/cli/grepnir.rb +3 -2
- data/lib/sleipnir_api/version.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
@@ -171,10 +171,11 @@ class SleipnirAPI::CLI::Grepnir < SleipnirAPI::CLI::Base #:nodoc:
|
|
171
171
|
def perform(ctx, pnir)
|
172
172
|
r = false
|
173
173
|
ctx.scope.req.clear
|
174
|
-
pnir.
|
174
|
+
pnir.each do |tab|
|
175
|
+
next unless target_tab?(ctx, tab)
|
175
176
|
ctx.scope.tab.clear
|
176
177
|
tab.document {|doc|
|
177
|
-
text = doc.body.innerText
|
178
|
+
text = doc.body.innerText rescue next
|
178
179
|
matched = ctx.keyword_re.all?{|re| re.match(text) }
|
179
180
|
matched = !matched if ctx.invert_match
|
180
181
|
@action.run(ctx, pnir, tab, doc, text, matched)
|
data/lib/sleipnir_api/version.rb
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: sleipnir-api
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.2.
|
7
|
-
date: 2007-07-
|
6
|
+
version: 0.2.1
|
7
|
+
date: 2007-07-30 00:00:00 +09:00
|
8
8
|
summary: Ruby interface to the Sleipnir.API WIN32OLE object.
|
9
9
|
require_paths:
|
10
10
|
- lib
|