xamarin-test-cloud 0.9.23 → 0.9.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2d847ea19fc7b8402e99ee9698bf155a0dec15a
4
- data.tar.gz: 6bc08e38845d94ce81f47c2966d7e18bb403762e
3
+ metadata.gz: 85ed9efbc323a787e8b9f5ae9e6057e8475300e3
4
+ data.tar.gz: 564c37f98b8f66e2b40dea7afb89911aaed01c01
5
5
  SHA512:
6
- metadata.gz: d49b0095708759e6b36ed4dc5daee1797e0be0c68a3f69e7a344ba074c764c727f0f9a58cbc9ad8493f80a4fe2ab78c934f2b011d0a11e76f3f4543118a3d02f
7
- data.tar.gz: 8fed008f85eb31f33e1cedcccef81d34f6afef135dd77b7a2552606cf46546b8b4e4eaf865391fa9b0384f536e63d032ecd400259d8214f2ee9c1342cd8502a5
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 File.directory?(workspace_path)
159
- raise ValidationError, "Provided workspace: #{workspace_path} is not a directory."
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 File.directory?(File.join(self.workspace, 'features'))
173
- log_header "Did not find features folder in workspace #{self.workspace}"
174
- puts "Either run the test-cloud command from the directory containing your features"
175
- puts "or use the --workspace option to refer to this directory"
176
- puts "See also test-cloud help submit"
177
- raise ValidationError, "Unable to find features folder in #{self.workspace}"
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
@@ -1,3 +1,3 @@
1
1
  module XamarinTestCloud
2
- VERSION = '0.9.23'
2
+ VERSION = '0.9.25'
3
3
  end
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.23
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-08-29 00:00:00.000000000 Z
12
+ date: 2013-09-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor