xamarin-test-cloud 0.9.26 → 0.9.27

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 72938e4a557f9d98993ad373f5e5f34e7ace88f9
4
- data.tar.gz: 721d60f44d48906665f1dc1157ca3d03c646214c
3
+ metadata.gz: bddeecea66572446f9f5aa80883e1e4144e7527d
4
+ data.tar.gz: aa6f558b65c0b651e6d3ee6023ddb892a6acdead
5
5
  SHA512:
6
- metadata.gz: 2673d070f34437ff2bf0f028b464c8154f5a55af2c652d5a8f71657433d9d0cc4639909a49d951fc123ce1d5546a342555a42c27289f35ebe40325fc7d6e344f
7
- data.tar.gz: ab39e1b3682b939a1accce1a5c69cc662baf947eaef54455adac4c384a4fb5d9aed3c692b18ff68407bcf3bad2a7089ddb9a6c557fdb0ff0799a04b4b05fe12b
6
+ metadata.gz: 6ab3a0bcced94c6ad8a64d3001c2ed9388b9668f62e160a2c77d6f6df80492bd3d09079993677886080aef650e3cb9e45171494d1aa72e7ecb6308e6f25cc97d
7
+ data.tar.gz: 7a58b4c899ed970bb4446f8fef2c7f0983ff927b6c2f0fb7935d343743074b71fbbe1b4b49c315cde00eb82138c78f821425ed6b5780bff22927ba98657d772d
@@ -175,6 +175,7 @@ module XamarinTestCloud
175
175
 
176
176
  self.workspace = File.join(self.workspace, File::Separator)
177
177
 
178
+
178
179
  unless self.app_explorer
179
180
  unless File.directory?(File.join(self.workspace, 'features'))
180
181
  log_header "Did not find features folder in workspace #{self.workspace}"
@@ -404,6 +405,11 @@ module XamarinTestCloud
404
405
  case response.code
405
406
  when 200..202
406
407
  response
408
+ when 400
409
+ abort do
410
+ puts 'Bad request'
411
+ puts response.body
412
+ end
407
413
  when 403
408
414
  abort do
409
415
  puts 'Invalid API key'
@@ -651,8 +657,7 @@ module XamarinTestCloud
651
657
  raise ValidationError, "Unzipping #{ipa} to #{dir} failed: Did not find a Payload directory (invalid .ipa)."
652
658
  end
653
659
  app_dir = Dir.foreach("#{dir}/Payload").find { |d| /\.app$/.match(d) }
654
- app = app_dir.split('.')[0]
655
- res = `otool "#{File.expand_path(dir)}/Payload/#{app_dir}/#{app}" -o 2> /dev/null | grep CalabashServer`
660
+ res = `otool "#{File.expand_path(dir)}/Payload/#{app_dir}/"* -o 2> /dev/null | grep CalabashServer`
656
661
 
657
662
  if /CalabashServer/.match(res)
658
663
  puts "ipa: #{ipa} *contains* calabash.framework"
@@ -660,7 +665,7 @@ module XamarinTestCloud
660
665
  end
661
666
 
662
667
  unless result
663
- res = `otool "#{File.expand_path(dir)}/Payload/#{app_dir}/#{app}" -o 2> /dev/null | grep FrankServer`
668
+ res = `otool "#{File.expand_path(dir)}/Payload/#{app_dir}/"* -o 2> /dev/null | grep FrankServer`
664
669
  if /FrankServer/.match(res)
665
670
  puts "ipa: #{ipa} *contains* FrankServer"
666
671
  raise ValidationError, 'Frank not supported just yet'
@@ -1,3 +1,3 @@
1
1
  module XamarinTestCloud
2
- VERSION = '0.9.26'
2
+ VERSION = '0.9.27'
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.26
4
+ version: 0.9.27
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-10-04 00:00:00.000000000 Z
12
+ date: 2014-01-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor