letter_opener_web 1.0.0.rc1 → 1.0.0.rc2

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.
data/README.md CHANGED
@@ -7,7 +7,7 @@ browsing sent emails.
7
7
 
8
8
  First add the gem to your development environment and run the `bundle` command to install it.
9
9
 
10
- gem 'letter_opener_web', :group => :development
10
+ gem 'letter_opener_web', '1.0.0.rc2', :group => :development
11
11
 
12
12
  ## Usage
13
13
 
@@ -2,7 +2,10 @@ require 'letter_opener/delivery_method'
2
2
 
3
3
  module LetterOpenerWeb
4
4
  class DeliveryMethod < LetterOpener::DeliveryMethod
5
- # "Replaces" original Launchy constant with a noop one
6
- module Launchy; def open; end; end
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
@@ -1,3 +1,3 @@
1
1
  module LetterOpenerWeb
2
- VERSION = "1.0.0.rc1"
2
+ VERSION = "1.0.0.rc2"
3
3
  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.rc1
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: 1643091472553674558
154
+ hash: -4356968824797277075
155
155
  none: false
156
156
  required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  requirements: