rautomation 0.16.0 → 0.17.0

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: c170c9d076468e2d6e90f7fa92347f3943d80162
4
- data.tar.gz: ba8fef7dc2ab480bc636aed06ba0b3438e9235d0
3
+ metadata.gz: 95d5dfeb95290e7944534c9a7ff4e042ae9d9b25
4
+ data.tar.gz: 2f8c65032f68cd5fdb6d79a50d3887827597d7d7
5
5
  SHA512:
6
- metadata.gz: 17118a231bfd94d2c09919e4633ec23eb8ec472a7a0922e9765b806f23840b24a891785aad9376597f5faece76775f1c188a14a0f18906289e3092c941cfb51a
7
- data.tar.gz: 19512014b5b726a4ba1799be3140abe62d799d8f79850c45d593fbe7d80d2d1b8fca44f08b768c3524c72dc6e71c8eaf0ec352a217ea32a96b5181211f73ec56
6
+ metadata.gz: 389fd8e7b1bdd288e1d5514d384d1b957c26ab3b657bcffbc519ae7136e986faac6b88ad96949d1be1fea9c61cb1263555d3067a7eb29110d03c0b9c48866784
7
+ data.tar.gz: 2201aaf9897b898f2c5b474c85c1a759fd0e110808a62cc965e5029bce5707433cf9385592211d7394dc1c15a0f15f57013512ac36a0773c3b8fca8451edd1bf
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rautomation (0.16.0)
4
+ rautomation (0.17.0)
5
5
  ffi (~> 1.9.0)
6
6
 
7
7
  GEM
@@ -1,3 +1,9 @@
1
+ == 0.17.0 / 2014-09-29
2
+
3
+ === Win32 adapter
4
+
5
+ * Fix searching locators by hwnd. See more at issue #96.
6
+
1
7
  == 0.16.0 / 2014-09-29
2
8
 
3
9
  * Loosen up ffi dependency due to fixed segfault problem. See more at issue #81.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.16.0
1
+ 0.17.0
@@ -262,7 +262,11 @@ module RAutomation
262
262
 
263
263
  def element_properties(type, hwnd, locators)
264
264
  locators.inject({}) do |properties, locator|
265
- properties[locator[0]] = self.send("#{type}_#{locator[0]}", hwnd) unless locator[0] == :index
265
+ if locator[0] == :hwnd
266
+ properties[locator[0]] = hwnd
267
+ elsif locator[0] != :index
268
+ properties[locator[0]] = self.send("#{type}_#{locator[0]}", hwnd)
269
+ end
266
270
  properties
267
271
  end
268
272
  end
@@ -47,7 +47,6 @@ describe RAutomation::TextField do
47
47
  main_form.text_field(:class => "non-existent-field").should_not exist
48
48
  end
49
49
 
50
-
51
50
  it "#hwnd" do
52
51
  field = main_form.text_field(:class => /Edit/i, :index => 1)
53
52
  field.hwnd.should be_a(Fixnum)
@@ -56,4 +55,10 @@ describe RAutomation::TextField do
56
55
  expect { main_form.text_field(:class => "non-existing-window").hwnd }.
57
56
  to raise_exception(RAutomation::UnknownTextFieldException)
58
57
  end
58
+
59
+ it "#hwnd locator" do
60
+ field = main_form.text_field(:class => /Edit/i, :index => 1)
61
+ field.hwnd.should be_a(Fixnum)
62
+ field2 = main_form.text_field(:hwnd => field.hwnd).should exist
63
+ end
59
64
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rautomation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarmo Pertman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-29 00:00:00.000000000 Z
11
+ date: 2014-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi