forked from gofullstack/capistrano-notifier
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only supported Rails, rubies supporting 1.9 mode
Also upgrade hash syntax
- Loading branch information
1 parent
88a4d66
commit f48963f
Showing
7 changed files
with
49 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
env: | ||
- RAILS_VERSION=none | ||
- RAILS_VERSION=2.3 | ||
- RAILS_VERSION=3.0 | ||
- RAILS_VERSION=3.1 | ||
- RAILS_VERSION=3.2 | ||
- RAILS_VERSION=4.0 | ||
rvm: | ||
- 1.8.7 | ||
- 1.9.2 | ||
- 1.9.3 | ||
- jruby | ||
- rbx | ||
- ree | ||
- 2.0.0 | ||
- jruby-19mode | ||
- rbx-19mode | ||
- jruby-head | ||
- ruby-head | ||
matrix: | ||
allow_failures: | ||
- rvm: jruby | ||
- rvm: rbx | ||
- rvm: ruby-head | ||
exclude: | ||
- rvm: ruby-head | ||
env: RAILS_VERSION=2.3 | ||
- rvm: jruby-head | ||
notifications: | ||
email: | ||
- [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,10 @@ | |
before :each do | ||
configuration.load do |configuration| | ||
set :notifier_mail_options, { | ||
:github => 'example/example', | ||
:method => :sendmail, | ||
:from => '[email protected]', | ||
:to => '[email protected]' | ||
github: 'example/example', | ||
method: :sendmail, | ||
from: '[email protected]', | ||
to: '[email protected]' | ||
} | ||
|
||
set :application, 'example' | ||
|
@@ -32,10 +32,10 @@ | |
it 'delivers mail' do | ||
configuration.load do |configuration| | ||
set :notifier_mail_options, { | ||
:github => 'example/example', | ||
:method => :test, | ||
:from => '[email protected]', | ||
:to => '[email protected]' | ||
github: 'example/example', | ||
method: :test, | ||
from: '[email protected]', | ||
to: '[email protected]' | ||
} | ||
end | ||
|
||
|
@@ -58,32 +58,32 @@ | |
it 'delivers smtp mail' do | ||
configuration.load do |configuration| | ||
set :notifier_mail_options, { | ||
:github => 'example/example', | ||
:method => :test, | ||
:from => '[email protected]', | ||
:to => '[email protected]', | ||
:smtp_settings => { | ||
:address => "smtp.gmail.com", | ||
:port => 587, | ||
:domain => "gmail.com", | ||
:authentication => "plain", | ||
:enable_starttls_auto => true, | ||
:user_name => "USERNAME", | ||
:password => "PASSWORD" | ||
github: 'example/example', | ||
method: :test, | ||
from: '[email protected]', | ||
to: '[email protected]', | ||
smtp_settings: { | ||
address: "smtp.gmail.com", | ||
port: 587, | ||
domain: "gmail.com", | ||
authentication: "plain", | ||
enable_starttls_auto: true, | ||
user_name: "USERNAME", | ||
password: "PASSWORD" | ||
} | ||
} | ||
end | ||
|
||
subject.perform | ||
|
||
subject.send(:smtp_settings).should == { | ||
:address => "smtp.gmail.com", | ||
:port => 587, | ||
:domain => "gmail.com", | ||
:authentication => "plain", | ||
:enable_starttls_auto => true, | ||
:user_name => "USERNAME", | ||
:password => "PASSWORD" | ||
address: "smtp.gmail.com", | ||
port: 587, | ||
domain: "gmail.com", | ||
authentication: "plain", | ||
enable_starttls_auto: true, | ||
user_name: "USERNAME", | ||
password: "PASSWORD" | ||
} | ||
|
||
last_delivery = ActionMailer::Base.deliveries.last | ||
|
@@ -101,7 +101,7 @@ | |
it 'should work with gitlab' do | ||
configuration.load do |configuration| | ||
set :notifier_mail_options, { | ||
:giturl => 'https://my.gitlab.url/', | ||
giturl: 'https://my.gitlab.url/', | ||
} | ||
end | ||
|
||
|
@@ -111,8 +111,8 @@ | |
it 'should default to whatever was specified in giturl' do | ||
configuration.load do |configuration| | ||
set :notifier_mail_options, { | ||
:giturl => 'https://my.gitlab.url/', | ||
:github => 'example/example' | ||
giturl: 'https://my.gitlab.url/', | ||
github: 'example/example' | ||
} | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters