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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6427985864ed3eb22bf397fcedffe977e6302d62
4
- data.tar.gz: d64c84c25eb805d688d90749e889e1ff4ea22525
3
+ metadata.gz: ced1522063f519f5324f9712ee6db8a5f9b45d6c
4
+ data.tar.gz: b90e3bea8ec0f8f180e563d83dd2e0aeccb4c25f
5
5
  SHA512:
6
- metadata.gz: c25a38610ab7475309aeff171fb62a247ba6b516aa4cacbb4c24533cd1e23f22b8f4c1dceee7f2a4e4a47fcf1d66255a1e00c1d1a886ed4e8811deeb63658048
7
- data.tar.gz: a7d1a4394ec3b86b570f5d7df717c85247564a8839a41f7dc98a4a5cde505a3794cad0ae5f081017dbcb4f746e1df7d183f2180ad0abfa5b22eb2ae8c09ab1ff
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.0](https://github.com/jasonhutchens/slack_notification_generator/tree/v0.1.0) (2015-08-29)
4
- [Full Changelog](https://github.com/jasonhutchens/slack_notification_generator/compare/0.1.0...v0.1.0)
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
- ## [0.1.0](https://github.com/jasonhutchens/slack_notification_generator/tree/0.1.0) (2015-08-29)
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.1
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.1.1 ruby lib
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.1.1"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack_notification_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Hutchens