run_loop 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a5f112f7dbf51abb34809d582efdd87cc46cb8a4
4
+ data.tar.gz: 360d541359c4909f3c83b7a9c1d3ba808769f296
5
+ SHA512:
6
+ metadata.gz: 54ecc6bdf87e924667c16ca9cb8154ba9fa3ff304ff2f20e7cd8d08e7365501d532792aaff8418bd40884a9e8c5f1d71377058aa5af101e45070fcfebd00bdaa
7
+ data.tar.gz: d096a8f1e351e26475d134fe70156e29b95869c522a254322fa57e8d542a027e9641aae4e1685c00ea666823475c5ede88de92231b3550332cf34aa57923ad26
data/lib/run_loop/core.rb CHANGED
@@ -34,6 +34,10 @@ module RunLoop
34
34
 
35
35
  device = options[:device] || :iphone
36
36
  udid = options[:udid]
37
+ timeout = options[:timeout] || 10
38
+
39
+ log_file = options[:log_path]
40
+
37
41
 
38
42
 
39
43
  results_dir = options[:results_dir] || Dir.mktmpdir("run_loop")
@@ -93,7 +97,7 @@ module RunLoop
93
97
 
94
98
  end
95
99
 
96
- log_file = File.join(results_dir, 'run_loop.out')
100
+ log_file ||= File.join(results_dir, 'run_loop.out')
97
101
 
98
102
  cmd = instruments_command(udid, results_dir_trace, bundle_dir_or_bundle_id, results_dir, script, log_file)
99
103
 
@@ -116,11 +120,11 @@ module RunLoop
116
120
 
117
121
  #read_response(run_loop,0)
118
122
  begin
119
- Timeout::timeout(30, TimeoutError) do
123
+ Timeout::timeout(timeout, TimeoutError) do
120
124
  read_response(run_loop, 0)
121
125
  end
122
126
  rescue TimeoutError => e
123
- raise "Time out waiting for UIAutomation run-loop to Start. \n #{File.read(log_file)}"
127
+ raise TimeoutError, "Time out waiting for UIAutomation run-loop to Start. \n #{File.read(log_file)}"
124
128
  end
125
129
 
126
130
  run_loop
@@ -291,7 +295,7 @@ module RunLoop
291
295
  end
292
296
 
293
297
  rescue TimeoutError => e
294
- raise "Time out waiting for UIAutomation run-loop for command #{cmd}. Waiting for index:#{expected_index}"
298
+ raise TimeoutError, "Time out waiting for UIAutomation run-loop for command #{cmd}. Waiting for index:#{expected_index}"
295
299
  end
296
300
 
297
301
  result
@@ -1,3 +1,3 @@
1
1
  module RunLoop
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: run_loop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
5
- prerelease:
4
+ version: 0.0.11
6
5
  platform: ruby
7
6
  authors:
8
7
  - Karl Krukow
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-24 00:00:00.000000000 Z
11
+ date: 2013-05-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: thor
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: json
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: calabash-cucumber drives tests for native iOS apps. RunLoop provides
@@ -75,26 +70,26 @@ files:
75
70
  - scripts/run_loop.js
76
71
  homepage: http://calaba.sh
77
72
  licenses: []
73
+ metadata: {}
78
74
  post_install_message:
79
75
  rdoc_options: []
80
76
  require_paths:
81
77
  - lib
82
78
  required_ruby_version: !ruby/object:Gem::Requirement
83
- none: false
84
79
  requirements:
85
- - - ! '>='
80
+ - - '>='
86
81
  - !ruby/object:Gem::Version
87
82
  version: '0'
88
83
  required_rubygems_version: !ruby/object:Gem::Requirement
89
- none: false
90
84
  requirements:
91
- - - ! '>='
85
+ - - '>='
92
86
  - !ruby/object:Gem::Version
93
87
  version: '0'
94
88
  requirements: []
95
89
  rubyforge_project:
96
- rubygems_version: 1.8.23
90
+ rubygems_version: 2.0.2
97
91
  signing_key:
98
- specification_version: 3
92
+ specification_version: 4
99
93
  summary: Tools related to running Calabash iOS tests
100
94
  test_files: []
95
+ has_rdoc: