deploygate 0.6.0 → 0.6.1

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: b08e127cc5a388bc4eab00018a0d81012ff594a4
4
- data.tar.gz: 094111f8e293f4cd449ec1dc67874135dd52dcc6
3
+ metadata.gz: 1b2ffe536cf1154e289bac3a94e490f3beba3b61
4
+ data.tar.gz: 761cab216f6f7759803d75922dabcaf6821982d1
5
5
  SHA512:
6
- metadata.gz: 3bc2bf312819124af701153c08f5e3a6c1a9d97084d77e8fb95e7c3b1e38bb829f1eb137886597bc78362df1becca28d8920ff093717ee51e05250f42cf285ff
7
- data.tar.gz: fd06782cc75f638e61b2524c4de7dfcb60f694c900b34f64efbd67f85eea528c8d603c1bbce9a65acd062c357876ca3eecc8a2911e5b55f44c4cd823631ccb74
6
+ metadata.gz: bc85b8e05e49d80348981bb3e30b49a743b1dc294d7c8f395e3b94623795a941eeca51227713f8ef4018948cea8c796e1036916016ee7d31a9be881fc275271f
7
+ data.tar.gz: f4969c12cc00a8dd7995ae91f61d1f8ec80e11cd1262060a2718a83d73953ceadb3b268968fdaea2b874abc313bf8ee72a9488cdb0723dbc02d94fdd8585b990
@@ -13,6 +13,7 @@ en:
13
13
  user: 'User or organization name of app owner'
14
14
  distribution_key: 'If you also want to update distribution page, set the last part of the URL of the page'
15
15
  configuration: 'Set Xcode build configuration (iOS app only)'
16
+ scheme: 'Set Xcode build scheme (iOS app only)'
16
17
  open: 'Open a browser after the build uploaded (OS X only)'
17
18
  disable_notify: 'Disable email notification (iOS app only)'
18
19
  error: 'Commands::Deploy Error: %{e}'
@@ -61,6 +61,7 @@ module DeployGate
61
61
  c.option '--user STRING', String, I18n.t('command_builder.deploy.user')
62
62
  c.option '--distribution-key STRING', String, I18n.t('command_builder.deploy.distribution_key')
63
63
  c.option '--configuration STRING', String, I18n.t('command_builder.deploy.configuration')
64
+ c.option '--scheme STRING', String, I18n.t('command_builder.deploy.scheme')
64
65
  c.option '--open', I18n.t('command_builder.deploy.open')
65
66
  c.option '--disable_notify', I18n.t('command_builder.deploy.disable_notify')
66
67
  c.action do |args, options|
@@ -33,8 +33,9 @@ module DeployGate
33
33
  def ios(workspaces, options)
34
34
  DeployGate::Xcode::Export.check_local_certificates
35
35
  build_configuration = options.configuration
36
+ target_scheme = options.scheme
36
37
 
37
- analyze = DeployGate::Xcode::Analyze.new(workspaces, build_configuration)
38
+ analyze = DeployGate::Xcode::Analyze.new(workspaces, build_configuration, target_scheme)
38
39
  target_scheme = analyze.scheme
39
40
 
40
41
  bundle_identifier = analyze.target_bundle_identifier
@@ -1,3 +1,3 @@
1
1
  module DeployGate
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
@@ -14,8 +14,9 @@ module DeployGate
14
14
 
15
15
  # @param [Array] workspaces
16
16
  # @param [String] build_configuration
17
+ # @param [String] target_scheme
17
18
  # @return [DeployGate::Xcode::Analyze]
18
- def initialize(workspaces, build_configuration = nil)
19
+ def initialize(workspaces, build_configuration = nil, target_scheme = nil)
19
20
  @workspaces = workspaces
20
21
  @build_configuration = build_configuration || DEFAULT_BUILD_CONFIGURATION
21
22
  @scheme_workspace = find_scheme_workspace(workspaces)
@@ -28,7 +29,12 @@ module DeployGate
28
29
  config = FastlaneCore::Configuration.create(Gym::Options.available_options, {:workspace => @build_workspace})
29
30
  project = FastlaneCore::Project.new(config)
30
31
  end
31
- project.select_scheme
32
+
33
+ if 1 < project.schemes.length && target_scheme
34
+ project.options[:scheme] = target_scheme
35
+ else
36
+ project.select_scheme
37
+ end
32
38
  @scheme = project.options[:scheme]
33
39
  end
34
40
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploygate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - deploygate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-06 00:00:00.000000000 Z
11
+ date: 2017-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json