pantograph 0.1.13 → 0.1.14

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
  SHA256:
3
- metadata.gz: 8b9b017be98b53404fa2d59cbcc9edb243dc584be9d3978ceda00a090addf513
4
- data.tar.gz: bcc7d743d80743a645df10295ccfc6a5af9c0592d355e8570fdc25abde4b2a25
3
+ metadata.gz: 34956aca404ca67cbc3a8f5e2a8c1d5ae75407974697851c98849db6725d28d7
4
+ data.tar.gz: 7ae671c2a4ed20ff2f193709bde6f824d75927348062db003b8c819aef86b2f0
5
5
  SHA512:
6
- metadata.gz: bf434a1ad39999109d18b699dad8e78f1b4286ad6911fe48f1fe345b344361ede87a616324dd75edec6c019f8420a4bded9d83aaba814171eb50ca43a64c69d3
7
- data.tar.gz: 32b1d0b5d2d8cde5c7edeea7e18b2f4e8f7605918384f83a0f89e60573797c2fd4ab9c936fedb3086ae37c66dcdc971a6109ae5fd07d14083e3ac13922c23720
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 | <%= [:ios, :android, :mac].find_all { |a| action.is_supported?(a) }.join(", ") %>
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 %> | <%= [:ios, :android, :mac].find_all { |a| action.is_supported?(a) }.join(", ") %>
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
- UI.user_error!('No API token for [[NAME_CLASS]] given, pass using `api_token: "token"`') unless (value and not value.empty?)
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 == :ios
73
- #
74
- # [:ios, :mac].include?(platform)
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 == :ios
95
+ # platform == :linux
96
96
  #
97
- # [:ios, :mac].include?(platform)
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
@@ -161,7 +161,7 @@ module Pantograph
161
161
  end
162
162
 
163
163
  def self.return_value
164
- "Returns a String containing your formatted git commits"
164
+ 'Returns a String containing your formatted git commits'
165
165
  end
166
166
 
167
167
  def self.return_type
@@ -68,7 +68,7 @@ module Pantograph
68
68
  end
69
69
 
70
70
  def self.is_supported?(platform)
71
- [:ios, :mac].include?(platform)
71
+ [:mac].include?(platform)
72
72
  end
73
73
 
74
74
  def self.example_code
@@ -10,13 +10,13 @@ module Pantograph
10
10
  #####################################################
11
11
 
12
12
  def self.description
13
- "Import another Pantfile to use its lanes"
13
+ 'Import another Pantfile to use its lanes'
14
14
  end
15
15
 
16
16
  def self.details
17
17
  [
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."
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
- ["KrauseFx"]
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
- "Is the current run being executed on a CI system, like Jenkins or Travis"
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
- "The return value of this method is true if pantograph is currently executed on Travis, Jenkins, Circle or a similar CI service"
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
- ["KrauseFx"]
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/ios/setup/#set-up-environment-variables"
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/ios/setup/#use-a-gemfile')
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 'gradle'
75
- 'Gradle'
76
- when 'maven'
77
- 'Maven'
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 ios` should list all available iOS actions
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 == 'ios'
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 (iOS vs. Android, for example)
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
- # [:ios, :mac, :android].include?(platform)
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/ios/screenshots/".cyan)
227
- # UI.message("👩‍✈️ Learn more about distribution to beta testing services:")
228
- # UI.message("\t\thttps://johnknapprs.github.io/pantograph/getting-started/ios/beta-deployment/".cyan)
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/ios/appstore-deployment/".cyan)
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
@@ -11,7 +11,7 @@ module Pantograph
11
11
  end
12
12
  end
13
13
 
14
- @default = [:ios, :mac, :android, :gradle]
14
+ @default = [:mac, :linux, :windows]
15
15
  @extra = []
16
16
 
17
17
  def self.all
@@ -1,5 +1,5 @@
1
1
  module Pantograph
2
- VERSION = '0.1.13'.freeze
2
+ VERSION = '0.1.14'.freeze
3
3
  SUMMARY = 'Another way to automate your apps'
4
4
  DESCRIPTION = 'A way to automate your apps, forked from Fastlane'.freeze
5
5
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
@@ -28,8 +28,11 @@ module PantographCore
28
28
  end
29
29
 
30
30
  def build_tool_version
31
- if platform == :android
32
- return 'android'
31
+ case platform
32
+ when :linux
33
+ return 'linux'
34
+ when :windows
35
+ return 'windows'
33
36
  else
34
37
  return "Xcode #{Helper.xcode_version}"
35
38
  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.13
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-10 00:00:00.000000000 Z
11
+ date: 2019-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slack-notifier