xdo 0.0.2-x86-linux → 0.0.3-x86-linux
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.
- data/Rakefile +1 -1
- data/lib/HISTORY.rdoc +4 -1
- data/lib/xdo.rb +1 -1
- data/lib/xdo/xwindow.rb +3 -3
- data/test/test_xwindow.rb +1 -0
- metadata +14 -14
data/Rakefile
CHANGED
@@ -18,7 +18,7 @@ only with Ruby 1.9.
|
|
18
18
|
DESCRIPTION
|
19
19
|
s.add_development_dependency("test-unit", ">= 2.0")
|
20
20
|
s.requirements = ["The xdotool command-line tool.", "The xsel command-line tool.", "xwininfo (usually installed)", "eject (usually installed)", "xkill (usually installed)"]
|
21
|
-
s.version = "0.0.
|
21
|
+
s.version = "0.0.3"
|
22
22
|
s.author = "Marvin Gülker"
|
23
23
|
s.email = "sutniuq@gmx.net"
|
24
24
|
s.platform = Gem::Platform::CURRENT #Because it's a Linux-only gem
|
data/lib/HISTORY.rdoc
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=History of the xdo gem
|
2
2
|
This file shows the history of the xdo gem
|
3
3
|
from it's very beginning. Important changes in the
|
4
|
-
API are marked <b>bold</b>.
|
4
|
+
API are marked <b>bold</b>. Bugfixes are <i>italic</i>.
|
5
5
|
==0.0.2
|
6
6
|
* Replaced fork{system("gedit")} in full_demo.rb with spawn("gedit")
|
7
7
|
* Removed "require 'pp'" from keyboard.rb
|
@@ -9,3 +9,6 @@ API are marked <b>bold</b>.
|
|
9
9
|
* <b>Corrected window id usage for the XDo::Keyboard module</b>
|
10
10
|
* Added a test for the window id usage
|
11
11
|
* Made the test-unit gem a development dependency
|
12
|
+
==0.0.3
|
13
|
+
* <i>Some XWindow instance methods (like #close!) showed wrong error messages due to the redundance of Kernel#raise with XWindow#raise. This has been fixed. </i>
|
14
|
+
* If run alone, the "test_xwindow.rb" test file failed with obscure errors. Fixed.
|
data/lib/xdo.rb
CHANGED
data/lib/xdo/xwindow.rb
CHANGED
@@ -272,7 +272,7 @@ module XDo
|
|
272
272
|
def raise
|
273
273
|
err = ""
|
274
274
|
popen3("#{XDo::XDOTOOL} windowraise #{@id}"){|stdin, stdout, stderr| err << stderr.read}
|
275
|
-
raise(XDo::XError, err) unless err.empty?
|
275
|
+
Kernel.raise(XDo::XError, err) unless err.empty?
|
276
276
|
end
|
277
277
|
|
278
278
|
#Activate a window. That is, bring it to top and give it the input focus.
|
@@ -368,7 +368,7 @@ module XDo
|
|
368
368
|
#Use #kill! to kill the process running the window.
|
369
369
|
#Available after requireing "xdo/keyboard"
|
370
370
|
def close
|
371
|
-
raise(NotImplementedError, "You have to require 'xdo/keyboard' before you can use #{__method__}!") unless defined? XDo::Keyboard
|
371
|
+
Kernel.raise(NotImplementedError, "You have to require 'xdo/keyboard' before you can use #{__method__}!") unless defined? XDo::Keyboard
|
372
372
|
activate
|
373
373
|
sleep 0.5
|
374
374
|
XDo::Keyboard.char("Alt+F4")
|
@@ -382,7 +382,7 @@ module XDo
|
|
382
382
|
#does not succeed (within +timeout+ seconds), it will call #kill!.
|
383
383
|
#Available after requireing "xdo/keyboard".
|
384
384
|
def close!(timeout = 2)
|
385
|
-
raise(NotImplementedError, "You have to require 'xdo/keyboard' before you can use #{__method__}!") unless defined? XDo::Keyboard
|
385
|
+
Kernel.raise(NotImplementedError, "You have to require 'xdo/keyboard' before you can use #{__method__}!") unless defined? XDo::Keyboard
|
386
386
|
#Try to close normally
|
387
387
|
close
|
388
388
|
#Check if it's deleted
|
data/test/test_xwindow.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xdo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: x86-linux
|
6
6
|
authors:
|
7
7
|
- "Marvin G\xC3\xBClker"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-02-10 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -38,21 +38,21 @@ extra_rdoc_files: []
|
|
38
38
|
|
39
39
|
files:
|
40
40
|
- bin/xinfo.rb
|
41
|
-
- lib/xdo.rb
|
42
|
-
- lib/xdo/xwindow.rb
|
43
|
-
- lib/xdo/simulatable.rb
|
44
|
-
- lib/xdo/mouse.rb
|
45
|
-
- lib/xdo/drive.rb
|
46
41
|
- lib/xdo/keyboard.rb
|
47
42
|
- lib/xdo/clipboard.rb
|
43
|
+
- lib/xdo/drive.rb
|
44
|
+
- lib/xdo/mouse.rb
|
45
|
+
- lib/xdo/xwindow.rb
|
46
|
+
- lib/xdo/simulatable.rb
|
48
47
|
- lib/xdo/wxaliases.rb
|
49
|
-
-
|
50
|
-
- test/test_clipboard.rb
|
51
|
-
- test/test_keyboard.rb
|
48
|
+
- lib/xdo.rb
|
52
49
|
- test/test_xwindow.rb
|
53
50
|
- test/test_mouse.rb
|
54
|
-
-
|
51
|
+
- test/test_drive.rb
|
52
|
+
- test/test_keyboard.rb
|
53
|
+
- test/test_clipboard.rb
|
55
54
|
- samples/full_demo.rb
|
55
|
+
- samples/mouse.rb
|
56
56
|
- Rakefile
|
57
57
|
- lib/README.rdoc
|
58
58
|
- lib/HISTORY.rdoc
|
@@ -92,8 +92,8 @@ signing_key:
|
|
92
92
|
specification_version: 3
|
93
93
|
summary: Simulate keyboard and mouse input via a ruby interface to xdotool and other console programs.
|
94
94
|
test_files:
|
95
|
-
- test/test_drive.rb
|
96
|
-
- test/test_clipboard.rb
|
97
|
-
- test/test_keyboard.rb
|
98
95
|
- test/test_xwindow.rb
|
99
96
|
- test/test_mouse.rb
|
97
|
+
- test/test_drive.rb
|
98
|
+
- test/test_keyboard.rb
|
99
|
+
- test/test_clipboard.rb
|