fastlane 1.26.0 → 1.27.0

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: 663f4e4e95e09eb021d28e816ea774d8a17e8a61
4
- data.tar.gz: 92fc73748d4e5087e05ac440e19ca4a1eacc4090
3
+ metadata.gz: 6ca78ddda11ac15341e1c44f7dd3f837acc56afe
4
+ data.tar.gz: 699ec3ba81ef637af439b04cad7ddc981e6f6e79
5
5
  SHA512:
6
- metadata.gz: 4dcf7d32861b45779b7c5070e22c3b181f945b43bf71de9b8ee4d60b1afee309effec620ab01002cbac47093a04e95c346f056f7a54188581a283ee865deaaa0
7
- data.tar.gz: 794c94575b2a7444963c8b8d95e2c89f23116c8ec770c5edc5549ab07edcd877be747efaf94b72bf005e6ee7f1c50ab6ffc89f92f36d4c4926cfaaf15db58c5f
6
+ metadata.gz: 3fd5456248d1d5a955315e035d60367012ab8cbe5c8469b653a337c5dd2db0e838b088ef5f365b03213d930ecc32f74eb72492fd461f12eebc22c93df1119ba1
7
+ data.tar.gz: b7e0196d7f2703133ac5a80bbfb9fdad537c13ff379b878df9b08b766a74734565f848eaed05fc549ddf6593353def1f7b50174f471dccc6386143ccfe660efe
@@ -44,6 +44,7 @@ module Fastlane
44
44
  description: "API Token for [[NAME_CLASS]]", # a short description of this parameter
45
45
  verify_block: proc do |value|
46
46
  raise "No API token for [[NAME_CLASS]] given, pass using `api_token: 'token'`".red unless (value and not value.empty?)
47
+ # raise "Couldn't find file at path '#{value}'".red unless File.exist?(value)
47
48
  end),
48
49
  FastlaneCore::ConfigItem.new(key: :development,
49
50
  env_name: "FL_[[NAME_UP]]_DEVELOPMENT",
@@ -0,0 +1,50 @@
1
+ module Fastlane
2
+ module Actions
3
+ class GitCommitAction < Action
4
+ def self.run(params)
5
+ result = Actions.sh("git commit -m '#{params[:message]}' '#{params[:path]}'")
6
+ Helper.log.info "Successfully committed \"#{params[:path]}\" 💾.".green
7
+ return result
8
+ end
9
+
10
+ #####################################################
11
+ # @!group Documentation
12
+ #####################################################
13
+
14
+ def self.description
15
+ "Directly commit the given file with the given message"
16
+ end
17
+
18
+ def self.details
19
+ ""
20
+ end
21
+
22
+ def self.available_options
23
+ [
24
+ FastlaneCore::ConfigItem.new(key: :path,
25
+ description: "The file you want to commit",
26
+ verify_block: proc do |value|
27
+ raise "Couldn't find file at path '#{value}'".red unless File.exist?(value)
28
+ end),
29
+ FastlaneCore::ConfigItem.new(key: :message,
30
+ description: "The commit message that should be used")
31
+ ]
32
+ end
33
+
34
+ def self.output
35
+ end
36
+
37
+ def self.return_value
38
+ nil
39
+ end
40
+
41
+ def self.authors
42
+ ["KrauseFx"]
43
+ end
44
+
45
+ def self.is_supported?(platform)
46
+ true
47
+ end
48
+ end
49
+ end
50
+ end
@@ -6,9 +6,10 @@ module Fastlane
6
6
 
7
7
  class ReadPodspecAction < Action
8
8
  def self.run(params)
9
+ Actions.verify_gem!('cocoapods')
10
+
9
11
  path = params[:path]
10
12
 
11
- # will fail if cocoapods is not installed
12
13
  require 'cocoapods-core'
13
14
  spec = Pod::Spec.from_file(path).to_hash
14
15
 
@@ -87,7 +87,7 @@ module Fastlane
87
87
 
88
88
  if required_count > 0
89
89
  puts "#{required_count} of the available parameters are required".magenta
90
- puts "They are marked using an asterix *".magenta
90
+ puts "They are marked with an asterix *".magenta
91
91
  end
92
92
  else
93
93
  puts "No available options".yellow
@@ -23,9 +23,19 @@ module Fastlane
23
23
  @runner ||= Runner.new
24
24
 
25
25
  Dir.chdir(Fastlane::FastlaneFolder.path || Dir.pwd) do # context: fastlane subfolder
26
- # rubocop:disable Lint/Eval
27
- eval(data) # this is okay in this case
28
- # rubocop:enable Lint/Eval
26
+ begin
27
+ # rubocop:disable Lint/Eval
28
+ eval(data) # this is okay in this case
29
+ # rubocop:enable Lint/Eval
30
+ rescue SyntaxError => ex
31
+ if ex.to_s.include? "‘"
32
+ Helper.log.fatal ex
33
+ raise "Invalid quotation: You used the invalid quote ‘ instead of '. Make sure to use a good text editor like Sublime Text to edit your Fastfile".red
34
+ else
35
+ line = ex.to_s.match(/\(eval\):(\d+)/)[1]
36
+ raise "Syntax error in your Fastfile on line #{line}: #{ex}".red
37
+ end
38
+ end
29
39
  end
30
40
 
31
41
  self
@@ -8,12 +8,22 @@ Make sure it's structured like this:
8
8
 
9
9
  ```ruby
10
10
  module Fastlane
11
- module Helper
12
- class PodspecHelper
13
- ...
14
- end
15
- end
11
+ module Helper
12
+ class PodspecHelper
13
+ ...
14
+ end
15
+ end
16
16
  end
17
17
  ```
18
18
 
19
19
  The `git_helper` and `sh_helper` are different, please make sure to build something like `podspec_helper`.
20
+
21
+ ### Use of the helper class
22
+
23
+ To access the helper class use
24
+
25
+ ```ruby
26
+ Helper::PodspecHelper....
27
+ ```
28
+
29
+ Make sure to prefix your helper with the `Helper::` module.
@@ -51,7 +51,7 @@ module Fastlane
51
51
  new_version = version || @version_value
52
52
  updated_podspec_content = @podspec_content.gsub(@version_regex, "#{@version_match[:begin]}#{new_version}#{@version_match[:end]}")
53
53
 
54
- File.open(podspec_path, "w") {|file| file.puts updated_podspec_content} unless Helper.test?
54
+ File.open(@path, "w") {|file| file.puts updated_podspec_content} unless Helper.test?
55
55
 
56
56
  updated_podspec_content
57
57
  end
@@ -28,7 +28,11 @@ module Fastlane
28
28
  next if lane.is_private
29
29
 
30
30
  output += "----- fastlane #{lane.pretty_name}".green
31
- output += "\n" + lane.description.join("\n") + "\n\n" if lane.description.count > 0
31
+ if lane.description.count > 0
32
+ output += "\n" + lane.description.join("\n") + "\n\n"
33
+ else
34
+ output += "\n\n"
35
+ end
32
36
  end
33
37
  end
34
38
 
@@ -1,3 +1,3 @@
1
1
  module Fastlane
2
- VERSION = '1.26.0'
2
+ VERSION = '1.27.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-13 00:00:00.000000000 Z
11
+ date: 2015-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -190,7 +190,7 @@ dependencies:
190
190
  requirements:
191
191
  - - ">="
192
192
  - !ruby/object:Gem::Version
193
- version: 0.16.1
193
+ version: 0.16.2
194
194
  - - "<"
195
195
  - !ruby/object:Gem::Version
196
196
  version: 1.0.0
@@ -200,7 +200,7 @@ dependencies:
200
200
  requirements:
201
201
  - - ">="
202
202
  - !ruby/object:Gem::Version
203
- version: 0.16.1
203
+ version: 0.16.2
204
204
  - - "<"
205
205
  - !ruby/object:Gem::Version
206
206
  version: 1.0.0
@@ -390,7 +390,7 @@ dependencies:
390
390
  requirements:
391
391
  - - ">="
392
392
  - !ruby/object:Gem::Version
393
- version: 0.4.6
393
+ version: 0.6.2
394
394
  - - "<"
395
395
  - !ruby/object:Gem::Version
396
396
  version: 1.0.0
@@ -400,7 +400,7 @@ dependencies:
400
400
  requirements:
401
401
  - - ">="
402
402
  - !ruby/object:Gem::Version
403
- version: 0.4.6
403
+ version: 0.6.2
404
404
  - - "<"
405
405
  - !ruby/object:Gem::Version
406
406
  version: 1.0.0
@@ -634,6 +634,7 @@ files:
634
634
  - lib/fastlane/actions/get_info_plist_value.rb
635
635
  - lib/fastlane/actions/get_version_number.rb
636
636
  - lib/fastlane/actions/git_branch.rb
637
+ - lib/fastlane/actions/git_commit.rb
637
638
  - lib/fastlane/actions/git_pull.rb
638
639
  - lib/fastlane/actions/gym.rb
639
640
  - lib/fastlane/actions/hg_add_tag.rb
@@ -690,7 +691,7 @@ files:
690
691
  - lib/fastlane/actions/update_project_code_signing.rb
691
692
  - lib/fastlane/actions/update_project_provisioning.rb
692
693
  - lib/fastlane/actions/version_bump_podspec.rb
693
- - lib/fastlane/actions/version_get_podspec_version.rb
694
+ - lib/fastlane/actions/version_get_podspec.rb
694
695
  - lib/fastlane/actions/xcode_select.rb
695
696
  - lib/fastlane/actions/xcode_server_get_assets.rb
696
697
  - lib/fastlane/actions/xcodebuild.rb
@@ -738,7 +739,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
738
739
  version: '0'
739
740
  requirements: []
740
741
  rubyforge_project:
741
- rubygems_version: 2.4.6
742
+ rubygems_version: 2.4.5
742
743
  signing_key:
743
744
  specification_version: 4
744
745
  summary: Connect all iOS deployment tools into one streamlined workflow