wovnrb 0.1.31 → 0.1.32

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: daed02abb68cc7f4a52ce07accf99dc89ab1f122
4
- data.tar.gz: dccbd85844f57f2e0f78503a6b0a43eee294a122
3
+ metadata.gz: 5c1ab636ea4b0c1c960668254918cb3580aa191f
4
+ data.tar.gz: 4a0a7b11efd95abcae6787357b81f7f64b7e4b4b
5
5
  SHA512:
6
- metadata.gz: d256451b6cff5e74d908e316fd9c9147a1062d60d9a9f4f1ecbcd2956c5c5d883f656d3f9eac0fb37f0459f5e9806205a4ac8a37e5bca82319fc7b579e001a84
7
- data.tar.gz: 500b3823f814f4fee2e6881ab84688b9364900247e15f4fcc364c1f12fb0aa1204b03f72db660efba5f50601f980f338bb2cb4d08b1991c811b711c4efcbb0aa
6
+ metadata.gz: 4d6f646ba06b92bd9901d17e2151fbbedccd97d6f1ba69bda9ee1f130a490d84718e526484afa7791badf267a7d8a31869afdef1c32beead6fb3be08eb06b8fa
7
+ data.tar.gz: 035d34f557c485091fad5584f6ba594ea414f2793bb910a1389d3e8ced741bfa44da6dea44ebecdac33fa0d47de3ffff8d2d117b248b8c4e828fd746db8d0f6f
@@ -1,3 +1,3 @@
1
1
  module Wovnrb
2
- VERSION = "0.1.31"
2
+ VERSION = "0.1.32"
3
3
  end
data/lib/wovnrb.rb CHANGED
@@ -85,9 +85,7 @@ module Wovnrb
85
85
  d.xpath('//img').each do |node|
86
86
  # use regular expressions to support case insensitivity (right?)
87
87
  if node.to_html =~ /src=['"][^'"]*['"]/i
88
- src = node.to_html.match(/src=['"]([^&'"]*)['"]/i)
89
- return if src.length < 2
90
- src = src[1]
88
+ src = node.to_html.match(/src=['"]([^'"]*)['"]/i)[1]
91
89
  # THIS SRC CORRECTION DOES NOT HANDLE ONE IMPORTANT CASE
92
90
  # 1) "../path/with/ellipse"
93
91
  # if this is not an absolute src
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wovnrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.31
4
+ version: 0.1.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Sandford