pantograph 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pantograph/lib/pantograph/actions/artifactory.rb +15 -15
- data/pantograph/lib/pantograph/actions/bundle_install.rb +33 -33
- data/pantograph/lib/pantograph/actions/changelog_from_git_commits.rb +14 -14
- data/pantograph/lib/pantograph/actions/cloc.rb +15 -15
- data/pantograph/lib/pantograph/actions/danger.rb +26 -26
- data/pantograph/lib/pantograph/actions/download.rb +3 -3
- data/pantograph/lib/pantograph/actions/ensure_git_branch.rb +4 -4
- data/pantograph/lib/pantograph/actions/ensure_git_status_clean.rb +10 -10
- data/pantograph/lib/pantograph/actions/erb.rb +12 -12
- data/pantograph/lib/pantograph/actions/get_github_release.rb +10 -10
- data/pantograph/lib/pantograph/actions/github_api.rb +20 -20
- data/pantograph/lib/pantograph/actions/gradle.rb +67 -85
- data/pantograph/lib/pantograph/actions/jira.rb +14 -14
- data/pantograph/lib/pantograph/actions/make_changelog_from_jenkins.rb +9 -9
- data/pantograph/lib/pantograph/actions/nexus_upload.rb +37 -37
- data/pantograph/lib/pantograph/actions/number_of_commits.rb +6 -6
- data/pantograph/lib/pantograph/actions/push_git_tags.rb +7 -7
- data/pantograph/lib/pantograph/actions/push_to_git_remote.rb +19 -19
- data/pantograph/lib/pantograph/actions/reset_git_repo.rb +9 -9
- data/pantograph/lib/pantograph/actions/rsync.rb +14 -14
- data/pantograph/lib/pantograph/actions/set_github_release.rb +19 -19
- data/pantograph/lib/pantograph/actions/slack.rb +28 -28
- data/pantograph/lib/pantograph/actions/sonar.rb +32 -32
- data/pantograph/lib/pantograph/actions/ssh.rb +22 -22
- data/pantograph/lib/pantograph/actions/twitter.rb +14 -14
- data/pantograph/lib/pantograph/actions/update_pantograph.rb +16 -16
- data/pantograph/lib/pantograph/actions/zip.rb +12 -12
- data/pantograph/lib/pantograph/helper/gradle_helper.rb +2 -3
- data/pantograph/lib/pantograph/junit_generator.rb +1 -1
- data/pantograph/lib/pantograph/lane_manager.rb +1 -1
- data/pantograph/lib/pantograph/plugins/template/.rubocop.yml +2 -0
- data/pantograph/lib/pantograph/setup/setup.rb +6 -6
- data/pantograph/lib/pantograph/version.rb +1 -1
- data/pantograph_core/lib/pantograph_core/helper.rb +1 -1
- data/pantograph_core/lib/pantograph_core/print_table.rb +1 -1
- data/pantograph_core/lib/pantograph_core/swag.rb +2 -2
- metadata +2 -2
@@ -11,7 +11,7 @@ module Pantograph
|
|
11
11
|
config.access_token_secret = params[:access_token_secret]
|
12
12
|
end
|
13
13
|
client.update(params[:message])
|
14
|
-
UI.message(['[TWITTER]',
|
14
|
+
UI.message(['[TWITTER]', 'Successfully tweeted ', params[:message]].join(': '))
|
15
15
|
end
|
16
16
|
|
17
17
|
#####################################################
|
@@ -19,42 +19,42 @@ module Pantograph
|
|
19
19
|
#####################################################
|
20
20
|
|
21
21
|
def self.description
|
22
|
-
|
22
|
+
'Post a tweet on [Twitter.com](https://twitter.com)'
|
23
23
|
end
|
24
24
|
|
25
25
|
def self.details
|
26
|
-
|
26
|
+
'Post a tweet on Twitter. Requires you to setup an app on [twitter.com](https://twitter.com) and obtain `consumer` and `access_token`.'
|
27
27
|
end
|
28
28
|
|
29
29
|
def self.available_options
|
30
30
|
[
|
31
31
|
PantographCore::ConfigItem.new(key: :consumer_key,
|
32
|
-
env_name:
|
33
|
-
description:
|
32
|
+
env_name: 'TW_CONSUMER_KEY',
|
33
|
+
description: 'Consumer Key',
|
34
34
|
sensitive: true,
|
35
35
|
type: String,
|
36
36
|
optional: false),
|
37
37
|
PantographCore::ConfigItem.new(key: :consumer_secret,
|
38
|
-
env_name:
|
38
|
+
env_name: 'TW_CONSUMER_SECRET',
|
39
39
|
sensitive: true,
|
40
|
-
description:
|
40
|
+
description: 'Consumer Secret',
|
41
41
|
type: String,
|
42
42
|
optional: false),
|
43
43
|
PantographCore::ConfigItem.new(key: :access_token,
|
44
|
-
env_name:
|
44
|
+
env_name: 'TW_ACCESS_TOKEN',
|
45
45
|
sensitive: true,
|
46
|
-
description:
|
46
|
+
description: 'Access Token',
|
47
47
|
type: String,
|
48
48
|
optional: false),
|
49
49
|
PantographCore::ConfigItem.new(key: :access_token_secret,
|
50
|
-
env_name:
|
50
|
+
env_name: 'TW_ACCESS_TOKEN_SECRET',
|
51
51
|
sensitive: true,
|
52
|
-
description:
|
52
|
+
description: 'Access Token Secret',
|
53
53
|
type: String,
|
54
54
|
optional: false),
|
55
55
|
PantographCore::ConfigItem.new(key: :message,
|
56
|
-
env_name:
|
57
|
-
description:
|
56
|
+
env_name: 'TW_MESSAGE',
|
57
|
+
description: 'The tweet',
|
58
58
|
type: String,
|
59
59
|
optional: false)
|
60
60
|
|
@@ -62,7 +62,7 @@ module Pantograph
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def self.authors
|
65
|
-
[
|
65
|
+
['hjanuschka']
|
66
66
|
end
|
67
67
|
|
68
68
|
def self.is_supported?(platform)
|
@@ -28,19 +28,19 @@ module Pantograph
|
|
28
28
|
sudo_needed = !File.writable?(gem_dir)
|
29
29
|
|
30
30
|
if sudo_needed
|
31
|
-
UI.important(
|
31
|
+
UI.important('It seems that your Gem directory is not writable by your current user.')
|
32
32
|
UI.important("pantograph would need sudo rights to update itself, however, running 'sudo pantograph' is not recommended.")
|
33
|
-
UI.important(
|
34
|
-
UI.important(
|
33
|
+
UI.important('If you still want to use this action, please read the documentation on how to set this up:')
|
34
|
+
UI.important('https://johnknapprs.github.io/pantograph/actions/update_pantograph/')
|
35
35
|
return
|
36
36
|
end
|
37
37
|
|
38
38
|
unless updater.respond_to?(:highest_installed_gems)
|
39
|
-
UI.important(
|
40
|
-
UI.important(
|
41
|
-
UI.command
|
42
|
-
UI.command
|
43
|
-
UI.command
|
39
|
+
UI.important('The update_pantograph action requires rubygems version 2.1.0 or greater.')
|
40
|
+
UI.important('Please update your version of ruby gems before proceeding.')
|
41
|
+
UI.command('gem install rubygems-update')
|
42
|
+
UI.command('update_rubygems')
|
43
|
+
UI.command('gem update --system')
|
44
44
|
return
|
45
45
|
end
|
46
46
|
|
@@ -89,7 +89,7 @@ module Pantograph
|
|
89
89
|
UI.message("pantograph.tools successfully updated! I will now restart myself... 😴")
|
90
90
|
|
91
91
|
# Set no_update to true so we don't try to update again
|
92
|
-
exec("
|
92
|
+
exec("PANT_NO_UPDATE=true #{$PROGRAM_NAME} #{ARGV.join(' ')}")
|
93
93
|
end
|
94
94
|
|
95
95
|
def self.show_information_about_nightly_builds
|
@@ -108,7 +108,7 @@ module Pantograph
|
|
108
108
|
end
|
109
109
|
|
110
110
|
def self.description
|
111
|
-
|
111
|
+
'Makes sure pantograph-tools are up-to-date when running pantograph'
|
112
112
|
end
|
113
113
|
|
114
114
|
def self.details
|
@@ -135,25 +135,25 @@ module Pantograph
|
|
135
135
|
def self.available_options
|
136
136
|
[
|
137
137
|
PantographCore::ConfigItem.new(key: :nightly,
|
138
|
-
env_name:
|
139
|
-
description:
|
138
|
+
env_name: 'PANT_UPDATE_PANTOGRAPH_NIGHTLY',
|
139
|
+
description: 'Opt-in to install and use nightly pantograph builds',
|
140
140
|
is_string: false,
|
141
141
|
default_value: false),
|
142
142
|
PantographCore::ConfigItem.new(key: :no_update,
|
143
|
-
env_name:
|
143
|
+
env_name: 'PANT_NO_UPDATE',
|
144
144
|
description: "Don't update during this run. This is used internally",
|
145
145
|
is_string: false,
|
146
146
|
default_value: false),
|
147
147
|
PantographCore::ConfigItem.new(key: :tools,
|
148
|
-
env_name:
|
149
|
-
description:
|
148
|
+
env_name: 'PANT_TOOLS_TO_UPDATE',
|
149
|
+
description: 'Comma separated list of pantograph tools to update (e.g. `pantograph,sigh`)',
|
150
150
|
deprecated: true,
|
151
151
|
optional: true)
|
152
152
|
]
|
153
153
|
end
|
154
154
|
|
155
155
|
def self.authors
|
156
|
-
[
|
156
|
+
['milch', 'KrauseFx']
|
157
157
|
end
|
158
158
|
|
159
159
|
def self.is_supported?(platform)
|
@@ -37,34 +37,34 @@ module Pantograph
|
|
37
37
|
#####################################################
|
38
38
|
|
39
39
|
def self.description
|
40
|
-
|
40
|
+
'Compress a file or folder to a zip'
|
41
41
|
end
|
42
42
|
|
43
43
|
def self.available_options
|
44
44
|
[
|
45
45
|
PantographCore::ConfigItem.new(key: :path,
|
46
|
-
env_name:
|
47
|
-
description:
|
46
|
+
env_name: 'ZIP_PATH',
|
47
|
+
description: 'Path to the directory or file to be zipped',
|
48
48
|
verify_block: proc do |value|
|
49
49
|
UI.user_error!("Couldn't find file/folder at path '#{File.expand_path(value)}'") unless File.exist?(value)
|
50
50
|
end),
|
51
51
|
PantographCore::ConfigItem.new(key: :output_path,
|
52
|
-
env_name:
|
52
|
+
env_name: 'ZIP_OUTPUT_NAME',
|
53
53
|
description: "The name of the resulting zip file",
|
54
54
|
optional: true),
|
55
55
|
PantographCore::ConfigItem.new(key: :verbose,
|
56
|
-
env_name:
|
57
|
-
description:
|
56
|
+
env_name: 'ZIP_VERBOSE',
|
57
|
+
description: 'Enable verbose output of zipped file',
|
58
58
|
default_value: true,
|
59
59
|
type: Boolean,
|
60
60
|
optional: true),
|
61
61
|
PantographCore::ConfigItem.new(key: :password,
|
62
|
-
env_name:
|
63
|
-
description:
|
62
|
+
env_name: 'ZIP_PASSWORD',
|
63
|
+
description: 'Encrypt the contents of the zip archive using a password',
|
64
64
|
optional: true),
|
65
65
|
PantographCore::ConfigItem.new(key: :symlinks,
|
66
|
-
env_name:
|
67
|
-
description:
|
66
|
+
env_name: 'ZIP_SYMLINKS',
|
67
|
+
description: 'Store symbolic links as such in the zip archive',
|
68
68
|
optional: true,
|
69
69
|
type: Boolean,
|
70
70
|
default_value: false)
|
@@ -101,7 +101,7 @@ module Pantograph
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def self.return_value
|
104
|
-
|
104
|
+
'The path to the output zip file'
|
105
105
|
end
|
106
106
|
|
107
107
|
def self.return_type
|
@@ -109,7 +109,7 @@ module Pantograph
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def self.authors
|
112
|
-
[
|
112
|
+
['KrauseFx']
|
113
113
|
end
|
114
114
|
|
115
115
|
def self.is_supported?(platform)
|
@@ -26,9 +26,8 @@ module Pantograph
|
|
26
26
|
end
|
27
27
|
|
28
28
|
# Run a certain action
|
29
|
-
def trigger(task: nil, flags: nil,
|
30
|
-
|
31
|
-
command = [android_serial, escaped_gradle_path, task, flags].compact.join(" ")
|
29
|
+
def trigger(task: nil, flags: nil, print_command: true, print_command_output: true)
|
30
|
+
command = [escaped_gradle_path, task, flags].compact.join(" ")
|
32
31
|
Action.sh(command, print_command: print_command, print_command_output: print_command_output)
|
33
32
|
end
|
34
33
|
|
@@ -5,7 +5,7 @@ module Pantograph
|
|
5
5
|
# And http://nelsonwells.net/2012/09/how-jenkins-ci-parses-and-displays-junit-output/
|
6
6
|
# And http://windyroad.com.au/dl/Open%20Source/JUnit.xsd
|
7
7
|
|
8
|
-
containing_folder = ENV['
|
8
|
+
containing_folder = ENV['PANT_REPORT_PATH'] || PantographCore::PantographFolder.path || Dir.pwd
|
9
9
|
path = File.join(containing_folder, 'report.xml')
|
10
10
|
|
11
11
|
@steps = results
|
@@ -84,7 +84,7 @@ module Pantograph
|
|
84
84
|
end
|
85
85
|
|
86
86
|
# Lane chooser if user didn't provide a lane
|
87
|
-
# @param platform: is probably nil, but user might have called `pantograph
|
87
|
+
# @param platform: is probably nil, but user might have called `pantograph $platform`, and only wants to list those actions
|
88
88
|
def self.choose_lane(ff, platform)
|
89
89
|
available = []
|
90
90
|
|
@@ -2,7 +2,7 @@ require "tty-spinner"
|
|
2
2
|
|
3
3
|
module Pantograph
|
4
4
|
class Setup
|
5
|
-
# :
|
5
|
+
# :maven, :gradle, or other
|
6
6
|
attr_accessor :platform
|
7
7
|
|
8
8
|
# Path to the xcodeproj or xcworkspace
|
@@ -41,7 +41,7 @@ module Pantograph
|
|
41
41
|
# this is used by e.g. configuration.rb to not show warnings when running produce
|
42
42
|
ENV["PANTOGRAPH_ONBOARDING_IN_PROCESS"] = 1.to_s
|
43
43
|
|
44
|
-
spinner = TTY::Spinner.new('[:spinner] Looking for
|
44
|
+
spinner = TTY::Spinner.new('[:spinner] Looking for projects in current directory...', format: :dots)
|
45
45
|
spinner.auto_spin
|
46
46
|
|
47
47
|
maven_projects = Dir["**/pom.xml"]
|
@@ -224,12 +224,12 @@ module Pantograph
|
|
224
224
|
else
|
225
225
|
# UI.message("📸 Learn more about how to automatically generate localized App Store screenshots:")
|
226
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)
|
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)
|
229
229
|
# UI.message("🚀 Learn more about how to automate the App Store release process:")
|
230
230
|
# UI.message("\t\thttps://johnknapprs.github.io/pantograph/getting-started/ios/appstore-deployment/".cyan)
|
231
|
-
UI.message("👩⚕️ Learn more about how to setup code signing with pantograph")
|
232
|
-
UI.message("\t\thttps://johnknapprs.github.io/pantograph/codesigning/getting-started/".cyan)
|
231
|
+
# UI.message("👩⚕️ Learn more about how to setup code signing with pantograph")
|
232
|
+
# UI.message("\t\thttps://johnknapprs.github.io/pantograph/codesigning/getting-started/".cyan)
|
233
233
|
end
|
234
234
|
|
235
235
|
# we crash here, so that this never happens when a new setup method is added
|
@@ -58,7 +58,7 @@ module PantographCore
|
|
58
58
|
if PantographCore::Helper.ci? || PantographCore::Helper.test?
|
59
59
|
return false
|
60
60
|
end
|
61
|
-
return !PantographCore::Env.truthy?(
|
61
|
+
return !PantographCore::Env.truthy?('SKIP_TABLE_TRANSFORM')
|
62
62
|
end
|
63
63
|
|
64
64
|
def transform_row(column, transform, max_value_length)
|
@@ -37,7 +37,7 @@ module PantographCore
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def self.should_be_shown?
|
40
|
-
return false unless PantographCore::Env.truthy?(
|
40
|
+
return false unless PantographCore::Env.truthy?('ENABLE_LOGO_ANIMATION')
|
41
41
|
return false if Helper.ci?
|
42
42
|
return false unless UI.interactive?
|
43
43
|
return true
|
@@ -47,7 +47,7 @@ module PantographCore
|
|
47
47
|
return unless should_be_shown?
|
48
48
|
# sound is disabled as i didn't find a royality free nice midi :(
|
49
49
|
@output = StringIO.new
|
50
|
-
# if PantographCore::Env.truthy?("
|
50
|
+
# if PantographCore::Env.truthy?("DO_SOUND")
|
51
51
|
# @sound_thr = Thread.new do
|
52
52
|
# audio = File.join(PantographCore::ROOT, "lib/assets/sound.xm")
|
53
53
|
# pipe = IO.popen("timidity #{audio.shellescape}")
|
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.13
|
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-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slack-notifier
|