pantograph 0.1.17 → 0.1.19
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65315e05fd88652afd805a03e49b7d14d340591f18dabfb5e314d276c40f14f6
|
4
|
+
data.tar.gz: e7eacc40a152c3e4f2fa64720538b9308e00c3f5e1c65d7b0b65f4b7e8e9462e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae4fed5998052594cd3c68b43f5e47eb811a668e8aca63d9b796f927ce05e7336cdeaa90ecfe347c4e6991a86fa8e21e5a51f40cfe3f3ceb8aaf65f26e72388d
|
7
|
+
data.tar.gz: 0a2971d4032c25458793bcff9b6359bd11b04ef53fc78c101a7f6277e1f9a64d9ab8c80a421347f98e0474783e3b95f56e3b94de973f0b97284d870ec86808f7
|
@@ -38,7 +38,7 @@ module Pantograph
|
|
38
38
|
env_name: '[[NAME_UP]]_API_TOKEN', # The name of the environment variable
|
39
39
|
description: 'API Token for [[NAME_CLASS]]', # a short description of this parameter
|
40
40
|
verify_block: proc do |value|
|
41
|
-
unless
|
41
|
+
unless value and !value.empty?
|
42
42
|
UI.user_error!('No API token for [[NAME_CLASS]] given, pass using `api_token: "token"`')
|
43
43
|
end
|
44
44
|
end
|
@@ -8,11 +8,11 @@ module Pantograph
|
|
8
8
|
|
9
9
|
def self.fetch_name
|
10
10
|
puts("Must be lower case, and use a '_' between words. Do not use '.'".green)
|
11
|
-
puts("examples: '
|
12
|
-
name = UI.input(
|
11
|
+
puts("examples: 'gradle', 'upload_to_s3'".green)
|
12
|
+
name = UI.input('Name of your action: ')
|
13
13
|
until name_valid?(name)
|
14
|
-
puts(
|
15
|
-
name = UI.input(
|
14
|
+
puts('Name is invalid. Please ensure the name is all lowercase, free of spaces and without special characters! Try again.')
|
15
|
+
name = UI.input('Name of your action: ')
|
16
16
|
end
|
17
17
|
name
|
18
18
|
end
|
@@ -23,7 +23,12 @@ module Pantograph
|
|
23
23
|
template.gsub!('[[NAME_UP]]', name.upcase)
|
24
24
|
template.gsub!('[[NAME_CLASS]]', name.pantograph_class + 'Action')
|
25
25
|
|
26
|
-
actions_path =
|
26
|
+
actions_path = if Dir.exist?('pantograph/lib/pantograph/actions')
|
27
|
+
File.join(Dir.pwd, 'pantograph/lib/pantograph/actions')
|
28
|
+
else
|
29
|
+
File.join((PantographCore::PantographFolder.path || Dir.pwd), 'actions')
|
30
|
+
end
|
31
|
+
|
27
32
|
FileUtils.mkdir_p(actions_path) unless File.directory?(actions_path)
|
28
33
|
|
29
34
|
path = File.join(actions_path, "#{name}.rb")
|
@@ -35,7 +40,7 @@ module Pantograph
|
|
35
40
|
if name_valid?(new_action_name)
|
36
41
|
new_action_name
|
37
42
|
else
|
38
|
-
puts(
|
43
|
+
puts('Name is invalid. Please ensure the name is all lowercase, free of spaces and without special characters! Try again.')
|
39
44
|
end
|
40
45
|
end
|
41
46
|
|
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.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Knapp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slack-notifier
|