fastlane 2.87.0.beta.20180322050115 → 2.87.0.beta.20180323050014

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: cbeb3815d52036929804eca37f2c9e06903facb3
4
- data.tar.gz: 12f52909b4ea61811b4c2319712df019f25b0bec
3
+ metadata.gz: 633f91cf01f589fc3c93c2d06e3c2f09b603a948
4
+ data.tar.gz: 410e5fcbd6045f292af5d32603c6dde75ca60b93
5
5
  SHA512:
6
- metadata.gz: d1917f5cdc1ca0935533dbb3b7f56d978121a9b33740d29936638968c3190246057ededa6a05055af95c64e31b89a8bdbf314919da38d88f5f01175c4f8819fa
7
- data.tar.gz: f0b8fb23388bc45d8873d06303369173f8290fe0bce7906ceeaffe46cb8687c91db300dbc8c3ca0d86763bc7dd0bd5b42e43a97c4d2634aa321d0def0838043c
6
+ metadata.gz: 73a4cc528b3ab22bd7d84121fbcb94673603d95cd56bfd73e25e9e750ab27259e32e928a083ebafb4438ae7bbadc8430316b4755b4087d1e33c921f61f60848a
7
+ data.tar.gz: f54f064cd33c58dfc0e907611981c0377a9bef6d668c19a0cf32a3d4c28857eff1f7da891af70bb94da3cce8abd451924a7fdf5a8b8e5b6fbc8cd74dec3031ab
@@ -1,6 +1,6 @@
1
1
  <!--
2
2
  This file is auto-generated and will be re-generated every time the docs are updated.
3
- To modify it, go to its source at https://github.com/fastlane/fastlane/blob/master/fastlane/lib/assets/ActionDetails.md.erb
3
+ To modify it, go to its source at https://github.com/fastlane/fastlane/blob/master/fastlane/lib/fastlane/actions/<%= @action_filename %>
4
4
  -->
5
5
 
6
6
  # <%= @action.action_name %>
@@ -55,7 +55,7 @@ To show the documentation in your terminal, run
55
55
  fastlane action <%= action.action_name %>
56
56
  ```
57
57
 
58
- <a href="https://github.com/fastlane/fastlane/blob/master/fastlane/lib/fastlane/actions/<%= action.action_name %>.rb" target="_blank">View source code</a>
58
+ <a href="https://github.com/fastlane/fastlane/blob/master/fastlane/lib/fastlane/actions/<%= @action_filename %>" target="_blank">View source code</a>
59
59
 
60
60
  <hr />
61
61
 
@@ -2,40 +2,44 @@ module Fastlane
2
2
  module Actions
3
3
  class PodPushAction < Action
4
4
  def self.run(params)
5
+ command = []
6
+
7
+ command << "bundle exec" if params[:use_bundle_exec] && shell_out_should_use_bundle_exec?
8
+
5
9
  if params[:repo]
6
10
  repo = params[:repo]
7
- command = "pod repo push #{repo}"
11
+ command << "pod repo push #{repo}"
8
12
  else
9
- command = 'pod trunk push'
13
+ command << 'pod trunk push'
10
14
  end
11
15
 
12
16
  if params[:path]
13
- command << " '#{params[:path]}'"
17
+ command << "'#{params[:path]}'"
14
18
  end
15
19
 
16
20
  if params[:sources]
17
21
  sources = params[:sources].join(",")
18
- command << " --sources='#{sources}'"
22
+ command << "--sources='#{sources}'"
19
23
  end
20
24
 
21
25
  if params[:swift_version]
22
26
  swift_version = params[:swift_version]
23
- command << " --swift-version=#{swift_version}"
27
+ command << "--swift-version=#{swift_version}"
24
28
  end
25
29
 
26
30
  if params[:allow_warnings]
27
- command << " --allow-warnings"
31
+ command << "--allow-warnings"
28
32
  end
29
33
 
30
34
  if params[:use_libraries]
31
- command << " --use-libraries"
35
+ command << "--use-libraries"
32
36
  end
33
37
 
34
38
  if params[:verbose]
35
- command << " --verbose"
39
+ command << "--verbose"
36
40
  end
37
41
 
38
- result = Actions.sh(command.to_s)
42
+ result = Actions.sh(command.join(' '))
39
43
  UI.success("Successfully pushed Podspec ⬆️ ")
40
44
  return result
41
45
  end
@@ -54,6 +58,10 @@ module Fastlane
54
58
 
55
59
  def self.available_options
56
60
  [
61
+ FastlaneCore::ConfigItem.new(key: :use_bundle_exec,
62
+ description: "Use bundle exec when there is a Gemfile presented",
63
+ is_string: false,
64
+ default_value: false),
57
65
  FastlaneCore::ConfigItem.new(key: :path,
58
66
  description: "The Podspec you want to push",
59
67
  optional: true,
@@ -85,7 +85,7 @@ module Fastlane
85
85
  command = []
86
86
  command << File.expand_path(params[:binary_path]).shellescape
87
87
  command << "-a #{params[:api_token]}" if params[:api_token]
88
- command << "-gsp #{params[:gsp_path]}" if params[:gsp_path]
88
+ command << "-gsp #{params[:gsp_path].shellescape}" if params[:gsp_path]
89
89
  command << "-p #{params[:platform] == 'appletvos' ? 'tvos' : params[:platform]}"
90
90
  command << File.expand_path(path).shellescape
91
91
  begin
@@ -43,6 +43,40 @@ module Fastlane
43
43
  @_launches ||= JSON.parse(File.read(File.join(Fastlane::ROOT, "assets/action_ranking.json"))) # root because we're in a temporary directory here
44
44
  end
45
45
 
46
+ def actions_path
47
+ "lib/fastlane/actions/"
48
+ end
49
+
50
+ def where_is(klass)
51
+ # Gets all source files for action
52
+ methods = klass.methods(false).map { |m| klass.method(m) }
53
+ source_files = methods
54
+ .map(&:source_location)
55
+ .compact
56
+ .map { |(file, line)| file }
57
+ .uniq
58
+
59
+ # Return file or error if multiples
60
+ if source_files.size == 1
61
+ return source_files.first
62
+ else
63
+ UI.crash!("Multiple source files were found for action `#{klass}`")
64
+ end
65
+ end
66
+
67
+ def filename_for_action(action)
68
+ absolute_path = where_is(action)
69
+ filename = File.basename(absolute_path)
70
+
71
+ path = File.join(Fastlane::ROOT, actions_path, filename)
72
+ unless File.exist?(path)
73
+ UI.error("Action '#{action.name}' not found in root fastlane project... skipping")
74
+ UI.verbose("Action '#{action.name}' found at #{path}")
75
+ return nil
76
+ end
77
+ filename
78
+ end
79
+
46
80
  def custom_action_docs_path
47
81
  "lib/fastlane/actions/docs/"
48
82
  end
@@ -85,6 +119,11 @@ module Fastlane
85
119
  FileUtils.mkdir_p(File.join(docs_dir, "actions"))
86
120
  ActionsList.all_actions do |action|
87
121
  @action = action # to provide a reference in the .html.erb template
122
+ @action_filename = filename_for_action(action)
123
+
124
+ unless @action_filename
125
+ next
126
+ end
88
127
 
89
128
  # Make sure to always assign `@custom_content`, as we're in a loop and `@` is needed for the `erb`
90
129
  @custom_content = load_custom_action_md(action)
@@ -330,7 +330,7 @@ module Fastlane
330
330
  UI.message("\t\thttps://docs.fastlane.tools/getting-started/ios/beta-deployment/".cyan)
331
331
  UI.message("🚀 Learn more about how to automate the App Store release process:")
332
332
  UI.message("\t\thttps://docs.fastlane.tools/getting-started/ios/appstore-deployment/".cyan)
333
- UI.message("👩‍⚕️ Lern more about how to setup code signing with fastlane")
333
+ UI.message("👩‍⚕️ Learn more about how to setup code signing with fastlane")
334
334
  UI.message("\t\thttps://docs.fastlane.tools/codesigning/getting-started/".cyan)
335
335
  end
336
336
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.87.0.beta.20180322050115'.freeze
2
+ VERSION = '2.87.0.beta.20180323050014'.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
@@ -119,7 +119,7 @@ module Match
119
119
 
120
120
  decrypted_data = decipher.update(data_to_decrypt) + decipher.final
121
121
 
122
- File.write(path, decrypted_data)
122
+ File.binwrite(path, decrypted_data)
123
123
  rescue => error
124
124
  fallback_hash_algorithm = "SHA256"
125
125
  if hash_algorithm != fallback_hash_algorithm
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.87.0.beta.20180322050115
4
+ version: 2.87.0.beta.20180323050014
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maksym Grebenets
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2018-03-22 00:00:00.000000000 Z
30
+ date: 2018-03-23 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1621,24 +1621,24 @@ metadata:
1621
1621
  post_install_message:
1622
1622
  rdoc_options: []
1623
1623
  require_paths:
1624
+ - cert/lib
1625
+ - snapshot/lib
1626
+ - deliver/lib
1627
+ - supply/lib
1624
1628
  - sigh/lib
1625
- - fastlane/lib
1626
- - produce/lib
1627
- - spaceship/lib
1628
- - pilot/lib
1629
- - scan/lib
1629
+ - gym/lib
1630
1630
  - screengrab/lib
1631
+ - match/lib
1632
+ - pilot/lib
1631
1633
  - precheck/lib
1632
- - gym/lib
1633
- - pem/lib
1634
- - cert/lib
1634
+ - scan/lib
1635
+ - fastlane/lib
1636
+ - spaceship/lib
1635
1637
  - frameit/lib
1636
- - supply/lib
1637
- - snapshot/lib
1638
- - deliver/lib
1638
+ - pem/lib
1639
1639
  - fastlane_core/lib
1640
1640
  - credentials_manager/lib
1641
- - match/lib
1641
+ - produce/lib
1642
1642
  required_ruby_version: !ruby/object:Gem::Requirement
1643
1643
  requirements:
1644
1644
  - - ">="