flowdock 0.1.3 → 0.1.4
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/lib/flowdock/capistrano.rb +2 -7
- data/lib/flowdock/version.rb +1 -1
- metadata +4 -4
data/lib/flowdock/capistrano.rb
CHANGED
|
@@ -4,11 +4,11 @@ require 'digest/md5'
|
|
|
4
4
|
require 'cgi'
|
|
5
5
|
|
|
6
6
|
Capistrano::Configuration.instance(:must_exist).load do
|
|
7
|
-
set :flowdock_send_notification, false
|
|
8
7
|
|
|
9
8
|
namespace :flowdock do
|
|
10
9
|
task :read_current_deployed_branch do
|
|
11
|
-
|
|
10
|
+
current_branch = capture("cat #{current_path}/BRANCH").chomp rescue "master"
|
|
11
|
+
set :current_branch, current_branch
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
task :save_deployed_branch do
|
|
@@ -24,10 +24,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
24
24
|
:from => {:name => config["user.name"], :address => config["user.email"]})
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
task :trigger_notification do
|
|
28
|
-
set :flowdock_send_notification, true
|
|
29
|
-
end
|
|
30
|
-
|
|
31
27
|
task :notify_deploy_finished do
|
|
32
28
|
# send message to the flow
|
|
33
29
|
flowdock_api.send_message(:format => "html",
|
|
@@ -60,7 +56,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
60
56
|
end
|
|
61
57
|
end
|
|
62
58
|
|
|
63
|
-
before "deploy", "flowdock:trigger_notification"
|
|
64
59
|
before "deploy", "flowdock:read_current_deployed_branch"
|
|
65
60
|
before "flowdock:notify_deploy_finished", "flowdock:set_flowdock_api"
|
|
66
61
|
after "deploy", "flowdock:notify_deploy_finished"
|
data/lib/flowdock/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flowdock
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.1.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- anttipitkanen
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-09-
|
|
18
|
+
date: 2011-09-26 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: httparty
|