litmus_mailer 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -3
- data/Gemfile.lock +1 -13
- data/README.rdoc +1 -0
- data/Rakefile +0 -13
- data/VERSION +1 -1
- data/lib/litmus_mailer/mail_observer.rb +3 -1
- data/litmus_mailer.gemspec +15 -23
- metadata +34 -33
- data/spec/litmus_mailer_spec.rb +0 -7
- data/spec/spec_helper.rb +0 -12
data/Gemfile
CHANGED
@@ -4,9 +4,7 @@ gem 'litmus', :git => 'git://github.com/logankoester/litmus.git'
|
|
4
4
|
gem 'actionmailer'
|
5
5
|
|
6
6
|
group :development do
|
7
|
-
gem "rspec", "~> 2.3.0"
|
8
7
|
gem "yard", "~> 0.6.0"
|
9
|
-
gem "bundler", "~> 1.
|
8
|
+
gem "bundler", "~> 1.1.0"
|
10
9
|
gem "jeweler", "~> 1.6.4"
|
11
|
-
gem "rcov", ">= 0"
|
12
10
|
end
|
data/Gemfile.lock
CHANGED
@@ -31,7 +31,6 @@ GEM
|
|
31
31
|
multi_json (~> 1.0)
|
32
32
|
bcrypt-ruby (3.0.1)
|
33
33
|
builder (3.0.0)
|
34
|
-
diff-lcs (1.1.3)
|
35
34
|
erubis (2.7.0)
|
36
35
|
git (1.2.5)
|
37
36
|
hike (1.2.1)
|
@@ -59,15 +58,6 @@ GEM
|
|
59
58
|
rack-test (0.6.1)
|
60
59
|
rack (>= 1.0)
|
61
60
|
rake (0.9.2)
|
62
|
-
rcov (0.9.10)
|
63
|
-
rspec (2.3.0)
|
64
|
-
rspec-core (~> 2.3.0)
|
65
|
-
rspec-expectations (~> 2.3.0)
|
66
|
-
rspec-mocks (~> 2.3.0)
|
67
|
-
rspec-core (2.3.1)
|
68
|
-
rspec-expectations (2.3.0)
|
69
|
-
diff-lcs (~> 1.1.2)
|
70
|
-
rspec-mocks (2.3.0)
|
71
61
|
sprockets (2.0.0)
|
72
62
|
hike (~> 1.2)
|
73
63
|
rack (~> 1.0)
|
@@ -83,9 +73,7 @@ PLATFORMS
|
|
83
73
|
|
84
74
|
DEPENDENCIES
|
85
75
|
actionmailer
|
86
|
-
bundler (~> 1.
|
76
|
+
bundler (~> 1.1.0)
|
87
77
|
jeweler (~> 1.6.4)
|
88
78
|
litmus!
|
89
|
-
rcov
|
90
|
-
rspec (~> 2.3.0)
|
91
79
|
yard (~> 0.6.0)
|
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -25,18 +25,5 @@ Jeweler::Tasks.new do |gem|
|
|
25
25
|
end
|
26
26
|
Jeweler::RubygemsDotOrgTasks.new
|
27
27
|
|
28
|
-
require 'rspec/core'
|
29
|
-
require 'rspec/core/rake_task'
|
30
|
-
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
-
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
-
end
|
33
|
-
|
34
|
-
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
35
|
-
spec.pattern = 'spec/**/*_spec.rb'
|
36
|
-
spec.rcov = true
|
37
|
-
end
|
38
|
-
|
39
|
-
task :default => :spec
|
40
|
-
|
41
28
|
require 'yard'
|
42
29
|
YARD::Rake::YardocTask.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -13,9 +13,11 @@ module LitmusMailer
|
|
13
13
|
Rails.logger.debug "Deleting Litmus test #{existing_test['id']} (#{existing_test['name']})"
|
14
14
|
end
|
15
15
|
|
16
|
+
body = (mail.parts.nil? || mail.parts.empty?) ? mail.body : mail.parts.last.body
|
17
|
+
|
16
18
|
new_test = Litmus::EmailTest.create({
|
17
19
|
:subject => mail.subject,
|
18
|
-
:body =>
|
20
|
+
:body => body # Note that only the last part is sent
|
19
21
|
}, mail.litmus_test)
|
20
22
|
|
21
23
|
Rails.logger.debug "Created new Litmus test #{new_test['id']} (#{new_test['name']})"
|
data/litmus_mailer.gemspec
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.
|
7
|
+
s.name = "litmus_mailer"
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
11
|
+
s.authors = ["Logan Koester"]
|
12
|
+
s.date = "2012-08-08"
|
13
|
+
s.description = "Litmus Mailer adds an ActionMailer observer to update your Litmus tests each time an email is delivered from development."
|
14
|
+
s.email = "logan@logankoester.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
17
|
"README.rdoc"
|
@@ -29,15 +29,13 @@ Gem::Specification.new do |s|
|
|
29
29
|
"lib/litmus_mailer.rb",
|
30
30
|
"lib/litmus_mailer/mail_observer.rb",
|
31
31
|
"lib/litmus_mailer/settings.rb",
|
32
|
-
"litmus_mailer.gemspec"
|
33
|
-
"spec/litmus_mailer_spec.rb",
|
34
|
-
"spec/spec_helper.rb"
|
32
|
+
"litmus_mailer.gemspec"
|
35
33
|
]
|
36
|
-
s.homepage =
|
37
|
-
s.licenses = [
|
38
|
-
s.require_paths = [
|
39
|
-
s.rubygems_version =
|
40
|
-
s.summary =
|
34
|
+
s.homepage = "http://github.com/logankoester/litmus_mailer"
|
35
|
+
s.licenses = ["MIT"]
|
36
|
+
s.require_paths = ["lib"]
|
37
|
+
s.rubygems_version = "1.8.24"
|
38
|
+
s.summary = "Litmus Mailer adds an ActionMailer observer to update your Litmus tests each time an email is delivered from development."
|
41
39
|
|
42
40
|
if s.respond_to? :specification_version then
|
43
41
|
s.specification_version = 3
|
@@ -45,28 +43,22 @@ Gem::Specification.new do |s|
|
|
45
43
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
46
44
|
s.add_runtime_dependency(%q<litmus>, [">= 0"])
|
47
45
|
s.add_runtime_dependency(%q<actionmailer>, [">= 0"])
|
48
|
-
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
49
46
|
s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
|
50
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.
|
47
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.1.0"])
|
51
48
|
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
52
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
53
49
|
else
|
54
50
|
s.add_dependency(%q<litmus>, [">= 0"])
|
55
51
|
s.add_dependency(%q<actionmailer>, [">= 0"])
|
56
|
-
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
57
52
|
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
58
|
-
s.add_dependency(%q<bundler>, ["~> 1.
|
53
|
+
s.add_dependency(%q<bundler>, ["~> 1.1.0"])
|
59
54
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
60
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
61
55
|
end
|
62
56
|
else
|
63
57
|
s.add_dependency(%q<litmus>, [">= 0"])
|
64
58
|
s.add_dependency(%q<actionmailer>, [">= 0"])
|
65
|
-
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
66
59
|
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
67
|
-
s.add_dependency(%q<bundler>, ["~> 1.
|
60
|
+
s.add_dependency(%q<bundler>, ["~> 1.1.0"])
|
68
61
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
69
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
70
62
|
end
|
71
63
|
end
|
72
64
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: litmus_mailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
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: 2012-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: litmus
|
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: '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: '0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: actionmailer
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,21 +37,15 @@ dependencies:
|
|
32
37
|
version: '0'
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: rspec
|
38
|
-
requirement: &10447180 !ruby/object:Gem::Requirement
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
41
|
none: false
|
40
42
|
requirements:
|
41
|
-
- -
|
43
|
+
- - ! '>='
|
42
44
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
44
|
-
type: :development
|
45
|
-
prerelease: false
|
46
|
-
version_requirements: *10447180
|
45
|
+
version: '0'
|
47
46
|
- !ruby/object:Gem::Dependency
|
48
47
|
name: yard
|
49
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
50
49
|
none: false
|
51
50
|
requirements:
|
52
51
|
- - ~>
|
@@ -54,21 +53,31 @@ dependencies:
|
|
54
53
|
version: 0.6.0
|
55
54
|
type: :development
|
56
55
|
prerelease: false
|
57
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.6.0
|
58
62
|
- !ruby/object:Gem::Dependency
|
59
63
|
name: bundler
|
60
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
61
65
|
none: false
|
62
66
|
requirements:
|
63
67
|
- - ~>
|
64
68
|
- !ruby/object:Gem::Version
|
65
|
-
version: 1.
|
69
|
+
version: 1.1.0
|
66
70
|
type: :development
|
67
71
|
prerelease: false
|
68
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.1.0
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: jeweler
|
71
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
72
81
|
none: false
|
73
82
|
requirements:
|
74
83
|
- - ~>
|
@@ -76,18 +85,12 @@ dependencies:
|
|
76
85
|
version: 1.6.4
|
77
86
|
type: :development
|
78
87
|
prerelease: false
|
79
|
-
version_requirements:
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: rcov
|
82
|
-
requirement: &10479120 !ruby/object:Gem::Requirement
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
89
|
none: false
|
84
90
|
requirements:
|
85
|
-
- -
|
91
|
+
- - ~>
|
86
92
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
88
|
-
type: :development
|
89
|
-
prerelease: false
|
90
|
-
version_requirements: *10479120
|
93
|
+
version: 1.6.4
|
91
94
|
description: Litmus Mailer adds an ActionMailer observer to update your Litmus tests
|
92
95
|
each time an email is delivered from development.
|
93
96
|
email: logan@logankoester.com
|
@@ -110,8 +113,6 @@ files:
|
|
110
113
|
- lib/litmus_mailer/mail_observer.rb
|
111
114
|
- lib/litmus_mailer/settings.rb
|
112
115
|
- litmus_mailer.gemspec
|
113
|
-
- spec/litmus_mailer_spec.rb
|
114
|
-
- spec/spec_helper.rb
|
115
116
|
homepage: http://github.com/logankoester/litmus_mailer
|
116
117
|
licenses:
|
117
118
|
- MIT
|
@@ -127,7 +128,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
127
128
|
version: '0'
|
128
129
|
segments:
|
129
130
|
- 0
|
130
|
-
hash:
|
131
|
+
hash: 1461302870019626293
|
131
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
133
|
none: false
|
133
134
|
requirements:
|
@@ -136,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
137
|
version: '0'
|
137
138
|
requirements: []
|
138
139
|
rubyforge_project:
|
139
|
-
rubygems_version: 1.8.
|
140
|
+
rubygems_version: 1.8.24
|
140
141
|
signing_key:
|
141
142
|
specification_version: 3
|
142
143
|
summary: Litmus Mailer adds an ActionMailer observer to update your Litmus tests each
|
data/spec/litmus_mailer_spec.rb
DELETED
data/spec/spec_helper.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
-
require 'rspec'
|
4
|
-
require 'litmus_mailer'
|
5
|
-
|
6
|
-
# Requires supporting files with custom matchers and macros, etc,
|
7
|
-
# in ./support/ and its subdirectories.
|
8
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
-
|
10
|
-
RSpec.configure do |config|
|
11
|
-
|
12
|
-
end
|