letter_opener_web 1.1.1 → 1.1.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -0
- data/app/models/letter_opener_web/letter.rb +1 -0
- data/demo/Gemfile.lock +1 -1
- data/lib/letter_opener_web/version.rb +1 -1
- data/spec/models/letter_opener_web/letter_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 748f7585d505b4b67ca5233b1ba66a64f2e7c36c
|
|
4
|
+
data.tar.gz: daaa6a77e9ce24dc9c2074d9e876fb4c611e3ef3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b6dc02e0341d730d0aac32c3f048aaf99a61dd510b9c3eabd544de4c04de1184fff4f931324cac5fbd3edda2250a23b4abc55ae33f79c4bbac4fd620352e5f8
|
|
7
|
+
data.tar.gz: a627b71d467033c5b99cf1e1e63c5ff685faf52f5d12f6abcfbcdad2f2c2fedf62aef1a260e0cd678ae4fcda0d9e426224445c1623b553693c306ce05f04d98b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [1.1.2](https://github.com/fgrehm/letter_opener_web/compare/v1.1.1...v1.1.2) (Dec 12, 2013)
|
|
2
|
+
|
|
3
|
+
- Nicely handle empty links [#18](https://github.com/fgrehm/letter_opener_web/pull/18)
|
|
4
|
+
|
|
1
5
|
## [1.1.1](https://github.com/fgrehm/letter_opener_web/compare/v1.1.0...v1.1.1) (Oct 15, 2013)
|
|
2
6
|
|
|
3
7
|
- Fix deprecation warning on Rails 4 [#17](https://github.com/fgrehm/letter_opener_web/pull/17)
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -87,3 +87,5 @@ ideas on [this pull request](https://github.com/ryanb/letter_opener/pull/12).
|
|
|
87
87
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
88
88
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
89
89
|
5. Create new Pull Request
|
|
90
|
+
|
|
91
|
+
[](https://bitdeli.com/free "Bitdeli Badge")
|
data/demo/Gemfile.lock
CHANGED
|
@@ -12,6 +12,7 @@ Rich text for #{mail_id}
|
|
|
12
12
|
Link text
|
|
13
13
|
</a>
|
|
14
14
|
<a href='fooo.html'>Bar</a>
|
|
15
|
+
<a href="example.html" class="blank"></a>
|
|
15
16
|
MAIL
|
|
16
17
|
end
|
|
17
18
|
|
|
@@ -42,6 +43,11 @@ MAIL
|
|
|
42
43
|
return pending 'This spec if failing randomly on ruby 1.8' if RUBY_VERSION =~ /^1.8/
|
|
43
44
|
subject.should include("<a href='a-link.html' target='_blank'>\n <img src='an-image.jpg'/>\n Link text\n</a>")
|
|
44
45
|
end
|
|
46
|
+
|
|
47
|
+
it 'always rewrites links with a closing tag rather than making them selfclosing' do
|
|
48
|
+
return pending 'This spec if failing randomly on ruby 1.8' if RUBY_VERSION =~ /^1.8/
|
|
49
|
+
subject.should include("<a class='blank' href='example.html' target='_blank'></a>")
|
|
50
|
+
end
|
|
45
51
|
end
|
|
46
52
|
|
|
47
53
|
describe 'plain text version' do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: letter_opener_web
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fabio Rehm
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-12-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|