chicken_soup 0.5.0 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  ######################################################################
2
2
  # RVM DEFAULTS #
3
3
  ######################################################################
4
- ChickenSoup::RVM_INFO_FORMAT = /^rvm.+\s(([a-zA-Z0-9\-\._]+)(?:@([a-zA-Z0-9\-\._]+))?)/
4
+ ::ChickenSoup::RVM_INFO_FORMAT = /^rvm.+\s(([a-zA-Z0-9\-\._]+)(?:@([a-zA-Z0-9\-\._]+))?)/
5
5
 
6
6
  Capistrano::Configuration.instance(:must_exist).load do
7
7
  namespace :capabilities do
@@ -4,13 +4,13 @@
4
4
  require 'mail'
5
5
 
6
6
  Capistrano::Configuration.instance(:must_exist).load do |cap|
7
- after 'deploy:cleanup', 'notify:by_email'
7
+ after 'deploy:cleanup', 'notify:via_email'
8
8
 
9
9
  namespace :notify do
10
10
  desc <<-DESC
11
11
  [internal] Sends a notification via email once a deployment is complete.
12
12
  DESC
13
- task :by_email do
13
+ task :via_email do
14
14
  Mail.defaults do
15
15
  delivery_method cap[:email_notifier_mail_method], cap[:email_notifier_mail_options]
16
16
  end
@@ -2,22 +2,24 @@
2
2
  # GIT NOTIFIER TASKS #
3
3
  ######################################################################
4
4
  Capistrano::Configuration.instance(:must_exist).load do
5
- before 'deploy:cleanup', 'git:tag'
5
+ after 'deploy:cleanup', 'notify:via_git:tag'
6
6
 
7
- namespace :git do
8
- desc <<-DESC
9
- Tags the deployed Git commit with the timestamp and environment it was deployed to.
7
+ namespace :notify do
8
+ namespace :via_git do
9
+ desc <<-DESC
10
+ Tags the deployed Git commit with the timestamp and environment it was deployed to.
10
11
 
11
- The tag is auto-pushed to whatever `remote` is set to as well as `origin`.
12
- Tag push happens in the background so it won't slow down deployment.
13
- DESC
14
- task :tag do
15
- timestamp_string_without_seconds = Time.now.strftime("%Y%m%d%H%M")
16
- tag_name = "deployed_to_#{rails_env}_#{timestamp_string_without_seconds}"
12
+ The tag is auto-pushed to whatever `remote` is set to as well as `origin`.
13
+ Tag push happens in the background so it won't slow down deployment.
14
+ DESC
15
+ task :tag do
16
+ timestamp_string_without_seconds = Time.now.strftime("%Y%m%d%H%M")
17
+ tag_name = "deployed_to_#{rails_env}_#{timestamp_string_without_seconds}"
17
18
 
18
- `git tag -a -m "Tagging deploy to #{rails_env} at #{timestamp_string_without_seconds}" #{tag_name} #{branch}`
19
- `git push #{remote} --tags > /dev/null 2>&1 &`
20
- `git push origin --tags > /dev/null 2>&1 &`
19
+ `git tag -a -m "Tagging deploy to #{rails_env} at #{timestamp_string_without_seconds}" #{tag_name} #{branch}`
20
+ `git push #{remote} --tags > /dev/null 2>&1 &`
21
+ `git push origin --tags > /dev/null 2>&1 &`
22
+ end
21
23
  end
22
24
  end
23
25
  end
@@ -16,6 +16,7 @@ Capistrano::Configuration.instance(:must_exist).load do
16
16
  DESC
17
17
  task :disable do
18
18
  set :notifiers, []
19
+ callbacks[:after].delete_if {|c| c.source =~ /^notify:/}
19
20
  end
20
21
  end
21
22
  end
@@ -1,3 +1,3 @@
1
1
  module ChickenSoup
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: chicken_soup
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.0
5
+ version: 0.5.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - thekompanee
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-08-08 00:00:00 -05:00
14
+ date: 2011-08-10 00:00:00 -05:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency