gym 0.6.2 → 0.7.0

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: 7f008b200f787b3a07e0a641b25d90557fde0524
4
- data.tar.gz: 3a754d5296f41cde06c53166820251d3f170d59b
3
+ metadata.gz: 46d8c23f191b23c471b3e47c7531499520841f42
4
+ data.tar.gz: f0808090ccacdd0b189c85dd999317d0a1b20994
5
5
  SHA512:
6
- metadata.gz: 3e4361c975d9936ce746a6770bde593886694f016aa8f25235bf985253c3228a6917a0515fe2feb298216e4069e57cfac5b98b9ce1b22696df1a5e88d9ae3219
7
- data.tar.gz: 580b9c25520cfbb5eb6ac5d2ef2654f64e5c83c1b270a035355f858215bd24093779e361f1aeaf686bb59c9a45339ff10a96a35064182d575acae28ef757b616
6
+ metadata.gz: 6f9b52fabdb2186ea70c896961ecdc8cca91a12c6cc0d906e60cc21da4f4f10c959f7a12de14f762212aa2b4cb6335ed80a4bb15503d33b51923cfd1d3302601
7
+ data.tar.gz: 58a99d14c47ff55ec0e38276edf3e0727835ced06221aae522ef2a147af91c15e62e144757a0d23595981916ff74f6a050d95de651fb52bb2d23c39d87024a41
@@ -57,7 +57,9 @@ module Gym
57
57
  end
58
58
 
59
59
  def suffix
60
- []
60
+ suffix = []
61
+ suffix << "CODE_SIGN_IDENTITY='#{Gym.config[:codesigning_identity]}'" if Gym.config[:codesigning_identity]
62
+ suffix
61
63
  end
62
64
 
63
65
  def pipe
@@ -3,10 +3,7 @@ module Gym
3
3
  class PackageCommandGeneratorXcode7
4
4
  class << self
5
5
  def generate
6
- if Gym.config[:provisioning_profile_path]
7
- Helper.log.info "You're using Xcode 7, the `provisioning_profile_path` value will be ignored".yellow
8
- Helper.log.info "Please follow the Code Signing Guide: https://github.com/KrauseFx/fastlane/blob/master/docs/CodeSigning.md".yellow
9
- end
6
+ print_legacy_information
10
7
 
11
8
  parts = ["/usr/bin/xcrun xcodebuild -exportArchive"]
12
9
  parts += options
@@ -41,7 +38,7 @@ module Gym
41
38
  path = Dir[File.join(temporary_output_path, "*.ipa")].last
42
39
 
43
40
  @ipa_path = File.join(temporary_output_path, "#{Gym.config[:output_name]}.ipa")
44
- FileUtils.mv(path, @ipa_path)
41
+ FileUtils.mv(path, @ipa_path) if File.expand_path(path) != File.expand_path(@ipa_path)
45
42
  end
46
43
  @ipa_path
47
44
  end
@@ -61,14 +58,22 @@ module Gym
61
58
 
62
59
  def config_content
63
60
  require 'plist'
64
- symbols = (Gym.config[:include_symbols] ? true : false)
65
- bitcode = (Gym.config[:include_bitcode] ? true : false)
66
-
67
- {
68
- method: 'app-store',
69
- uploadSymbols: symbols,
70
- uploadBitcode: bitcode
71
- }.to_plist
61
+
62
+ hash = { method: Gym.config[:export_method] }
63
+
64
+ if Gym.config[:export_method] == 'app-store'
65
+ hash[:uploadSymbols] = (Gym.config[:include_symbols] ? true : false)
66
+ hash[:uploadBitcode] = (Gym.config[:include_bitcode] ? true : false)
67
+ end
68
+
69
+ hash.to_plist
70
+ end
71
+
72
+ def print_legacy_information
73
+ if Gym.config[:provisioning_profile_path]
74
+ Helper.log.info "You're using Xcode 7, the `provisioning_profile_path` value will be ignored".yellow
75
+ Helper.log.info "Please follow the Code Signing Guide: https://github.com/KrauseFx/fastlane/blob/master/docs/CodeSigning.md".yellow
76
+ end
72
77
  end
73
78
  end
74
79
  end
@@ -105,12 +105,24 @@ module Gym
105
105
  short_option: "-m",
106
106
  env_name: "GYM_INCLUDE_SYMBOLS",
107
107
  description: "Should the ipa file include symbols?",
108
- default_value: true),
108
+ default_value: true,
109
+ is_string: false),
109
110
  FastlaneCore::ConfigItem.new(key: :include_bitcode,
110
111
  short_option: "-z",
111
112
  env_name: "GYM_INCLUDE_BITCODE",
112
113
  description: "Should the ipa include bitcode?",
113
- default_value: false),
114
+ default_value: false,
115
+ is_string: false),
116
+ FastlaneCore::ConfigItem.new(key: :export_method,
117
+ short_option: "-j",
118
+ env_name: "GYM_EXPORT_METHOD",
119
+ description: "How should gym export the archive?",
120
+ default_value: "app-store",
121
+ is_string: true,
122
+ verify_block: proc do |value|
123
+ av = %w(app-store ad-hoc package enterprise development developer-id)
124
+ raise "Unsupported export_method, must be: #{av}" unless av.include?(value)
125
+ end),
114
126
  FastlaneCore::ConfigItem.new(key: :provisioning_profile_path,
115
127
  short_option: "-e",
116
128
  env_name: "GYM_PROVISIONING_PROFILE_PATH",
@@ -1,4 +1,4 @@
1
1
  module Gym
2
- VERSION = "0.6.2"
2
+ VERSION = "0.7.0"
3
3
  DESCRIPTION = "Building your iOS apps has never been easier"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gym
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-18 00:00:00.000000000 Z
11
+ date: 2015-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -268,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
268
  version: '0'
269
269
  requirements: []
270
270
  rubyforge_project:
271
- rubygems_version: 2.4.5
271
+ rubygems_version: 2.4.6
272
272
  signing_key:
273
273
  specification_version: 4
274
274
  summary: Building your iOS apps has never been easier