calabash-android 0.3.1 → 0.3.2.pre1

Sign up to get free protection for your applications and to get access to all the features.
@@ -165,10 +165,6 @@ module Operations
165
165
  log `#{adb_command} uninstall #{package_name}`
166
166
  end
167
167
 
168
- def shutdown_test_server
169
- http("/kill")
170
- end
171
-
172
168
  def perform_action(action, *arguments)
173
169
  log "Action: #{action} - Params: #{arguments.join(', ')}"
174
170
 
@@ -275,14 +271,10 @@ module Operations
275
271
  end
276
272
 
277
273
  def start_test_server_in_background
278
- cmd = "#{adb_command} shell am instrument -w -e target_package #{ENV["PACKAGE_NAME"]} -e main_activity #{ENV["MAIN_ACTIVITY"]} -e class sh.calaba.instrumentationbackend.InstrumentationBackend sh.calaba.android.test/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner"
274
+ cmd = "#{adb_command} shell am instrument -e target_package #{ENV["PACKAGE_NAME"]} -e main_activity #{ENV["MAIN_ACTIVITY"]} -e class sh.calaba.instrumentationbackend.InstrumentationBackend sh.calaba.android.test/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner"
279
275
  log "Starting test server using:"
280
276
  log cmd
281
- if is_windows?
282
- system(%Q(start /MIN cmd /C #{cmd}))
283
- else
284
- `#{cmd} 1>&2 &`
285
- end
277
+ raise "Could not execute command to start test server" unless system("#{cmd} 2>&1")
286
278
 
287
279
  begin
288
280
  retriable :tries => 10, :interval => 3 do
@@ -304,6 +296,10 @@ module Operations
304
296
  end
305
297
  end
306
298
 
299
+ def shutdown_test_server
300
+ http("/kill")
301
+ end
302
+
307
303
  def log(message)
308
304
  $stdout.puts "#{Time.now.strftime("%Y-%m-%d %H:%M:%S")} - #{message}" if (ARGV.include? "-v" or ARGV.include? "--verbose")
309
305
  end
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2.pre1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
5
- prerelease:
4
+ version: 0.3.2.pre1
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jonas Maturana Larsen
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-10 00:00:00.000000000 Z
12
+ date: 2012-10-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber
@@ -701,9 +701,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
701
701
  required_rubygems_version: !ruby/object:Gem::Requirement
702
702
  none: false
703
703
  requirements:
704
- - - ! '>='
704
+ - - ! '>'
705
705
  - !ruby/object:Gem::Version
706
- version: '0'
706
+ version: 1.3.1
707
707
  requirements: []
708
708
  rubyforge_project:
709
709
  rubygems_version: 1.8.24