fastlane 2.90.0.beta.20180406050006 → 2.90.0.beta.20180407050037

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
  SHA1:
3
- metadata.gz: 9e83e6221deb31b160fe501fe3c94cf6a5f622bd
4
- data.tar.gz: bf0e5d519559c4b9aea89a3d0efad45f26181b72
3
+ metadata.gz: 19a0f8b513b702481041254a6c7b98dac9be6043
4
+ data.tar.gz: 314cf856db006f5c3eb8144e1613e5af361f49a5
5
5
  SHA512:
6
- metadata.gz: bac574d6740b99eb1b96faac2067c6a369046d950c5203af805d0079a5c177aa8cba0a7af13d9b8a10d9497ca57dbaeae09b0ff046919386daf5dc8df4cb26aa
7
- data.tar.gz: c13fce4c712dde866da21d906345097fb7ac8aeef7a672d7d0c6c7aca4f37594666eeb64dbab5f493b1f4c66560a7c189a13c3c3a5496564b44e26592e6e6c9a
6
+ metadata.gz: f1372e3167b9fa3ecef95757bb982f2be780af5d97ec1db0e0f85ec1b6ec983923da251eba3cbfadaf61e5a24d8d868282ee862b7959f5c1208aa31f30c1e734
7
+ data.tar.gz: f0a4a6c1cceeb1408c19051e24290da13abe79de6733d6255ff3610f37c122ce95d622b0d3aa096619444130f5751be3f3d82c525186c528ef0f785d0555a116
@@ -2,14 +2,18 @@ module Fastlane
2
2
  module Actions
3
3
  class GitAddAction < Action
4
4
  def self.run(params)
5
+ should_escape = params[:shell_escape]
6
+
5
7
  if params[:pathspec]
6
8
  paths = params[:pathspec]
7
9
  UI.success("Successfully added from \"#{paths}\" 💾.")
8
10
  elsif params[:path]
9
11
  if params[:path].kind_of?(String)
10
- paths = params[:path].shellescape
11
- else
12
- paths = params[:path].map(&:shellescape).join(' ')
12
+ paths = shell_escape(params[:path], should_escape)
13
+ elsif params[:path].kind_of?(Array)
14
+ paths = params[:path].map do |p|
15
+ shell_escape(p, should_escape)
16
+ end.join(' ')
13
17
  end
14
18
  UI.success("Successfully added \"#{paths}\" 💾.")
15
19
  else
@@ -21,6 +25,11 @@ module Fastlane
21
25
  return result
22
26
  end
23
27
 
28
+ def self.shell_escape(path, should_escape)
29
+ path = path.shellescape if should_escape
30
+ path
31
+ end
32
+
24
33
  #####################################################
25
34
  # @!group Documentation
26
35
  #####################################################
@@ -32,24 +41,22 @@ module Fastlane
32
41
  def self.available_options
33
42
  [
34
43
  FastlaneCore::ConfigItem.new(key: :path,
35
- description: "The file you want to add",
44
+ description: "The file(s) and path(s) you want to add",
36
45
  is_string: false,
37
46
  conflicting_options: [:pathspec],
38
- optional: true,
39
- verify_block: proc do |value|
40
- if value.kind_of?(String)
41
- UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
42
- else
43
- value.each do |x|
44
- UI.user_error!("Couldn't find file at path '#{x}'") unless File.exist?(x)
45
- end
46
- end
47
- end),
47
+ optional: true),
48
+ FastlaneCore::ConfigItem.new(key: :shell_escape,
49
+ description: "Shell escapes paths (set to false if using wildcards or manually escaping spaces in :path)",
50
+ is_string: false,
51
+ default_value: true,
52
+ optional: true),
53
+ # Deprecated
48
54
  FastlaneCore::ConfigItem.new(key: :pathspec,
49
55
  description: "The pathspec you want to add files from",
50
56
  is_string: true,
51
57
  conflicting_options: [:path],
52
- optional: true)
58
+ optional: true,
59
+ deprecated: "Use --path instead")
53
60
  ]
54
61
  end
55
62
 
@@ -70,8 +77,10 @@ module Fastlane
70
77
  'git_add',
71
78
  'git_add(path: "./version.txt")',
72
79
  'git_add(path: ["./version.txt", "./changelog.txt"])',
73
- 'git_add(pathspec: "./Frameworks/*")',
74
- 'git_add(pathspec: "*.txt")'
80
+ 'git_add(path: "./Frameworks/*", shell_escape: false',
81
+ 'git_add(path: ["*.h", "*.m"], shell_escape: false)',
82
+ 'git_add(path: "./Frameworks/*", shell_escape: false)',
83
+ 'git_add(path: "*.txt", shell_escape: false)'
75
84
  ]
76
85
  end
77
86
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.90.0.beta.20180406050006'.freeze
2
+ VERSION = '2.90.0.beta.20180407050037'.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.90.0.beta.20180406050006
4
+ version: 2.90.0.beta.20180407050037
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manu Wallner
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2018-04-06 00:00:00.000000000 Z
30
+ date: 2018-04-07 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1622,24 +1622,24 @@ metadata:
1622
1622
  post_install_message:
1623
1623
  rdoc_options: []
1624
1624
  require_paths:
1625
- - screengrab/lib
1626
- - fastlane/lib
1627
- - pem/lib
1628
- - supply/lib
1629
- - snapshot/lib
1630
- - produce/lib
1625
+ - gym/lib
1631
1626
  - spaceship/lib
1627
+ - fastlane/lib
1632
1628
  - precheck/lib
1633
- - frameit/lib
1634
- - credentials_manager/lib
1635
1629
  - match/lib
1630
+ - sigh/lib
1631
+ - screengrab/lib
1636
1632
  - fastlane_core/lib
1633
+ - supply/lib
1634
+ - pem/lib
1635
+ - deliver/lib
1637
1636
  - cert/lib
1638
- - gym/lib
1639
- - pilot/lib
1640
- - sigh/lib
1637
+ - produce/lib
1641
1638
  - scan/lib
1642
- - deliver/lib
1639
+ - pilot/lib
1640
+ - credentials_manager/lib
1641
+ - frameit/lib
1642
+ - snapshot/lib
1643
1643
  required_ruby_version: !ruby/object:Gem::Requirement
1644
1644
  requirements:
1645
1645
  - - ">="