xamarin-test-cloud 0.9.12 → 0.9.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xamarin-test-cloud/cli.rb +12 -20
- data/lib/xamarin-test-cloud/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e0454ffc8af1f319b89778e181e406ecd29c5d5
|
4
|
+
data.tar.gz: 178ba623b208ecb038960113af1a9f2b7b92a315
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30144ebd665cd863b84068da4e2d710733bc47ba1e245a6db4d01a6638d53a19ab23f14bf9ab3c8ecb52d472c481ed1be6640bc37bcea1a5b1802ce4ef0dc738
|
7
|
+
data.tar.gz: d7e8537bf27538a34eebd3247d9ce7a34f1982e8a7e75331781834bc195f9b8f36942e6a54adf076729d265e17f9afe70593ab645d747ac38c9c1c24142c05c6
|
@@ -19,7 +19,7 @@ module XamarinTestCloud
|
|
19
19
|
include Thor::Actions
|
20
20
|
|
21
21
|
attr_accessor :host, :app, :api_key, :appname, :app_explorer, :test_parameters,
|
22
|
-
:workspace, :config, :profile, :
|
22
|
+
:workspace, :config, :profile, :skip_check, :dry_run, :device_selection
|
23
23
|
attr_accessor :pretty, :async
|
24
24
|
attr_accessor :endpoint_path
|
25
25
|
|
@@ -68,10 +68,9 @@ module XamarinTestCloud
|
|
68
68
|
:aliases => '-params',
|
69
69
|
:type => :hash
|
70
70
|
|
71
|
-
|
72
|
-
|
73
|
-
:
|
74
|
-
:aliases => '-f',
|
71
|
+
method_option :workspace,
|
72
|
+
:desc => 'Path to your Calabash workspace (containing your features folder)',
|
73
|
+
:aliases => '-w',
|
75
74
|
:type => :string
|
76
75
|
|
77
76
|
method_option :config,
|
@@ -159,18 +158,17 @@ module XamarinTestCloud
|
|
159
158
|
unless File.directory?(workspace_path)
|
160
159
|
raise ValidationError, "Provided workspace: #{workspace_path} is not a directory."
|
161
160
|
end
|
162
|
-
self.workspace = File.join(File.expand_path(workspace_path), File::Separator)
|
163
|
-
|
164
|
-
features_path = options[:features]
|
165
161
|
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
162
|
+
workspace_basename = File.basename(workspace_path)
|
163
|
+
if workspace_basename.downcase == 'features'
|
164
|
+
self.workspace = File.expand_path(File.join(workspace_path,'..'))
|
165
|
+
puts "Deriving workspace #{self.workspace} from features folder #{workspace_basename}"
|
166
|
+
else
|
167
|
+
self.workspace = File.expand_path(workspace_path)
|
172
168
|
end
|
173
169
|
|
170
|
+
self.workspace = File.join(self.workspace, File::Separator)
|
171
|
+
|
174
172
|
if ENV['DEBUG']
|
175
173
|
puts "Host = #{self.host}"
|
176
174
|
puts "App = #{self.app}"
|
@@ -180,7 +178,6 @@ module XamarinTestCloud
|
|
180
178
|
puts "API Key = #{self.api_key}"
|
181
179
|
puts "Device Selection = #{self.device_selection}"
|
182
180
|
puts "Workspace = #{self.workspace}"
|
183
|
-
puts "Features Zip = #{self.features_zip}"
|
184
181
|
puts "Config = #{self.config}"
|
185
182
|
puts "Profile = #{self.profile}"
|
186
183
|
puts "Skip Check = #{self.skip_check}"
|
@@ -496,11 +493,6 @@ module XamarinTestCloud
|
|
496
493
|
|
497
494
|
def all_files(tmpdir)
|
498
495
|
dir = workspace
|
499
|
-
if features_zip
|
500
|
-
dir = Dir.mktmpdir
|
501
|
-
unzip_file(features_zip, dir)
|
502
|
-
dir = File.join(dir, File::Separator)
|
503
|
-
end
|
504
496
|
|
505
497
|
if self.app_explorer
|
506
498
|
files = []
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xamarin-test-cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Krukow
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|