capistrano-helpers 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.markdown CHANGED
@@ -1,5 +1,11 @@
1
1
  # Capistrano-Helpers Changelog
2
2
 
3
+ ## 0.5.4
4
+
5
+ Changed:
6
+
7
+ * Tolerate a missing campfire.yml.
8
+
3
9
  ## 0.5.3
4
10
 
5
11
  Changed:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.3
1
+ 0.5.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{capistrano-helpers}
8
- s.version = "0.5.3"
8
+ s.version = "0.5.4"
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"]
@@ -18,11 +18,15 @@ CapistranoHelpers.with_configuration do
18
18
  end
19
19
  username = `whoami`.chomp
20
20
  config_file = fetch(:campfire_config, 'config/campfire.yml')
21
- config = YAML::load_file(config_file)
22
- campfire = Tinder::Campfire.new(config['account'], :username => config['email'], :password => config['password'])
23
- room = campfire.find_room_by_name(config['room'])
24
- room.speak("#{username} just deployed #{application} #{branch} to #{stage}")
25
- room.leave
21
+ begin
22
+ config = YAML::load_file(config_file)
23
+ campfire = Tinder::Campfire.new(config['account'], :username => config['email'], :password => config['password'])
24
+ room = campfire.find_room_by_name(config['room'])
25
+ room.speak("#{username} just deployed #{application} #{branch} to #{stage}")
26
+ room.leave
27
+ rescue Errno::ENOENT
28
+ puts "Could not open config/campfire.yml. Skipping campfire notification."
29
+ end
26
30
  end
27
31
  end
28
32
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-helpers
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 3
10
- version: 0.5.3
9
+ - 4
10
+ version: 0.5.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Scott Woods