uh 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/README.md +16 -0
 - data/ext/uh/display.c +8 -0
 - data/lib/uh/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 4ce0054f79a0757f35bd8ca08cc01d7ca91d9562
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 736b278f6331a23d8534c7196cacd366cab209ca
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 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
         
     | 
    
        data/ext/uh/display.c
    CHANGED
    
    | 
         @@ -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 
     | 
    
         
            +
            }
         
     | 
    
        data/lib/uh/version.rb
    CHANGED
    
    
    
        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. 
     | 
| 
      
 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- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2015-04-29 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: rake
         
     |