letter_opener_web 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/letter_opener_web/delivery_method.rb +5 -2
- data/lib/letter_opener_web/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -2,7 +2,10 @@ require 'letter_opener/delivery_method'
|
|
2
2
|
|
3
3
|
module LetterOpenerWeb
|
4
4
|
class DeliveryMethod < LetterOpener::DeliveryMethod
|
5
|
-
|
6
|
-
|
5
|
+
def deliver!(mail)
|
6
|
+
location = File.join(settings[:location], "#{Time.now.to_i}_#{Digest::SHA1.hexdigest(mail.encoded)[0..6]}")
|
7
|
+
messages = Message.rendered_messages(location, mail)
|
8
|
+
# Launchy.open(URI.parse(URI.escape(messages.first.filepath)))
|
9
|
+
end
|
7
10
|
end
|
8
11
|
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: 1.0.0.
|
4
|
+
version: 1.0.0.rc2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: '0'
|
152
152
|
segments:
|
153
153
|
- 0
|
154
|
-
hash:
|
154
|
+
hash: -4356968824797277075
|
155
155
|
none: false
|
156
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
157
|
requirements:
|