calabash-android 0.5.3 → 0.5.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2a8f40cc923ffd3e00e326102619222cbd23ce2
4
- data.tar.gz: d9e809beffef802866484fb292b6fb4eea89c4ab
3
+ metadata.gz: c3d8e6214b08d32c898b1cfd1f4aabc42da33b3e
4
+ data.tar.gz: 652e2f29b456f303aed53cb9ffe2293f2db8b7c8
5
5
  SHA512:
6
- metadata.gz: a4105c7a57cc3f5afa07bc1ce2e557d2fe34e9a8fd1b267e0233061e4ed574e22fb991b77c447da992484235b15a1a837fa8edb3b643e413d9eee63066de6411
7
- data.tar.gz: 1c0ca870547e096af29be9f29b265c484edb9674c43bd05ea5805bb2e296db74f04c92d9b37386f20d0f07fda25647d3fe55d4b4bb12b4fab8376f8dae94aaf9
6
+ metadata.gz: e21458b4936d211a6664e8aeb0b5672bf20d9617ab82eeb1125f173b0fb9db454d9d85b2ca53ee4f6ce779b9ed66c68b6e3b4a5f793931a85c1ae4ac99f6299e
7
+ data.tar.gz: e5ffb174325a1f9b68829653f2fef8da71849914ae34c16bc211f7d8628a35747bd528580b2760d60660c275f1ee14403c3844a60f43d375703c520e55833fc2
data/CHANGES.txt CHANGED
@@ -1,3 +1,8 @@
1
+ 0.5.4:
2
+ This version is only a fix of changes introduced in 0.5.3.
3
+
4
+ Fixed usage of old clear_text being invalid. Now calabash only prints a warning and proceeds.
5
+
1
6
  0.5.3:
2
7
  Added methods to clear text in a specified view or the view that has focus.
3
8
 
@@ -15,13 +15,13 @@ Then /^I enter text "([^\"]*)" into field with id "([^\"]*)"$/ do |text, id|
15
15
  end
16
16
 
17
17
  Then /^I clear "([^\"]*)"$/ do |identifier|
18
- clear_text("android.widget.EditText marked:'#{identifier}'}")
18
+ clear_text_in("android.widget.EditText marked:'#{identifier}'}")
19
19
  end
20
20
 
21
21
  Then /^I clear input field number (\d+)$/ do |index|
22
- clear_text("android.widget.EditText index:#{index.to_i-1}")
22
+ clear_text_in("android.widget.EditText index:#{index.to_i-1}")
23
23
  end
24
24
 
25
25
  Then /^I clear input field with id "([^\"]*)"$/ do |id|
26
- clear_text("android.widget.EditText id:'#{id}'")
26
+ clear_text_in("android.widget.EditText id:'#{id}'")
27
27
  end
@@ -35,7 +35,15 @@ module Calabash
35
35
  end
36
36
 
37
37
  def clear_text(options={})
38
- perform_action('clear_text')
38
+ if options.is_a?(String)
39
+ puts "Warning: The method clear_text now clears the text in the currently focused view. Use clear_text_in instead"
40
+ puts "Notice that clear_text_in only clears the text of the first element matching the given query, not all."
41
+ puts "Use query(query, setText: '') to replicate the old behaviour"
42
+
43
+ clear_text_in(options)
44
+ else
45
+ perform_action('clear_text')
46
+ end
39
47
  end
40
48
 
41
49
  def escape_quotes(str)
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.5.3"
3
+ VERSION = "0.5.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Maturana Larsen