calabash-cucumber 0.9.20 → 0.9.21

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- calabash-cucumber (0.9.18)
4
+ calabash-cucumber (0.9.20)
5
5
  CFPropertyList
6
6
  cucumber
7
7
  json
@@ -34,7 +34,7 @@ GEM
34
34
  rack-protection (1.2.0)
35
35
  rack
36
36
  rake (0.9.2.2)
37
- sim_launcher (0.3.7)
37
+ sim_launcher (0.3.8)
38
38
  sinatra
39
39
  sinatra (1.3.2)
40
40
  rack (~> 1.3, >= 1.3.6)
data/bin/calabash-ios CHANGED
@@ -11,7 +11,6 @@ require File.join(File.dirname(__FILE__),"calabash-ios-sim")
11
11
 
12
12
  @features_dir = File.join(FileUtils.pwd, "features")
13
13
  @source_dir = File.join(File.dirname(__FILE__), '..', 'features-skeleton')
14
- @iphonesim = File.absolute_path(File.join(File.dirname(__FILE__), 'iphonesim'))
15
14
  @script_dir = File.join(File.dirname(__FILE__), '..', 'scripts')
16
15
 
17
16
  if (ARGV.length == 0)
@@ -1,5 +1,6 @@
1
1
  require "calabash-cucumber/version"
2
2
 
3
+
3
4
  def dup_scheme(project_name, pbx_dir)
4
5
 
5
6
  userdata_dirs = Dir.foreach("#{pbx_dir}/xcuserdata").find_all { |x|
@@ -154,7 +155,7 @@ def setup_project(project_name, project_path, path)
154
155
  ##Download calabash.framework
155
156
  if not Dir.exists?(File.join(project_path, file))
156
157
  msg("Info") do
157
- zip_file = "calabash.framework-#{Calabash::Cucumber::VERSION}.zip"
158
+ zip_file = "calabash.framework-#{ENV['CALABASH_VERSION']||Calabash::Cucumber::VERSION}.zip"
158
159
  puts "Did not find calabash.framework. I'll download it...'"
159
160
  puts "http://cloud.github.com/downloads/calabash/calabash-ios/#{zip_file}"
160
161
  require 'uri'
@@ -363,6 +364,11 @@ def validate_setup(args)
363
364
  validate_ipa(args[0])
364
365
  elsif args[0].end_with?(".app")
365
366
  validate_app(args[0])
367
+ else
368
+ msg("Error") do
369
+ puts "File should end with .app or .ipa"
370
+ end
371
+ exit 1
366
372
  end
367
373
  else
368
374
  dd_dir = Calabash::Cucumber::SimulatorHelper.derived_data_dir_for_project
@@ -1,14 +1,16 @@
1
+ require 'sim_launcher'
2
+
1
3
  def quit_sim
2
4
  `echo 'application "iPhone Simulator" quit' | osascript`
3
5
  end
4
6
  def calabash_sim_reset
5
7
  reset_script = File.absolute_path("#{@script_dir}/reset_simulator.scpt")
6
- sdks = `#{@iphonesim} showsdks`.split("\n")
8
+ launcher = SimLauncher::Simulator.new
9
+ sdks = SimLauncher::SdkDetector.new(launcher).available_sdk_versions
7
10
  sdks.each do |sdk_path_str|
8
- sdk_path = sdk_path_str.split(" ")
9
- `#{@iphonesim} launch DUMMY_APP #{sdk_path[0]} ipad 2> /dev/null`
11
+ launcher.launch_ios_app("DUMMY_APP",sdk_path_str,"ipad")
10
12
  system("osascript #{reset_script}")
11
- `#{@iphonesim} launch DUMMY_APP #{sdk_path[0]} iphone 2> /dev/null`
13
+ launcher.launch_ios_app("DUMMY_APP",sdk_path_str,"iphone")
12
14
  system("osascript #{reset_script}")
13
15
  end
14
16
 
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = "0.9.20"
3
+ VERSION = "0.9.21"
4
4
  end
5
5
  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.20
4
+ version: 0.9.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-01 00:00:00.000000000 Z
12
+ date: 2012-03-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber
16
- requirement: &70182882346360 !ruby/object:Gem::Requirement
16
+ requirement: &70174271608780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70182882346360
24
+ version_requirements: *70174271608780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &70182882345940 !ruby/object:Gem::Requirement
27
+ requirement: &70174271608340 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70182882345940
35
+ version_requirements: *70174271608340
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: CFPropertyList
38
- requirement: &70182882345520 !ruby/object:Gem::Requirement
38
+ requirement: &70174271607880 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70182882345520
46
+ version_requirements: *70174271607880
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sim_launcher
49
- requirement: &70182882345080 !ruby/object:Gem::Requirement
49
+ requirement: &70174271607380 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70182882345080
57
+ version_requirements: *70174271607380
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: slowhandcuke
60
- requirement: &70182882344640 !ruby/object:Gem::Requirement
60
+ requirement: &70174271606840 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70182882344640
68
+ version_requirements: *70174271606840
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: net-http-persistent
71
- requirement: &70182882344220 !ruby/object:Gem::Requirement
71
+ requirement: &70174271606200 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70182882344220
79
+ version_requirements: *70174271606200
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: pbxproject
82
- requirement: &70182882343800 !ruby/object:Gem::Requirement
82
+ requirement: &70174271605320 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70182882343800
90
+ version_requirements: *70174271605320
91
91
  description: calabash-cucumber drives tests for native iOS apps. You must link your
92
92
  app with calabash-ios-server framework to execute tests.
93
93
  email:
@@ -109,7 +109,6 @@ files:
109
109
  - bin/calabash-ios-helpers.rb
110
110
  - bin/calabash-ios-setup.rb
111
111
  - bin/calabash-ios-sim.rb
112
- - bin/iphonesim
113
112
  - calabash-cucumber.gemspec
114
113
  - copy_resources.sh
115
114
  - doc/calabash-ios-help.txt
data/bin/iphonesim DELETED
Binary file