fastlane-actions-xcode_get_product_name 0.2.0 → 0.2.1

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: d94941fa989fdacf78fd8a3b8314bc81adf2acc2
4
- data.tar.gz: 35bd5298c5cec3a9be40c8774f2d2f9585de92c3
3
+ metadata.gz: af0270a40bd207104e4b8db51d17e23f6d75b53e
4
+ data.tar.gz: 8ab53e3b1c8e8241dbbf1f7a4f77962e67234cd0
5
5
  SHA512:
6
- metadata.gz: 8dd44f4bf768e38b335bbe08220c2e9005dcae2ec83789e30dca2a75e54c615d5c89bef045307398edad191e7bc1039de80a7cf9f760f8b9cd323aa7ecd4f690
7
- data.tar.gz: bb92596e32288109c1d28992c1c800588ae1969874d3155d12cf191e78e192cf300207a78c96e689f7f9a71f807a37c311111dbc9ae203b6681fb43566641db2
6
+ metadata.gz: cfef4c7a826313bf4e14a5bad57beff3ed1a4a219dc7a3ea381c8e9eec59e61fdf81281ed4f8f67a7946a87ead6809865b7fd593f3c64e2f17c0dcb46d49997d
7
+ data.tar.gz: d42cd48efe8ba54e3e960736a4e3d4c5e64b9b5d39d3a214888d008e3e12e6abf6000272a75442332cf12743144e89036b95c076f7aaa102022843d37dd259fe
@@ -1,7 +1,7 @@
1
1
  module Fastlane
2
2
  module Actions
3
3
  module XcodeGetProductName
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
6
6
  end
7
7
  end
@@ -2,6 +2,21 @@ require "fastlane/actions/xcode_get_product_name/version"
2
2
  require "gym"
3
3
  require "fastlane_core"
4
4
 
5
+ module FastlaneCore
6
+ # Represents an Xcode project
7
+ class Project
8
+ def xcodebuild_parameters
9
+ proj = []
10
+ proj << "-workspace '#{options[:workspace]}'" if options[:workspace]
11
+ proj << "-scheme '#{options[:scheme]}'" if options[:scheme]
12
+ proj << "-project '#{options[:project]}'" if options[:project]
13
+ proj << "-configuration '#{options[:configuration]}'" if options[:configuration]
14
+
15
+ return proj
16
+ end
17
+ end
18
+ end
19
+
5
20
  module Fastlane
6
21
  module Actions
7
22
  module SharedValues
@@ -30,7 +45,8 @@ module Fastlane
30
45
  config = FastlaneCore::Configuration.create(o, params.values)
31
46
  FastlaneCore::Project.detect_projects(config)
32
47
  project = FastlaneCore::Project.new(config)
33
- result = project.default_app_name.to_s
48
+ project.select_scheme
49
+ result = project.app_name.to_s
34
50
 
35
51
  if result.length > 0
36
52
  Helper.log.info "PRODUCT_NAME #{result} found!".green
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-actions-xcode_get_product_name
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Kashima
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-28 00:00:00.000000000 Z
11
+ date: 2016-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler