chimpster-rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -1
- data/Gemfile.lock +90 -19
- data/README.rdoc +1 -1
- data/chimpster-rails.gemspec +5 -5
- data/lib/chimpster-rails.rb +1 -1
- data/spec/chimpster-rails_spec.rb +5 -4
- data/spec/spec_helper.rb +3 -0
- metadata +8 -8
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,30 +1,94 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
|
4
|
+
chimpster-rails (0.1.1)
|
5
|
+
actionmailer
|
6
|
+
chimpster (>= 0.1.8)
|
7
|
+
rake
|
5
8
|
|
6
9
|
GEM
|
7
10
|
remote: http://rubygems.org/
|
8
11
|
specs:
|
12
|
+
abstract (1.0.0)
|
13
|
+
actionmailer (3.0.9)
|
14
|
+
actionpack (= 3.0.9)
|
15
|
+
mail (~> 2.2.19)
|
16
|
+
actionpack (3.0.9)
|
17
|
+
activemodel (= 3.0.9)
|
18
|
+
activesupport (= 3.0.9)
|
19
|
+
builder (~> 2.1.2)
|
20
|
+
erubis (~> 2.6.6)
|
21
|
+
i18n (~> 0.5.0)
|
22
|
+
rack (~> 1.2.1)
|
23
|
+
rack-mount (~> 0.6.14)
|
24
|
+
rack-test (~> 0.5.7)
|
25
|
+
tzinfo (~> 0.3.23)
|
26
|
+
activemodel (3.0.9)
|
27
|
+
activesupport (= 3.0.9)
|
28
|
+
builder (~> 2.1.2)
|
29
|
+
i18n (~> 0.5.0)
|
30
|
+
activesupport (3.0.9)
|
9
31
|
archive-tar-minitar (0.5.2)
|
10
|
-
|
11
|
-
|
32
|
+
builder (2.1.2)
|
33
|
+
chimpster (0.1.8)
|
34
|
+
columnize (0.3.4)
|
35
|
+
crack (0.1.8)
|
36
|
+
diff-lcs (1.1.2)
|
37
|
+
erubis (2.6.6)
|
38
|
+
abstract (>= 1.0.0)
|
12
39
|
git (1.2.5)
|
13
|
-
|
14
|
-
|
40
|
+
httparty (0.7.8)
|
41
|
+
crack (= 0.1.8)
|
42
|
+
i18n (0.5.0)
|
43
|
+
jeweler (1.6.4)
|
44
|
+
bundler (~> 1.0)
|
15
45
|
git (>= 1.2.5)
|
16
|
-
|
17
|
-
|
18
|
-
linecache (0.
|
19
|
-
|
46
|
+
rake
|
47
|
+
json (1.5.3)
|
48
|
+
linecache (0.46)
|
49
|
+
rbx-require-relative (> 0.0.4)
|
50
|
+
linecache19 (0.5.12)
|
20
51
|
ruby_core_source (>= 0.1.4)
|
21
|
-
|
22
|
-
|
52
|
+
mail (2.2.19)
|
53
|
+
activesupport (>= 2.3.6)
|
54
|
+
i18n (>= 0.4.0)
|
55
|
+
mime-types (~> 1.16)
|
56
|
+
treetop (~> 1.4.8)
|
57
|
+
mime-types (1.16)
|
58
|
+
polyglot (0.3.1)
|
59
|
+
rack (1.2.3)
|
60
|
+
rack-mount (0.6.14)
|
61
|
+
rack (>= 1.0.0)
|
62
|
+
rack-test (0.5.7)
|
63
|
+
rack (>= 1.0)
|
64
|
+
railties (3.0.9)
|
65
|
+
actionpack (= 3.0.9)
|
66
|
+
activesupport (= 3.0.9)
|
67
|
+
rake (>= 0.8.7)
|
68
|
+
rdoc (~> 3.4)
|
69
|
+
thor (~> 0.14.4)
|
70
|
+
rake (0.9.2)
|
71
|
+
rbx-require-relative (0.0.5)
|
72
|
+
rdoc (3.8)
|
73
|
+
rspec (2.6.0)
|
74
|
+
rspec-core (~> 2.6.0)
|
75
|
+
rspec-expectations (~> 2.6.0)
|
76
|
+
rspec-mocks (~> 2.6.0)
|
77
|
+
rspec-core (2.6.4)
|
78
|
+
rspec-expectations (2.6.0)
|
79
|
+
diff-lcs (~> 1.1.2)
|
80
|
+
rspec-mocks (2.6.0)
|
81
|
+
rspec-rails (2.6.1)
|
82
|
+
actionpack (~> 3.0)
|
83
|
+
activesupport (~> 3.0)
|
84
|
+
railties (~> 3.0)
|
85
|
+
rspec (~> 2.6.0)
|
86
|
+
ruby-debug (0.10.4)
|
23
87
|
columnize (>= 0.1)
|
24
|
-
ruby-debug-base (~> 0.10.
|
25
|
-
ruby-debug-base (0.10.
|
88
|
+
ruby-debug-base (~> 0.10.4.0)
|
89
|
+
ruby-debug-base (0.10.4)
|
26
90
|
linecache (>= 0.3)
|
27
|
-
ruby-debug-base19 (0.11.
|
91
|
+
ruby-debug-base19 (0.11.25)
|
28
92
|
columnize (>= 0.3.1)
|
29
93
|
linecache19 (>= 0.5.11)
|
30
94
|
ruby_core_source (>= 0.1.4)
|
@@ -32,17 +96,24 @@ GEM
|
|
32
96
|
columnize (>= 0.3.1)
|
33
97
|
linecache19 (>= 0.5.11)
|
34
98
|
ruby-debug-base19 (>= 0.11.19)
|
35
|
-
ruby_core_source (0.1.
|
99
|
+
ruby_core_source (0.1.5)
|
36
100
|
archive-tar-minitar (>= 0.5.2)
|
37
|
-
|
38
|
-
|
101
|
+
thor (0.14.6)
|
102
|
+
treetop (1.4.9)
|
103
|
+
polyglot (>= 0.3.1)
|
104
|
+
tzinfo (0.3.29)
|
105
|
+
uakari (0.1.3)
|
106
|
+
httparty (> 0.6.0)
|
107
|
+
json (> 1.4.0)
|
39
108
|
|
40
109
|
PLATFORMS
|
41
110
|
ruby
|
42
111
|
|
43
112
|
DEPENDENCIES
|
113
|
+
chimpster-rails!
|
44
114
|
jeweler
|
45
|
-
|
46
|
-
rspec
|
115
|
+
rspec (= 2.6.0)
|
116
|
+
rspec-rails (= 2.6.1)
|
47
117
|
ruby-debug
|
48
118
|
ruby-debug19
|
119
|
+
uakari
|
data/README.rdoc
CHANGED
data/chimpster-rails.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{chimpster-rails}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael Hart"]
|
@@ -48,7 +48,7 @@ Gem::Specification.new do |s|
|
|
48
48
|
s.rdoc_options = ["--charset=UTF-8"]
|
49
49
|
s.require_paths = ["lib"]
|
50
50
|
s.rubygems_version = %q{1.3.7}
|
51
|
-
s.summary = %q{
|
51
|
+
s.summary = %q{Mailchimp adapter for ActionMailer}
|
52
52
|
s.test_files = [
|
53
53
|
"spec/fixtures/models/test_mailer.rb",
|
54
54
|
"spec/chimpster-rails_spec.rb",
|
@@ -61,16 +61,16 @@ Gem::Specification.new do |s|
|
|
61
61
|
|
62
62
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
63
63
|
s.add_runtime_dependency(%q<actionmailer>, [">= 0"])
|
64
|
-
s.add_runtime_dependency(%q<chimpster>, [">= 0.
|
64
|
+
s.add_runtime_dependency(%q<chimpster>, [">= 0.1.8"])
|
65
65
|
s.add_runtime_dependency(%q<rake>, [">= 0"])
|
66
66
|
else
|
67
67
|
s.add_dependency(%q<actionmailer>, [">= 0"])
|
68
|
-
s.add_dependency(%q<chimpster>, [">= 0.
|
68
|
+
s.add_dependency(%q<chimpster>, [">= 0.1.8"])
|
69
69
|
s.add_dependency(%q<rake>, [">= 0"])
|
70
70
|
end
|
71
71
|
else
|
72
72
|
s.add_dependency(%q<actionmailer>, [">= 0"])
|
73
|
-
s.add_dependency(%q<chimpster>, [">= 0.
|
73
|
+
s.add_dependency(%q<chimpster>, [">= 0.1.8"])
|
74
74
|
s.add_dependency(%q<rake>, [">= 0"])
|
75
75
|
end
|
76
76
|
end
|
data/lib/chimpster-rails.rb
CHANGED
@@ -13,7 +13,7 @@ module ChimpsterInstaller
|
|
13
13
|
|
14
14
|
def install_in_rails_3
|
15
15
|
ActionMailer::Base.add_delivery_method :chimpster, Mail::Chimpster, :api_key => nil
|
16
|
-
Mail::Message.send(:include, Chimpster::AttachmentsFixForMail)
|
16
|
+
# Mail::Message.send(:include, Chimpster::AttachmentsFixForMail)
|
17
17
|
end
|
18
18
|
|
19
19
|
end
|
@@ -1,14 +1,15 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
|
-
describe "
|
3
|
+
describe "ChimpsterRails" do
|
4
4
|
it "should allow setting an api key" do
|
5
|
+
|
5
6
|
Chimpster.stub!(:send_through_chimpster)
|
6
7
|
ActionMailer::Base.chimpster_settings = {:api_key => 'api-key'}
|
7
8
|
ActionMailer::Base.chimpster_settings[:api_key].should == 'api-key'
|
8
9
|
Chimpster.should_receive(:api_key=).with('api-key')
|
9
10
|
TestMailer.simple_message.deliver
|
10
11
|
end
|
11
|
-
|
12
|
+
|
12
13
|
it "should use chimpster for delivery" do
|
13
14
|
Chimpster.should_receive(:send_through_chimpster) do |message|
|
14
15
|
message.subject.should == "hello"
|
@@ -22,7 +23,7 @@ describe "ChimpsterRails3" do
|
|
22
23
|
end
|
23
24
|
TestMailer.tagged_message.deliver
|
24
25
|
end
|
25
|
-
|
26
|
+
|
26
27
|
it "should work with multipart messages" do
|
27
28
|
Chimpster.should_receive(:send_through_chimpster) do |message|
|
28
29
|
message.should be_multipart
|
data/spec/spec_helper.rb
CHANGED
@@ -5,6 +5,9 @@ require 'rubygems'
|
|
5
5
|
require 'chimpster'
|
6
6
|
require 'chimpster-rails'
|
7
7
|
require 'rspec'
|
8
|
+
#require 'spec'
|
9
|
+
#require 'spec/autorun'
|
10
|
+
|
8
11
|
|
9
12
|
ActionMailer::Base.delivery_method = :chimpster
|
10
13
|
ActionMailer::Base.prepend_view_path(File.join(File.dirname(__FILE__), "fixtures", "views"))
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chimpster-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Hart
|
@@ -39,12 +39,12 @@ dependencies:
|
|
39
39
|
requirements:
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
hash:
|
42
|
+
hash: 11
|
43
43
|
segments:
|
44
44
|
- 0
|
45
|
-
-
|
46
|
-
-
|
47
|
-
version: 0.
|
45
|
+
- 1
|
46
|
+
- 8
|
47
|
+
version: 0.1.8
|
48
48
|
type: :runtime
|
49
49
|
version_requirements: *id002
|
50
50
|
- !ruby/object:Gem::Dependency
|
@@ -123,7 +123,7 @@ rubyforge_project:
|
|
123
123
|
rubygems_version: 1.8.5
|
124
124
|
signing_key:
|
125
125
|
specification_version: 3
|
126
|
-
summary:
|
126
|
+
summary: Mailchimp adapter for ActionMailer
|
127
127
|
test_files:
|
128
128
|
- spec/fixtures/models/test_mailer.rb
|
129
129
|
- spec/chimpster-rails_spec.rb
|