capistrano-helpers 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{capistrano-helpers}
8
- s.version = "0.6.1"
8
+ s.version = "0.6.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Scott Woods"]
@@ -17,11 +17,11 @@ CapistranoHelpers.with_configuration do
17
17
  end
18
18
  git_config = Git.open('.').config rescue {}
19
19
  someone = ENV['GIT_AUTHOR_NAME'] || git_config['user.name'] || `whoami`.strip
20
+ target = fetch(:stage, 'production')
20
21
  config = YAML::load_file(config_file)
21
22
  campfire = Tinder::Campfire.new(config['subdomain'], :token => config['token'])
22
23
  room = campfire.find_room_by_name(config['room'])
23
- stage ||= 'production'
24
- room.speak("#{someone} just deployed #{application} #{branch} to #{stage}")
24
+ room.speak("#{someone} just deployed #{application} #{branch} to #{target}")
25
25
  room.leave
26
26
  end
27
27
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 1
9
- version: 0.6.1
8
+ - 2
9
+ version: 0.6.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Scott Woods