postmark-rails 0.19.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f2df5ed989cb277bb16b071ca354702e6b99f87d
4
- data.tar.gz: 14347b26486e2dfd1be2da601904fc4614f641dd
2
+ SHA256:
3
+ metadata.gz: dc7745cd4b479b454e6e90734d90eea3e0cfbb1e60ff458bfdd9737a8d86a054
4
+ data.tar.gz: 4e97f95902d60968987ee44a769b4fee77eca9de8e9a10a7fbd47f90b09b154a
5
5
  SHA512:
6
- metadata.gz: 65cd3fb9c9044c5fe718683f2ddcfae18965d65a7412d7edd894ef5e12755b64624b6fa64550a15302f18d30e12240773c7ddbbb4b0a618980df4568168066ed
7
- data.tar.gz: 323747a71a0331865a32b9200817b101e94b13e89d8a534fcc4697ad0488db0f5c384f457bfc75b4e7adae6701370bff58a1624634a3a9890a5e361cbbaaf90a
6
+ metadata.gz: f59aebc4c6bc2cd804e0dba9abf9a750d1fca8076b97771f5c484638359fa15d1d1f3a2cfe2891f260792b511162e6bb9fee48192c267002e13fe4f945be3727
7
+ data.tar.gz: 98224a32f71170fe6a8aed66ff6ff0f6ccf83260c602c6721648f57ad6cebc580081580c680adeec0a4f0cdcad3383fdd3a27f60c16485555201dc63c2dd626d
@@ -1,7 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.8.7
4
- - 1.9.3
5
3
  - 2.0.0
6
4
  - 2.1.10
7
5
  - 2.2.10
@@ -9,6 +7,7 @@ rvm:
9
7
  - 2.4.5
10
8
  - 2.5.3
11
9
  - 2.6.0
10
+ - 2.7.0
12
11
  script: bundle exec rake spec
13
12
  gemfile:
14
13
  - Gemfile
@@ -19,34 +18,20 @@ gemfile:
19
18
  - gemfiles/Gemfile.actionmailer-4.2.x
20
19
  - gemfiles/Gemfile.actionmailer-5.0.x
21
20
  - gemfiles/Gemfile.actionmailer-5.1.x
21
+ - gemfiles/Gemfile.actionmailer-5.2.x
22
+ - gemfiles/Gemfile.actionmailer-6.0.x
22
23
  matrix:
23
24
  exclude:
24
- - rvm: 1.8.7
25
- gemfile: Gemfile
26
- - rvm: 1.8.7
27
- gemfile: gemfiles/Gemfile.actionmailer-4.0.x
28
- - rvm: 1.8.7
29
- gemfile: gemfiles/Gemfile.actionmailer-4.1.x
30
- - rvm: 1.8.7
31
- gemfile: gemfiles/Gemfile.actionmailer-4.2.x
32
- - rvm: 1.8.7
33
- gemfile: gemfiles/Gemfile.actionmailer-5.0.x
34
- - rvm: 1.8.7
35
- gemfile: gemfiles/Gemfile.actionmailer-5.1.x
36
-
37
- - rvm: 1.9.3
38
- gemfile: Gemfile
39
- - rvm: 1.9.3
40
- gemfile: gemfiles/Gemfile.actionmailer-5.0.x
41
- - rvm: 1.9.3
42
- gemfile: gemfiles/Gemfile.actionmailer-5.1.x
43
-
44
25
  - rvm: 2.0.0
45
26
  gemfile: Gemfile
46
27
  - rvm: 2.0.0
47
28
  gemfile: gemfiles/Gemfile.actionmailer-5.0.x
48
29
  - rvm: 2.0.0
49
30
  gemfile: gemfiles/Gemfile.actionmailer-5.1.x
31
+ - rvm: 2.0.0
32
+ gemfile: gemfiles/Gemfile.actionmailer-5.2.x
33
+ - rvm: 2.0.0
34
+ gemfile: gemfiles/Gemfile.actionmailer-6.0.x
50
35
 
51
36
  - rvm: 2.1.10
52
37
  gemfile: Gemfile
@@ -54,6 +39,19 @@ matrix:
54
39
  gemfile: gemfiles/Gemfile.actionmailer-5.0.x
55
40
  - rvm: 2.1.10
56
41
  gemfile: gemfiles/Gemfile.actionmailer-5.1.x
42
+ - rvm: 2.1.10
43
+ gemfile: gemfiles/Gemfile.actionmailer-5.2.x
44
+ - rvm: 2.1.10
45
+ gemfile: gemfiles/Gemfile.actionmailer-6.0.x
46
+
47
+ - rvm: 2.2.10
48
+ gemfile: gemfiles/Gemfile.actionmailer-6.0.x
49
+
50
+ - rvm: 2.3.8
51
+ gemfile: gemfiles/Gemfile.actionmailer-6.0.x
52
+
53
+ - rvm: 2.4.5
54
+ gemfile: gemfiles/Gemfile.actionmailer-6.0.x
57
55
 
58
56
  - rvm: 2.5.3
59
57
  gemfile: gemfiles/Gemfile.actionmailer-3.0.x
@@ -70,5 +68,16 @@ matrix:
70
68
  gemfile: gemfiles/Gemfile.actionmailer-4.1.x
71
69
  - rvm: 2.6.0
72
70
  gemfile: gemfiles/Gemfile.actionmailer-4.2.x
71
+
72
+ - rvm: 2.7.0
73
+ gemfile: gemfiles/Gemfile.actionmailer-3.0.x
74
+ - rvm: 2.7.0
75
+ gemfile: gemfiles/Gemfile.actionmailer-3.2.x
76
+ - rvm: 2.7.0
77
+ gemfile: gemfiles/Gemfile.actionmailer-4.0.x
78
+ - rvm: 2.7.0
79
+ gemfile: gemfiles/Gemfile.actionmailer-4.1.x
80
+ - rvm: 2.7.0
81
+ gemfile: gemfiles/Gemfile.actionmailer-4.2.x
73
82
  before_install:
74
83
  - .travis/setup.sh
@@ -9,6 +9,5 @@ if [[ "$TRAVIS_RUBY_VERSION" < "2.3" ]];
9
9
  then
10
10
  gem install bundler -v '< 2'
11
11
  else
12
- gem update --system
13
12
  gem install bundler
14
13
  fi
@@ -1,5 +1,12 @@
1
1
  = Changelog
2
2
 
3
+ == 0.20.0
4
+
5
+ * Update the postmark gem dependency to 1.x
6
+ * Added support for Rails 6
7
+ * Dropped support for Ruby 1.8.7 and 1.9.3
8
+ * Added support for Ruby 2.7
9
+
3
10
  == 0.19.0
4
11
 
5
12
  * Update the postmark gem dependency to 1.15.x.
data/README.md CHANGED
@@ -8,10 +8,10 @@
8
8
  [![License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://www.opensource.org/licenses/MIT)
9
9
  [![Gem Version](https://badge.fury.io/rb/postmark-rails.svg)](https://badge.fury.io/rb/postmark-rails)
10
10
 
11
- [Postmark](https://postmarkapp.com) allows you to send your emails with high delivery rates.
11
+ [Postmark](https://postmarkapp.com) allows you to send your emails with high delivery rates.
12
12
  It also includes detailed statistics. In addition, Postmark can parse incoming emails which are forwarded back to your application.
13
13
 
14
- The Postmark Rails Gem is a drop-in plug-in for ActionMailer to send emails via [Postmark](https://postmarkapp.com).
14
+ The Postmark Rails Gem is a drop-in plug-in for ActionMailer to send emails via [Postmark](https://postmarkapp.com).
15
15
  The gem has been created for fast implementation and fully supports all of [Postmark’s features](https://postmarkapp.com/why).
16
16
 
17
17
  ## Usage
@@ -21,18 +21,19 @@ For details about Postmark API in general, please check out [Postmark developer
21
21
 
22
22
  ## Requirements
23
23
 
24
- You will need a Postmark account, server and sender signature (or verified domain) set up to use it.
24
+ You will need a Postmark account, server and sender signature (or verified domain) set up to use it.
25
25
  For details about setup, check out [wiki pages](https://github.com/wildbit/postmark-rails/wiki/Getting-Started).
26
26
 
27
27
  Also you will need a [postmark gem](https://github.com/wildbit/postmark-gem) version 1.0 and higher is required.
28
28
 
29
29
  ### Supported Rails Versions
30
30
 
31
+ * Rails 6.0
31
32
  * Rails 5.0
32
33
  * Rails 4.x
33
34
  * Rails 3.x
34
35
 
35
- For Rails 2.3 please take a look at [version 0.4](https://github.com/wildbit/postmark-rails/tree/v0.4.2).
36
+ For Rails 2.3 please take a look at [version 0.4](https://github.com/wildbit/postmark-rails/tree/v0.4.2).
36
37
  It may miss some new features, but receives all required bug fixes and other support if needed.
37
38
 
38
39
  ## Installation
@@ -43,7 +44,25 @@ Add `postmark-rails` to your Gemfile and run `bundle install`.
43
44
  gem 'postmark-rails'
44
45
  ```
45
46
 
46
- Save your Postmark API token to [config/secrets.yml](http://guides.rubyonrails.org/4_1_release_notes.html#config-secrets-yml).
47
+
48
+
49
+ ## Rails 6
50
+ Save your Postmark Server API Token to [config/credentials.yml.enc](https://guides.rubyonrails.org/security.html#custom-credentials):
51
+
52
+ run `rails secret`, then run `rails credentials:edit` and add:
53
+
54
+ ``` yaml
55
+ postmark_api_token: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
56
+ ```
57
+ Set Postmark as your preferred mail delivery method via `config/application.rb`:
58
+
59
+ ``` ruby
60
+ config.action_mailer.delivery_method = :postmark
61
+ config.action_mailer.postmark_settings = { api_token: Rails.application.credentials.postmark_api_token }
62
+ ```
63
+
64
+ ## Rails 3-5
65
+ Save your Postmark Server API token to [config/secrets.yml](http://guides.rubyonrails.org/4_1_release_notes.html#config-secrets-yml).
47
66
 
48
67
  ``` yaml
49
68
  postmark_api_token: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
@@ -56,12 +75,14 @@ config.action_mailer.delivery_method = :postmark
56
75
  config.action_mailer.postmark_settings = { :api_token => Rails.application.secrets.postmark_api_token }
57
76
  ```
58
77
 
78
+ ***
79
+
59
80
  **Note**: The `postmark_settings` hash can contain [any options](https://github.com/wildbit/postmark-gem#communicating-with-the-api) supported by `Postmark::ApiClient`.
60
81
 
61
82
 
62
83
  ### Additional information
63
84
 
64
- Looking for the advanced usage examples? Check out [the documentation](https://github.com/wildbit/postmark-gem/blob/master/README.md) for the [postmark gem](https://github.com/wildbit/postmark-gem).
85
+ Looking for the advanced usage examples? Check out [the documentation](https://github.com/wildbit/postmark-gem/blob/master/README.md) for the [postmark gem](https://github.com/wildbit/postmark-gem).
65
86
  The `postmark-rails` gem is built on top of it, so you can benefit from all it's features.
66
87
 
67
88
  ## Note on Patches/Pull Requests
@@ -81,14 +102,14 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) file for details.
81
102
 
82
103
  ## Issues & Comments
83
104
 
84
- Feel free to contact us if you encounter any issues with the library or Postmark API.
85
- Please leave all comments, bugs, requests and issues on the Issues page.
105
+ Feel free to contact us if you encounter any issues with the library or Postmark API.
106
+ Please leave all comments, bugs, requests and issues on the Issues page.
86
107
 
87
108
  ## License
88
109
 
89
- The Postmark Rails gem is licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php) license.
110
+ The Postmark Rails gem is licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php) license.
90
111
  Refer to the [LICENSE](https://github.com/wildbit/postmark-rails/blob/master/LICENSE) file for more information.
91
112
 
92
113
  ## Copyright
93
114
 
94
- Copyright © 2018 Wildbit LLC.
115
+ Copyright © 2020 Wildbit LLC.
@@ -4,7 +4,7 @@ gemspec :path => '../'
4
4
 
5
5
  gem 'json', '< 2.0.0'
6
6
  gem 'rake', '< 11.0.0'
7
- gem 'postmark', '~> 1.15.0', :path => ENV['POSTMARK_GEM_PATH']
7
+ gem 'postmark', '~> 1.15', :path => ENV['POSTMARK_GEM_PATH']
8
8
  gem 'actionmailer', '~> 3.0.0'
9
9
  gem 'rack-cache', '~> 1.2.0'
10
10
 
@@ -4,7 +4,7 @@ gemspec :path => '../'
4
4
 
5
5
  gem 'json', '< 2.0.0'
6
6
  gem 'rake', '< 11.0.0'
7
- gem 'postmark', '~> 1.15.0', :path => ENV['POSTMARK_GEM_PATH']
7
+ gem 'postmark', '~> 1.15', :path => ENV['POSTMARK_GEM_PATH']
8
8
  gem 'actionmailer', :github => 'rails', :branch => '3-2-stable'
9
9
  gem 'i18n', '~> 0.6.0'
10
10
  gem 'rack-cache', '~> 1.2.0'
@@ -3,7 +3,7 @@ source "https://rubygems.org"
3
3
  gemspec :path => '../'
4
4
 
5
5
  gem 'json', '< 2.0.0'
6
- gem 'postmark', '~> 1.15.0', path: ENV['POSTMARK_GEM_PATH']
6
+ gem 'postmark', '~> 1.15', path: ENV['POSTMARK_GEM_PATH']
7
7
  gem 'actionmailer', '~> 4.0.0'
8
8
 
9
9
  group :test do
@@ -3,7 +3,7 @@ source "https://rubygems.org"
3
3
  gemspec :path => '../'
4
4
 
5
5
  gem 'json', '< 2.0.0'
6
- gem 'postmark', '~> 1.15.0', path: ENV['POSTMARK_GEM_PATH']
6
+ gem 'postmark', '~> 1.15', path: ENV['POSTMARK_GEM_PATH']
7
7
  gem 'actionmailer', '~> 4.1.0'
8
8
 
9
9
  group :test do
@@ -2,7 +2,7 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec :path => '../'
4
4
 
5
- gem 'postmark', '~> 1.15.0', path: ENV['POSTMARK_GEM_PATH']
5
+ gem 'postmark', '~> 1.15', path: ENV['POSTMARK_GEM_PATH']
6
6
  gem 'actionmailer', '~> 5.0.0'
7
7
 
8
8
  group :test do
@@ -2,7 +2,7 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec :path => '../'
4
4
 
5
- gem 'postmark', '~> 1.15.0', path: ENV['POSTMARK_GEM_PATH']
5
+ gem 'postmark', '~> 1.15', path: ENV['POSTMARK_GEM_PATH']
6
6
  gem 'actionmailer', '~> 5.1.0'
7
7
 
8
8
  group :test do
@@ -0,0 +1,11 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec :path => '../'
4
+
5
+ gem 'postmark', '~> 1.15', path: ENV['POSTMARK_GEM_PATH']
6
+ gem 'actionmailer', '~> 5.2.0'
7
+
8
+ group :test do
9
+ gem 'rspec', '~> 3.7'
10
+ gem 'mime-types', '~> 3.2.2'
11
+ end
@@ -0,0 +1,11 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec :path => '../'
4
+
5
+ gem 'postmark', '~> 1.15', path: ENV['POSTMARK_GEM_PATH']
6
+ gem 'actionmailer', '~> 6.0.0'
7
+
8
+ group :test do
9
+ gem 'rspec', '~> 3.7'
10
+ gem 'mime-types', '~> 3.2.2'
11
+ end
@@ -1,3 +1,3 @@
1
1
  module PostmarkRails
2
- VERSION = '0.19.0'
2
+ VERSION = '0.20.0'
3
3
  end
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.rdoc_options = ["--charset=UTF-8"]
22
22
 
23
23
  s.add_dependency('actionmailer', ">= 3.0.0")
24
- s.add_dependency('postmark', "~> 1.15.0")
24
+ s.add_dependency('postmark', "~> 1.15")
25
25
 
26
26
  s.add_development_dependency("rake")
27
27
 
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.19.0
4
+ version: 0.20.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: 2019-01-11 00:00:00.000000000 Z
13
+ date: 2020-03-12 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.15.0
35
+ version: '1.15'
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.15.0
42
+ version: '1.15'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: rake
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +80,8 @@ files:
80
80
  - gemfiles/Gemfile.actionmailer-4.2.x
81
81
  - gemfiles/Gemfile.actionmailer-5.0.x
82
82
  - gemfiles/Gemfile.actionmailer-5.1.x
83
+ - gemfiles/Gemfile.actionmailer-5.2.x
84
+ - gemfiles/Gemfile.actionmailer-6.0.x
83
85
  - lib/postmark-rails.rb
84
86
  - lib/postmark-rails/preview_interceptor.rb
85
87
  - lib/postmark-rails/railtie.rb
@@ -125,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
127
  version: '0'
126
128
  requirements: []
127
129
  rubyforge_project:
128
- rubygems_version: 2.6.14
130
+ rubygems_version: 2.7.8
129
131
  signing_key:
130
132
  specification_version: 4
131
133
  summary: Postmark adapter for ActionMailer