libnotify 0.5.9 → 0.6.0

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
@@ -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
@@ -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,78 +1,67 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: libnotify
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 5
9
- - 9
10
- version: 0.5.9
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Peter Suschlik
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-10-24 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-12-04 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: ffi
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &72263050 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 23
29
- segments:
30
- - 1
31
- - 0
32
- - 0
20
+ - !ruby/object:Gem::Version
33
21
  version: 1.0.0
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
23
+ prerelease: false
24
+ version_requirements: *72263050
25
+ - !ruby/object:Gem::Dependency
37
26
  name: minitest
27
+ requirement: &72262800 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
38
34
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
35
+ version_requirements: *72262800
36
+ - !ruby/object:Gem::Dependency
37
+ name: minitest-libnotify
38
+ requirement: &72262520 !ruby/object:Gem::Requirement
40
39
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
48
44
  type: :development
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: yard
52
45
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
46
+ version_requirements: *72262520
47
+ - !ruby/object:Gem::Dependency
48
+ name: yard
49
+ requirement: &72262250 !ruby/object:Gem::Requirement
54
50
  none: false
55
- requirements:
51
+ requirements:
56
52
  - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
- - 7
62
- - 0
53
+ - !ruby/object:Gem::Version
63
54
  version: 0.7.0
64
55
  type: :development
65
- version_requirements: *id003
56
+ prerelease: false
57
+ version_requirements: *72262250
66
58
  description:
67
- email:
59
+ email:
68
60
  - peter-libnotify@suschlik.de
69
61
  executables: []
70
-
71
62
  extensions: []
72
-
73
63
  extra_rdoc_files: []
74
-
75
- files:
64
+ files:
76
65
  - .gitignore
77
66
  - .rvmrc
78
67
  - .travis.yml
@@ -88,40 +77,30 @@ files:
88
77
  - libnotify.gemspec
89
78
  - libnotify.png
90
79
  - test/helper.rb
91
- - test/libnotify_io.rb
92
80
  - test/test_libnotify.rb
93
81
  homepage: http://rubygems.org/gems/libnotify
94
82
  licenses: []
95
-
96
83
  post_install_message:
97
84
  rdoc_options: []
98
-
99
- require_paths:
85
+ require_paths:
100
86
  - lib
101
- required_ruby_version: !ruby/object:Gem::Requirement
87
+ required_ruby_version: !ruby/object:Gem::Requirement
102
88
  none: false
103
- requirements:
104
- - - ">="
105
- - !ruby/object:Gem::Version
106
- hash: 3
107
- segments:
108
- - 0
109
- version: "0"
110
- required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ! '>='
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
111
94
  none: false
112
- requirements:
113
- - - ">="
114
- - !ruby/object:Gem::Version
115
- hash: 3
116
- segments:
117
- - 0
118
- version: "0"
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
119
99
  requirements: []
120
-
121
100
  rubyforge_project:
122
101
  rubygems_version: 1.8.10
123
102
  signing_key:
124
103
  specification_version: 3
125
104
  summary: Ruby bindings for libnotify using FFI
126
105
  test_files: []
127
-
106
+ has_rdoc:
@@ -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)