capistrano-mailgun 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -67,7 +67,7 @@ in your `deploy.rb` file:
67
67
  namespace :email do
68
68
  task :ops do
69
69
  mailgun.send_email(
70
- :to => mailgun.build_recipients(ops_emails, 'example.com'),
70
+ :to => mailgun.build_recipients(ops_emails, 'example.com'), # use build_recipients to format TO field properly
71
71
  :from => 'some_dude@example.com',
72
72
  :subject => 'you have just been mailgunned',
73
73
  :text => email_body
@@ -152,7 +152,8 @@ Setting this will override the default.
152
152
  ### mailgun.build_recipients( recipients, default_domain=nil )
153
153
 
154
154
  Given an array of email addresses, this will join them with a comma so any recipients field with more than 1 recipient
155
- will be formatted properly. Typically, you will only use this function in the event that you're using `mailgun.send_email`.
155
+ will be formatted properly, have the recipients list deduplicated and returned as a string. Typically, you will only use
156
+ this function in the event that you're calling `mailgun.send_email` directly.
156
157
 
157
158
  You can also pass an alternate `default_domain`. This is useful if you're not using the global `mailgun_recipient_domain`
158
159
  Capistrano variable of if you want to override the behavior in this one use-case. `mailgun.build_recipients` will always
@@ -187,7 +188,7 @@ Of course, you can also pass `:text` and `:html` options for the exact text/html
187
188
 
188
189
  ### deployer_username
189
190
 
190
- This is a default capistrano variable that is defined in the gyem. It will use the `git config user.name` if `scm` is
191
+ This is a default capistrano variable that is defined in the gem. It will use the `git config user.name` if `scm` is
191
192
  configured as `:git` or use `whoami` if not. This is handy if you want to notify people of which user
192
193
  actually did the deployment.
193
194
 
@@ -4,8 +4,8 @@ require File.expand_path('../lib/capistrano-mailgun/version', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Spike Grobstein"]
6
6
  gem.email = ["spike@ticketevolution.com"]
7
- gem.description = %q{Notify of deploys and other actions using mailgun}
8
- gem.summary = %q{Notify of deploys and other actions using mailgun}
7
+ gem.description = %q{Send emails using the Mailgun API from your Capistrano recipes. Simple configuration using Capistrano variables along with direct access to the API.}
8
+ gem.summary = %q{Capistrano plugin for sending emails via the Mailgun API.}
9
9
  gem.homepage = ""
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Mailgun
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-mailgun
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -43,7 +43,8 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
- description: Notify of deploys and other actions using mailgun
46
+ description: Send emails using the Mailgun API from your Capistrano recipes. Simple
47
+ configuration using Capistrano variables along with direct access to the API.
47
48
  email:
48
49
  - spike@ticketevolution.com
49
50
  executables: []
@@ -78,7 +79,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
79
  version: '0'
79
80
  segments:
80
81
  - 0
81
- hash: 224140973397268413
82
+ hash: 3847962389882699004
82
83
  required_rubygems_version: !ruby/object:Gem::Requirement
83
84
  none: false
84
85
  requirements:
@@ -87,13 +88,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
88
  version: '0'
88
89
  segments:
89
90
  - 0
90
- hash: 224140973397268413
91
+ hash: 3847962389882699004
91
92
  requirements: []
92
93
  rubyforge_project:
93
94
  rubygems_version: 1.8.24
94
95
  signing_key:
95
96
  specification_version: 3
96
- summary: Notify of deploys and other actions using mailgun
97
+ summary: Capistrano plugin for sending emails via the Mailgun API.
97
98
  test_files:
98
99
  - spec/capistrano-mailgun_spec.rb
99
100
  - spec/fixtures/html_body.erb