epitools 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
data/spec/wm_spec.rb CHANGED
@@ -10,6 +10,16 @@ describe WM do
10
10
  #WM.current_desktop.is_a?(WM::Desktop).should == true
11
11
  WM.current_desktop.nil? == false
12
12
  end
13
+
14
+ it "parses X keys-string" do
15
+ events = WM::Window.new.keys_to_events "Hello<Ctrl-T><Ctrl-L><Return>!!!"
16
+ events.should == ["<Shift><Key>H", "<Key>e", "<Key>l", "<Key>l", "<Key>o", "Ctrl<Key>T", "Ctrl<Key>L", "<Key>Return", "<Shift><Key>!", "<Shift><Key>!", "<Shift><Key>!"]
17
+ end
18
+
19
+ it "sends keys to this window" do
20
+ sublime_window = WM.current_desktop.windows.select{|w| w.title =~ /wm_spec\.rb.+Sublime/ }.first
21
+ sublime_window.send_keys('<Ctrl-`>print "Hello from send_keys()!"<Return>')
22
+ end
13
23
 
14
24
  end
15
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epitools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-04 00:00:00.000000000 Z
12
+ date: 2012-07-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 1.8.21
157
+ rubygems_version: 1.8.24
158
158
  signing_key:
159
159
  specification_version: 3
160
160
  summary: NOT UTILS... METILS!