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: 74b41c03170fbec542851f97e442ce987dc0bd76ee3c64f07d8d34b60ca9c137
4
- data.tar.gz: 89445784f0f1daf9cc7115b829a43b4fba98f241587da1ef3d6a3be886e60c88
3
+ metadata.gz: 65315e05fd88652afd805a03e49b7d14d340591f18dabfb5e314d276c40f14f6
4
+ data.tar.gz: e7eacc40a152c3e4f2fa64720538b9308e00c3f5e1c65d7b0b65f4b7e8e9462e
5
5
  SHA512:
6
- metadata.gz: e96d37488da1b03a0d6640c2272813026d31411e3bbc8ebfaced2e54d0c8aa63525f962eabdebe6bd6590b510fd73d6ff0681f9cdf068abf6b9532327d673afa
7
- data.tar.gz: 406fa7922204caee21e3881ffa1b2e297cad84e1430a1e4bffd70412b4187c34c4680ba1b8189f711f560b9d09399a9b84a6f01b5143904199a9a9357c2dcfa7
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 (value and not value.empty?)
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: 'testflight', 'upload_to_s3'".green)
12
- name = UI.input("Name of your action: ")
11
+ puts("examples: 'gradle', 'upload_to_s3'".green)
12
+ name = UI.input('Name of your action: ')
13
13
  until name_valid?(name)
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: ")
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 = File.join((PantographCore::PantographFolder.path || Dir.pwd), 'actions')
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("Name is invalid. Please ensure the name is all lowercase, free of spaces and without special characters! Try again.")
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
 
@@ -1,5 +1,5 @@
1
1
  module Pantograph
2
- VERSION = '0.1.17'.freeze
2
+ VERSION = '0.1.19'.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
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.17
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-30 00:00:00.000000000 Z
11
+ date: 2020-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slack-notifier