postmark-rails 0.9.0 → 0.10.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
2
  SHA1:
3
- metadata.gz: db2bf0b42251484ef3ef38fde4e2e42f0d58c2fa
4
- data.tar.gz: 5e1af9214bf129061d703f55f77009cfa4c8ef58
3
+ metadata.gz: 9ac2260b17cb67e422bf959ddad15557cb7e974c
4
+ data.tar.gz: 59779677132ec6a8d11e99c9cfe6ee1fdf747105
5
5
  SHA512:
6
- metadata.gz: 0b80bb562f0795c87ee1af7b11267ccd24dd2825c494f7c3b41ebe83e23c2e716a60467c43bba69a4470da90d9621bf87212026068eabe0edccc5be91df24394
7
- data.tar.gz: 92bca688f60abd25346f48225b3dfae626240996809de049bf9efdf398fe8567c199d044d03393731209c23e784c571369c4f3fe6d9c3e120622cc93c0af7814
6
+ metadata.gz: 55253b7d9c0559d978d0aa3ef77d5dba52d39ca37b769f37525935aa44d686f9848e88bdaaa48d61bbf793c2bcf1059b1f819b1e6b736e0ef0bda31f018e550a
7
+ data.tar.gz: d07c259c4e7ef5b86c7a76b34b038eef5fea620acd6fc9ce02dc848b18a030ed49220638daaa4c59c9be6aa1994b3bfeb2ef911bd89a6a72733812032834d545
data/.gitignore CHANGED
@@ -7,3 +7,4 @@ pkg
7
7
  .bundle
8
8
  .rvmrc
9
9
  Gemfile.lock
10
+ gemfiles/*.lock
@@ -3,16 +3,19 @@ rvm:
3
3
  - 1.8.7
4
4
  - 1.9.3
5
5
  - 2.0.0
6
- - 2.1.0
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
@@ -1,5 +1,10 @@
1
1
  = Changelog
2
2
 
3
+ == 0.10.0
4
+
5
+ * Updated the postmark gem dependency to 1.5.x
6
+ * Called API access strings tokens instead of keys in documentation and code. Kept backwards compatibility.
7
+
3
8
  == 0.9.0
4
9
 
5
10
  * Enabled HTTPS by default.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # postmark-rails gem
2
2
 
3
- [![Build Status](https://travis-ci.org/wildbit/postmark-rails.png?branch=master)](https://travis-ci.org/wildbit/postmark-rails) [![Code Climate](https://codeclimate.com/github/wildbit/postmark-rails.png)](https://codeclimate.com/github/wildbit/postmark-rails)
3
+ [![Build Status](https://travis-ci.org/wildbit/postmark-rails.svg?branch=master)](https://travis-ci.org/wildbit/postmark-rails) [![Code Climate](https://codeclimate.com/github/wildbit/postmark-rails/badges/gpa.svg)](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.9.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 = { :api_key => "your-api-key" }
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-key')
89
+ client = Postmark::ApiClient.new('your-api-token')
90
90
 
91
91
  messages = []
92
92
  messages << DigestMailer.weekly_digest(@user1)
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'postmark', '~> 1.3.0'
3
+ gem 'postmark', '~> 1.5.0', :path => ENV['POSTMARK_GEM_PATH']
4
4
  gem 'actionmailer', '~> 3.0.0'
5
5
 
6
6
  group :test do
@@ -1,7 +1,8 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'postmark', '~> 1.3.0'
3
+ gem 'postmark', '~> 1.5.0', :path => ENV['POSTMARK_GEM_PATH']
4
4
  gem 'actionmailer', '~> 3.2.0'
5
+ gem 'i18n', '~> 0.6.0'
5
6
 
6
7
  group :test do
7
8
  gem 'rspec', '~> 2.14.0'
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'postmark', '~> 1.3.0'
3
+ gem 'postmark', '~> 1.5.0', path: ENV['POSTMARK_GEM_PATH']
4
4
  gem 'actionmailer', '~> 4.0.0'
5
5
 
6
6
  group :test do
@@ -0,0 +1,9 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'postmark', '~> 1.5.0', path: ENV['POSTMARK_GEM_PATH']
4
+ gem 'actionmailer', '~> 4.1.0'
5
+
6
+ group :test do
7
+ gem 'rspec', '~> 2.14.0'
8
+ gem 'mime-types', '~> 1.25.1'
9
+ end
@@ -0,0 +1,9 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'postmark', '~> 1.5.0', path: ENV['POSTMARK_GEM_PATH']
4
+ gem 'actionmailer', '~> 4.2.0'
5
+
6
+ group :test do
7
+ gem 'rspec', '~> 2.14.0'
8
+ gem 'mime-types', '~> 1.25.1'
9
+ end
@@ -5,7 +5,7 @@ module PostmarkRails
5
5
  extend self
6
6
 
7
7
  def install
8
- ActionMailer::Base.add_delivery_method :postmark, Mail::Postmark, :api_key => nil
8
+ ActionMailer::Base.add_delivery_method :postmark, Mail::Postmark
9
9
  end
10
10
  end
11
11
 
@@ -1,3 +1,3 @@
1
1
  module PostmarkRails
2
- VERSION = '0.9.0'
2
+ VERSION = '0.10.0'
3
3
  end
@@ -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.4.0")
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(:api_key) { 'POSTMARK_API_TEST' }
4
+ let(:api_token) { 'POSTMARK_API_TEST' }
5
5
 
6
6
  before do
7
- ActionMailer::Base.postmark_settings = { :api_key => api_key }
7
+ ActionMailer::Base.postmark_settings = { :api_token => api_token }
8
8
  end
9
9
 
10
10
  it 'delivers a simple message' do
@@ -1,11 +1,11 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe "PostmarkRails3" do
4
- let!(:api_client) { Postmark::ApiClient.new('api-key') }
4
+ let!(:api_client) { Postmark::ApiClient.new('api-token') }
5
5
 
6
- it "should allow setting an api key" do
7
- ActionMailer::Base.postmark_settings = {:api_key => 'api-key'}
8
- expect(ActionMailer::Base.postmark_settings[:api_key]).to eq('api-key')
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.9.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: 2014-12-02 00:00:00.000000000 Z
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.4.0
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.4.0
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.1
117
+ rubygems_version: 2.2.2
116
118
  signing_key:
117
119
  specification_version: 4
118
120
  summary: Postmark adapter for ActionMailer