gym 0.6.1 → 0.6.2

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: c44ae4103a3937b3b2dbfc0b201e1520652fa651
4
- data.tar.gz: 4fbe25b77c99bc72a5c28c61bc057ef047747bfe
3
+ metadata.gz: 7f008b200f787b3a07e0a641b25d90557fde0524
4
+ data.tar.gz: 3a754d5296f41cde06c53166820251d3f170d59b
5
5
  SHA512:
6
- metadata.gz: 7674e79afd4c3363eab5bfdd63f046a44e5038f3da5b8fc8e3b4420a8a9570ea844c92488cfa25f1e25b6a2140741eb9a09f83d41dbbb0d91de5ddc61152dd9f
7
- data.tar.gz: 038d960b5a7ded9c0eecacca639c1cb816693aa0d68e05e23ba7b82cb8ca3f0015dfa5f7b6da0f4ab6d9ce3a3c241dded317b8727242410a6d9453a39dcc082b
6
+ metadata.gz: 3e4361c975d9936ce746a6770bde593886694f016aa8f25235bf985253c3228a6917a0515fe2feb298216e4069e57cfac5b98b9ce1b22696df1a5e88d9ae3219
7
+ data.tar.gz: 580b9c25520cfbb5eb6ac5d2ef2654f64e5c83c1b270a035355f858215bd24093779e361f1aeaf686bb59c9a45339ff10a96a35064182d575acae28ef757b616
@@ -15,6 +15,7 @@ module Gym
15
15
  generator.appfile_path
16
16
  end
17
17
 
18
+ # The path in which the ipa file will be available after executing the command
18
19
  def ipa_path
19
20
  generator.ipa_path
20
21
  end
@@ -22,7 +22,7 @@ module Gym
22
22
 
23
23
  options << "-exportOptionsPlist '#{config_path}'"
24
24
  options << "-archivePath '#{BuildCommandGenerator.archive_path}'"
25
- options << "-exportPath '#{BuildCommandGenerator.build_path}'" # we move it once the binary is finished
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
- File.join(BuildCommandGenerator.build_path, "#{Gym.config[:output_name]}.ipa")
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
@@ -1,4 +1,4 @@
1
1
  module Gym
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  DESCRIPTION = "Building your iOS apps has never been easier"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gym
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause