libnotify 0.5.9-universal-rubinius-1.2 → 0.6.0-universal-rubinius-1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'bundler'
2
2
  Bundler::GemHelper.install_tasks
3
3
 
4
4
  require 'rake'
5
- require 'rake/rdoctask'
5
+ require 'rdoc/task'
6
6
  require 'rubygems'
7
7
  load 'libnotify/tasks/rubies.rake'
8
8
 
@@ -1,3 +1,3 @@
1
1
  module Libnotify
2
- VERSION = "0.5.9"
2
+ VERSION = "0.6.0"
3
3
  end
data/libnotify.gemspec CHANGED
@@ -25,9 +25,10 @@ Gem::Specification.new do |s|
25
25
  s.require_paths = ["lib"]
26
26
 
27
27
  if needs_ffi
28
- s.add_runtime_dependency 'ffi', '~> 1.0.0'
28
+ s.add_runtime_dependency 'ffi', '~> 1.0.0'
29
29
  end
30
30
 
31
31
  s.add_development_dependency 'minitest'
32
+ s.add_development_dependency 'minitest-libnotify'
32
33
  s.add_development_dependency 'yard', '~> 0.7.0'
33
34
  end
data/test/helper.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'bundler/setup'
3
3
  require 'minitest/autorun'
4
+ require 'minitest/libnotify'
4
5
 
5
6
  require 'libnotify'
6
- require 'libnotify_io'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libnotify
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 847552358
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 5
9
- - 9
10
- version: 0.5.9
8
+ - 6
9
+ - 0
10
+ version: 0.6.0
11
11
  platform: universal-rubinius-1.2
12
12
  authors:
13
13
  - Peter Suschlik
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-24 00:00:00 +02:00
18
+ date: 2011-12-04 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,28 +26,42 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 3
29
+ hash: 881230260
30
30
  segments:
31
31
  - 0
32
32
  version: "0"
33
33
  type: :development
34
34
  version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency
36
- name: yard
36
+ name: minitest-libnotify
37
37
  prerelease: false
38
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 881230260
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ type: :development
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: yard
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
39
53
  none: false
40
54
  requirements:
41
55
  - - ~>
42
56
  - !ruby/object:Gem::Version
43
- hash: 3
57
+ hash: 1047025454
44
58
  segments:
45
59
  - 0
46
60
  - 7
47
61
  - 0
48
62
  version: 0.7.0
49
63
  type: :development
50
- version_requirements: *id002
64
+ version_requirements: *id003
51
65
  description:
52
66
  email:
53
67
  - peter-libnotify@suschlik.de
@@ -73,7 +87,6 @@ files:
73
87
  - libnotify.gemspec
74
88
  - libnotify.png
75
89
  - test/helper.rb
76
- - test/libnotify_io.rb
77
90
  - test/test_libnotify.rb
78
91
  has_rdoc: true
79
92
  homepage: http://rubygems.org/gems/libnotify
@@ -89,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
102
  requirements:
90
103
  - - ">="
91
104
  - !ruby/object:Gem::Version
92
- hash: 3
105
+ hash: 881230260
93
106
  segments:
94
107
  - 0
95
108
  version: "0"
@@ -98,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
111
  requirements:
99
112
  - - ">="
100
113
  - !ruby/object:Gem::Version
101
- hash: 3
114
+ hash: 881230260
102
115
  segments:
103
116
  - 0
104
117
  version: "0"
data/test/libnotify_io.rb DELETED
@@ -1,36 +0,0 @@
1
- class LibnotifyIO
2
- attr_reader :io, :libnotify
3
-
4
- def initialize io
5
- @io = io
6
- @libnotify = begin
7
- require 'libnotify'
8
- Libnotify.new(:timeout => 2.5, :append => false)
9
- end
10
- end
11
-
12
- def puts *o
13
- if o.first =~ /(\d+) failures, (\d+) errors/
14
- description = [ defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby", RUBY_VERSION, RUBY_PLATFORM ].join(" ")
15
- libnotify.body = o.first
16
- if $1.to_i > 0 || $2.to_i > 0 # fail?
17
- libnotify.summary = ":-( #{description}"
18
- libnotify.urgency = :critical
19
- libnotify.icon_path = "face-angry.*"
20
- else
21
- libnotify.summary += ":-) #{description}"
22
- libnotify.urgency = :normal
23
- libnotify.icon_path = "face-laugh.*"
24
- end
25
- libnotify.show!
26
- else
27
- io.puts *o
28
- end
29
- end
30
-
31
- def method_missing msg, *args
32
- io.send(msg, *args)
33
- end
34
- end
35
-
36
- MiniTest::Unit.output = LibnotifyIO.new(MiniTest::Unit.output)