vipergeng 1.0.0 → 1.0.1

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
  SHA1:
3
- metadata.gz: f49dde3e15f1b2d73125c4e798b6c6e57a00d044
4
- data.tar.gz: 38880a9ccb3057c4b3dd38cdbdff59161bf56d62
3
+ metadata.gz: b996fa40fd7358e994f64ce4efa98d0737c0287b
4
+ data.tar.gz: 1723add63aab05282765f782187fc6ac458b9bc7
5
5
  SHA512:
6
- metadata.gz: 5390161e537e20d13af7545f1bfaf141d6532a2273ca4bf78ab722e92a9e09f1f05f90d17713d440f6aa73d7c98c70f4dd4984dc49ee999d4a3d7f07d8d4f651
7
- data.tar.gz: edd6420d0c2a7b2c2dfba54b6e8fb5d5d53889ed02a12e33d1efb2c40bbce3464c88f607cbd044791f795f36ccff1644239e00b4d70e50b66b3d07b426043559
6
+ metadata.gz: bece3bba4c61362acbba7b69321000e680569fe61e9c931379900e982e1fc7e55d59f17473019f4e62a5230ac5ab9b85fb10d52c9336b22c261ae7370dd39db0
7
+ data.tar.gz: fb72a935d1fecf39f712bb8bb1309505a02c7c0b45e72219aecf3fbb814ff8d6eaa91ba07db8461577d29e0362443ec35cc5a5753c3ac117fb2ac558e96df8fb
@@ -1,4 +1,4 @@
1
1
  module Vipergen
2
2
  NAME = "vipergeng"
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
@@ -6,14 +6,24 @@ module Vipergen
6
6
  desc "generate MODULE", "Generate a VIPER module"
7
7
  # option :language, :required => false, :default => 'swift', :type => :string, :desc => "The language of the generated module (swift, objc)"
8
8
  option :template, :required => false, :default => 'default', :type => :string , :desc => "Template for the generation"
9
- option :path, :required => true, :type => :string , :desc => "Path where the output module is going to be saved"
9
+ option :path, :required => false, :default => './', :type => :string , :desc => "Path where the output module is going to be saved"
10
10
  option :author, :required => false, :default => 'AuthorXXX', :type => :string , :desc => "Author to be specified on the file's header. Otherwise VIPER will be used"
11
11
  option :company, :required => false, :default => 'CompanyXXX', :type => :string, :desc => "Company to be specified on the file's header. Otherwise Company will be used"
12
- option :project, :required => false, :default => 'ProjectXXX', :type => :string, :desc => "Project to be specified on the file's header. Otherwise Project will be used"
12
+ option :project, :required => false, :default => 'ProjectXXX', :type => :string, :desc => "Project to be specified on the file's header. Otherwise Project will be used"
13
13
  def generate(name)
14
14
  Vipergen::Generator.generate_viper(options[:template], 'swift', name, options[:path], options[:author], options[:company], options[:project])
15
15
  end
16
16
 
17
+ desc "g MODULE", "Generate a VIPER module"
18
+ option :template, :required => false, :default => 'default', :type => :string , :desc => "Template for the generation"
19
+ option :path, :required => false, :default => './', :type => :string , :desc => "Path where the output module is going to be saved"
20
+ option :author, :required => false, :default => 'AuthorXXX', :type => :string , :desc => "Author to be specified on the file's header. Otherwise VIPER will be used"
21
+ option :company, :required => false, :default => 'CompanyXXX', :type => :string, :desc => "Company to be specified on the file's header. Otherwise Company will be used"
22
+ option :project, :required => false, :default => 'ProjectXXX', :type => :string, :desc => "Project to be specified on the file's header. Otherwise Project will be used"
23
+ def g(name)
24
+ Vipergen::Generator.generate_viper(options[:template], 'swift', name, options[:path], options[:author], options[:company], options[:project])
25
+ end
26
+
17
27
  desc "templates", "Get a list of available templates"
18
28
  def templates()
19
29
  puts Vipergen::TemplateManager.templates_description()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vipergeng
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Piñera