xamarin-test-cloud 0.9.12 → 0.9.13

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: 34c7a9aca3dbf415b704a74b31ac4d06567bf713
4
- data.tar.gz: 32bc24c3f82cd94e2a3c7c55f6904d70bbc05157
3
+ metadata.gz: 3e0454ffc8af1f319b89778e181e406ecd29c5d5
4
+ data.tar.gz: 178ba623b208ecb038960113af1a9f2b7b92a315
5
5
  SHA512:
6
- metadata.gz: a37d10332aa7c0370e70f71b147799d90b34954fb1d732f361dacc2d6010fb16140b42550d29452089a6990c41b4119ff3bb5ab6737520af4e3d40aacb35d62c
7
- data.tar.gz: febb74a160515acf22e365f25c1dac3d20af57af0afdcdf658f7c0d442c47a4f5a42f2cdc4e5be585ae1d45b47c7de627364dcd83a0234d785b12dba204d1f26
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, :features_zip, :skip_check, :dry_run, :device_selection
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
- method_option :features,
73
- :desc => 'Zip file with features, step definitions, etc...',
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
- unless features_path.nil? || self.app_explorer
167
- if File.exist?(features_path)
168
- self.features_zip = File.expand_path(features_path)
169
- else
170
- raise ValidationError, "Provided features file does not exist #{features_path}"
171
- end
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 = []
@@ -1,3 +1,3 @@
1
1
  module XamarinTestCloud
2
- VERSION = '0.9.12'
2
+ VERSION = '0.9.13'
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.12
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-08 00:00:00.000000000 Z
12
+ date: 2013-08-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor