letter_opener_web 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,7 @@ module LetterOpenerWeb
47
47
  # "complete" (as in they have the whole <html> structure) and letter_opener
48
48
  # prepends some information about the mail being sent, making REXML
49
49
  # complain about it
50
- contents.scan(/<a[^>]+>.+<\/a>/).each do |link|
50
+ contents.scan(/<a[^>]+>.*?<\/a>/).each do |link|
51
51
  xml = REXML::Document.new(link).root
52
52
  unless xml.attributes['href'] =~ /(plain|rich).html/
53
53
  xml.attributes['target'] = '_blank'
@@ -1,3 +1,3 @@
1
1
  module LetterOpenerWeb
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -10,7 +10,7 @@ describe LetterOpenerWeb::Letter do
10
10
  ['1111_1111', '2222_2222'].each do |folder|
11
11
  FileUtils.mkdir_p("#{location}/#{folder}")
12
12
  File.open("#{location}/#{folder}/plain.html", 'w') {|f| f.write("Plain text for #{folder}") }
13
- File.open("#{location}/#{folder}/rich.html", 'w') {|f| f.write("Rich text for #{folder} <!DOCTYPE html><a href='a-link.html'><img src='an-image.jpg'/>Link text</a>") }
13
+ File.open("#{location}/#{folder}/rich.html", 'w') {|f| f.write("Rich text for #{folder} <!DOCTYPE html><a href='a-link.html'><img src='an-image.jpg'/>Link text</a><a href='fooo.html'>Bar</a>") }
14
14
  FileUtils.mkdir_p("#{Rails.root.join('tmp', 'letter_opener')}/#{folder}")
15
15
  File.open("#{Rails.root.join('tmp', 'letter_opener')}/#{folder}/rich.html", 'w') {|f| f.write("Rich text for #{folder}") }
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: letter_opener_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-20 00:00:00.000000000 Z
12
+ date: 2013-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  prerelease: false
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  segments:
153
153
  - 0
154
- hash: 2512558198014940067
154
+ hash: -2526827428005844609
155
155
  none: false
156
156
  required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  requirements:
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  segments:
162
162
  - 0
163
- hash: 2512558198014940067
163
+ hash: -2526827428005844609
164
164
  none: false
165
165
  requirements: []
166
166
  rubyforge_project: