fastlane 2.48.0.beta.20170719010002 → 2.48.0.beta.20170720010003

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: f59bf2943d2a6523572e89412663188f0682a3ce
4
- data.tar.gz: abced1472851894d2e1e7b7b0cada18a179f591a
3
+ metadata.gz: 88916905b7e8a73946fd4704569bdd4c45abad6e
4
+ data.tar.gz: 4028fae0f25d313d09a9a5829197ffdf4603e01d
5
5
  SHA512:
6
- metadata.gz: aa0a123bc6c9677cdd0d278fd90af398ad36a373b42952222156058c956662492b9170530aa6acb6d02295402de32f47afca6348460a822898719125ac9ec89b
7
- data.tar.gz: a27e869c0ee27634eb7e74fb297756bb71361e0b74100c13ad3238d0236ac0606b4855986be3a52e8066757482c484bd7951518e6a5c36912735d8cf958c6e66
6
+ metadata.gz: 5b46462c2e20b13f4d063b7918fa4ebb2fa4e558b757b2ea8bc7127523cdfb04fec00e8c1cc843d4e019f817bbbb58e9fbead883a82484dbc2aa1e500e772120
7
+ data.tar.gz: a1cbe94263e3a48cc8590886fecf24963c06dc7244f84c69881d06fc440430a926539718629c7021431faed26288a8505a73d918f17e8f6add91c79dc31d2d58
@@ -2,14 +2,22 @@ module Fastlane
2
2
  module Actions
3
3
  class GitAddAction < Action
4
4
  def self.run(params)
5
- if params[:path].kind_of?(String)
6
- paths = params[:path].shellescape
5
+ if params[:pathspec]
6
+ paths = params[:pathspec]
7
+ UI.success("Successfully added from \"#{paths}\" 💾.")
8
+ elsif params[:path]
9
+ if params[:path].kind_of?(String)
10
+ paths = params[:path].shellescape
11
+ else
12
+ paths = params[:path].map(&:shellescape).join(' ')
13
+ end
14
+ UI.success("Successfully added \"#{paths}\" 💾.")
7
15
  else
8
- paths = params[:path].map(&:shellescape).join(' ')
16
+ paths = "."
17
+ UI.success("Successfully added all files 💾.")
9
18
  end
10
19
 
11
- result = Actions.sh("git add #{paths}")
12
- UI.success("Successfully added \"#{params[:path]}\" 💾.")
20
+ result = Actions.sh("git add #{paths}", log: FastlaneCore::Globals.verbose?).chomp
13
21
  return result
14
22
  end
15
23
 
@@ -18,7 +26,7 @@ module Fastlane
18
26
  #####################################################
19
27
 
20
28
  def self.description
21
- "Directly add the given file"
29
+ "Directly add the given file or all files"
22
30
  end
23
31
 
24
32
  def self.available_options
@@ -26,6 +34,8 @@ module Fastlane
26
34
  FastlaneCore::ConfigItem.new(key: :path,
27
35
  description: "The file you want to add",
28
36
  is_string: false,
37
+ conflicting_options: [:pathspec],
38
+ optional: true,
29
39
  verify_block: proc do |value|
30
40
  if value.kind_of?(String)
31
41
  UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
@@ -34,7 +44,12 @@ module Fastlane
34
44
  UI.user_error!("Couldn't find file at path '#{x}'") unless File.exist?(x)
35
45
  end
36
46
  end
37
- end)
47
+ end),
48
+ FastlaneCore::ConfigItem.new(key: :pathspec,
49
+ description: "The pathspec you want to add files from",
50
+ is_string: true,
51
+ conflicting_options: [:path],
52
+ optional: true)
38
53
  ]
39
54
  end
40
55
 
@@ -43,7 +58,7 @@ module Fastlane
43
58
  end
44
59
 
45
60
  def self.authors
46
- ["4brunu"]
61
+ ["4brunu", "antondomashnev"]
47
62
  end
48
63
 
49
64
  def self.is_supported?(platform)
@@ -52,8 +67,11 @@ module Fastlane
52
67
 
53
68
  def self.example_code
54
69
  [
70
+ 'git_add',
55
71
  'git_add(path: "./version.txt")',
56
- 'git_add(path: ["./version.txt", "./changelog.txt"])'
72
+ 'git_add(path: ["./version.txt", "./changelog.txt"])',
73
+ 'git_add(pathspec: "./Frameworks/*")',
74
+ 'git_add(pathspec: "*.txt")'
57
75
  ]
58
76
  end
59
77
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.48.0.beta.20170719010002'.freeze
2
+ VERSION = '2.48.0.beta.20170720010003'.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
  end
@@ -24,7 +24,7 @@ module Precheck
24
24
  return RuleReturn.new(validation_state: Precheck::VALIDATION_STATES[:failed], failure_data: "empty url") if url.empty?
25
25
 
26
26
  begin
27
- request = Faraday.new(url) do |connection|
27
+ request = Faraday.new(URI.encode(url)) do |connection|
28
28
  connection.use FaradayMiddleware::FollowRedirects
29
29
  connection.adapter :net_http
30
30
  end
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.48.0.beta.20170719010002
4
+ version: 2.48.0.beta.20170720010003
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-07-19 00:00:00.000000000 Z
18
+ date: 2017-07-20 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier