calabash-cucumber 0.9.33 → 0.9.34

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.33)
4
+ calabash-cucumber (0.9.34)
5
5
  CFPropertyList
6
6
  cucumber
7
7
  json
@@ -459,8 +459,8 @@ def validate_setup(args)
459
459
  end
460
460
  exit 1
461
461
  end
462
- out_debug = `otool #{sim_dirs[0]}/* -o 2> /dev/null | grep CalabashServer`
463
- out_cal = `otool #{sim_dirs[1]}/* -o 2> /dev/null | grep CalabashServer 2> /dev/null`
462
+ out_debug = `otool "#{sim_dirs[0]}"/* -o 2> /dev/null | grep CalabashServer`
463
+ out_cal = `otool "#{sim_dirs[1]}"/* -o 2> /dev/null | grep CalabashServer 2> /dev/null`
464
464
  ok = (not /CalabashServer/.match(out_debug)) and /CalabashServer/.match(out_cal)
465
465
  if ok
466
466
  msg("OK") do
@@ -504,7 +504,7 @@ def validate_ipa(ipa)
504
504
 
505
505
  app_dir = Dir.foreach("#{dir}/Payload").find {|d| /\.app$/.match(d)}
506
506
  app = app_dir.split(".")[0]
507
- res = `otool #{dir}/Payload/#{app_dir}/#{app} -o 2> /dev/null | grep CalabashServer`
507
+ res = `otool "#{File.expand_path(dir)}/Payload/#{app_dir}/#{app}" -o 2> /dev/null | grep CalabashServer`
508
508
  msg("Info") do
509
509
  if /CalabashServer/.match(res)
510
510
  puts "Ipa: #{ipa} *contains* calabash.framework"
@@ -527,7 +527,7 @@ def validate_app(app)
527
527
  end
528
528
  exit 1
529
529
  end
530
- out = `otool #{app}/* -o 2> /dev/null | grep CalabashServer`
530
+ out = `otool "#{File.expand_path(app)}"/* -o 2> /dev/null | grep CalabashServer`
531
531
 
532
532
  msg("Info") do
533
533
  if /CalabashServer/.match(out)
@@ -4,7 +4,7 @@ def quit_sim
4
4
  `echo 'application "iPhone Simulator" quit' | osascript`
5
5
  end
6
6
  def calabash_sim_reset
7
- reset_script = File.absolute_path("#{@script_dir}/reset_simulator.scpt")
7
+ reset_script = File.expand_path("#{@script_dir}/reset_simulator.scpt")
8
8
  launcher = SimLauncher::Simulator.new
9
9
  sdks = SimLauncher::SdkDetector.new(launcher).available_sdk_versions
10
10
  sdks.each do |sdk_path_str|
@@ -21,14 +21,14 @@ end
21
21
  def calabash_sim_accessibility
22
22
  dirs = Dir.glob(File.join(File.expand_path("~/Library"),"Application Support","iPhone Simulator","*.*","Library","Preferences"))
23
23
  dirs.each do |sim_pref_dir|
24
- fp = File.absolute_path("#{@script_dir}/data/")
24
+ fp = File.expand_path("#{@script_dir}/data/")
25
25
  FileUtils.cp("#{fp}/com.apple.Accessibility.plist", sim_pref_dir)
26
26
  end
27
27
  end
28
28
 
29
29
  def calabash_sim_locale(args)
30
30
 
31
- prefs_path = File.absolute_path("#{@script_dir}/data/.GlobalPreferences.plist")
31
+ prefs_path = File.expand_path("#{@script_dir}/data/.GlobalPreferences.plist")
32
32
  plist = CFPropertyList::List.new(:file => prefs_path)
33
33
  hash = CFPropertyList.native_types(plist.value)
34
34
 
@@ -207,6 +207,7 @@ Then /^I swipe on cell number (\d+)$/ do |index|
207
207
  sleep(STEP_PAUSE)
208
208
  end
209
209
 
210
+
210
211
  ##pinch##
211
212
  Then /^I pinch to zoom (in|out)$/ do |in_out|
212
213
  pinch(in_out)
@@ -113,7 +113,7 @@ module Calabash
113
113
  def self.find_preferred_dir(sim_dirs)
114
114
 
115
115
  pref = sim_dirs.find do |d|
116
- out = `otool #{d}/* -o | grep CalabashServer`
116
+ out = `otool "#{File.expand_path(d)}"/* -o 2> /dev/null | grep CalabashServer`
117
117
  /CalabashServer/.match(out)
118
118
  end
119
119
 
@@ -161,7 +161,7 @@ module Calabash
161
161
  end
162
162
 
163
163
  def self.ping_app
164
- url = URI.parse (ENV['DEVICE_ENDPOINT']|| "http://localhost:37265/")
164
+ url = URI.parse(ENV['DEVICE_ENDPOINT']|| "http://localhost:37265/")
165
165
  puts "Ping #{url}..."
166
166
  http = Net::HTTP.new(url.host, url.port)
167
167
  res = http.start do |sess|
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = "0.9.33"
3
+ VERSION = "0.9.34"
4
4
  FRAMEWORK_VERSION = "0.9.33"
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.33
4
+ version: 0.9.34
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-14 00:00:00.000000000 Z
12
+ date: 2012-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber
16
- requirement: &70104146652560 !ruby/object:Gem::Requirement
16
+ requirement: &70183192423920 !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: *70104146652560
24
+ version_requirements: *70183192423920
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &70104146651260 !ruby/object:Gem::Requirement
27
+ requirement: &70183192423440 !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: *70104146651260
35
+ version_requirements: *70183192423440
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: CFPropertyList
38
- requirement: &70104146650040 !ruby/object:Gem::Requirement
38
+ requirement: &70183192422700 !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: *70104146650040
46
+ version_requirements: *70183192422700
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sim_launcher
49
- requirement: &70104146648600 !ruby/object:Gem::Requirement
49
+ requirement: &70183206106000 !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: *70104146648600
57
+ version_requirements: *70183206106000
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: slowhandcuke
60
- requirement: &70104146647640 !ruby/object:Gem::Requirement
60
+ requirement: &70183206105340 !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: *70104146647640
68
+ version_requirements: *70183206105340
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: net-http-persistent
71
- requirement: &70104146646860 !ruby/object:Gem::Requirement
71
+ requirement: &70183206103560 !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: *70104146646860
79
+ version_requirements: *70183206103560
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: pbxproject
82
- requirement: &70104146646160 !ruby/object:Gem::Requirement
82
+ requirement: &70183206103040 !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: *70104146646160
90
+ version_requirements: *70183206103040
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: