slack_notification_generator 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/lib/slack_notification_generator/main.rb +2 -1
- data/slack_notification_generator.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7772e777eddaaf3110681725befd842ddf41e883
|
4
|
+
data.tar.gz: 769487ebedd0600363187dae5363fbbf7b24e033
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dd8eab04f5978483c0c8466c75eb449f831dc2a3e34dee5b391b1bc4b2d30186d53258ebc20477e0d202a2b7cdad72bc4935b043397bc21feda3136634223d2
|
7
|
+
data.tar.gz: dd82b4f7d8de5f8b45a26be799f5d71d38052a3ebaa0df96588aaa5204350ee7c089ea6c81ddc4d5d3c4c10068dbb842cf113d3034c96b431a882d78c257b31b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v0.2.4](https://github.com/jasonhutchens/slack_notification_generator/tree/v0.2.4) (2015-09-01)
|
4
|
+
[Full Changelog](https://github.com/jasonhutchens/slack_notification_generator/compare/v0.2.3...v0.2.4)
|
5
|
+
|
3
6
|
## [v0.2.3](https://github.com/jasonhutchens/slack_notification_generator/tree/v0.2.3) (2015-08-30)
|
4
7
|
[Full Changelog](https://github.com/jasonhutchens/slack_notification_generator/compare/v0.2.2...v0.2.3)
|
5
8
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
@@ -104,7 +104,7 @@ class SlackNotificationGenerator
|
|
104
104
|
attachments: attachments
|
105
105
|
}
|
106
106
|
|
107
|
-
`curl -X POST --data-urlencode 'payload=#{payload.to_json.gsub("'", "''")}' #{ENV['SLACK_HOOK']}`
|
107
|
+
`curl -X POST --data-urlencode 'payload=#{payload.to_json.gsub("'", "'\"'\"'")}' #{ENV['SLACK_HOOK']}`
|
108
108
|
end
|
109
109
|
|
110
110
|
def self.extract_commits(blob)
|
@@ -186,6 +186,7 @@ class SlackNotificationGenerator
|
|
186
186
|
ChronicDuration.output(seconds)
|
187
187
|
end
|
188
188
|
extras = [issues, commit[:authors].join(', '), time].compact.join(', ')
|
189
|
+
commit[:message] = "(no message)" if commit[:message].nil?
|
189
190
|
if commit[:message].length > 50
|
190
191
|
commit[:message] = commit[:message][0, 50] + "..."
|
191
192
|
end
|
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: slack_notification_generator 0.2.
|
5
|
+
# stub: slack_notification_generator 0.2.5 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "slack_notification_generator"
|
9
|
-
s.version = "0.2.
|
9
|
+
s.version = "0.2.5"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Jason Hutchens"]
|
14
|
-
s.date = "2015-09-
|
14
|
+
s.date = "2015-09-02"
|
15
15
|
s.description = "Does what it says on the tin."
|
16
16
|
s.email = "jasonhutchens@gmail.com"
|
17
17
|
s.executables = ["slack_notification_generator"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack_notification_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Hutchens
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chronic_duration
|