fastlane-plugin-mint 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: 5ea58805efb9b03629b6592edd03271657653d9bbfa03a5bd899615d71f24c06
4
- data.tar.gz: 658d0dbb344d52b541c41dfe8c51193116b1c01ec3902b64cc30dfdcc2d1376b
3
+ metadata.gz: c9bc100071d27398521f707f63bfd841c0353d6d28e3a7ae0135172c0b211568
4
+ data.tar.gz: 95f4a67db785a81a1ecd79e3b23a4930a438a3646244ec717db8a22cb8458a65
5
5
  SHA512:
6
- metadata.gz: d3bcefa3f3bf52395dacac218624a368fb6e57d2cd4dd96df18b123a95d1435cf9c8d490f9f454bd1e6addc0e5bfdcba84c3d792cd02f5f1f8d12384f52cfa93
7
- data.tar.gz: f873bb8ed37c92a205fa460715513f6886cf0e4e2dc6dd2cedd25cac8d4d740d4d9355743fb00f335ae3468af007813d12cfcee53757ad7235ec5ba40fa511e7
6
+ metadata.gz: c7cd55d02f70430370b30e30ad77793918146b005168b1acd1cac8868beaef4b105a1efce1f35b567a9296cfff70a7a0ee5fa7c744bb9804ed46c2ede105eb33
7
+ data.tar.gz: fe2d0e4ff072852acdb1ec16c24a35543c13dca8f63104732491341b41e0631cbbdd6e37bef3ee5a9a3562821c27a8bf92694a5b2a46cf79b9f4bbf7bdfbba0a
data/README.md CHANGED
@@ -15,11 +15,13 @@ fastlane add_plugin mint
15
15
 
16
16
  Run [Mint](https://github.com/yonaskolb/Mint) with fastlane! Mint is a package manager that installs and runs Swift command line tool packages.
17
17
 
18
- Available action in this plugin:
18
+ Available actions in this plugin:
19
19
 
20
20
  * __install_mint__ - Call homebrew to install mint
21
21
  * __mint_bootstrap__ - Installs all the packages in your [Mintfile](https://github.com/yonaskolb/Mint#mintfile), by default, without linking them globally
22
22
  * __mint_which__ - Return the path to an installed package executable
23
+ * __mint_run__ - Run the command with mint, it will install package if needed
24
+
23
25
  ## Example
24
26
 
25
27
  Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
@@ -31,10 +31,10 @@ module Fastlane
31
31
  def self.available_options
32
32
  [
33
33
  FastlaneCore::ConfigItem.new(key: :link,
34
- env_name: "MINT_BOOTSTRAP_LINK",
35
- description: "Install the packages of the Mintfile globally",
36
- optional: true,
37
- type: Boolean)
34
+ env_name: "MINT_BOOTSTRAP_LINK",
35
+ description: "Install the packages of the Mintfile globally",
36
+ optional: true,
37
+ type: Boolean)
38
38
  ]
39
39
  end
40
40
 
@@ -0,0 +1,44 @@
1
+ require 'fastlane'
2
+
3
+ module Fastlane
4
+ module Actions
5
+ class MintRunAction < Action
6
+ def self.run(params)
7
+ Actions.sh("mint run #{params[:command]}")
8
+ end
9
+
10
+ def self.description
11
+ "Run command with mint"
12
+ end
13
+
14
+ def self.example_code
15
+ [
16
+ 'mint_run(command: "swiftgen")',
17
+ 'mint_run(command: "swiftformat .")'
18
+ ]
19
+ end
20
+
21
+ def self.authors
22
+ ["Marcin Stepnowski"]
23
+ end
24
+
25
+ def self.available_options
26
+ [
27
+ FastlaneCore::ConfigItem.new(key: :command,
28
+ env_name: "MINT_RUN_COMMAND",
29
+ description: 'The command that will be run by mint',
30
+ optional: false,
31
+ type: String)
32
+ ]
33
+ end
34
+
35
+ def self.is_supported?(platform)
36
+ [:ios, :mac].include?(platform)
37
+ end
38
+
39
+ def self.category
40
+ :building
41
+ end
42
+ end
43
+ end
44
+ end
@@ -20,7 +20,7 @@ module Fastlane
20
20
  executable_path = mint_which(package: "swiftlint")
21
21
  swiftlint(executable: executable_path)
22
22
  ',
23
- 'mint_which(package: sourcery)'
23
+ 'mint_which(package: "sourcery")'
24
24
  ]
25
25
  end
26
26
 
@@ -31,13 +31,13 @@ module Fastlane
31
31
  def self.available_options
32
32
  [
33
33
  FastlaneCore::ConfigItem.new(key: :package,
34
- env_name: "MINT_BOOTSTRAP_PACKAGE",
35
- description:
36
- 'The package can be a shorthand for a github repo "githubName/repo", or a fully qualified .git path.
34
+ env_name: "MINT_WHICH_PACKAGE",
35
+ description:
36
+ 'The package can be a shorthand for a github repo "githubName/repo", or a fully qualified .git path.
37
37
  An optional version can be specified by appending @version to the repo, otherwise the newest tag
38
38
  will be used (or master if no tags are found.)',
39
- optional: false,
40
- type: String)
39
+ optional: false,
40
+ type: String)
41
41
  ]
42
42
  end
43
43
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Mint
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-mint
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
  - Marcin Stepnowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-24 00:00:00.000000000 Z
11
+ date: 2022-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: 1.12.1
117
+ version: 1.35.1
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
- version: 1.12.1
124
+ version: 1.35.1
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop-performance
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -175,12 +175,14 @@ files:
175
175
  - lib/fastlane/plugin/mint.rb
176
176
  - lib/fastlane/plugin/mint/actions/install_mint_action.rb
177
177
  - lib/fastlane/plugin/mint/actions/mint_bootstrap_action.rb
178
+ - lib/fastlane/plugin/mint/actions/mint_run_action.rb
178
179
  - lib/fastlane/plugin/mint/actions/mint_which_action.rb
179
180
  - lib/fastlane/plugin/mint/version.rb
180
181
  homepage: https://github.com/WezSieTato/fastlane-plugin-mint
181
182
  licenses:
182
183
  - MIT
183
- metadata: {}
184
+ metadata:
185
+ rubygems_mfa_required: 'true'
184
186
  post_install_message:
185
187
  rdoc_options: []
186
188
  require_paths: