bjornblomqvist-emailer 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -42,8 +42,8 @@ code. Here's a taste:
42
42
 
43
43
  Add middleware to render emails for webrat
44
44
 
45
- Emailer::SmtpFacade.default = Emailer:MockSmtpFacade.new
46
- config.middleware.use "Emailer::MockSmtpFacade"
45
+ Emailer::SmtpFacade.default = Emailer::MockSmtpFacade.new
46
+ config.middleware.use "Emailer::TestingMiddleware"
47
47
 
48
48
  Then you can get the url to the last email sent using
49
49
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.11
1
+ 0.1.12
data/emailer.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{emailer}
8
- s.version = "0.1.11"
8
+ s.version = "0.1.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Erik Hansson", "Bjorn Blomqvist"]
@@ -51,6 +51,9 @@ module Emailer
51
51
  def get_url_for uuidString
52
52
  return "/getemail/"+uuidString
53
53
  end
54
+ end
55
+
56
+ class TestingMiddleware
54
57
 
55
58
  def call(env)
56
59
  if env["PATH_INFO"].index("/getemail/")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bjornblomqvist-emailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Hansson