postmark-rails 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +5 -2
- data/CHANGELOG.rdoc +5 -0
- data/README.md +4 -4
- data/gemfiles/Gemfile.actionmailer-3.0.x +1 -1
- data/gemfiles/Gemfile.actionmailer-3.2.x +2 -1
- data/gemfiles/Gemfile.actionmailer-4.0.x +1 -1
- data/gemfiles/Gemfile.actionmailer-4.1.x +9 -0
- data/gemfiles/Gemfile.actionmailer-4.2.x +9 -0
- data/lib/postmark-rails.rb +1 -1
- data/lib/postmark-rails/version.rb +1 -1
- data/postmark-rails.gemspec +1 -1
- data/spec/integration/delivery_spec.rb +2 -2
- data/spec/postmark-rails_spec.rb +4 -4
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ac2260b17cb67e422bf959ddad15557cb7e974c
|
4
|
+
data.tar.gz: 59779677132ec6a8d11e99c9cfe6ee1fdf747105
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55253b7d9c0559d978d0aa3ef77d5dba52d39ca37b769f37525935aa44d686f9848e88bdaaa48d61bbf793c2bcf1059b1f819b1e6b736e0ef0bda31f018e550a
|
7
|
+
data.tar.gz: d07c259c4e7ef5b86c7a76b34b038eef5fea620acd6fc9ce02dc848b18a030ed49220638daaa4c59c9be6aa1994b3bfeb2ef911bd89a6a72733812032834d545
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -3,16 +3,19 @@ rvm:
|
|
3
3
|
- 1.8.7
|
4
4
|
- 1.9.3
|
5
5
|
- 2.0.0
|
6
|
-
- 2.1.
|
6
|
+
- 2.1.5
|
7
7
|
script: bundle exec rake spec
|
8
8
|
gemfile:
|
9
9
|
- Gemfile
|
10
10
|
- gemfiles/Gemfile.actionmailer-3.0.x
|
11
11
|
- gemfiles/Gemfile.actionmailer-3.2.x
|
12
12
|
- gemfiles/Gemfile.actionmailer-4.0.x
|
13
|
+
- gemfiles/Gemfile.actionmailer-4.1.x
|
13
14
|
matrix:
|
14
15
|
exclude:
|
15
16
|
- rvm: 1.8.7
|
16
17
|
gemfile: Gemfile
|
17
18
|
- rvm: 1.8.7
|
18
|
-
gemfile: gemfiles/Gemfile.actionmailer-4.0.x
|
19
|
+
gemfile: gemfiles/Gemfile.actionmailer-4.0.x
|
20
|
+
- rvm: 1.8.7
|
21
|
+
gemfile: gemfiles/Gemfile.actionmailer-4.1.x
|
data/CHANGELOG.rdoc
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# postmark-rails gem
|
2
2
|
|
3
|
-
[](https://travis-ci.org/wildbit/postmark-rails) [](https://codeclimate.com/github/wildbit/postmark-rails)
|
4
4
|
|
5
5
|
The Postmark Rails Gem is a drop-in plug-in for ActionMailer to send emails via [Postmark](https://postmarkapp.com), an email delivery service for web apps. The gem has been created for fast implementation and fully supports all of [Postmark’s features](https://postmarkapp.com/why-postmark).
|
6
6
|
|
@@ -16,7 +16,7 @@ For Rails 2.3 please take a look at [version 0.4](https://github.com/wildbit/pos
|
|
16
16
|
Add this to your Gemfile: (change version numbers if needed)
|
17
17
|
|
18
18
|
``` ruby
|
19
|
-
gem 'postmark-rails', '~> 0.
|
19
|
+
gem 'postmark-rails', '~> 0.10.0'
|
20
20
|
```
|
21
21
|
|
22
22
|
Don’t forget to run `bundle install` command every time you change something in the Gemfile.
|
@@ -25,7 +25,7 @@ Add this to your config/application.rb:
|
|
25
25
|
|
26
26
|
``` ruby
|
27
27
|
config.action_mailer.delivery_method = :postmark
|
28
|
-
config.action_mailer.postmark_settings = { :
|
28
|
+
config.action_mailer.postmark_settings = { :api_token => "your-api-token" }
|
29
29
|
```
|
30
30
|
|
31
31
|
The `postmark_settings` hash can contain [all options](https://github.com/wildbit/postmark-gem#communicating-with-the-api) supported by `Postmark::ApiClient`.
|
@@ -86,7 +86,7 @@ in batches. To facilitate this we provide a batching endpoint that permits you
|
|
86
86
|
to send up to 500 well-formed Postmark messages in a single API call.
|
87
87
|
|
88
88
|
``` ruby
|
89
|
-
client = Postmark::ApiClient.new('your-api-
|
89
|
+
client = Postmark::ApiClient.new('your-api-token')
|
90
90
|
|
91
91
|
messages = []
|
92
92
|
messages << DigestMailer.weekly_digest(@user1)
|
data/lib/postmark-rails.rb
CHANGED
data/postmark-rails.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.rdoc_options = ["--charset=UTF-8"]
|
18
18
|
|
19
19
|
s.add_dependency('actionmailer', ">= 3.0.0")
|
20
|
-
s.add_dependency('postmark', "~> 1.
|
20
|
+
s.add_dependency('postmark', "~> 1.5.0")
|
21
21
|
s.add_development_dependency('rake')
|
22
22
|
|
23
23
|
s.files = `git ls-files`.split("\n")
|
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe "Delivering messages with postmark-rails" do
|
4
|
-
let(:
|
4
|
+
let(:api_token) { 'POSTMARK_API_TEST' }
|
5
5
|
|
6
6
|
before do
|
7
|
-
ActionMailer::Base.postmark_settings = { :
|
7
|
+
ActionMailer::Base.postmark_settings = { :api_token => api_token }
|
8
8
|
end
|
9
9
|
|
10
10
|
it 'delivers a simple message' do
|
data/spec/postmark-rails_spec.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe "PostmarkRails3" do
|
4
|
-
let!(:api_client) { Postmark::ApiClient.new('api-
|
4
|
+
let!(:api_client) { Postmark::ApiClient.new('api-token') }
|
5
5
|
|
6
|
-
it
|
7
|
-
ActionMailer::Base.postmark_settings = {:
|
8
|
-
expect(ActionMailer::Base.postmark_settings[:
|
6
|
+
it 'should allow setting an api token' do
|
7
|
+
ActionMailer::Base.postmark_settings = {:api_token => 'api-token'}
|
8
|
+
expect(ActionMailer::Base.postmark_settings[:api_token]).to eq('api-token')
|
9
9
|
end
|
10
10
|
|
11
11
|
it "should use postmark for delivery" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: postmark-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Petyo Ivanov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-01-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: actionmailer
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 1.
|
35
|
+
version: 1.5.0
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 1.
|
42
|
+
version: 1.5.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: rake
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -74,6 +74,8 @@ files:
|
|
74
74
|
- gemfiles/Gemfile.actionmailer-3.0.x
|
75
75
|
- gemfiles/Gemfile.actionmailer-3.2.x
|
76
76
|
- gemfiles/Gemfile.actionmailer-4.0.x
|
77
|
+
- gemfiles/Gemfile.actionmailer-4.1.x
|
78
|
+
- gemfiles/Gemfile.actionmailer-4.2.x
|
77
79
|
- lib/postmark-rails.rb
|
78
80
|
- lib/postmark-rails/railtie.rb
|
79
81
|
- lib/postmark-rails/version.rb
|
@@ -112,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
114
|
version: '0'
|
113
115
|
requirements: []
|
114
116
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.2.
|
117
|
+
rubygems_version: 2.2.2
|
116
118
|
signing_key:
|
117
119
|
specification_version: 4
|
118
120
|
summary: Postmark adapter for ActionMailer
|