xamarin-test-cloud 0.9.23 → 0.9.25
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 +16 -8
- 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: 85ed9efbc323a787e8b9f5ae9e6057e8475300e3
|
4
|
+
data.tar.gz: 564c37f98b8f66e2b40dea7afb89911aaed01c01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be4b2cc3852a6bf6e705036c43dfec794e5e1c75dcdbb87436bc26960aadbf72524eee94a1758140282300abe2e90163bc87583e6e507dc3824a361629b0f5be
|
7
|
+
data.tar.gz: eea97022ae901f721fab31f6952af7471e4f15c461b0abcdda2edaa0f76f41363ad0de0ee4d1514be8cf077ac3c72c97d6ad3ccf906a430e24d1a7e24ab24393
|
@@ -155,10 +155,14 @@ module XamarinTestCloud
|
|
155
155
|
|
156
156
|
workspace_path = options[:workspace] || File.expand_path('.')
|
157
157
|
|
158
|
-
unless
|
159
|
-
|
158
|
+
unless self.app_explorer
|
159
|
+
unless File.directory?(workspace_path)
|
160
|
+
raise ValidationError, "Provided workspace: #{workspace_path} is not a directory."
|
161
|
+
end
|
160
162
|
end
|
161
163
|
|
164
|
+
|
165
|
+
|
162
166
|
workspace_basename = File.basename(workspace_path)
|
163
167
|
if workspace_basename.downcase == 'features'
|
164
168
|
self.workspace = File.expand_path(File.join(workspace_path,'..'))
|
@@ -169,12 +173,14 @@ module XamarinTestCloud
|
|
169
173
|
|
170
174
|
self.workspace = File.join(self.workspace, File::Separator)
|
171
175
|
|
172
|
-
unless
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
176
|
+
unless self.app_explorer
|
177
|
+
unless File.directory?(File.join(self.workspace, 'features'))
|
178
|
+
log_header "Did not find features folder in workspace #{self.workspace}"
|
179
|
+
puts "Either run the test-cloud command from the directory containing your features"
|
180
|
+
puts "or use the --workspace option to refer to this directory"
|
181
|
+
puts "See also test-cloud help submit"
|
182
|
+
raise ValidationError, "Unable to find features folder in #{self.workspace}"
|
183
|
+
end
|
178
184
|
end
|
179
185
|
|
180
186
|
unless app_explorer
|
@@ -538,6 +544,7 @@ module XamarinTestCloud
|
|
538
544
|
if File.exist?(workspace_gemfile)
|
539
545
|
FileUtils.cd(self.workspace) do
|
540
546
|
version = `bundle exec ruby -e "require 'calabash-android/version'; puts Calabash::Android::VERSION"`
|
547
|
+
version = version && version.strip
|
541
548
|
end
|
542
549
|
end
|
543
550
|
unless version
|
@@ -553,6 +560,7 @@ module XamarinTestCloud
|
|
553
560
|
if File.exist?(workspace_gemfile)
|
554
561
|
FileUtils.cd(self.workspace) do
|
555
562
|
version = `bundle exec ruby -e "require 'calabash-cucumber/version'; puts Calabash::Cucumber::VERSION"`
|
563
|
+
version = version && version.strip
|
556
564
|
end
|
557
565
|
end
|
558
566
|
unless version
|
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.25
|
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-
|
12
|
+
date: 2013-09-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|