pantograph 0.1.4 → 0.1.6

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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -127
  3. data/pantograph/README.md +2 -2
  4. data/pantograph/lib/assets/ActionDetails.md.erb +1 -1
  5. data/pantograph/lib/assets/DefaultPantfileTemplate +18 -5
  6. data/pantograph/lib/pantograph/action_collector.rb +1 -1
  7. data/pantograph/lib/pantograph/actions/actions_helper.rb +2 -2
  8. data/pantograph/lib/pantograph/actions/clipboard.rb +1 -1
  9. data/pantograph/lib/pantograph/actions/lane_context.rb +1 -1
  10. data/pantograph/lib/pantograph/actions/opt_out_usage.rb +1 -1
  11. data/pantograph/lib/pantograph/actions/sh.rb +1 -1
  12. data/pantograph/lib/pantograph/actions/sonar.rb +1 -1
  13. data/pantograph/lib/pantograph/actions/update_pantograph.rb +1 -1
  14. data/pantograph/lib/pantograph/cli_tools_distributor.rb +2 -2
  15. data/pantograph/lib/pantograph/documentation/actions_list.rb +1 -1
  16. data/pantograph/lib/pantograph/documentation/docs_generator.rb +7 -2
  17. data/pantograph/lib/pantograph/pant_file.rb +4 -4
  18. data/pantograph/lib/pantograph/plugins/plugin_manager.rb +1 -1
  19. data/pantograph/lib/pantograph/plugins/template/README.md.erb +2 -2
  20. data/pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%/actions/%plugin_name%_action.rb.erb +1 -1
  21. data/pantograph/lib/pantograph/runner.rb +1 -1
  22. data/pantograph/lib/pantograph/setup/setup.rb +28 -64
  23. data/pantograph/lib/pantograph/setup/setup_angular.rb +58 -0
  24. data/pantograph/lib/pantograph/setup/setup_generic.rb +58 -0
  25. data/pantograph/lib/pantograph/setup/setup_gradle.rb +11 -12
  26. data/pantograph/lib/pantograph/setup/setup_maven.rb +58 -0
  27. data/pantograph/lib/pantograph/version.rb +1 -1
  28. data/pantograph_core/lib/pantograph_core/analytics/analytics_ingester_client.rb +1 -1
  29. data/pantograph_core/lib/pantograph_core/analytics/analytics_session.rb +1 -1
  30. data/pantograph_core/lib/pantograph_core/configuration/configuration.rb +1 -1
  31. data/pantograph_core/lib/pantograph_core/helper.rb +1 -1
  32. data/pantograph_core/lib/pantograph_core/keychain_importer.rb +2 -2
  33. data/pantograph_core/lib/pantograph_core/module.rb +1 -1
  34. data/pantograph_core/lib/pantograph_core/ui/pantograph_runner.rb +2 -2
  35. metadata +6 -4
  36. data/pantograph/lib/pantograph/setup/setup_ios.rb +0 -412
@@ -0,0 +1,58 @@
1
+ module Pantograph
2
+ class SetupAngular < Setup
3
+ # attr_accessor :package_name
4
+
5
+ def setup_angular
6
+ # self.platform = :generic
7
+
8
+ welcome_to_pantograph
9
+
10
+ self.pantfile_content = pantfile_template_content
11
+
12
+ fetch_information
13
+
14
+ PantographCore::PantographFolder.create_folder!
15
+
16
+ self.append_lane([
17
+ "desc \"Runs all the tests\"",
18
+ "lane :test do",
19
+ " gradle(task: \"clean test\")",
20
+ "end"
21
+ ])
22
+
23
+ self.append_lane([
24
+ "desc \"Publish new version to Artifactory\"",
25
+ "lane :build do",
26
+ " gradle(task: \"clean build\")",
27
+ "end"
28
+ ])
29
+
30
+ self.append_lane([
31
+ "desc \"Deploy a new version to Artifactory\"",
32
+ "lane :publish do",
33
+ " gradle(task: \"clean artifactoryPublish\")",
34
+ "end"
35
+ ])
36
+
37
+ self.lane_to_mention = "test"
38
+
39
+ finish_up
40
+ end
41
+
42
+ def fetch_information
43
+ # UI.message('')
44
+ # UI.message("To avoid re-entering your package name and issuer every time you run pantograph, we'll store those in a so-called Appfile.")
45
+
46
+ # self.package_name = UI.input("Package Name (com.krausefx.app): ")
47
+ # puts("")
48
+ # puts("To automatically upload builds and metadata to Google Play, pantograph needs a service account json secret file".yellow)
49
+ # puts("Feel free to press Enter at any time in order to skip providing pieces of information when asked")
50
+ end
51
+
52
+ def finish_up
53
+ # self.pantfile_content.gsub!(":generic", ":generic")
54
+
55
+ super
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,58 @@
1
+ module Pantograph
2
+ class SetupGeneric < Setup
3
+ # attr_accessor :package_name
4
+
5
+ def setup_gradle
6
+ # self.platform = :generic
7
+
8
+ welcome_to_pantograph
9
+
10
+ self.pantfile_content = pantfile_template_content
11
+
12
+ fetch_information
13
+
14
+ PantographCore::PantographFolder.create_folder!
15
+
16
+ self.append_lane([
17
+ "desc \"Runs all the tests\"",
18
+ "lane :test do",
19
+ " gradle(task: \"clean test\")",
20
+ "end"
21
+ ])
22
+
23
+ self.append_lane([
24
+ "desc \"Publish new version to Artifactory\"",
25
+ "lane :build do",
26
+ " gradle(task: \"clean build\")",
27
+ "end"
28
+ ])
29
+
30
+ self.append_lane([
31
+ "desc \"Deploy a new version to Artifactory\"",
32
+ "lane :publish do",
33
+ " gradle(task: \"clean artifactoryPublish\")",
34
+ "end"
35
+ ])
36
+
37
+ self.lane_to_mention = "test"
38
+
39
+ finish_up
40
+ end
41
+
42
+ def fetch_information
43
+ # UI.message('')
44
+ # UI.message("To avoid re-entering your package name and issuer every time you run pantograph, we'll store those in a so-called Appfile.")
45
+
46
+ # self.package_name = UI.input("Package Name (com.krausefx.app): ")
47
+ # puts("")
48
+ # puts("To automatically upload builds and metadata to Google Play, pantograph needs a service account json secret file".yellow)
49
+ # puts("Feel free to press Enter at any time in order to skip providing pieces of information when asked")
50
+ end
51
+
52
+ def finish_up
53
+ # self.pantfile_content.gsub!(":generic", ":generic")
54
+
55
+ super
56
+ end
57
+ end
58
+ end
@@ -1,16 +1,15 @@
1
1
  module Pantograph
2
2
  class SetupGradle < Setup
3
- attr_accessor :json_key_file
4
- attr_accessor :package_name
3
+ # attr_accessor :package_name
5
4
 
6
5
  def setup_gradle
7
- self.platform = :gradle
6
+ # self.platform = :gradle
8
7
 
9
8
  welcome_to_pantograph
10
9
 
11
10
  self.pantfile_content = pantfile_template_content
12
11
 
13
- fetch_information_for_appfile
12
+ fetch_information
14
13
 
15
14
  PantographCore::PantographFolder.create_folder!
16
15
 
@@ -40,18 +39,18 @@ module Pantograph
40
39
  finish_up
41
40
  end
42
41
 
43
- def fetch_information_for_appfile
44
- UI.message('')
45
- UI.message("To avoid re-entering your package name and issuer every time you run pantograph, we'll store those in a so-called Appfile.")
42
+ def fetch_information
43
+ # UI.message('')
44
+ # UI.message("To avoid re-entering your package name and issuer every time you run pantograph, we'll store those in a so-called Appfile.")
46
45
 
47
- self.package_name = UI.input("Package Name (com.krausefx.app): ")
48
- puts("")
49
- puts("To automatically upload builds and metadata to Google Play, pantograph needs a service account json secret file".yellow)
50
- puts("Feel free to press Enter at any time in order to skip providing pieces of information when asked")
46
+ # self.package_name = UI.input("Package Name (com.krausefx.app): ")
47
+ # puts("")
48
+ # puts("To automatically upload builds and metadata to Google Play, pantograph needs a service account json secret file".yellow)
49
+ # puts("Feel free to press Enter at any time in order to skip providing pieces of information when asked")
51
50
  end
52
51
 
53
52
  def finish_up
54
- self.pantfile_content.gsub!(":ios", ":maven")
53
+ # self.pantfile_content.gsub!(":generic", ":gradle")
55
54
 
56
55
  super
57
56
  end
@@ -0,0 +1,58 @@
1
+ module Pantograph
2
+ class SetupGeneric < Setup
3
+ # attr_accessor :package_name
4
+
5
+ def setup_gradle
6
+ # self.platform = :generic
7
+
8
+ welcome_to_pantograph
9
+
10
+ self.pantfile_content = pantfile_template_content
11
+
12
+ fetch_information
13
+
14
+ PantographCore::PantographFolder.create_folder!
15
+
16
+ self.append_lane([
17
+ "desc \"Runs all the tests\"",
18
+ "lane :test do",
19
+ " maven(task: \"clean install\")",
20
+ "end"
21
+ ])
22
+
23
+ self.append_lane([
24
+ "desc \"Publish new version to Artifactory\"",
25
+ "lane :build do",
26
+ " maven(task: \"clean build\")",
27
+ "end"
28
+ ])
29
+
30
+ self.append_lane([
31
+ "desc \"Deploy a new version to Artifactory\"",
32
+ "lane :publish do",
33
+ " maven(task: \"clean artifactoryPublish\")",
34
+ "end"
35
+ ])
36
+
37
+ self.lane_to_mention = "test"
38
+
39
+ finish_up
40
+ end
41
+
42
+ def fetch_information
43
+ # UI.message('')
44
+ # UI.message("To avoid re-entering your package name and issuer every time you run pantograph, we'll store those in a so-called Appfile.")
45
+
46
+ # self.package_name = UI.input("Package Name (com.krausefx.app): ")
47
+ # puts("")
48
+ # puts("To automatically upload builds and metadata to Google Play, pantograph needs a service account json secret file".yellow)
49
+ # puts("Feel free to press Enter at any time in order to skip providing pieces of information when asked")
50
+ end
51
+
52
+ def finish_up
53
+ # self.pantfile_content.gsub!(":generic", ":generic")
54
+
55
+ super
56
+ end
57
+ end
58
+ end
@@ -1,5 +1,5 @@
1
1
  module Pantograph
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.6'.freeze
3
3
  DESCRIPTION = 'A way to automate your apps'.freeze
4
4
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
5
5
  end
@@ -16,7 +16,7 @@ module PantographCore
16
16
 
17
17
  def post_event(event)
18
18
  # If our users want to opt out of usage metrics, don't post the events.
19
- # Learn more at https://docs.pantograph.tools/#metrics
19
+ # Learn more at https://johnknapprs.github.io/pantograph/#metrics
20
20
  if Helper.test? || PantographCore::Env.truthy?("PANTOGRAPH_OPT_OUT_USAGE")
21
21
  return nil
22
22
  end
@@ -47,7 +47,7 @@ module PantographCore
47
47
 
48
48
  def show_message
49
49
  UI.message("Sending anonymous analytics information")
50
- UI.message("Learn more at https://docs.pantograph.tools/#metrics")
50
+ UI.message("Learn more at https://johnknapprs.github.io/pantograph/#metrics")
51
51
  UI.message("No personal or sensitive data is sent.")
52
52
  UI.message("You can disable this by adding `opt_out_usage` at the top of your Pantfile")
53
53
  end
@@ -215,7 +215,7 @@ module PantographCore
215
215
 
216
216
  option = verify_options_key!(key)
217
217
 
218
- # Same order as https://docs.pantograph.tools/advanced/#priorities-of-parameters-and-options
218
+ # Same order as https://johnknapprs.github.io/pantograph/advanced/#priorities-of-parameters-and-options
219
219
  value = if @values.key?(key) && !@values[key].nil?
220
220
  @values[key]
221
221
  elsif option.env_name && !ENV[option.env_name].nil?
@@ -400,7 +400,7 @@ module PantographCore
400
400
  end
401
401
 
402
402
  # This method is deprecated, use the `UI` class
403
- # https://docs.pantograph.tools/advanced/#user-input-and-output
403
+ # https://johnknapprs.github.io/pantograph/advanced/#user-input-and-output
404
404
  def self.log
405
405
  UI.deprecated("Helper.log is deprecated. Use `UI` class instead")
406
406
  UI.current.log
@@ -57,8 +57,8 @@ module PantographCore
57
57
  "#{err}")
58
58
  UI.important("")
59
59
  UI.important("Please look at the following docs to see how to set a keychain password:")
60
- UI.important(" - https://docs.pantograph.tools/actions/sync_code_signing")
61
- UI.important(" - https://docs.pantograph.tools/actions/get_certificates")
60
+ UI.important(" - https://johnknapprs.github.io/pantograph/actions/sync_code_signing")
61
+ UI.important(" - https://johnknapprs.github.io/pantograph/actions/get_certificates")
62
62
  else
63
63
  UI.error(err)
64
64
  end
@@ -10,7 +10,7 @@ module PantographCore
10
10
  # If you opt out, we will not send anything.
11
11
  # You can confirm this by observing how we use the environment variable: PANTOGRAPH_OPT_OUT_USAGE
12
12
  # Specifically, in AnalyticsSession.finalize_session
13
- # Learn more at https://docs.pantograph.tools/#metrics
13
+ # Learn more at https://johnknapprs.github.io/pantograph/#metrics
14
14
  def self.session
15
15
  @session ||= AnalyticsSession.new
16
16
  end
@@ -128,7 +128,7 @@ module Commander
128
128
  # We're also printing the new-lines, as otherwise the message is not very visible in-between the error and the stack trace
129
129
  puts("")
130
130
  PantographCore::UI.important("Error accessing file, this might be due to pantograph's directory handling")
131
- PantographCore::UI.important("Check out https://docs.pantograph.tools/advanced/#directory-behavior for more details")
131
+ PantographCore::UI.important("Check out https://johnknapprs.github.io/pantograph/advanced/#directory-behavior for more details")
132
132
  puts("")
133
133
  raise e
134
134
  end
@@ -194,7 +194,7 @@ module Commander
194
194
  ui.error("-----------------------------------------------------------")
195
195
  ui.error("for more details on ways to install pantograph please refer the documentation:")
196
196
  ui.error("-----------------------------------------------------------")
197
- ui.error(" 🚀 https://docs.pantograph.tools 🚀 ")
197
+ ui.error(" 🚀 https://johnknapprs.github.io/pantograph 🚀 ")
198
198
  ui.error("-----------------------------------------------------------")
199
199
  ui.error("")
200
200
  ui.error("You can also install a new version of Ruby")
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
4
+ version: 0.1.6
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-03 00:00:00.000000000 Z
11
+ date: 2019-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slack-notifier
@@ -907,8 +907,10 @@ files:
907
907
  - pantograph/lib/pantograph/server/socket_server.rb
908
908
  - pantograph/lib/pantograph/server/socket_server_action_command_executor.rb
909
909
  - pantograph/lib/pantograph/setup/setup.rb
910
+ - pantograph/lib/pantograph/setup/setup_angular.rb
911
+ - pantograph/lib/pantograph/setup/setup_generic.rb
910
912
  - pantograph/lib/pantograph/setup/setup_gradle.rb
911
- - pantograph/lib/pantograph/setup/setup_ios.rb
913
+ - pantograph/lib/pantograph/setup/setup_maven.rb
912
914
  - pantograph/lib/pantograph/shells.rb
913
915
  - pantograph/lib/pantograph/supported_platforms.rb
914
916
  - pantograph/lib/pantograph/tools.rb
@@ -963,7 +965,7 @@ homepage: https://pantograph.tools
963
965
  licenses:
964
966
  - MIT
965
967
  metadata:
966
- docs_url: https://docs.pantograph.tools
968
+ docs_url: https://johnknapprs.github.io/pantograph
967
969
  post_install_message:
968
970
  rdoc_options: []
969
971
  require_paths: