pantograph 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pantograph/lib/assets/ActionDetails.md.erb +1 -1
- data/pantograph/lib/assets/Actions.md.erb +1 -1
- data/pantograph/lib/assets/custom_action_template.rb +40 -9
- data/pantograph/lib/pantograph/action.rb +2 -2
- data/pantograph/lib/pantograph/actions/changelog_from_git_commits.rb +1 -1
- data/pantograph/lib/pantograph/actions/cloc.rb +1 -1
- data/pantograph/lib/pantograph/actions/import.rb +4 -4
- data/pantograph/lib/pantograph/actions/is_ci.rb +3 -3
- data/pantograph/lib/pantograph/cli_tools_distributor.rb +2 -2
- data/pantograph/lib/pantograph/documentation/docs_generator.rb +4 -10
- data/pantograph/lib/pantograph/lane_manager.rb +2 -2
- data/pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%/actions/%plugin_name%_action.rb.erb +2 -2
- data/pantograph/lib/pantograph/setup/setup.rb +4 -4
- data/pantograph/lib/pantograph/supported_platforms.rb +1 -1
- data/pantograph/lib/pantograph/version.rb +1 -1
- data/pantograph_core/lib/pantograph_core/analytics/action_launch_context.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34956aca404ca67cbc3a8f5e2a8c1d5ae75407974697851c98849db6725d28d7
|
4
|
+
data.tar.gz: 7ae671c2a4ed20ff2f193709bde6f824d75927348062db003b8c819aef86b2f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 747e3fcba2656ec3a230ab282a7effd7ed1885f048d6dd367f20408eecef443be292fe5ad5ad03e2af2b889c673caff1ccbf9534f869c7b2ca95ac087e9b14ee
|
7
|
+
data.tar.gz: e41179d1c3aea5f90131d3513aff1e480ae6a6c4933dcfd62185733106adda32835b8d339b818a9e2150fb71ba0895b329b5e339c6747ba379a7d7c4910948d8
|
@@ -19,7 +19,7 @@ To modify it, go to its source at https://github.com/johnknapprs/pantograph/blob
|
|
19
19
|
|
20
20
|
<%= action.action_name %> ||
|
21
21
|
---|---
|
22
|
-
Supported platforms | <%= [:
|
22
|
+
Supported platforms | <%= [:mac, :linux, :windows].find_all { |a| action.is_supported?(a) }.join(", ") %>
|
23
23
|
Author | @<%= Array(action.author || action.authors).join(", @") %>
|
24
24
|
<%- unless action.return_value.to_s.empty? -%>
|
25
25
|
Returns | <%= action.return_value.gsub("\n", "<br>") %>
|
@@ -37,7 +37,7 @@ Action | Description | Supported Platforms
|
|
37
37
|
---|---|---
|
38
38
|
<%- actions.sort.to_h.each do |_number_of_launches, action| -%>
|
39
39
|
<%- link = "/actions/#{action.action_name}/" -%>
|
40
|
-
<a href="<%= link %>"><%= action.action_name %></a> | <%= action.description %> | <%= [:
|
40
|
+
<a href="<%= link %>"><%= action.action_name %></a> | <%= action.description %> | <%= [:mac, :linux, :windows].find_all { |a| action.is_supported?(a) }.join(", ") %>
|
41
41
|
<%- end %><%# End of actions.sort... %>
|
42
42
|
|
43
43
|
<%- end %><%# End of categories.each %>
|
@@ -29,15 +29,17 @@ module Pantograph
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def self.available_options
|
32
|
-
# Define all options your action supports.
|
33
|
-
|
32
|
+
# Define all options your action supports.
|
33
|
+
|
34
34
|
# Below a few examples
|
35
35
|
[
|
36
36
|
PantographCore::ConfigItem.new(key: :api_token,
|
37
37
|
env_name: '[[NAME_UP]]_API_TOKEN', # The name of the environment variable
|
38
38
|
description: 'API Token for [[NAME_CLASS]]', # a short description of this parameter
|
39
39
|
verify_block: proc do |value|
|
40
|
-
|
40
|
+
unless (value and not value.empty?)
|
41
|
+
UI.user_error!('No API token for [[NAME_CLASS]] given, pass using `api_token: "token"`')
|
42
|
+
end
|
41
43
|
end),
|
42
44
|
PantographCore::ConfigItem.new(key: :development,
|
43
45
|
env_name: '[[NAME_UP]]_DEVELOPMENT',
|
@@ -66,15 +68,44 @@ module Pantograph
|
|
66
68
|
|
67
69
|
def self.is_supported?(platform)
|
68
70
|
# you can do things like
|
69
|
-
#
|
71
|
+
#
|
70
72
|
# true
|
71
|
-
#
|
72
|
-
# platform == :
|
73
|
-
#
|
74
|
-
# [:
|
75
|
-
#
|
73
|
+
#
|
74
|
+
# platform == :linux
|
75
|
+
#
|
76
|
+
# [:linux, :mac].include?(platform)
|
77
|
+
#
|
76
78
|
true
|
77
79
|
end
|
80
|
+
|
81
|
+
# Is printed out in the Steps: output in the terminal
|
82
|
+
# Return nil if you don't want any logging in the terminal/JUnit Report
|
83
|
+
def self.step_text
|
84
|
+
self.action_name
|
85
|
+
end
|
86
|
+
|
87
|
+
# Returns an array of string of sample usage of this action
|
88
|
+
def self.example_code
|
89
|
+
[
|
90
|
+
'[[NAME]] # example 1',
|
91
|
+
|
92
|
+
'# example 2
|
93
|
+
[[NAME]](
|
94
|
+
api_token: "myToken",
|
95
|
+
development: "true"
|
96
|
+
)'
|
97
|
+
]
|
98
|
+
end
|
99
|
+
|
100
|
+
def category
|
101
|
+
# Available Categories: ./pantograph/lib/pantograph/action.rb
|
102
|
+
:undefined
|
103
|
+
end
|
104
|
+
|
105
|
+
# If category == :deprecated, uncomment to include a message for user
|
106
|
+
# def self.deprecated_notes
|
107
|
+
# nil
|
108
|
+
# end
|
78
109
|
end
|
79
110
|
end
|
80
111
|
end
|
@@ -92,9 +92,9 @@ module Pantograph
|
|
92
92
|
# you can do things like
|
93
93
|
# true
|
94
94
|
#
|
95
|
-
# platform == :
|
95
|
+
# platform == :linux
|
96
96
|
#
|
97
|
-
# [:
|
97
|
+
# [:linux, :mac].include?(platform)
|
98
98
|
#
|
99
99
|
UI.crash!("Implementing `is_supported?` for all actions is mandatory. Please update #{self}")
|
100
100
|
end
|
@@ -10,13 +10,13 @@ module Pantograph
|
|
10
10
|
#####################################################
|
11
11
|
|
12
12
|
def self.description
|
13
|
-
|
13
|
+
'Import another Pantfile to use its lanes'
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.details
|
17
17
|
[
|
18
|
-
|
19
|
-
|
18
|
+
'This is useful if you have shared lanes across multiple apps and you want to store a Pantfile in a separate folder.',
|
19
|
+
'The path must be relative to the Pantfile this is called from.'
|
20
20
|
].join("\n")
|
21
21
|
end
|
22
22
|
|
@@ -28,7 +28,7 @@ module Pantograph
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.authors
|
31
|
-
[
|
31
|
+
['KrauseFx']
|
32
32
|
end
|
33
33
|
|
34
34
|
def self.is_supported?(platform)
|
@@ -10,11 +10,11 @@ module Pantograph
|
|
10
10
|
#####################################################
|
11
11
|
|
12
12
|
def self.description
|
13
|
-
|
13
|
+
'Is the current run being executed on a CI system, like Jenkins or Travis'
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.details
|
17
|
-
|
17
|
+
'The return value of this method is true if pantograph is currently executed on Travis, Jenkins, Circle or a similar CI service'
|
18
18
|
end
|
19
19
|
|
20
20
|
def self.available_options
|
@@ -26,7 +26,7 @@ module Pantograph
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def self.authors
|
29
|
-
[
|
29
|
+
['KrauseFx']
|
30
30
|
end
|
31
31
|
|
32
32
|
def self.is_supported?(platform)
|
@@ -51,7 +51,7 @@ module Pantograph
|
|
51
51
|
|
52
52
|
# Try to check UTF-8 with `locale`, fallback to environment variables
|
53
53
|
unless utf8_locale?
|
54
|
-
warn = "WARNING: pantograph requires your locale to be set to UTF-8. To learn more go to https://johnknapprs.github.io/pantograph/getting-started/
|
54
|
+
warn = "WARNING: pantograph requires your locale to be set to UTF-8. To learn more go to https://johnknapprs.github.io/pantograph/getting-started/mac/setup/#set-up-environment-variables"
|
55
55
|
UI.error(warn)
|
56
56
|
at_exit do
|
57
57
|
# Repeat warning here so users hopefully see it
|
@@ -163,7 +163,7 @@ module Pantograph
|
|
163
163
|
UI.message('')
|
164
164
|
UI.important('After creating the Gemfile and Gemfile.lock, commit those files into version control')
|
165
165
|
end
|
166
|
-
UI.important('Get started using a Gemfile for pantograph https://johnknapprs.github.io/pantograph/getting-started/
|
166
|
+
UI.important('Get started using a Gemfile for pantograph https://johnknapprs.github.io/pantograph/getting-started/mac/setup/#use-a-gemfile')
|
167
167
|
end
|
168
168
|
|
169
169
|
# Returns an array of symbols for the available lanes for the Pantfile
|
@@ -65,18 +65,12 @@ module Pantograph
|
|
65
65
|
def self.formatted_platform(pl)
|
66
66
|
pl = pl.to_s
|
67
67
|
case pl
|
68
|
-
when 'ios'
|
69
|
-
'iOS'
|
70
|
-
when 'android'
|
71
|
-
'Android'
|
72
68
|
when 'mac'
|
73
69
|
'MacOS'
|
74
|
-
when '
|
75
|
-
'
|
76
|
-
when '
|
77
|
-
'
|
78
|
-
when 'angular'
|
79
|
-
'Angular'
|
70
|
+
when 'linux'
|
71
|
+
'Linux'
|
72
|
+
when 'windows'
|
73
|
+
'Windows'
|
80
74
|
else
|
81
75
|
pl
|
82
76
|
end
|
@@ -33,7 +33,7 @@ module Pantograph
|
|
33
33
|
|
34
34
|
if !platform && lane
|
35
35
|
# Either, the user runs a specific lane in root or want to auto complete the available lanes for a platform
|
36
|
-
# e.g. `pantograph
|
36
|
+
# e.g. `pantograph mac` should list all available mac actions
|
37
37
|
if ff.is_platform_block?(lane)
|
38
38
|
platform = lane
|
39
39
|
lane = nil
|
@@ -46,7 +46,7 @@ module Pantograph
|
|
46
46
|
# and not return to the original working directory
|
47
47
|
# https://github.com/CocoaPods/Xcodeproj/issues/426
|
48
48
|
# Setting this environment variable causes xcodeproj to work around the problem
|
49
|
-
ENV["FORK_XCODE_WRITING"] = "true" if platform == '
|
49
|
+
ENV["FORK_XCODE_WRITING"] = "true" if platform == 'mac'
|
50
50
|
|
51
51
|
Pantograph::Helper::DotenvHelper.load_dot_env(env)
|
52
52
|
|
@@ -36,10 +36,10 @@ module Pantograph
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def self.is_supported?(platform)
|
39
|
-
# Adjust this if your plugin only works for a particular platform
|
39
|
+
# Adjust this if your plugin only works for a particular platform
|
40
40
|
# See: https://johnknapprs.github.io/pantograph/advanced/#control-configuration-by-lane-and-by-platform
|
41
41
|
#
|
42
|
-
# [:
|
42
|
+
# [:mac, :linux, :windows].include?(platform)
|
43
43
|
true
|
44
44
|
end
|
45
45
|
end
|
@@ -223,11 +223,11 @@ module Pantograph
|
|
223
223
|
UI.message("\t\thttps://johnknapprs.github.io/pantograph/getting-started/gradle/release-deployment/".cyan)
|
224
224
|
else
|
225
225
|
# UI.message("📸 Learn more about how to automatically generate localized App Store screenshots:")
|
226
|
-
# UI.message("\t\thttps://johnknapprs.github.io/pantograph/getting-started/
|
227
|
-
|
228
|
-
|
226
|
+
# UI.message("\t\thttps://johnknapprs.github.io/pantograph/getting-started/mac/screenshots/".cyan)
|
227
|
+
UI.message("👩✈️ Learn more about distribution to beta testing services:")
|
228
|
+
UI.message("\t\thttps://johnknapprs.github.io/pantograph/getting-started/mac/beta-deployment/".cyan)
|
229
229
|
# UI.message("🚀 Learn more about how to automate the App Store release process:")
|
230
|
-
# UI.message("\t\thttps://johnknapprs.github.io/pantograph/getting-started/
|
230
|
+
# UI.message("\t\thttps://johnknapprs.github.io/pantograph/getting-started/mac/appstore-deployment/".cyan)
|
231
231
|
# UI.message("👩⚕️ Learn more about how to setup code signing with pantograph")
|
232
232
|
# UI.message("\t\thttps://johnknapprs.github.io/pantograph/codesigning/getting-started/".cyan)
|
233
233
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pantograph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Knapp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slack-notifier
|