calabash-cucumber 0.9.145.pre1 → 0.9.145.pre2

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,8 +53,10 @@ module Calabash
53
53
  end
54
54
 
55
55
  def query_all(uiquery, *args)
56
- puts "query_all is deprecated. Use the new all/visible feature."
57
- puts "see: https://github.com/calabash/calabash-ios/wiki/05-Query-syntax"
56
+ unless ENV['CALABASH_NO_DEPRECATION'] == '1'
57
+ puts "query_all is deprecated. Use the new all/visible feature."
58
+ puts "see: https://github.com/calabash/calabash-ios/wiki/05-Query-syntax"
59
+ end
58
60
  map("all #{uiquery}", :query, *args)
59
61
  end
60
62
 
@@ -198,11 +198,6 @@ module Calabash
198
198
  until connected
199
199
  begin
200
200
  connected = (ping_app == '405')
201
- if ENV['POST_START_BREAK']
202
- puts "Environment var POST_START_BREAK is deprecated and should no longer be necessary."
203
- post_connect_sleep = (ENV['POST_START_BREAK'] || "2").to_f
204
- sleep(post_connect_sleep) unless post_connect_sleep <= 0
205
- end
206
201
  if connected
207
202
  server_version = get_version
208
203
  if server_version
@@ -56,7 +56,9 @@ module Calabash
56
56
  query(uiquery, :accessibilityLabel)
57
57
  end
58
58
 
59
-
59
+ def identifier(uiquery)
60
+ query(uiquery, :accessibilityIdentifier)
61
+ end
60
62
 
61
63
  def simple_touch(label, *args)
62
64
  touch("view marked:'#{label}'", *args)
@@ -71,6 +73,10 @@ module Calabash
71
73
  end
72
74
 
73
75
  def set_text(uiquery, txt)
76
+ unless ENV['CALABASH_NO_DEPRECATION'] == '1'
77
+ puts 'set_text is deprecated, please use keyboard_enter_text'
78
+ puts 'https://github.com/calabash/calabash-ios/wiki/03.5-Calabash-iOS-Ruby-API'
79
+ end
74
80
  text_fields_modified = map(uiquery, :setText, txt)
75
81
  screenshot_and_raise "could not find text field #{uiquery}" if text_fields_modified.empty?
76
82
  text_fields_modified
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = '0.9.145.pre1'
4
- FRAMEWORK_VERSION = '0.9.145.pre1'
3
+ VERSION = '0.9.145.pre2'
4
+ FRAMEWORK_VERSION = '0.9.145.pre2'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.145.pre1
4
+ version: 0.9.145.pre2
5
5
  prerelease: 8
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: 2013-04-27 00:00:00.000000000 Z
12
+ date: 2013-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber