uh 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3cb33e2f659ada575a93f36094c2755530caffa
4
- data.tar.gz: 4dc89c17b1b893192d39345f671ab2a6ff2abcb6
3
+ metadata.gz: 4ce0054f79a0757f35bd8ca08cc01d7ca91d9562
4
+ data.tar.gz: 736b278f6331a23d8534c7196cacd366cab209ca
5
5
  SHA512:
6
- metadata.gz: 50393d467337936e5342d52144915d7c5f92b7326cdf1b89f8f68bfccebb6bea8a322ce437323a29d541e3774147281bfdc0fce3c6715707f54ea61f1a5ffcba
7
- data.tar.gz: 1edb62261e49e49c9e8fb333478a9d4f2671422660efc901495973e5ba7cb779e8590fd46382d1f0cf4bf8c45a93b2d34f20baba8b4089a2a0a898b75da4ef08
6
+ metadata.gz: 5dc071e6265bf0854cbb39e63a5e85a61db27bd7d12c44248c3cb91b4b2a6531222cf34db2f58406e36baa3fa29ec46d623dafe76b81c4b0d6b9dc72733f29d0
7
+ data.tar.gz: 796c15fdf3093752733f9dc9418633caa690f7edf6f9cb37c6ed5b3c2c772cc8c9fdd9d6644e810006be419d9929cab7325c23addc32dad8239ac79bf586d28a
data/README.md CHANGED
@@ -9,6 +9,22 @@ uh
9
9
  Minimalistic Xlib toolkit.
10
10
 
11
11
 
12
+ Similar or related code
13
+ -----------------------
14
+
15
+ https://github.com/meh/ruby-x11 (gem, FFI, WM)
16
+ https://github.com/ayanko/x11_client (gem, C ext)
17
+ https://github.com/frankhale/ruby-window-management (C ext, WM)
18
+ https://github.com/christopheraue/ruby-xlib (gem, FFI)
19
+ https://github.com/rkh/ruby-xlib (C ext)
20
+ https://github.com/rramsden/ruby-x11 (pure ruby)
21
+
22
+ http://ruby-xlib-wrap.sourceforge.net/ (ext, SWIG)
23
+ http://www.moriq.com/ruby/xlib/
24
+ http://artengine.ca/matju/RubyX11/
25
+ https://github.com/mhanne/ruby-xcb (XCB, FFI)
26
+
27
+
12
28
 
13
29
  [badge-version-img]: https://img.shields.io/gem/v/uh.svg?style=flat-square
14
30
  [badge-version-uri]: https://rubygems.org/gems/uh
@@ -11,6 +11,7 @@
11
11
  VALUE rdisplay_error_handler = Qnil;
12
12
 
13
13
  int display_x_error_handler(Display *dpy, XErrorEvent *e);
14
+ int display_x_io_error_handler(Display *dpy);
14
15
 
15
16
 
16
17
  VALUE display_s_on_error(VALUE klass) {
@@ -136,6 +137,7 @@ VALUE display_open(VALUE self) {
136
137
  }
137
138
 
138
139
  XSetErrorHandler(display_x_error_handler);
140
+ XSetIOErrorHandler(display_x_io_error_handler);
139
141
 
140
142
  return self;
141
143
  }
@@ -220,3 +222,9 @@ int display_x_error_handler(Display *dpy, XErrorEvent *e) {
220
222
 
221
223
  return 0;
222
224
  }
225
+
226
+ int display_x_io_error_handler(Display *dpy) {
227
+ rb_funcall(rdisplay_error_handler, rb_intern("call"), 0);
228
+
229
+ return 0;
230
+ }
@@ -1,3 +1,3 @@
1
1
  module Uh
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uh
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibault Jouan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-28 00:00:00.000000000 Z
11
+ date: 2015-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake