fastlane-plugin-yarn 1.1 → 1.2

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: f12b9cacbde76c69ad57c4618c2c5939b966ccbab6b696bbff3476ff06d67a76
4
- data.tar.gz: 87110064759967fc957c1d689d8c6a16d4654ab90693a0f0e8a6ab020e14748b
3
+ metadata.gz: e3ceecf03f99fe7d205a658c99569f553621994e714ba5595794da4ca77e655b
4
+ data.tar.gz: 291c43e4f1be3a6e89529d976393dde204b4034504a8ada5abb99597be0df830
5
5
  SHA512:
6
- metadata.gz: f6341970a340238ae18c831abef8198f8da7697957031ffe8bc36d4694610e82b4403146e98e740a756d7d7325f77e0b850219fd3973d7535bf2d2da3c5a95a5
7
- data.tar.gz: 841e1d372d8e0d59c5884d10402ad20aab2721ead9e79e2d006506a286412923d980f1369774cfbfc9e5df1ec61815ee7ed9479b575527d93487edcc98dd8e3d
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
- option_string = options.respond_to?(:join) ? "-- #{options.join(" ")}" : "-- #{options}"
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Yarn
3
- VERSION = "1.1"
3
+ VERSION = "1.2"
4
4
  end
5
5
  end
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.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-04-17 00:00:00.000000000 Z
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
- rubyforge_project:
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