xamarin-test-cloud 2.0.1 → 2.0.2

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: 609e340deda5841de2d5f4af2540b81139c84038
4
- data.tar.gz: 9eaf06e9ffa2d06955f4eae4216b32a3d17f5272
3
+ metadata.gz: 3bb3083c76ac65cf97cf48cb078a0fbaf4ca3c89
4
+ data.tar.gz: 37c34ea52400e49a5cfa3625cf9e46bd5b51ead3
5
5
  SHA512:
6
- metadata.gz: afe140c2211ee35a3b082a320b74f2605133deac43c803fd4f34b9ea2006fa55676a7a166dd086d239b918b7f40a141659f3b715a29303ef1811c7178077e359
7
- data.tar.gz: 13a4790d5f06c889cc819267d07d41850606f12bccde2798dcc24d8dce3bc0a99bed86a71b4873ad91da12c78903e72f3bcc52ef843b98fba77b90037ecb396d
6
+ metadata.gz: 55eaef0687df106aac48f41f00f8fee3d3bd1319b50e06368ee77787fd85be0fe08e0f99ed64f2a955d4fde7258bff3de35f566b2a00cf1f5f767fffc4a2eb16
7
+ data.tar.gz: ec10ec80d8bdb23942941d1627346c1a14d02b0a04e879d0a6bfb3250ee325a8eba534886053c1e7c10ba17713587180233873d19cd8f8d538881ce113d98e68
@@ -1,3 +1,8 @@
1
+ ### 2.0.2
2
+
3
+ * Use otool-classic to check for the CalabashServer whenever it is
4
+ available #78
5
+
1
6
  ### 2.0.1
2
7
 
3
8
  * Fix method arity for HTTPClient#set\_auth - use nil domain #74
@@ -875,24 +875,13 @@ and try submitting again.
875
875
  raise ValidationError, "Unzipping #{ipa} to #{dir} failed: Did not find a Payload directory (invalid .ipa)."
876
876
  end
877
877
  app_dir = Dir.foreach("#{dir}/Payload").find { |d| /\.app$/.match(d) }
878
- res = `otool "#{File.expand_path(dir)}/Payload/#{app_dir}/"* -o 2> /dev/null | grep CalabashServer`
878
+ res = check_for_calabash_server(dir, app_dir)
879
879
 
880
880
  if /CalabashServer/.match(res)
881
881
  puts "ipa: #{ipa} *contains* calabash.framework"
882
882
  result = :calabash
883
883
  end
884
884
 
885
- unless result
886
- res = `otool "#{File.expand_path(dir)}/Payload/#{app_dir}/"* -o 2> /dev/null | grep FrankServer`
887
- if /FrankServer/.match(res)
888
- puts "ipa: #{ipa} *contains* FrankServer"
889
- raise ValidationError, 'Frank not supported just yet'
890
- else
891
- puts "ipa: #{ipa} *does not contain* calabash.framework"
892
- result = false
893
- end
894
- end
895
-
896
885
  result
897
886
  end
898
887
 
@@ -1167,6 +1156,15 @@ Check your local Gemfile and and the remote Gemfile at:
1167
1156
  system(command, *arguments)
1168
1157
  $?.exitstatus == 0
1169
1158
  end
1159
+
1160
+ def check_for_calabash_server(dir, app_dir)
1161
+ if system("xcrun --find otool-classic &> /dev/null")
1162
+ otool_cmd = "xcrun otool-classic"
1163
+ else
1164
+ otool_cmd = "xcrun otool"
1165
+ end
1166
+ `#{otool_cmd} "#{File.expand_path(dir)}/Payload/#{app_dir}/"* -o 2> /dev/null | grep CalabashServer`
1167
+ end
1170
1168
  end
1171
1169
  end
1172
1170
  end
@@ -1,3 +1,3 @@
1
1
  module XamarinTestCloud
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
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: 2.0.1
4
+ version: 2.0.2
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: 2016-08-02 00:00:00.000000000 Z
12
+ date: 2016-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -344,8 +344,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
344
344
  version: '0'
345
345
  requirements: []
346
346
  rubyforge_project:
347
- rubygems_version: 2.5.1
347
+ rubygems_version: 2.6.6
348
348
  signing_key:
349
349
  specification_version: 4
350
350
  summary: Command-line interface to Xamarin Test Cloud
351
351
  test_files: []
352
+ has_rdoc: