rcr-notify 0.1.0 → 0.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/VERSION +1 -1
- data/lib/rcr-notify.rb +3 -3
- data/rcr-notify.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/rcr-notify.rb
CHANGED
@@ -22,7 +22,7 @@ module RcrNotify
|
|
22
22
|
|
23
23
|
if last_projects
|
24
24
|
projects.each do |name, this_time|
|
25
|
-
notify_for last_projects[name], this_time
|
25
|
+
notify_for name, last_projects[name], this_time
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -31,7 +31,7 @@ module RcrNotify
|
|
31
31
|
|
32
32
|
private
|
33
33
|
|
34
|
-
def notify_for(last_time, this_time)
|
34
|
+
def notify_for(name, last_time, this_time)
|
35
35
|
return if this_time['commit'] == last_time['commit']
|
36
36
|
|
37
37
|
commit_message = "\"#{this_time['commit_message']}\"\n" +
|
@@ -43,7 +43,7 @@ module RcrNotify
|
|
43
43
|
success?(last_time) ? 'broken' : 'still broken'
|
44
44
|
end
|
45
45
|
|
46
|
-
notify title, commit_message, success?(this_time)
|
46
|
+
notify "#{name} build #{title}", commit_message, success?(this_time)
|
47
47
|
end
|
48
48
|
|
49
49
|
def success?(hash)
|
data/rcr-notify.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rcr-notify}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jacob Rothstein"]
|
12
|
-
s.date = %q{2009-11-
|
12
|
+
s.date = %q{2009-11-23}
|
13
13
|
s.default_executable = %q{rcr-notify}
|
14
14
|
s.description = %q{Simple json poller with ruby-growl notification}
|
15
15
|
s.email = %q{github@jacobrothstein.com}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rcr-notify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacob Rothstein
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-23 00:00:00 -08:00
|
13
13
|
default_executable: rcr-notify
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|