xamarin-test-cloud 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/xamarin-test-cloud/cli.rb +10 -12
- data/lib/xamarin-test-cloud/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bb3083c76ac65cf97cf48cb078a0fbaf4ca3c89
|
4
|
+
data.tar.gz: 37c34ea52400e49a5cfa3625cf9e46bd5b51ead3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55eaef0687df106aac48f41f00f8fee3d3bd1319b50e06368ee77787fd85be0fe08e0f99ed64f2a955d4fde7258bff3de35f566b2a00cf1f5f767fffc4a2eb16
|
7
|
+
data.tar.gz: ec10ec80d8bdb23942941d1627346c1a14d02b0a04e879d0a6bfb3250ee325a8eba534886053c1e7c10ba17713587180233873d19cd8f8d538881ce113d98e68
|
data/CHANGELOG.md
CHANGED
@@ -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 =
|
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
|
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.
|
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-
|
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.
|
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:
|