capihall 0.0.2 → 0.0.3
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.
- data/README.md +8 -1
- data/lib/capihall/recipes.rb +5 -1
- data/lib/capihall/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Capihall
|
2
2
|
|
3
|
-
Capihall is a gem to send capistrano deployment notifications to
|
3
|
+
Capihall is a gem to send capistrano deployment notifications to [Hall](http://hall.com) chatrooms. You can find your hall room's API url by visiting Hall's [integration page](https://hall.com/docs/integrations/generic/)
|
4
|
+
|
5
|
+

|
6
|
+
|
7
|
+
Disclaimer: Neither Kids in the Hall or Broadway Video International have endorsed this gem.
|
4
8
|
|
5
9
|
## Installation
|
6
10
|
|
@@ -23,6 +27,9 @@ Add this to your config/deploy.rb file
|
|
23
27
|
require 'capihall/recipes'
|
24
28
|
set :hall_room_url, "https://hall.com/YOUR_ROOM_URL"
|
25
29
|
|
30
|
+
# to override the change log command
|
31
|
+
set :log_command, "git log ...."
|
32
|
+
|
26
33
|
## Contributing
|
27
34
|
|
28
35
|
1. Fork it
|
data/lib/capihall/recipes.rb
CHANGED
@@ -8,10 +8,14 @@ make_notify_task = Proc.new do
|
|
8
8
|
|
9
9
|
rails_env = fetch(:rails_env, "production")
|
10
10
|
local_user = `git config user.name` || ENV['USER'] || ENV['USERNAME']
|
11
|
+
command = fetch(:log_command, "git log --no-color --pretty=format:'%h %s' " +
|
12
|
+
"--abbrev-commit --no-merges HEAD~1..HEAD")
|
11
13
|
|
12
14
|
hall_room = fetch(:hall_room_url, nil)
|
13
15
|
|
14
|
-
|
16
|
+
changelog = `#{command}`
|
17
|
+
|
18
|
+
msg = "[#{branch}, #{changelog}] deployed to #{rails_env} by #{local_user} at #{Time.now}"
|
15
19
|
|
16
20
|
if hall_room
|
17
21
|
puts "Notifying Hall with '#{msg}'"
|
data/lib/capihall/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capihall
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
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: 2014-01-
|
12
|
+
date: 2014-01-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
segments:
|
92
92
|
- 0
|
93
|
-
hash: -
|
93
|
+
hash: -630759377
|
94
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
version: '0'
|
100
100
|
segments:
|
101
101
|
- 0
|
102
|
-
hash: -
|
102
|
+
hash: -630759377
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
105
|
rubygems_version: 1.8.23
|