riot_notifier 0.0.8 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -2,4 +2,3 @@ doc
2
2
  pkg
3
3
  coverage
4
4
  tags
5
- *.gemspec
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ begin
12
12
  gem.has_rdoc = true
13
13
  gem.extra_rdoc_files = [ "README.rdoc" ]
14
14
 
15
- gem.add_dependency "riot", ">= 0.10.11"
15
+ gem.add_dependency "riot", ">= 0.10.12"
16
16
  gem.add_development_dependency "riot_notifier"
17
17
  gem.add_development_dependency "libnotify"
18
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.1.1
@@ -31,9 +31,9 @@ module RiotNotifier
31
31
 
32
32
  # Override
33
33
 
34
- def fail(desc, message)
34
+ def fail(desc, message, file, line)
35
35
  super
36
- notify(:red, "FAILURE: #{message}")
36
+ notify(:red, "FAILURE: #{message}@#{file}:#{line}")
37
37
  end
38
38
 
39
39
  def error(desc, error)
@@ -0,0 +1,61 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{riot_notifier}
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Peter Suschlik"]
12
+ s.date = %q{2010-03-01}
13
+ s.email = %q{peter-riot_notifier@suschlik.de}
14
+ s.extra_rdoc_files = [
15
+ "README.rdoc"
16
+ ]
17
+ s.files = [
18
+ ".gitignore",
19
+ ".watchr",
20
+ "README.rdoc",
21
+ "Rakefile",
22
+ "VERSION",
23
+ "lib/riot_notifier.rb",
24
+ "lib/riot_notifier/base.rb",
25
+ "lib/riot_notifier/libnotify.rb",
26
+ "lib/riot_notifier/module.rb",
27
+ "lib/riot_notifier/none.rb",
28
+ "lib/riot_notifier/redgreen_binary.rb",
29
+ "riot_notifier.gemspec",
30
+ "test/helper.rb",
31
+ "test/test_riot_notifier.rb"
32
+ ]
33
+ s.homepage = %q{http://github.com/splattael/riot_notifier}
34
+ s.rdoc_options = ["--charset=UTF-8"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = %q{1.3.6}
37
+ s.summary = %q{Simple notifier for riot}
38
+ s.test_files = [
39
+ "test/test_riot_notifier.rb"
40
+ ]
41
+
42
+ if s.respond_to? :specification_version then
43
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
+ s.specification_version = 3
45
+
46
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
47
+ s.add_runtime_dependency(%q<riot>, [">= 0.10.12"])
48
+ s.add_development_dependency(%q<riot_notifier>, [">= 0"])
49
+ s.add_development_dependency(%q<libnotify>, [">= 0"])
50
+ else
51
+ s.add_dependency(%q<riot>, [">= 0.10.12"])
52
+ s.add_dependency(%q<riot_notifier>, [">= 0"])
53
+ s.add_dependency(%q<libnotify>, [">= 0"])
54
+ end
55
+ else
56
+ s.add_dependency(%q<riot>, [">= 0.10.12"])
57
+ s.add_dependency(%q<riot_notifier>, [">= 0"])
58
+ s.add_dependency(%q<libnotify>, [">= 0"])
59
+ end
60
+ end
61
+
@@ -65,7 +65,7 @@ context "RiotNotifier" do
65
65
  reporter
66
66
  end
67
67
 
68
- asserts("notifies failure in red") { topic.fail("desc", "failed") }.equals([:red, "FAILURE: failed"])
68
+ asserts("notifies failure in red") { topic.fail("desc", "failed", "file", 23) }.equals([:red, "FAILURE: failed@file:23"])
69
69
  asserts("notifies error in red") { topic.error("desc", bt!(ArgumentError.new("errored"))) }.equals([:red, "ERROR: errored"])
70
70
  asserts("doesn't display results with bad results") do
71
71
  topic.report("desc", [:fail, "failure"])
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riot_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 1
9
+ version: 0.1.1
5
10
  platform: ruby
6
11
  authors:
7
12
  - Peter Suschlik
@@ -9,39 +14,47 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-01-13 00:00:00 +01:00
17
+ date: 2010-03-01 00:00:00 +01:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: riot
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
23
- version: 0.10.11
24
- version:
27
+ segments:
28
+ - 0
29
+ - 10
30
+ - 12
31
+ version: 0.10.12
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  - !ruby/object:Gem::Dependency
26
35
  name: riot_notifier
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
30
38
  requirements:
31
39
  - - ">="
32
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
33
43
  version: "0"
34
- version:
44
+ type: :development
45
+ version_requirements: *id002
35
46
  - !ruby/object:Gem::Dependency
36
47
  name: libnotify
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
48
+ prerelease: false
49
+ requirement: &id003 !ruby/object:Gem::Requirement
40
50
  requirements:
41
51
  - - ">="
42
52
  - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
43
55
  version: "0"
44
- version:
56
+ type: :development
57
+ version_requirements: *id003
45
58
  description:
46
59
  email: peter-riot_notifier@suschlik.de
47
60
  executables: []
@@ -62,6 +75,7 @@ files:
62
75
  - lib/riot_notifier/module.rb
63
76
  - lib/riot_notifier/none.rb
64
77
  - lib/riot_notifier/redgreen_binary.rb
78
+ - riot_notifier.gemspec
65
79
  - test/helper.rb
66
80
  - test/test_riot_notifier.rb
67
81
  has_rdoc: true
@@ -77,18 +91,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
91
  requirements:
78
92
  - - ">="
79
93
  - !ruby/object:Gem::Version
94
+ segments:
95
+ - 0
80
96
  version: "0"
81
- version:
82
97
  required_rubygems_version: !ruby/object:Gem::Requirement
83
98
  requirements:
84
99
  - - ">="
85
100
  - !ruby/object:Gem::Version
101
+ segments:
102
+ - 0
86
103
  version: "0"
87
- version:
88
104
  requirements: []
89
105
 
90
106
  rubyforge_project:
91
- rubygems_version: 1.3.5
107
+ rubygems_version: 1.3.6
92
108
  signing_key:
93
109
  specification_version: 3
94
110
  summary: Simple notifier for riot