talking-capistrano 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,7 +57,7 @@ module TalkingCapistrano
57
57
  private
58
58
 
59
59
  def self.get_item(arr)
60
- @DATA_SET[arr.to_s].shuffle(random: Time.now.to_i).first
60
+ @DATA_SET[arr.to_s].sample
61
61
  end
62
62
  end
63
63
 
@@ -73,7 +73,7 @@ Capistrano::Configuration.instance.load do
73
73
  `#{say_command} #{TalkingCapistrano::say_deploy_started fetch(:branch, nil)} -v '#{TalkingCapistrano::say_speaker_name}' &`
74
74
  end
75
75
  task :setup do
76
- TalkingCapistrano.local_rails_env = fetch(:stage, "-unknown env-")
76
+ TalkingCapistrano.local_rails_env = fetch(:stage, "-unknown env-").to_s
77
77
  end
78
78
  end
79
79
  end
@@ -82,8 +82,9 @@ Capistrano::Configuration.instance.load do
82
82
  namespace :deploy do
83
83
  task :update_code, :except => { :no_release => true } do
84
84
  on_rollback do
85
- `#{say_command} #{TalkingCapistrano::say_deploy_failed} -v #{TalkingCapistrano::say_speaker_name} &`;
86
- TalkingCapistrano::SkypeNotification.notify(TalkingCapistrano::say_deploy_failed)
85
+ fail_str = TalkingCapistrano::say_deploy_failed
86
+ `#{say_command} #{fail_str} -v #{TalkingCapistrano::say_speaker_name} &`;
87
+ TalkingCapistrano::SkypeNotification.notify(fail_str)
87
88
  run "rm -rf #{release_path}; true"
88
89
  end
89
90
  strategy.deploy!
@@ -1,6 +1,6 @@
1
1
  module Talking
2
2
  module Capistrano
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talking-capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-05 00:00:00.000000000 Z
12
+ date: 2013-02-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Capisrano task to notify start|end|erros of a capistrano deploy execution
15
15
  email: