calabash-cucumber 0.9.163.pre3 → 0.9.163.pre4

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: 5ba4c13954fdbb5e3b318dc013b01afebf0ffc0d
4
- data.tar.gz: a6ca296b723ead0f965a37ccc8fb3bb1662bb105
3
+ metadata.gz: 92fe46c72cf7c198d794ddba2a518ecda59757d9
4
+ data.tar.gz: d0fc8270c277166fcda42080a6d05adf6b3e1a02
5
5
  SHA512:
6
- metadata.gz: 992d859db98cbb905fa69c8e31e700fe8a2db9829a0278be0a53078557992419e59f8d0ae587940dac2b78a53ad81e93389efe86f854189837ae393401d11cca
7
- data.tar.gz: 037196a5aea4b6422ae3bf1fc844419fbf634235df38565d40c38c4c889ae97f3b7cd2ed00d27e162cef25d1c8d8ae42cd8492d26fea4f06fc9a6dc126bfbcc7
6
+ metadata.gz: 7fd73184e610036cebeb6f8a842f258f7cd49b6fd6dbe6edb68e7c5c4f868f4b0c564d868c12523c9301f132e7c92f515ccfc572e5f7bc84b4f206e658f8addf
7
+ data.tar.gz: 01361b87b9afebba12e99e53d05c808ed093238ead4f5413249a227af14adf32d631664119f5b12127ea135818c03ec7b78670848a60a959cf4118c0b78fd4e8
@@ -738,6 +738,11 @@ EOF
738
738
  end
739
739
  end
740
740
 
741
+ def shutdown_test_server
742
+ # Compat with Calabash Android
743
+ stop_test_server
744
+ end
745
+
741
746
  def default_device
742
747
  @calabash_launcher && @calabash_launcher.device
743
748
  end
@@ -132,7 +132,21 @@ class Calabash::Cucumber::Launcher
132
132
  end
133
133
 
134
134
  def detect_connected_device?
135
+ if ENV['DETECT_CONNECTED_DEVICE'] == '1'
136
+ return true
137
+ end
138
+
139
+ if ENV['BUNDLE_ID'].nil? && ENV['DETECT_CONNECTED_DEVICE'].nil?
140
+ return false
141
+ end
142
+ if ENV['BUNDLE_ID'] && ENV['DETECT_CONNECTED_DEVICE'].nil?
143
+ return true
144
+ end
145
+ if ENV['DETECT_CONNECTED_DEVICE']
135
146
  return ENV['DETECT_CONNECTED_DEVICE'] != '0'
147
+ end
148
+
149
+ return false
136
150
  end
137
151
 
138
152
  def default_launch_method
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = '0.9.163.pre3'
3
+ VERSION = '0.9.163.pre4'
4
4
  FRAMEWORK_VERSION = '0.9.163.pre3'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.163.pre3
4
+ version: 0.9.163.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-25 00:00:00.000000000 Z
11
+ date: 2013-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber