calabash-android 0.3.2 → 0.3.3.pre1

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.
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.require_paths = ["lib"]
17
17
 
18
18
  s.add_dependency( "cucumber" )
19
- s.add_dependency( "json" )
19
+ s.add_dependency( "json_pure" )
20
20
  s.add_dependency( "retriable" )
21
21
  s.add_dependency( "slowhandcuke" )
22
22
  s.add_dependency( "rubyzip" )
@@ -14,3 +14,5 @@ IRB.conf[:HISTORY_FILE] = ".irb-history"
14
14
 
15
15
  require 'calabash-android/operations'
16
16
  include Calabash::Android::Operations
17
+
18
+ start_test_server_in_background
@@ -1,13 +1,22 @@
1
1
  #!/bin/bash
2
2
  TEST_SERVER_PORT=34777
3
- MOBILE_APP_PACKAGE=$1
4
- if [ -z "$MOBILE_APP_PACKAGE" ]; then
3
+ PACKAGE_NAME=$1
4
+ MAIN_ACTIVITY=$2
5
+ if [ -z "$PACKAGE_NAME" ]; then
5
6
  echo 'The parameter about your mobile app package is missing: e.g. com.springsource.greenhouse.test'
6
7
  exit 1
7
- else
8
- # use this line for calabash version 0.1
9
- # adb shell am instrument -e class sh.calaba.instrumentationbackend.InstrumentationBackend -w $MOBILE_APP_PACKAGE/android.test.InstrumentationTestRunner &
10
- adb shell am instrument -e class sh.calaba.instrumentationbackend.InstrumentationBackend -w $MOBILE_APP_PACKAGE/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner &
11
- sleep 7
12
- IRBRC=.irbrc TEST_SERVER_PORT=$TEST_SERVER_PORT irb
13
8
  fi
9
+
10
+ if [ -z "$MAIN_ACTIVITY" ]; then
11
+ echo 'The parameter about your mobile app main activity is missing: e.g. com.springsource.greenhouse.MainActivity'
12
+ exit 1
13
+ fi
14
+
15
+ # use this line for calabash version 0.1
16
+ # adb shell am instrument -e class sh.calaba.instrumentationbackend.InstrumentationBackend -w $PACKAGE_NAME/android.test.InstrumentationTestRunner &
17
+ # use this for calabash-version 0.2
18
+ # adb shell am instrument -e class sh.calaba.instrumentationbackend.InstrumentationBackend -w $PACKAGE_NAME/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner &
19
+ #use this for calabash version 0.3
20
+ #adb shell am instrument -e target_package $PACKAGE_NAME -e main_activity $MAIN_ACTIVITY -e class sh.calaba.instrumentationbackend.InstrumentationBackend sh.calaba.android.test/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner
21
+ #sleep 7
22
+ IRBRC=.irbrc TEST_SERVER_PORT=$TEST_SERVER_PORT PACKAGE_NAME=$PACKAGE_NAME MAIN_ACTIVITY=$MAIN_ACTIVITY irb
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.3.2"
3
+ VERSION = "0.3.3.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.2
5
- prerelease:
4
+ version: 0.3.3.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-17 00:00:00.000000000 Z
12
+ date: 2012-10-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber
@@ -28,7 +28,7 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
- name: json
31
+ name: json_pure
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
@@ -708,9 +708,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
708
708
  required_rubygems_version: !ruby/object:Gem::Requirement
709
709
  none: false
710
710
  requirements:
711
- - - ! '>='
711
+ - - ! '>'
712
712
  - !ruby/object:Gem::Version
713
- version: '0'
713
+ version: 1.3.1
714
714
  requirements: []
715
715
  rubyforge_project:
716
716
  rubygems_version: 1.8.24