fastlane 1.31.0 → 1.32.0

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: f82cd0e838cac0f0b345b6b225c58a05e8bba22b
4
- data.tar.gz: ec85b5501efa78124100246db9ed180f0081b5ff
3
+ metadata.gz: 62cbfc4bc7584f29ddccfd6ed22d3f8fa0f23caa
4
+ data.tar.gz: 4c979f77e68daac86b055ec0b9ddb32e75508e4b
5
5
  SHA512:
6
- metadata.gz: ee43c4ddd054afed2f74a55c8e8f06b4be00a6469b25b8a97d480a52e77d7a350eec067c1767b1432773c31f5f8bc48d6a9dba93ae6cdfa00654d37c62d6f3f9
7
- data.tar.gz: b6f7b2db31293f7526b1d6d2b512f1b5469a6adfae8ebfb572519057b3a68f04dc824ca1cee554335e72fd07fc7d0128ae21fd1905f50b6ae77055de42da48ac
6
+ metadata.gz: 437f8bbd28b472da8901eb4e78f81bb3e53d72284f7c975b46d1131c70b39899ed988e1cbdf58766a6dcbf9fe68ac212616464e83f53dead728e6e56ef1322b5
7
+ data.tar.gz: fc9a3f1fd49237e8e43b3f1410dc6e4da540842a2b2c780ce4826518e1a11eb0f3f3735cd47a4279dee74764e8405c6e0cb6b9c94e916fb37d6cf24c373b092f
@@ -60,7 +60,7 @@ module Fastlane
60
60
  optional: true,
61
61
  verify_block: proc do |value|
62
62
  raise "Please pass the path to the project, not the workspace".red if value.include? "workspace"
63
- raise "Could not find Xcode project".red if !File.exist?(value) and !Helper.is_test?
63
+ raise "Could not find Xcode project at path '#{File.expand_path(value)}'".red if !File.exist?(value) and !Helper.is_test?
64
64
  end)
65
65
  ]
66
66
  end
@@ -2,7 +2,13 @@ module Fastlane
2
2
  module Actions
3
3
  class GitCommitAction < Action
4
4
  def self.run(params)
5
- result = Actions.sh("git commit -m '#{params[:message]}' '#{params[:path]}'")
5
+ if params[:path].kind_of?(String)
6
+ paths = "'#{params[:path]}'"
7
+ else
8
+ paths = params[:path].join(" ")
9
+ end
10
+
11
+ result = Actions.sh("git commit -m '#{params[:message]}' #{paths}")
6
12
  Helper.log.info "Successfully committed \"#{params[:path]}\" 💾.".green
7
13
  return result
8
14
  end
@@ -23,8 +29,15 @@ module Fastlane
23
29
  [
24
30
  FastlaneCore::ConfigItem.new(key: :path,
25
31
  description: "The file you want to commit",
32
+ is_string: false,
26
33
  verify_block: proc do |value|
27
- raise "Couldn't find file at path '#{value}'".red unless File.exist?(value)
34
+ if value.kind_of?(String)
35
+ raise "Couldn't find file at path '#{value}'".red unless File.exist?(value)
36
+ else
37
+ value.each do |x|
38
+ raise "Couldn't find file at path '#{x}'".red unless File.exist?(x)
39
+ end
40
+ end
28
41
  end),
29
42
  FastlaneCore::ConfigItem.new(key: :message,
30
43
  description: "The commit message that should be used")
@@ -0,0 +1,55 @@
1
+ module Fastlane
2
+ module Actions
3
+ class PodPushTrunkAction < Action
4
+ def self.run(params)
5
+ command = 'pod trunk push'
6
+ if params[:path]
7
+ command << " '#{params[:path]}'"
8
+ end
9
+
10
+ result = Actions.sh("#{command}")
11
+ Helper.log.info "Successfully pushed Podspec ⬆️ ".green
12
+ return result
13
+ end
14
+
15
+ #####################################################
16
+ # @!group Documentation
17
+ #####################################################
18
+
19
+ def self.description
20
+ "Push a Podspec to Trunk"
21
+ end
22
+
23
+ def self.details
24
+ ""
25
+ end
26
+
27
+ def self.available_options
28
+ [
29
+ FastlaneCore::ConfigItem.new(key: :path,
30
+ description: "The Podspec you want to push",
31
+ optional: true,
32
+ verify_block: proc do |value|
33
+ raise "Couldn't find file at path '#{value}'".red unless File.exist?(value)
34
+ raise "File must be a `.podspec`".red unless value.end_with?(".podspec")
35
+ end)
36
+ ]
37
+ end
38
+
39
+ def self.output
40
+ end
41
+
42
+ def self.return_value
43
+ nil
44
+ end
45
+
46
+ def self.authors
47
+ ["squarefrog"]
48
+ end
49
+
50
+ def self.is_supported?(platform)
51
+ true
52
+ end
53
+ end
54
+ end
55
+ end
@@ -2,7 +2,10 @@ module Fastlane
2
2
  module Actions
3
3
  class SayAction < Action
4
4
  def self.run(params)
5
- text = params.join(' ')
5
+ text = params.join(' ') if params.kind_of?(Array) # that's usually the case
6
+ text = params if params.kind_of?(String)
7
+ raise "You can't call the `say` action as OneOff" unless text
8
+
6
9
  Actions.sh("say '#{text}'")
7
10
  end
8
11
 
@@ -28,7 +28,7 @@ module Fastlane
28
28
  end
29
29
 
30
30
  r = Runner.new
31
- r.execute_action(action_name, class_ref, [action_parameters])
31
+ r.execute_action(action_name, class_ref, [action_parameters], custom_dir: '.')
32
32
  end
33
33
  end
34
34
  end
@@ -118,13 +118,13 @@ module Fastlane
118
118
  end
119
119
  end
120
120
 
121
- def execute_action(method_sym, class_ref, arguments)
121
+ def execute_action(method_sym, class_ref, arguments, custom_dir: '..')
122
122
  collector.did_launch_action(method_sym)
123
123
 
124
124
  verify_supported_os(method_sym, class_ref)
125
125
 
126
126
  begin
127
- Dir.chdir('..') do # go up from the fastlane folder, to the project folder
127
+ Dir.chdir(custom_dir) do # go up from the fastlane folder, to the project folder
128
128
  Actions.execute_action(class_ref.step_text) do
129
129
  # arguments is an array by default, containing an hash with the actual parameters
130
130
  # Since we usually just need the passed hash, we'll just use the first object if there is only one
@@ -1,3 +1,3 @@
1
1
  module Fastlane
2
- VERSION = '1.31.0'
2
+ VERSION = '1.32.0'
3
3
  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: 1.31.0
4
+ version: 1.32.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -216,7 +216,7 @@ dependencies:
216
216
  requirements:
217
217
  - - ">="
218
218
  - !ruby/object:Gem::Version
219
- version: 0.10.2
219
+ version: 0.11.2
220
220
  - - "<"
221
221
  - !ruby/object:Gem::Version
222
222
  version: 1.0.0
@@ -226,7 +226,7 @@ dependencies:
226
226
  requirements:
227
227
  - - ">="
228
228
  - !ruby/object:Gem::Version
229
- version: 0.10.2
229
+ version: 0.11.2
230
230
  - - "<"
231
231
  - !ruby/object:Gem::Version
232
232
  version: 1.0.0
@@ -236,7 +236,7 @@ dependencies:
236
236
  requirements:
237
237
  - - ">="
238
238
  - !ruby/object:Gem::Version
239
- version: 1.1.1
239
+ version: 1.2.0
240
240
  - - "<"
241
241
  - !ruby/object:Gem::Version
242
242
  version: 2.0.0
@@ -246,7 +246,7 @@ dependencies:
246
246
  requirements:
247
247
  - - ">="
248
248
  - !ruby/object:Gem::Version
249
- version: 1.1.1
249
+ version: 1.2.0
250
250
  - - "<"
251
251
  - !ruby/object:Gem::Version
252
252
  version: 2.0.0
@@ -605,6 +605,7 @@ files:
605
605
  - lib/fastlane/actions/opt_out_usage.rb
606
606
  - lib/fastlane/actions/pem.rb
607
607
  - lib/fastlane/actions/pilot.rb
608
+ - lib/fastlane/actions/pod_push_trunk.rb
608
609
  - lib/fastlane/actions/produce.rb
609
610
  - lib/fastlane/actions/prompt.rb
610
611
  - lib/fastlane/actions/push_git_tags.rb