libnotify 0.5.6.pre-universal-rubinius-1.2 → 0.5.6-universal-rubinius-1.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/libnotify/ffi.rb CHANGED
@@ -5,10 +5,12 @@ module Libnotify
5
5
  extend ::FFI::Library
6
6
 
7
7
  def self.included(base)
8
- # Workaround for "half-linked" libnotify.so. Does not work on rubinius!
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[libnotify libnotify.so libnotify.so.1]
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]
12
14
  attach_functions!
13
15
  rescue LoadError => e
14
16
  warn e.message
@@ -1,3 +1,3 @@
1
1
  module Libnotify
2
- VERSION = "0.5.6.pre"
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,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libnotify
3
3
  version: !ruby/object:Gem::Version
4
- hash: 4034470010463317433
5
- prerelease: 6
4
+ hash: 7
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
9
  - 6
10
- - pre
11
- version: 0.5.6.pre
10
+ version: 0.5.6
12
11
  platform: universal-rubinius-1.2
13
12
  authors:
14
13
  - Peter Suschlik
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2011-06-15 00:00:00 +02:00
18
+ date: 2011-06-16 00:00:00 +02:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -96,14 +95,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
95
  required_rubygems_version: !ruby/object:Gem::Requirement
97
96
  none: false
98
97
  requirements:
99
- - - ">"
98
+ - - ">="
100
99
  - !ruby/object:Gem::Version
101
- hash: 25
100
+ hash: 3
102
101
  segments:
103
- - 1
104
- - 3
105
- - 1
106
- version: 1.3.1
102
+ - 0
103
+ version: "0"
107
104
  requirements: []
108
105
 
109
106
  rubyforge_project:
@@ -111,5 +108,7 @@ rubygems_version: 1.5.2
111
108
  signing_key:
112
109
  specification_version: 3
113
110
  summary: Ruby bindings for libnotify using FFI
114
- test_files: []
115
-
111
+ test_files:
112
+ - test/helper.rb
113
+ - test/libnotify_io.rb
114
+ - test/test_libnotify.rb