rukuli 1.0.1 → 1.0.2

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: c6d13d4e876eec80bca0d3a8621fb7cff9ee09de
4
- data.tar.gz: f7496c3881d13ecad36a322f0b547d1cdc9b0a77
3
+ metadata.gz: 76f13492ca5ed8e15dcb6aaca33ee5a608d3098e
4
+ data.tar.gz: 581127c00256e825a7c15f3e3631a028ad3df715
5
5
  SHA512:
6
- metadata.gz: 68d498d450e6c4b010f7837d26da4d44cc7e30fa7ff06adae373f75280eebce69c7a4d123fff46afe104372a315eec01c1791621facdacc838f3c4afb8b0be78
7
- data.tar.gz: 210821607fc3d273936b9caac7af579e63761ddf33154efff5314eda94e1bd0a0663dc9d9a0861dcad46d3cbb26ea186eff9255f984e0c856d5e866588bc9c7b
6
+ metadata.gz: e6af83acc9f442cc43614a7e6fdc58f3c9894f350171c31079b7d6d37c1f38f795ceeb5cd6d9f161faa387e79944b99d758f0396428066970babe705127b767d
7
+ data.tar.gz: e708294c7642e3887def93c16613347f45cfb45e4de496bdbf5cde5d08ebc27049ff18baf07b16e5d8c9b8c58a31bac83edb90947565ef830abe0360130ad6f1
@@ -11,9 +11,10 @@ module Rukuli
11
11
  KEY_SHIFT = KeyModifier::SHIFT
12
12
  KEY_CTRL = KeyModifier::CTRL
13
13
  KEY_ALT = KeyModifier::ALT
14
-
14
+
15
15
  KEY_BACKSPACE = Key::BACKSPACE
16
16
  KEY_RETURN = Key::ENTER
17
+ KEY_ESC = Key::ESC
17
18
  LEFT_ARROW = Key::LEFT
18
19
  RIGHT_ARROW = Key::RIGHT
19
20
  UP_ARROW = Key::UP
@@ -4,7 +4,7 @@ module Rukuli
4
4
  def self.sikulix_path
5
5
  path = "#{ENV['SIKULIX_HOME']}"
6
6
  if ENV['SIKULIX_HOME'].nil?
7
- raise LoadError, "Failed to load 'sikuli-java.jar'\nMake sure SIKULI_HOME is set!"
7
+ raise LoadError, "Failed to load 'sikuli-java.jar'\nMake sure SIKULIX_HOME is set!"
8
8
  end
9
9
  path
10
10
  end
@@ -26,7 +26,7 @@ module Rukuli
26
26
  #
27
27
  # Returns nothing
28
28
  def enter(text)
29
- @java_obj.type(text + Sikuli::KEY_RETURN)
29
+ @java_obj.type(text + Rukuli::KEY_RETURN)
30
30
  end
31
31
  end
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module Rukuli
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -16,6 +16,10 @@ describe Rukuli::Region, "#Typeable" do
16
16
  @region.type("this should be lower case")
17
17
  @region.type("this should be upper case", Rukuli::KEY_SHIFT)
18
18
  end
19
+
20
+ it "types and presses enter" do
21
+ @region.enter("this should be followed by the enter key")
22
+ end
19
23
  end
20
24
 
21
25
  context "unicode characters" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rukuli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chas Lemley
@@ -9,20 +9,20 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-26 00:00:00.000000000 Z
12
+ date: 2014-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  description: Sikuli allows you to interact with your application's user interface
@@ -33,8 +33,8 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - .gitignore
37
- - .rspec
36
+ - ".gitignore"
37
+ - ".rspec"
38
38
  - Gemfile
39
39
  - License.txt
40
40
  - README.md
@@ -74,17 +74,17 @@ require_paths:
74
74
  - lib
75
75
  required_ruby_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - '>='
77
+ - - ">="
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - '>='
82
+ - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
86
  rubyforge_project: rukuli
87
- rubygems_version: 2.0.3
87
+ rubygems_version: 2.2.2
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Ruby wrapper for Sikuli GUI automation library