fingercap 0.2.1 → 0.3.1

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.
@@ -1,8 +1,6 @@
1
1
  # Put this in $HOME/.fingercap.yml
2
- ---
3
- campfire:
4
- account: fingertips
5
- use_ssl: true
6
- username: deployment@fngtps.com
7
- password: secret
8
- room: Office
2
+ campfire:
3
+ account: fingertips
4
+ token: xxxxxxxxxxxxxxxx
5
+ room: Office
6
+ use_ssl: true
@@ -3,31 +3,22 @@ require 'yaml'
3
3
  Capistrano::Configuration.instance(:must_exist).load do
4
4
  namespace :notify do
5
5
  begin
6
- require 'tinder'
6
+ require 'broach'
7
7
  rescue LoadError
8
8
  def notify(action)
9
- puts "[!] Please `gem install tinder' to post deployment messages to Campfire."
9
+ puts "[!] Please `gem install broach' to post deployment messages to Campfire."
10
10
  end
11
11
  else
12
12
  def notify(action)
13
- fingercap = nil
14
13
  begin
15
- fingercap = YAML.load_file(File.expand_path('~/.fingercap.yml'))
14
+ Broach.settings = YAML.load_file(File.expand_path('~/.fingercap.yml'))['campfire']
16
15
  rescue Errno::ENOENT
17
- puts "[!] Fingercap can't find it's configuration file"
16
+ puts "[!] Fingercap can't find it's configuration file at ~/.fingercap.yml"
18
17
  puts File.read(File.expand_path('../../../../examples/fingercap.yml', __FILE__))
19
18
  exit -1
20
19
  end
21
- if config = fingercap['campfire']
22
- campfire = Tinder::Campfire.new(config['account'], :ssl => (config['use_ssl']||false))
23
- if campfire.login(config['username'], config['password'])
24
- if room = campfire.find_room_by_name(config['room'])
25
- room.speak "#{ENV['USER'].titlecase} just #{action} #{application}: #{repository}"
26
- end
27
- end
28
- else
29
- puts "[!] Fingercap can't post deployment messages to Campfire because there are no credentials in the configuration file (~/.fingercap.yml)"
30
- end
20
+
21
+ Broach.speak(Broach.session.room, "#{ENV['USER']} just #{action} #{application}: #{repository}")
31
22
  end
32
23
  end
33
24
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fingercap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manfred Stienstra
@@ -9,11 +9,11 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-20 00:00:00 +01:00
12
+ date: 2010-02-22 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
- description: Fingercap is a set of recipes and tasks meant for deploying to Fingertips servers.
16
+ description: " Fingercap is a set of recipes and tasks meant for deploying to Fingertips servers.\n"
17
17
  email: manfred@fngtps.com
18
18
  executables: []
19
19
 
@@ -35,6 +35,8 @@ files:
35
35
  - LICENSE
36
36
  has_rdoc: true
37
37
  homepage:
38
+ licenses: []
39
+
38
40
  post_install_message:
39
41
  rdoc_options:
40
42
  - --charset=utf-8
@@ -55,9 +57,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
57
  requirements: []
56
58
 
57
59
  rubyforge_project:
58
- rubygems_version: 1.3.1
60
+ rubygems_version: 1.3.5
59
61
  signing_key:
60
- specification_version: 2
62
+ specification_version: 3
61
63
  summary: Fingercap is a set of recipes and tasks meant for deploying to Fingertips servers.
62
64
  test_files: []
63
65