gym 0.6.1 → 0.6.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f008b200f787b3a07e0a641b25d90557fde0524
|
4
|
+
data.tar.gz: 3a754d5296f41cde06c53166820251d3f170d59b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e4361c975d9936ce746a6770bde593886694f016aa8f25235bf985253c3228a6917a0515fe2feb298216e4069e57cfac5b98b9ce1b22696df1a5e88d9ae3219
|
7
|
+
data.tar.gz: 580b9c25520cfbb5eb6ac5d2ef2654f64e5c83c1b270a035355f858215bd24093779e361f1aeaf686bb59c9a45339ff10a96a35064182d575acae28ef757b616
|
@@ -22,7 +22,7 @@ module Gym
|
|
22
22
|
|
23
23
|
options << "-exportOptionsPlist '#{config_path}'"
|
24
24
|
options << "-archivePath '#{BuildCommandGenerator.archive_path}'"
|
25
|
-
options << "-exportPath '#{
|
25
|
+
options << "-exportPath '#{temporary_output_path}'"
|
26
26
|
|
27
27
|
options
|
28
28
|
end
|
@@ -31,8 +31,19 @@ module Gym
|
|
31
31
|
[""]
|
32
32
|
end
|
33
33
|
|
34
|
+
# We export the ipa into this directory, as we can't specify the ipa file directly
|
35
|
+
def temporary_output_path
|
36
|
+
@temporary_output_path ||= File.join("/tmp", Time.now.to_i.to_s)
|
37
|
+
end
|
38
|
+
|
34
39
|
def ipa_path
|
35
|
-
|
40
|
+
unless @ipa_path
|
41
|
+
path = Dir[File.join(temporary_output_path, "*.ipa")].last
|
42
|
+
|
43
|
+
@ipa_path = File.join(temporary_output_path, "#{Gym.config[:output_name]}.ipa")
|
44
|
+
FileUtils.mv(path, @ipa_path)
|
45
|
+
end
|
46
|
+
@ipa_path
|
36
47
|
end
|
37
48
|
|
38
49
|
# The path the the dsym file for this app. Might be nil
|
data/lib/gym/version.rb
CHANGED