libnotify 0.5.6.pre3 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/libnotify/ffi.rb CHANGED
@@ -8,9 +8,9 @@ module Libnotify
8
8
  # Workaround for "half-linked" libnotify.so. Does not work on rubinius (no ffi_lib_flags there)!
9
9
  # See: https://bugzilla.redhat.com/show_bug.cgi?id=626852
10
10
  ffi_lib_flags :lazy, :local, :global if respond_to?(:ffi_lib_flags)
11
- ffi_lib %w[libgtk-x11-2.0.so.0 libgtk-x11-2.0.so libgtk-3.so.0 libgtk-3.so]
12
- ffi_lib %w[libgtkmm-2.4.so.1 libgtkmm-2.4.so libgtkmm-3.0.so.1 libgtkmm-3.0.so]
13
- ffi_lib %w[libnotify.so.4 libnotify.so.3 libnotify.so.2 libnotify.so.1 libnotify.so libnotify]
11
+ ffi_lib %w[libgtk-x11-2.0.so.0 libgtk-x11-2.0.so libgtk-3.so.0 libgtk-3.so],
12
+ %w[libgtkmm-2.4.so.1 libgtkmm-2.4.so libgtkmm-3.0.so.1 libgtkmm-3.0.so],
13
+ %w[libnotify.so.4 libnotify.so.3 libnotify.so.2 libnotify.so.1 libnotify.so libnotify]
14
14
  attach_functions!
15
15
  rescue LoadError => e
16
16
  warn e.message
@@ -1,3 +1,3 @@
1
1
  module Libnotify
2
- VERSION = "0.5.6.pre3"
2
+ VERSION = "0.5.6"
3
3
  end
data/test/libnotify_io.rb CHANGED
@@ -11,7 +11,7 @@ class LibnotifyIO
11
11
 
12
12
  def puts *o
13
13
  if o.first =~ /(\d+) failures, (\d+) errors/
14
- description = [ RUBY_ENGINE, RUBY_VERSION, RUBY_PLATFORM ].join(" ")
14
+ description = [ defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby", RUBY_VERSION, RUBY_PLATFORM ].join(" ")
15
15
  libnotify.body = o.first
16
16
  if $1.to_i > 0 || $2.to_i > 0 # fail?
17
17
  libnotify.summary = ":-( #{description}"
metadata CHANGED
@@ -1,15 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libnotify
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1923832015
5
- prerelease: 6
4
+ hash: 7
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
9
  - 6
10
- - pre
11
- - 3
12
- version: 0.5.6.pre3
10
+ version: 0.5.6
13
11
  platform: ruby
14
12
  authors:
15
13
  - Peter Suschlik
@@ -113,14 +111,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
113
111
  required_rubygems_version: !ruby/object:Gem::Requirement
114
112
  none: false
115
113
  requirements:
116
- - - ">"
114
+ - - ">="
117
115
  - !ruby/object:Gem::Version
118
- hash: 25
116
+ hash: 3
119
117
  segments:
120
- - 1
121
- - 3
122
- - 1
123
- version: 1.3.1
118
+ - 0
119
+ version: "0"
124
120
  requirements: []
125
121
 
126
122
  rubyforge_project:
@@ -128,5 +124,7 @@ rubygems_version: 1.6.2
128
124
  signing_key:
129
125
  specification_version: 3
130
126
  summary: Ruby bindings for libnotify using FFI
131
- test_files: []
132
-
127
+ test_files:
128
+ - test/helper.rb
129
+ - test/libnotify_io.rb
130
+ - test/test_libnotify.rb