sleipnir-api 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.2.1 / 2007-07-30
2
+
3
+ * grepnir:
4
+ * minor bug fix.
5
+
1
6
  == 0.2.0 / 2007-07-29
2
7
 
3
8
  * Added grepnir command to search Sleipnir tab.
@@ -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.select{|tab| target_tab?(ctx, tab) }.each do |tab|
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)
@@ -2,7 +2,7 @@ module SleipnirAPI
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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.0
7
- date: 2007-07-29 00:00:00 +09:00
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