fastlane 2.127.0.beta.20190707200017 → 2.127.0.beta.20190708200031

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: 04624de03453813fb9afafe1eea5fd73f0832bf1
4
- data.tar.gz: c9a96140c08e9d72196080d6524ad93c5a66d0bc
3
+ metadata.gz: aeb6eb7739cf716692a201df0b43337538e58ce1
4
+ data.tar.gz: 48f3e158b41a062b91975b878f6fa148210c7c12
5
5
  SHA512:
6
- metadata.gz: d3c824a627728a1e1dcc5d06625d467f59ea1c2adbf62c81b42e0e706eac2d783004db903cc2846609a6fcfdb76883f2a35e22203725685a9c21260cd401dda9
7
- data.tar.gz: 54c24b833b24c14bca02f50e925b9bc6a7b117ef5ebc91bdde85055da543171a41cfecea7bea910cf64f63b664c9ffe9149c4395d964475ac5d1ac9e24a7b66d
6
+ metadata.gz: 6db47ebfb00d9038f49bfe850c19f6d072b095f60025a494cf195a3dbd8b1a7bb4e14b315ef24c444d526e3397b5e5500ac72888b9424df585f9056730b4e1a2
7
+ data.tar.gz: 33560963e8302624058d89f577cabf0ac9d1ef26b49540ac1839a00895310fcdbd332d66233a1d79a72c80dbffdd0cd8ed1c3162c1a9f5a770411d7b308fa332
@@ -182,8 +182,29 @@ module Fastlane
182
182
  end
183
183
 
184
184
  # Execute shell command
185
- def sh(*command, log: true, error_callback: nil, &b)
186
- FastFile.sh(*command, log: log, error_callback: error_callback, &b)
185
+ # Accepts arguments with with and without the command named keyword so that sh
186
+ # behaves like other actions with named keywords
187
+ # https://github.com/fastlane/fastlane/issues/14930
188
+ #
189
+ # Example:
190
+ # sh("ls")
191
+ # sh("ls", log: false)
192
+ # sh(command: "ls")
193
+ # sh(command: "ls", log: false)
194
+ def sh(*args, &b)
195
+ # First accepts hash (or named keywords) like other actions
196
+ # Otherwise uses sh method that doesn't have an interface like an action
197
+ if args.count == 1 && args.first.kind_of?(Hash)
198
+ hash = args.first
199
+ command = hash.delete(:command)
200
+
201
+ raise ArgumentError, "sh requires :command keyword in argument" if command.nil?
202
+
203
+ new_args = [*command, hash]
204
+ FastFile.sh(*new_args, &b)
205
+ else
206
+ FastFile.sh(*args, &b)
207
+ end
187
208
  end
188
209
 
189
210
  def self.sh(*command, log: true, error_callback: nil, &b)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.127.0.beta.20190707200017'.freeze
2
+ VERSION = '2.127.0.beta.20190708200031'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.127.0.beta.20190707200017
4
+ version: 2.127.0.beta.20190708200031
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ellis
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2019-07-07 00:00:00.000000000 Z
30
+ date: 2019-07-08 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1735,24 +1735,24 @@ metadata:
1735
1735
  post_install_message:
1736
1736
  rdoc_options: []
1737
1737
  require_paths:
1738
- - screengrab/lib
1738
+ - scan/lib
1739
+ - frameit/lib
1740
+ - deliver/lib
1741
+ - precheck/lib
1739
1742
  - pilot/lib
1740
1743
  - pem/lib
1741
- - supply/lib
1742
- - credentials_manager/lib
1743
- - precheck/lib
1744
- - scan/lib
1745
- - fastlane/lib
1746
- - produce/lib
1747
- - snapshot/lib
1748
- - fastlane_core/lib
1749
1744
  - spaceship/lib
1750
1745
  - sigh/lib
1751
1746
  - gym/lib
1752
- - cert/lib
1753
- - frameit/lib
1754
- - deliver/lib
1755
1747
  - match/lib
1748
+ - fastlane_core/lib
1749
+ - cert/lib
1750
+ - screengrab/lib
1751
+ - snapshot/lib
1752
+ - credentials_manager/lib
1753
+ - fastlane/lib
1754
+ - supply/lib
1755
+ - produce/lib
1756
1756
  required_ruby_version: !ruby/object:Gem::Requirement
1757
1757
  requirements:
1758
1758
  - - ">="