flowdock 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/flowdock.gemspec +2 -2
- data/lib/flowdock/capistrano.rb +27 -10
- metadata +17 -17
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.11
|
data/flowdock.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "flowdock"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.11"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Antti Pitk\u{e4}nen"]
|
12
|
-
s.date = "2012-01-
|
12
|
+
s.date = "2012-01-18"
|
13
13
|
s.email = "team@flowdock.com"
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.md"
|
data/lib/flowdock/capistrano.rb
CHANGED
@@ -12,24 +12,41 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
task :save_deployed_branch do
|
15
|
-
|
15
|
+
begin
|
16
|
+
run "echo '#{source.head}' > #{current_path}/BRANCH"
|
17
|
+
rescue => e
|
18
|
+
puts "Flowdock: error in saving deployed branch information: " + e
|
19
|
+
end
|
16
20
|
end
|
17
21
|
|
18
22
|
task :set_flowdock_api do
|
19
23
|
set :rails_env, variables.include?(:stage) ? stage : ENV['RAILS_ENV']
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
:
|
24
|
+
begin
|
25
|
+
set :repo, Grit::Repo.new(".")
|
26
|
+
config = Grit::Config.new(repo)
|
27
|
+
rescue => e
|
28
|
+
puts "Flowdock: error in fetching your git repository information: " + e
|
29
|
+
end
|
30
|
+
|
31
|
+
begin
|
32
|
+
set :flowdock_api, Flowdock::Flow.new(:api_token => flowdock_api_token,
|
33
|
+
:source => "Capistrano deployment", :project => flowdock_project_name,
|
34
|
+
:from => {:name => config["user.name"], :address => config["user.email"]})
|
35
|
+
rescue => e
|
36
|
+
puts "Flowdock: error in configuring Flowdock API: " + e
|
37
|
+
end
|
25
38
|
end
|
26
39
|
|
27
40
|
task :notify_deploy_finished do
|
28
41
|
# send message to the flow
|
29
|
-
|
30
|
-
:
|
31
|
-
|
32
|
-
|
42
|
+
begin
|
43
|
+
flowdock_api.send_message(:format => "html",
|
44
|
+
:subject => "#{flowdock_project_name} deployed with branch #{branch} on ##{rails_env}",
|
45
|
+
:content => notification_message,
|
46
|
+
:tags => ["deploy", "#{rails_env}"] | flowdock_deploy_tags)
|
47
|
+
rescue => e
|
48
|
+
puts "Flowdock: error in sending notification to your flow: " + e
|
49
|
+
end
|
33
50
|
end
|
34
51
|
|
35
52
|
def notification_message
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flowdock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
12
|
+
date: 2012-01-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
16
|
-
requirement: &
|
16
|
+
requirement: &70338084681100 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0.7'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70338084681100
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rdoc
|
27
|
-
requirement: &
|
27
|
+
requirement: &70338084679440 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 2.4.2
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70338084679440
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &70338084697100 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '2.6'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70338084697100
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: webmock
|
49
|
-
requirement: &
|
49
|
+
requirement: &70338084695520 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70338084695520
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: bundler
|
60
|
-
requirement: &
|
60
|
+
requirement: &70338084694180 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '1.0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70338084694180
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: jeweler
|
71
|
-
requirement: &
|
71
|
+
requirement: &70338084692720 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 1.6.4
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70338084692720
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: jruby-openssl
|
82
|
-
requirement: &
|
82
|
+
requirement: &70338084691320 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70338084691320
|
91
91
|
description:
|
92
92
|
email: team@flowdock.com
|
93
93
|
executables: []
|
@@ -123,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
segments:
|
125
125
|
- 0
|
126
|
-
hash:
|
126
|
+
hash: -4299438971814372476
|
127
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
128
|
none: false
|
129
129
|
requirements:
|