fastlane-plugin-xcodegen 1.0.0 → 1.1.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
  SHA256:
3
- metadata.gz: 78392fa742eae6570307137d8eb2a6fc4a1095fb6c37d490e58f3cbef00abd50
4
- data.tar.gz: 5ef3c010b456a1d132c5a417421e9a5a130ccde64da3ca3a38783e07b73a3828
3
+ metadata.gz: fd62bb4b14fecb92fe5f9367d04cb232ed1ebcfed02de55baf49e1803a1af88a
4
+ data.tar.gz: ee6c925b4b0b0f8a5f042e1dda43016fbe4568e15b312e1565cee61ded4f8369
5
5
  SHA512:
6
- metadata.gz: c5f3d0109c9e82c61c8cafa9a8bf3bc81db631981fdc79b677a1f1d473f511a604b5bdcc6466da505b2f5f3a562df7fded387c9d1619429b608795b2a0aeef8b
7
- data.tar.gz: b6703bcd1541084d290766f01f4a579f4bbba0e9174f02da0c78bbf9122360523af24dfb80a7b64d4c099705b0827c52c0b89955aad740f3d4bafbf1369ea248
6
+ metadata.gz: 3b674bbed5da38ea30c8e1ee759ba234d519d41c4a5c470b6a37f67556e28a0b39ae4d11728bc76c7027eed29c52d74ae508879f9151f6aa6850fa189f19d1f5
7
+ data.tar.gz: 1200f465e751e85d32f7e75e76f5dbabd7d53569826bf9d059568408a336af106b2d7ae13d9bab1a6c3322851a4b2324db318e3f4d029b649513dbac8dec5e99
data/README.md CHANGED
@@ -20,6 +20,7 @@ More Information on [_XcodeGen_](https://github.com/yonaskolb/XcodeGen)
20
20
 
21
21
  ```ruby
22
22
  xcodegen(
23
+ executable: "./bin/xcodegen",
23
24
  spec: "PATH/project.yml",
24
25
  project: "PATH/Project.xcodeproj",
25
26
  quiet: true,
@@ -12,17 +12,17 @@ module Fastlane
12
12
 
13
13
  Actions::BrewAction.run(command: "tap yonaskolb/XcodeGen https://github.com/yonaskolb/XcodeGen.git")
14
14
  Actions::BrewAction.run(command: "install XcodeGen")
15
- end)
15
+ end) unless params[:executable]
16
16
 
17
- cmd = ["xcodegen"]
18
- cmd << "--spec #{params[:spec]}" if params[:spec]
19
- cmd << "--project #{params[:project]}" if params[:project]
17
+ cmd = [params[:executable] || "xcodegen"]
18
+ cmd += ["--spec", File.expand_path(params[:spec])] if params[:spec]
19
+ cmd += ["--project", File.expand_path(params[:project])] if params[:project]
20
20
  cmd << "--quiet" if params[:quiet]
21
21
  cmd << "--use-cache" if params[:use_cache]
22
- cmd << "--cache-path #{params[:cache_path]}" if params[:cache_path]
23
- cmd << "--project-root #{params[:project_root]}" if params[:project_root]
22
+ cmd += ["--cache-path", File.expand_path(params[:cache_path])] if params[:cache_path]
23
+ cmd += ["--project-root", File.expand_path(params[:project_root])] if params[:project_root]
24
24
 
25
- Actions.sh(cmd.join(' '))
25
+ Actions.sh(*cmd)
26
26
  end
27
27
 
28
28
  def self.description
@@ -40,8 +40,20 @@ module Fastlane
40
40
  ].join("\n")
41
41
  end
42
42
 
43
+ def self.return_type
44
+ :string
45
+ end
46
+
47
+ def self.return_value
48
+ "Raw shell output of `xcodegen` command."
49
+ end
50
+
43
51
  def self.available_options
44
52
  [
53
+ FastlaneCore::ConfigItem.new(key: :executable,
54
+ env_name: "XCODEGEN_EXECUTABLE",
55
+ description: "The path to the `xcodegen` executable",
56
+ optional: true),
45
57
  FastlaneCore::ConfigItem.new(key: :spec,
46
58
  env_name: "XCODEGEN_SPEC",
47
59
  description: "The path to the project spec file",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Xcodegen
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-xcodegen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Ruhl
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-15 00:00:00.000000000 Z
11
+ date: 2021-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane-plugin-brew
@@ -150,7 +150,7 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: 2.93.1
153
- description:
153
+ description:
154
154
  email: michael.ruhl@novatec-gmbh.de
155
155
  executables: []
156
156
  extensions: []
@@ -166,7 +166,7 @@ homepage: https://github.com/NovaTecConsulting/fastlane-plugin-xcodegen
166
166
  licenses:
167
167
  - MIT
168
168
  metadata: {}
169
- post_install_message:
169
+ post_install_message:
170
170
  rdoc_options: []
171
171
  require_paths:
172
172
  - lib
@@ -181,8 +181,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  - !ruby/object:Gem::Version
182
182
  version: '0'
183
183
  requirements: []
184
- rubygems_version: 3.0.3
185
- signing_key:
184
+ rubygems_version: 3.1.2
185
+ signing_key:
186
186
  specification_version: 4
187
187
  summary: Run xcodegen for the project
188
188
  test_files: []