flowdock 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "flowdock"
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
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 = "2013-03-18"
12
+ s.date = "2013-04-05"
13
13
  s.email = "team@flowdock.com"
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
  s.homepage = "http://github.com/flowdock/flowdock-api"
34
34
  s.licenses = ["MIT"]
35
35
  s.require_paths = ["lib"]
36
- s.rubygems_version = "1.8.25"
36
+ s.rubygems_version = "1.8.23"
37
37
  s.summary = "Ruby Gem for using Flowdock's API"
38
38
 
39
39
  if s.respond_to? :specification_version then
@@ -19,7 +19,7 @@ Capistrano::Configuration.instance(:must_exist).load do
19
19
  end
20
20
 
21
21
  task :set_flowdock_api do
22
- set :rails_env, fetch(:rails_env, variables.include?(:stage) ? stage : ENV['RAILS_ENV'])
22
+ set :flowdock_deploy_env, fetch(:stage, fetch(:rails_env, ENV["RAILS_ENV"] || "production"))
23
23
  begin
24
24
  require 'grit'
25
25
  set :repo, Grit::Repo.new(".")
@@ -47,9 +47,9 @@ Capistrano::Configuration.instance(:must_exist).load do
47
47
  begin
48
48
  flowdock_api.each do |flow|
49
49
  flow.push_to_team_inbox(:format => "html",
50
- :subject => "#{flowdock_project_name} deployed with branch #{branch} on ##{rails_env}",
50
+ :subject => "#{flowdock_project_name} deployed with branch #{branch} on ##{flowdock_deploy_env}",
51
51
  :content => notification_message,
52
- :tags => ["deploy", "#{rails_env}"] | flowdock_deploy_tags)
52
+ :tags => ["deploy", "#{flowdock_deploy_env}"] | flowdock_deploy_tags)
53
53
  end
54
54
  rescue => e
55
55
  puts "Flowdock: error in sending notification to your flow: #{e.to_s}"
@@ -58,7 +58,7 @@ Capistrano::Configuration.instance(:must_exist).load do
58
58
 
59
59
  def notification_message
60
60
  if branch == current_branch
61
- message = "<p>The following changes were just deployed to #{rails_env}:</p>"
61
+ message = "<p>The following changes were just deployed to #{flowdock_deploy_env}:</p>"
62
62
  commits = repo.commits_between(previous_revision, current_revision).reverse
63
63
 
64
64
  unless commits.empty?
@@ -74,7 +74,7 @@ Capistrano::Configuration.instance(:must_exist).load do
74
74
  end
75
75
  end
76
76
  else
77
- message = "Branch #{source.head} was deployed to #{rails_env}. Previously deployed branch was #{current_branch}."
77
+ message = "Branch #{source.head} was deployed to #{flowdock_deploy_env}. Previously deployed branch was #{current_branch}."
78
78
  end
79
79
  message
80
80
  end
metadata CHANGED
@@ -1,144 +1,144 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowdock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
5
4
  prerelease:
5
+ version: 0.3.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Antti Pitkänen
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-18 00:00:00.000000000 Z
12
+ date: 2013-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: httparty
16
- requirement: !ruby/object:Gem::Requirement
15
+ version_requirements: !ruby/object:Gem::Requirement
17
16
  none: false
18
17
  requirements:
19
18
  - - ~>
20
19
  - !ruby/object:Gem::Version
21
20
  version: '0.7'
22
- type: :runtime
21
+ name: httparty
23
22
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
23
+ requirement: !ruby/object:Gem::Requirement
25
24
  none: false
26
25
  requirements:
27
26
  - - ~>
28
27
  - !ruby/object:Gem::Version
29
28
  version: '0.7'
29
+ type: :runtime
30
30
  - !ruby/object:Gem::Dependency
31
- name: multi_json
32
- requirement: !ruby/object:Gem::Requirement
31
+ version_requirements: !ruby/object:Gem::Requirement
33
32
  none: false
34
33
  requirements:
35
34
  - - ! '>='
36
35
  - !ruby/object:Gem::Version
37
36
  version: '0'
38
- type: :runtime
37
+ name: multi_json
39
38
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
39
+ requirement: !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
43
42
  - - ! '>='
44
43
  - !ruby/object:Gem::Version
45
44
  version: '0'
45
+ type: :runtime
46
46
  - !ruby/object:Gem::Dependency
47
- name: rdoc
48
- requirement: !ruby/object:Gem::Requirement
47
+ version_requirements: !ruby/object:Gem::Requirement
49
48
  none: false
50
49
  requirements:
51
50
  - - ! '>='
52
51
  - !ruby/object:Gem::Version
53
52
  version: 2.4.2
54
- type: :development
53
+ name: rdoc
55
54
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
55
+ requirement: !ruby/object:Gem::Requirement
57
56
  none: false
58
57
  requirements:
59
58
  - - ! '>='
60
59
  - !ruby/object:Gem::Version
61
60
  version: 2.4.2
61
+ type: :development
62
62
  - !ruby/object:Gem::Dependency
63
- name: rspec
64
- requirement: !ruby/object:Gem::Requirement
63
+ version_requirements: !ruby/object:Gem::Requirement
65
64
  none: false
66
65
  requirements:
67
66
  - - ~>
68
67
  - !ruby/object:Gem::Version
69
68
  version: '2.6'
70
- type: :development
69
+ name: rspec
71
70
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
71
+ requirement: !ruby/object:Gem::Requirement
73
72
  none: false
74
73
  requirements:
75
74
  - - ~>
76
75
  - !ruby/object:Gem::Version
77
76
  version: '2.6'
77
+ type: :development
78
78
  - !ruby/object:Gem::Dependency
79
- name: webmock
80
- requirement: !ruby/object:Gem::Requirement
79
+ version_requirements: !ruby/object:Gem::Requirement
81
80
  none: false
82
81
  requirements:
83
82
  - - ! '>='
84
83
  - !ruby/object:Gem::Version
85
84
  version: '0'
86
- type: :development
85
+ name: webmock
87
86
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
87
+ requirement: !ruby/object:Gem::Requirement
89
88
  none: false
90
89
  requirements:
91
90
  - - ! '>='
92
91
  - !ruby/object:Gem::Version
93
92
  version: '0'
93
+ type: :development
94
94
  - !ruby/object:Gem::Dependency
95
- name: bundler
96
- requirement: !ruby/object:Gem::Requirement
95
+ version_requirements: !ruby/object:Gem::Requirement
97
96
  none: false
98
97
  requirements:
99
98
  - - ~>
100
99
  - !ruby/object:Gem::Version
101
100
  version: '1.0'
102
- type: :development
101
+ name: bundler
103
102
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
103
+ requirement: !ruby/object:Gem::Requirement
105
104
  none: false
106
105
  requirements:
107
106
  - - ~>
108
107
  - !ruby/object:Gem::Version
109
108
  version: '1.0'
109
+ type: :development
110
110
  - !ruby/object:Gem::Dependency
111
- name: jeweler
112
- requirement: !ruby/object:Gem::Requirement
111
+ version_requirements: !ruby/object:Gem::Requirement
113
112
  none: false
114
113
  requirements:
115
114
  - - ~>
116
115
  - !ruby/object:Gem::Version
117
116
  version: 1.6.4
118
- type: :development
117
+ name: jeweler
119
118
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
119
+ requirement: !ruby/object:Gem::Requirement
121
120
  none: false
122
121
  requirements:
123
122
  - - ~>
124
123
  - !ruby/object:Gem::Version
125
124
  version: 1.6.4
125
+ type: :development
126
126
  - !ruby/object:Gem::Dependency
127
- name: jruby-openssl
128
- requirement: !ruby/object:Gem::Requirement
127
+ version_requirements: !ruby/object:Gem::Requirement
129
128
  none: false
130
129
  requirements:
131
130
  - - ! '>='
132
131
  - !ruby/object:Gem::Version
133
132
  version: '0'
134
- type: :development
133
+ name: jruby-openssl
135
134
  prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
135
+ requirement: !ruby/object:Gem::Requirement
137
136
  none: false
138
137
  requirements:
139
138
  - - ! '>='
140
139
  - !ruby/object:Gem::Version
141
140
  version: '0'
141
+ type: :development
142
142
  description:
143
143
  email: team@flowdock.com
144
144
  executables: []
@@ -172,10 +172,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
172
172
  requirements:
173
173
  - - ! '>='
174
174
  - !ruby/object:Gem::Version
175
- version: '0'
176
175
  segments:
177
176
  - 0
178
- hash: -1709171336806452392
177
+ hash: 2786572984791329864
178
+ version: '0'
179
179
  required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  none: false
181
181
  requirements:
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  version: '0'
185
185
  requirements: []
186
186
  rubyforge_project:
187
- rubygems_version: 1.8.25
187
+ rubygems_version: 1.8.23
188
188
  signing_key:
189
189
  specification_version: 3
190
190
  summary: Ruby Gem for using Flowdock's API