slack_notification_generator 0.1.1 → 0.2.0
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 -3
- data/VERSION +1 -1
- data/lib/slack_notification_generator/main.rb +3 -3
- data/slack_notification_generator.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ced1522063f519f5324f9712ee6db8a5f9b45d6c
|
4
|
+
data.tar.gz: b90e3bea8ec0f8f180e563d83dd2e0aeccb4c25f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 847def4c725100e3e0fe0cd42db0523eea8b93089fd85edd579c398923ecba0aca79fb3ca5eadcb6e13f6f0892372ab39ee132a9127debe6cd4a22a2c26e2c77
|
7
|
+
data.tar.gz: 43c4fb6895e680f64fd7756e3f618557de52bcbd69b60d7e2ce31fed88de1323fe18dfcfcba586358c6587f034153323d08bdda2634be4a205df36afeaa8ccb6
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [v0.1.
|
4
|
-
[Full Changelog](https://github.com/jasonhutchens/slack_notification_generator/compare/
|
3
|
+
## [v0.1.1](https://github.com/jasonhutchens/slack_notification_generator/tree/v0.1.1) (2015-08-29)
|
4
|
+
[Full Changelog](https://github.com/jasonhutchens/slack_notification_generator/compare/v0.1.0...v0.1.1)
|
5
5
|
|
6
|
-
## [
|
6
|
+
## [v0.1.0](https://github.com/jasonhutchens/slack_notification_generator/tree/v0.1.0) (2015-08-29)
|
7
7
|
|
8
8
|
|
9
9
|
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -99,7 +99,7 @@ class SlackNotificationGenerator
|
|
99
99
|
`curl -X POST --data-urlencode 'payload=#{payload.to_json}' #{ENV['SLACK_HOOK']}`
|
100
100
|
end
|
101
101
|
|
102
|
-
def extract_commits(blob)
|
102
|
+
def self.extract_commits(blob)
|
103
103
|
commits = []
|
104
104
|
commit = nil
|
105
105
|
blob.split("\n").map(&:strip).each do |line|
|
@@ -125,7 +125,7 @@ class SlackNotificationGenerator
|
|
125
125
|
commits
|
126
126
|
end
|
127
127
|
|
128
|
-
def add_attachment(store, title, data)
|
128
|
+
def self.add_attachment(store, title, data)
|
129
129
|
return if data.nil? || data.length == 0
|
130
130
|
data.map! do |line|
|
131
131
|
line.split("\n").map(&:strip).join("\n ")
|
@@ -137,7 +137,7 @@ class SlackNotificationGenerator
|
|
137
137
|
}
|
138
138
|
end
|
139
139
|
|
140
|
-
def format(commit)
|
140
|
+
def self.format(commit)
|
141
141
|
commit[:authors] ||= [commit[:author]].compact
|
142
142
|
commit[:issues] ||= [commit[:issue]].compact
|
143
143
|
commit[:times] ||= [commit[:time]].compact
|
@@ -2,11 +2,11 @@
|
|
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.
|
5
|
+
# stub: slack_notification_generator 0.2.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "slack_notification_generator"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.2.0"
|
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"]
|