libnotify 0.7.2-universal-rubinius-1.2 → 0.7.3-universal-rubinius-1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -0
- data/lib/libnotify/ffi.rb +13 -4
- data/lib/libnotify/version.rb +1 -1
- data/libnotify.gemspec +1 -1
- metadata +9 -9
data/README.rdoc
CHANGED
@@ -73,6 +73,7 @@ You'll need libnotify. On Debian just type:
|
|
73
73
|
* Dennis Collective (https://github.com/denniscollective)
|
74
74
|
* Daniel Mack (https://github.com/zonque)
|
75
75
|
* nuisanceofcats (https://github.com/nuisanceofcats)
|
76
|
+
* Jason Staten (https://github.com/statianzo)
|
76
77
|
|
77
78
|
== License
|
78
79
|
|
data/lib/libnotify/ffi.rb
CHANGED
@@ -5,15 +5,24 @@ module Libnotify
|
|
5
5
|
extend ::FFI::Library
|
6
6
|
|
7
7
|
def self.included(base)
|
8
|
+
load_libs
|
9
|
+
attach_functions!
|
10
|
+
rescue LoadError => e
|
11
|
+
warn e.message
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.load_libs
|
15
|
+
libnotify_libs = %w[libnotify libnotify.so.4 libnotify.so.3 libnotify.so.2 libnotify.so.1 libnotify.so]
|
16
|
+
|
8
17
|
# Workaround for "half-linked" libnotify.so. Does not work on rubinius (no ffi_lib_flags there)!
|
9
18
|
# See: https://bugzilla.redhat.com/show_bug.cgi?id=626852
|
10
19
|
ffi_lib_flags :lazy, :local, :global if respond_to?(:ffi_lib_flags)
|
20
|
+
ffi_lib libnotify_libs
|
21
|
+
|
22
|
+
rescue LoadError
|
11
23
|
ffi_lib %w[libgtk-x11-2.0 libgtk-x11-2.0.so.0 libgtk-x11-2.0.so libgtk-3 libgtk-3.so.0 libgtk-3.so],
|
12
24
|
%w[libgtkmm-2.4 libgtkmm-2.4.so.1 libgtkmm-2.4.so libgtkmm-3.0 libgtkmm-3.0.so.1 libgtkmm-3.0.so],
|
13
|
-
|
14
|
-
attach_functions!
|
15
|
-
rescue LoadError => e
|
16
|
-
warn e.message
|
25
|
+
libnotify_libs
|
17
26
|
end
|
18
27
|
|
19
28
|
URGENCY = [ :low, :normal, :critical ]
|
data/lib/libnotify/version.rb
CHANGED
data/libnotify.gemspec
CHANGED
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:
|
4
|
+
hash: 958398968
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 3
|
10
|
+
version: 0.7.3
|
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: 2012-
|
18
|
+
date: 2012-06-10 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 881230260
|
30
30
|
segments:
|
31
31
|
- 0
|
32
32
|
version: "0"
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
hash:
|
43
|
+
hash: 881230260
|
44
44
|
segments:
|
45
45
|
- 0
|
46
46
|
version: "0"
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
requirements:
|
55
55
|
- - ~>
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
hash:
|
57
|
+
hash: 1047025454
|
58
58
|
segments:
|
59
59
|
- 0
|
60
60
|
- 7
|
@@ -101,7 +101,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
101
101
|
requirements:
|
102
102
|
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
hash:
|
104
|
+
hash: 881230260
|
105
105
|
segments:
|
106
106
|
- 0
|
107
107
|
version: "0"
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
requirements:
|
111
111
|
- - ">="
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
hash:
|
113
|
+
hash: 881230260
|
114
114
|
segments:
|
115
115
|
- 0
|
116
116
|
version: "0"
|