pullermann 1.1.0 → 1.1.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.
- data/lib/pullermann/pullermann.rb +5 -3
- metadata +2 -2
@@ -204,9 +204,11 @@ class Pullermann
|
|
204
204
|
@log.info "Updating existing #{notion(self.success)} comment."
|
205
205
|
call_github(self.success).update_comment(@project, @comment['id'], message)
|
206
206
|
else
|
207
|
-
@
|
208
|
-
|
209
|
-
|
207
|
+
if @comment
|
208
|
+
@log.info "Deleting existing #{notion(!self.success)} comment."
|
209
|
+
# Delete old @comment with correct connection (if @comment exists).
|
210
|
+
call_github(!self.success).delete_comment(@project, @comment['id'])
|
211
|
+
end
|
210
212
|
# Create new comment with correct connection.
|
211
213
|
@log.info "Adding new #{notion(self.success)} comment."
|
212
214
|
call_github(self.success).add_comment(@project, @request_id, message)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pullermann
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-07-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: octokit
|