pantograph 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/pantograph/lib/pantograph/actions/artifactory.rb +15 -15
  3. data/pantograph/lib/pantograph/actions/bundle_install.rb +33 -33
  4. data/pantograph/lib/pantograph/actions/changelog_from_git_commits.rb +14 -14
  5. data/pantograph/lib/pantograph/actions/cloc.rb +15 -15
  6. data/pantograph/lib/pantograph/actions/danger.rb +26 -26
  7. data/pantograph/lib/pantograph/actions/download.rb +3 -3
  8. data/pantograph/lib/pantograph/actions/ensure_git_branch.rb +4 -4
  9. data/pantograph/lib/pantograph/actions/ensure_git_status_clean.rb +10 -10
  10. data/pantograph/lib/pantograph/actions/erb.rb +12 -12
  11. data/pantograph/lib/pantograph/actions/get_github_release.rb +10 -10
  12. data/pantograph/lib/pantograph/actions/github_api.rb +20 -20
  13. data/pantograph/lib/pantograph/actions/gradle.rb +67 -85
  14. data/pantograph/lib/pantograph/actions/jira.rb +14 -14
  15. data/pantograph/lib/pantograph/actions/make_changelog_from_jenkins.rb +9 -9
  16. data/pantograph/lib/pantograph/actions/nexus_upload.rb +37 -37
  17. data/pantograph/lib/pantograph/actions/number_of_commits.rb +6 -6
  18. data/pantograph/lib/pantograph/actions/push_git_tags.rb +7 -7
  19. data/pantograph/lib/pantograph/actions/push_to_git_remote.rb +19 -19
  20. data/pantograph/lib/pantograph/actions/reset_git_repo.rb +9 -9
  21. data/pantograph/lib/pantograph/actions/rsync.rb +14 -14
  22. data/pantograph/lib/pantograph/actions/set_github_release.rb +19 -19
  23. data/pantograph/lib/pantograph/actions/slack.rb +28 -28
  24. data/pantograph/lib/pantograph/actions/sonar.rb +32 -32
  25. data/pantograph/lib/pantograph/actions/ssh.rb +22 -22
  26. data/pantograph/lib/pantograph/actions/twitter.rb +14 -14
  27. data/pantograph/lib/pantograph/actions/update_pantograph.rb +16 -16
  28. data/pantograph/lib/pantograph/actions/zip.rb +12 -12
  29. data/pantograph/lib/pantograph/helper/gradle_helper.rb +2 -3
  30. data/pantograph/lib/pantograph/junit_generator.rb +1 -1
  31. data/pantograph/lib/pantograph/lane_manager.rb +1 -1
  32. data/pantograph/lib/pantograph/plugins/template/.rubocop.yml +2 -0
  33. data/pantograph/lib/pantograph/setup/setup.rb +6 -6
  34. data/pantograph/lib/pantograph/version.rb +1 -1
  35. data/pantograph_core/lib/pantograph_core/helper.rb +1 -1
  36. data/pantograph_core/lib/pantograph_core/print_table.rb +1 -1
  37. data/pantograph_core/lib/pantograph_core/swag.rb +2 -2
  38. 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]', "Successfully tweeted ", params[:message]].join(': '))
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
- "Post a tweet on [Twitter.com](https://twitter.com)"
22
+ 'Post a tweet on [Twitter.com](https://twitter.com)'
23
23
  end
24
24
 
25
25
  def self.details
26
- "Post a tweet on Twitter. Requires you to setup an app on [twitter.com](https://twitter.com) and obtain `consumer` and `access_token`."
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: "FL_TW_CONSUMER_KEY",
33
- description: "Consumer Key",
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: "FL_TW_CONSUMER_SECRET",
38
+ env_name: 'TW_CONSUMER_SECRET',
39
39
  sensitive: true,
40
- description: "Consumer Secret",
40
+ description: 'Consumer Secret',
41
41
  type: String,
42
42
  optional: false),
43
43
  PantographCore::ConfigItem.new(key: :access_token,
44
- env_name: "FL_TW_ACCESS_TOKEN",
44
+ env_name: 'TW_ACCESS_TOKEN',
45
45
  sensitive: true,
46
- description: "Access Token",
46
+ description: 'Access Token',
47
47
  type: String,
48
48
  optional: false),
49
49
  PantographCore::ConfigItem.new(key: :access_token_secret,
50
- env_name: "FL_TW_ACCESS_TOKEN_SECRET",
50
+ env_name: 'TW_ACCESS_TOKEN_SECRET',
51
51
  sensitive: true,
52
- description: "Access Token Secret",
52
+ description: 'Access Token Secret',
53
53
  type: String,
54
54
  optional: false),
55
55
  PantographCore::ConfigItem.new(key: :message,
56
- env_name: "FL_TW_MESSAGE",
57
- description: "The tweet",
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
- ["hjanuschka"]
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("It seems that your Gem directory is not writable by your current user.")
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("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/")
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("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"
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("FL_NO_UPDATE=true #{$PROGRAM_NAME} #{ARGV.join(' ')}")
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
- "Makes sure pantograph-tools are up-to-date when running pantograph"
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: "FL_UPDATE_PANTOGRAPH_NIGHTLY",
139
- description: "Opt-in to install and use nightly pantograph builds",
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: "FL_NO_UPDATE",
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: "FL_TOOLS_TO_UPDATE",
149
- description: "Comma separated list of pantograph tools to update (e.g. `pantograph,sigh`)",
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
- ["milch", "KrauseFx"]
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
- "Compress a file or folder to a zip"
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: "FL_ZIP_PATH",
47
- description: "Path to the directory or file to be zipped",
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: "FL_ZIP_OUTPUT_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: "FL_ZIP_VERBOSE",
57
- description: "Enable verbose output of zipped file",
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: "FL_ZIP_PASSWORD",
63
- description: "Encrypt the contents of the zip archive using a password",
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: "FL_ZIP_SYMLINKS",
67
- description: "Store symbolic links as such in the zip archive",
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
- "The path to the output zip file"
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
- ["KrauseFx"]
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, serial: nil, print_command: true, print_command_output: true)
30
- android_serial = (serial != "") ? "ANDROID_SERIAL=#{serial}" : nil
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['FL_REPORT_PATH'] || PantographCore::PantographFolder.path || Dir.pwd
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 android`, and only wants to list those actions
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
 
@@ -172,3 +172,5 @@ Style/MethodCallWithArgsParentheses:
172
172
  - context
173
173
  - before
174
174
  - after
175
+ Style/AsciiComments:
176
+ Enabled: false
@@ -2,7 +2,7 @@ require "tty-spinner"
2
2
 
3
3
  module Pantograph
4
4
  class Setup
5
- # :ios or :gradle
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 iOS and Gradle projects in current directory...', format: :dots)
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
@@ -1,5 +1,5 @@
1
1
  module Pantograph
2
- VERSION = '0.1.12'.freeze
2
+ VERSION = '0.1.13'.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
@@ -106,7 +106,7 @@ module PantographCore
106
106
 
107
107
  # Logs base directory
108
108
  def self.buildlog_path
109
- return ENV["FL_BUILDLOG_PATH"] || "~/Library/Logs"
109
+ return ENV["PANT_BUILDLOG_PATH"] || "~/Library/Logs"
110
110
  end
111
111
 
112
112
  # Xcode
@@ -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?("FL_SKIP_TABLE_TRANSFORM")
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?("FL_ENABLE_LOGO_ANIMATION")
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?("FL_DO_SOUND")
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.12
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-06 00:00:00.000000000 Z
11
+ date: 2019-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slack-notifier