fastlane-plugin-yarn 1.1 → 1.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3ceecf03f99fe7d205a658c99569f553621994e714ba5595794da4ca77e655b
|
4
|
+
data.tar.gz: 291c43e4f1be3a6e89529d976393dde204b4034504a8ada5abb99597be0df830
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ceda7364ad37ae802d6f79b266691afbb0a17fac002fff0cd793825cd529bc3f69997b867bff24405d1ae072b6c879f3c91eb3ccb002b411d626d97aaed1795
|
7
|
+
data.tar.gz: 8b30d4528a6534081165b18b657aa0ef73082c04ef66d6fa74d07260cfc6b2bda94682cdcb57b10e00758c8dbaf055a2caedf0d64df2f3cce19279777761ea3f
|
@@ -27,12 +27,21 @@ module Fastlane
|
|
27
27
|
# Run a certain action
|
28
28
|
def trigger(command: nil, flags: nil, options: nil, print_command: true, print_command_output: true)
|
29
29
|
unless options == "" || options == [] || options == nil then
|
30
|
-
|
30
|
+
options = format_options(options)
|
31
|
+
option_string = options.respond_to?(:join) ? options.join(" ") : options
|
31
32
|
end
|
32
33
|
command = [self.yarn, flags, command, option_string].compact.join(" ")
|
33
34
|
Action.sh(command, print_command: print_command, print_command_output: print_command_output)
|
34
35
|
end
|
35
36
|
|
37
|
+
def format_options(options)
|
38
|
+
if options.kind_of?(Array)
|
39
|
+
options.map! { |i| i.include?("--") ? i : "--#{i}" }
|
40
|
+
else
|
41
|
+
options.include?("--") ? options : "--#{options}"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
36
45
|
def check_install
|
37
46
|
check_package
|
38
47
|
begin
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-yarn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Lesch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -125,8 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
|
-
|
129
|
-
rubygems_version: 2.7.6
|
128
|
+
rubygems_version: 3.0.4
|
130
129
|
signing_key:
|
131
130
|
specification_version: 4
|
132
131
|
summary: Execute Yarn commands from your Fastfile
|