postageapp 1.0.18 → 1.0.19

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -9,7 +9,14 @@ gemfile:
9
9
  - test/gemfiles/Gemfile.rails-3.0.x
10
10
  - test/gemfiles/Gemfile.rails-3.1.x
11
11
  - test/gemfiles/Gemfile.rails-3.2.x
12
+ - test/gemfiles/Gemfile.rails.4.0.x
12
13
  matrix:
13
14
  exclude:
14
15
  - rvm: 2.0.0
15
- gemfile: test/gemfiles/Gemfile.rails-2.3.x
16
+ gemfile: test/gemfiles/Gemfile.rails-2.3.x
17
+ - rvm: 1.8.7
18
+ gemfile: test/gemfiles/Gemfile.rails.4.0.x
19
+ - rvm: ree
20
+ gemfile: test/gemfiles/Gemfile.rails.4.0.x
21
+ allow_failures:
22
+ - gemfile: test/gemfiles/Gemfile.rails.4.0.x
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.18
1
+ 1.0.19
@@ -153,8 +153,7 @@ class PostageApp::Request
153
153
  # Probably not the best way as we're skipping way too many intermediate methods
154
154
  def deliver
155
155
  if @delivery_method == Mail::TestMailer
156
- mailer = @delivery_method.new(nil)
157
- mailer.deliver!(self)
156
+ @delivery_method.deliveries << self
158
157
  else
159
158
  self.send
160
159
  end
data/postageapp.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "postageapp"
8
- s.version = "1.0.18"
8
+ s.version = "1.0.19"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Oleg Khabarov, The Working Group Inc"]
12
- s.date = "2013-03-07"
12
+ s.date = "2013-03-19"
13
13
  s.description = "Gem that interfaces with PostageApp.com service to send emails from web apps"
14
14
  s.email = "oleg@twg.ca"
15
15
  s.extra_rdoc_files = [
@@ -48,6 +48,7 @@ Gem::Specification.new do |s|
48
48
  "test/gemfiles/Gemfile.rails-3.0.x",
49
49
  "test/gemfiles/Gemfile.rails-3.1.x",
50
50
  "test/gemfiles/Gemfile.rails-3.2.x",
51
+ "test/gemfiles/Gemfile.rails-4.0.x",
51
52
  "test/helper.rb",
52
53
  "test/live_test.rb",
53
54
  "test/mailer/action_mailer_2/notifier.rb",
@@ -0,0 +1,12 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gem 'json'
4
+
5
+ group :development do
6
+ gem 'jeweler'
7
+ end
8
+
9
+ group :test do
10
+ gem 'rails', '~> 4.0.0.beta1'
11
+ gem 'mocha'
12
+ end
@@ -80,6 +80,13 @@ class Mailer3Test < Test::Unit::TestCase
80
80
  assert_equal 'oleg@test.test', mail.arguments_to_send['arguments']['recipient_override']
81
81
  end
82
82
 
83
+ def test_deliver_for_test_mailer
84
+ mail = Notifier.with_simple_view
85
+ mail.delivery_method(Mail::TestMailer)
86
+ mail.deliver
87
+ assert_equal [mail], ActionMailer::Base.deliveries
88
+ end
89
+
83
90
  else
84
91
  puts "\e[0m\e[31mSkipping #{File.basename(__FILE__)}\e[0m"
85
92
  def test_nothing ; end
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.18
4
+ version: 1.0.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-07 00:00:00.000000000 Z
12
+ date: 2013-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -83,6 +83,7 @@ files:
83
83
  - test/gemfiles/Gemfile.rails-3.0.x
84
84
  - test/gemfiles/Gemfile.rails-3.1.x
85
85
  - test/gemfiles/Gemfile.rails-3.2.x
86
+ - test/gemfiles/Gemfile.rails-4.0.x
86
87
  - test/helper.rb
87
88
  - test/live_test.rb
88
89
  - test/mailer/action_mailer_2/notifier.rb
@@ -125,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
126
  version: '0'
126
127
  segments:
127
128
  - 0
128
- hash: -4042654405162661992
129
+ hash: -4418215173582441535
129
130
  required_rubygems_version: !ruby/object:Gem::Requirement
130
131
  none: false
131
132
  requirements: