active_window_x 0.0.1 → 0.0.2

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.
@@ -1,7 +1,7 @@
1
1
  require "mkmf"
2
2
 
3
3
  if have_library('X11')
4
- create_makefile "xlib"
4
+ create_makefile "active_window_x/xlib"
5
5
  else
6
6
  raise "Cannot found X11"
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveWindowX
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,5 +1,6 @@
1
1
  # dump all properties of window on changing active window
2
2
 
3
+ require 'rubygems'
3
4
  require 'active_window_x'
4
5
 
5
6
  @listener = ActiveWindowX::EventListener.new
data/sample/simple.rb CHANGED
@@ -1,6 +1,6 @@
1
-
1
+ require 'rubygems'
2
2
  require 'active_window_x'
3
3
 
4
4
  ActiveWindowX::EventListener.new do |e|
5
- puts "#{e.type}:\t#{e.window}"
5
+ puts "#{e.type}:\t#{e.window ? e.window.name : nil}"
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_window_x
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Keiichiro Ui