robostripper 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,10 +48,10 @@ module Robostripper
48
48
  result = result.search(path)
49
49
  }
50
50
 
51
- if result.nil? or result.length == 0
52
- nil
53
- elsif options.fetch(:all, false)
51
+ if options.fetch(:all, false)
54
52
  result
53
+ elsif result.nil? or result.length == 0
54
+ nil
55
55
  elsif options.has_key? :nontext
56
56
  result.children.select(&:text?).map(&:text).join(options[:nontext])
57
57
  elsif options.has_key? :attribute
@@ -1,3 +1,3 @@
1
1
  module Robostripper
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: robostripper
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Brian Muller
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-12-29 00:00:00 Z
13
+ date: 2012-12-30 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -89,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
89
  requirements:
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
- hash: 4100496691358447740
92
+ hash: -879226662333199346
93
93
  segments:
94
94
  - 0
95
95
  version: "0"
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - ">="
100
100
  - !ruby/object:Gem::Version
101
- hash: 4100496691358447740
101
+ hash: -879226662333199346
102
102
  segments:
103
103
  - 0
104
104
  version: "0"