postageapp 1.0.20 → 1.0.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -135,6 +135,14 @@ class PostageApp::Mailer < ActionMailer::Base
135
135
  end
136
136
 
137
137
  protected
138
+
139
+ def each_template(paths, name, &block) #:nodoc:
140
+ templates = lookup_context.find_all(name, paths)
141
+ if templates.present?
142
+ templates.uniq { |t| t.formats }.each(&block)
143
+ end
144
+ end
145
+
138
146
  def create_parts_from_responses(m, responses) #:nodoc:
139
147
  map = {
140
148
  'html' => 'text/html',
@@ -1,3 +1,3 @@
1
1
  module PostageApp
2
- VERSION = "1.0.20"
2
+ VERSION = "1.0.21"
3
3
  end
data/postageapp.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.version = PostageApp::VERSION
9
9
  s.authors = ["Oleg Khabarov", "The Working Group Inc"]
10
10
  s.email = ["oleg@khabarov.ca"]
11
- s.homepage = "http://github.com/twg/api_docs"
11
+ s.homepage = "http://github.com/postageapp/postageapp-ruby"
12
12
  s.summary = "Easier way to send email from web apps"
13
13
  s.description = "Gem that interfaces with PostageApp.com service to send emails from web apps"
14
14
 
@@ -7,6 +7,11 @@ class Mailer4Test < Test::Unit::TestCase
7
7
 
8
8
  require File.expand_path('../mailer/action_mailer_3/notifier', __FILE__)
9
9
  puts "\e[0m\e[32mRunning #{File.basename(__FILE__)} for action_mailer #{ActionMailer::VERSION::STRING}\e[0m"
10
+
11
+ def test_create_with_no_content
12
+ mail = Notifier.with_no_content
13
+ assert_equal ({}), mail.arguments['content']
14
+ end
10
15
 
11
16
  def test_create_with_simple_view
12
17
  mail = Notifier.with_simple_view
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postageapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.20
4
+ version: 1.0.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-19 00:00:00.000000000 Z
13
+ date: 2013-06-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -97,7 +97,7 @@ files:
97
97
  - test/rails_initialization_test.rb
98
98
  - test/request_test.rb
99
99
  - test/response_test.rb
100
- homepage: http://github.com/twg/api_docs
100
+ homepage: http://github.com/postageapp/postageapp-ruby
101
101
  licenses: []
102
102
  post_install_message:
103
103
  rdoc_options: []