reddavis-embedit 0.1.0 → 0.1.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.
@@ -15,7 +15,7 @@ module Embedit
15
15
 
16
16
  def html(size = {})
17
17
  attributes = size.collect {|k,v| "#{k}=\"#{v}\" "}.join(" ")
18
- puts src = page.at("img#userImage").to_s.slice(/src=.+\.\w+/)
18
+ src = page.at("img#userImage").to_s.scan(/src="(.+\.\w+)"/).to_s
19
19
  %{
20
20
  <a href="#{@url}"><img src="#{src}" #{attributes}/></a>
21
21
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reddavis-embedit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Red Davis
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2008-10-02 17:19:11 -07:00
13
+ date: 2008-10-02 17:51:39 -07:00
14
14
  default_executable:
15
15
  dependencies: []
16
16