action_mailer_cache_delivery 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +0 -0
- data/Gemfile +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/action_mailer_cache_delivery.gemspec +0 -0
- data/lib/action_mailer_cache_delivery.rb +0 -0
- data/lib/action_mailer_cache_delivery/action_mailer/base.rb +0 -0
- data/lib/action_mailer_cache_delivery/mail/cache_delivery.rb +2 -0
- data/lib/action_mailer_cache_delivery/railtie.rb +0 -0
- data/lib/action_mailer_cache_delivery/version.rb +1 -3
- data/spec/action_mailer_cache_delivery_spec.rb +1 -1
- data/spec/cache_delivery_spec.rb +6 -1
- data/spec/spec_helper.rb +0 -0
- metadata +30 -10
data/.travis.yml
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -69,7 +69,7 @@ describe ActionMailerCacheDelivery do
|
|
69
69
|
it 'should set cache path to /tmp when Rails is not defined' do
|
70
70
|
ActionMailerCacheDelivery.install
|
71
71
|
ActionMailer::Base.delivery_method = :cache
|
72
|
-
ActionMailer::Base.cache_settings[:location].should ==
|
72
|
+
ActionMailer::Base.cache_settings[:location].should == "#{Dir.tmpdir}/cache/action_mailer_cache_deliveries.cache"
|
73
73
|
end
|
74
74
|
end
|
75
75
|
end
|
data/spec/cache_delivery_spec.rb
CHANGED
@@ -19,7 +19,7 @@ describe Mail::CacheDelivery do
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
describe 'deliver' do
|
22
|
+
describe 'deliver!' do
|
23
23
|
it 'should write mail to cache file' do
|
24
24
|
mail.deliver
|
25
25
|
File.open(ActionMailer::Base.cache_settings[:location], 'r') do |file|
|
@@ -35,5 +35,10 @@ describe Mail::CacheDelivery do
|
|
35
35
|
Marshal.load(file)
|
36
36
|
end.length.should == 5
|
37
37
|
end
|
38
|
+
|
39
|
+
it 'should append mail to TestMailer deliveries' do
|
40
|
+
mail.deliver
|
41
|
+
Mail::TestMailer.deliveries.should == [mail]
|
42
|
+
end
|
38
43
|
end
|
39
44
|
end # Mail::CachedDelivery
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_mailer_cache_delivery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionmailer
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '3.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: rspec
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ~>
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: '2.8'
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '2.8'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: rake
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ~>
|
@@ -43,7 +53,12 @@ dependencies:
|
|
43
53
|
version: '0.9'
|
44
54
|
type: :development
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.9'
|
47
62
|
description: Cache delivery method for ActionMailer for testing emails with Selenium
|
48
63
|
email: p0deje@gmail.com
|
49
64
|
executables: []
|
@@ -75,15 +90,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
75
90
|
- - ! '>='
|
76
91
|
- !ruby/object:Gem::Version
|
77
92
|
version: '0'
|
93
|
+
segments:
|
94
|
+
- 0
|
95
|
+
hash: -1272042940984442377
|
78
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
97
|
none: false
|
80
98
|
requirements:
|
81
99
|
- - ! '>='
|
82
100
|
- !ruby/object:Gem::Version
|
83
101
|
version: '0'
|
102
|
+
segments:
|
103
|
+
- 0
|
104
|
+
hash: -1272042940984442377
|
84
105
|
requirements: []
|
85
106
|
rubyforge_project:
|
86
|
-
rubygems_version: 1.8.
|
107
|
+
rubygems_version: 1.8.24
|
87
108
|
signing_key:
|
88
109
|
specification_version: 3
|
89
110
|
summary: Cache delivery method for ActionMailer
|
@@ -91,4 +112,3 @@ test_files:
|
|
91
112
|
- spec/action_mailer_cache_delivery_spec.rb
|
92
113
|
- spec/cache_delivery_spec.rb
|
93
114
|
- spec/spec_helper.rb
|
94
|
-
has_rdoc:
|