vtk 0.5.0 → 0.7.0

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: fff239de6fb79f245ca21cd8aefe7869594759d3f04094dec4555b45a27781ea
4
- data.tar.gz: 3d5a6d37f2bab2ce2ca1a21ac38bb374a390c8da7c75a71c41659abfd4485f47
3
+ metadata.gz: ad99a9b7f12175a81330df9b6dd29e528e088a934d9ddb4d13532cdc82745b8a
4
+ data.tar.gz: 79949c6723be663c804e04e06f8ff8e6a13781b9eda335821fa28f1b73830200
5
5
  SHA512:
6
- metadata.gz: c6910620a06690220b58138ba1a3a6fabe9a6cb58129c05a575b64673aea08398341c7cbcf3ced41f63f72423f76e8401fd5bd7f03c2e25e9743f9b7c579767b
7
- data.tar.gz: 2a9bd5ad03d3ab7f8bcd8a6d521816d8a89199d32aed435b009585ffbe80fac68236bdb6a96eea7f9f27a0bb2bd2ab30b4b955cc54f83c475a40e55468928ce8
6
+ metadata.gz: 5950052b41123adfda1fb86db4dcb8ba66387b8f743a0b8f80cbea87b20963c4e75e84077addd2f96be7a172305c63c1140869997ed932bf6d30a092f76c1235
7
+ data.tar.gz: f290f9c6a3be7c2dd31e45d70568da46ab22d214311e5dfb5845e6432d05f2a4416f62b1fd6ba837ceed49e7882f381130966f5facda0f7e0e01584dcf17420e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.5.0](https://github.com/department-of-veterans-affairs/vtk/tree/v0.5.0) (2021-02-19)
4
+
5
+ [Full Changelog](https://github.com/department-of-veterans-affairs/vtk/compare/v0.4.0...v0.5.0)
6
+
7
+ ## [v0.4.0](https://github.com/department-of-veterans-affairs/vtk/tree/v0.4.0) (2021-02-19)
8
+
9
+ [Full Changelog](https://github.com/department-of-veterans-affairs/vtk/compare/v0.3.0...v0.4.0)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Added the ability to specify a name when creating a component \(i.e. controller, model, etc.\) [\#14](https://github.com/department-of-veterans-affairs/vtk/pull/14) ([thilton-oddball](https://github.com/thilton-oddball))
14
+
3
15
  ## [v0.3.0](https://github.com/department-of-veterans-affairs/vtk/tree/v0.3.0) (2021-02-16)
4
16
 
5
17
  [Full Changelog](https://github.com/department-of-veterans-affairs/vtk/compare/v0.2.6...v0.3.0)
data/README.md CHANGED
@@ -22,12 +22,12 @@ Teams developing for vets-api should create their code as a module. This allows
22
22
 
23
23
  $ vtk module add <module name>
24
24
 
25
- To add additional functionality to your module, the commands listed below are available for use. These commands can build out common functionality needed when working with a module and will be created within the given module space. When creating a new module component for a module space that does not currently exist, users will be prompted with the choice to create the module directory structure. As above, first cd into the vets-api directory, then enter the command below, substituting the name of your module for `<module name>`. You can specify the name of the module component by including `-n <component name>` after the module name. If you do not specify a module component name then the component will have the same name as the module.
25
+ To add additional functionality to your module, the commands listed below are available for use. These commands can build out common functionality needed when working with a module and will be created within the given module space. When creating a new module component for a module space that does not currently exist, users will be prompted with the choice to create the module directory structure. As above, first cd into the vets-api directory, then enter the command below, substituting the name of your component for `<component name>`. You also MUST specify the name of the module by including `-m <module name>` after the component name.
26
26
 
27
- $ vtk module controller <module name> -n <component name>
28
- $ vtk module model <module name> -n <component name>
29
- $ vtk module serializer <module name> -n <component name>
30
- $ vtk module service <module name> -n <component name>
27
+ $ vtk module controller <component name> -m <module name>
28
+ $ vtk module model <component name> -m <module name>
29
+ $ vtk module serializer <component name> -m <module name>
30
+ $ vtk module service <component name> -m <module name>
31
31
 
32
32
  This above command runs a custom rails generator. For more information see the [module generator documentation](https://github.com/department-of-veterans-affairs/vets-api/blob/master/lib/generators/module/USAGE)
33
33
 
@@ -8,9 +8,9 @@ module Vtk
8
8
  class Module < Thor
9
9
  namespace :module
10
10
 
11
- desc 'service <module name>', 'Add new service class to a module in vets-api'
11
+ desc 'service <component name>', 'Add new service class to a module in vets-api'
12
12
  method_option :help, aliases: '-h', type: :boolean, desc: 'Display usage information'
13
- method_option :component_name, aliases: '-n', type: :string, desc: 'Specify the service name'
13
+ method_option :module_name, aliases: '-m', type: :string, desc: 'Specify the module name', required: true
14
14
  def service(name)
15
15
  if options[:help]
16
16
  invoke :help, ['service']
@@ -20,9 +20,9 @@ module Vtk
20
20
  end
21
21
  end
22
22
 
23
- desc 'serializer <module name>', 'Add new serializer to a module in vets-api'
23
+ desc 'serializer <component name>', 'Add new serializer to a module in vets-api'
24
24
  method_option :help, aliases: '-h', type: :boolean, desc: 'Display usage information'
25
- method_option :component_name, aliases: '-n', type: :string, desc: 'Specify the serializer name'
25
+ method_option :module_name, aliases: '-m', type: :string, desc: 'Specify the module name', required: true
26
26
  def serializer(name)
27
27
  if options[:help]
28
28
  invoke :help, ['serializer']
@@ -32,9 +32,9 @@ module Vtk
32
32
  end
33
33
  end
34
34
 
35
- desc 'model <module name>', 'Add new model to a module in vets-api'
35
+ desc 'model <component name>', 'Add new model to a module in vets-api'
36
36
  method_option :help, aliases: '-h', type: :boolean, desc: 'Display usage information'
37
- method_option :component_name, aliases: '-n', type: :string, desc: 'Specify the model name'
37
+ method_option :module_name, aliases: '-m', type: :string, desc: 'Specify the module name', required: true
38
38
  def model(name)
39
39
  if options[:help]
40
40
  invoke :help, ['model']
@@ -44,9 +44,9 @@ module Vtk
44
44
  end
45
45
  end
46
46
 
47
- desc 'controller <module name>', 'Add new controller to a module in vets-api'
47
+ desc 'controller <component name>', 'Add new controller to a module in vets-api'
48
48
  method_option :help, aliases: '-h', type: :boolean, desc: 'Display usage information'
49
- method_option :component_name, aliases: '-n', type: :string, desc: 'Specify the controller name'
49
+ method_option :module_name, aliases: '-m', type: :string, desc: 'Specify the module name', required: true
50
50
  def controller(name)
51
51
  if options[:help]
52
52
  invoke :help, ['controller']
@@ -23,8 +23,8 @@ module Vtk
23
23
  private
24
24
 
25
25
  def create_controller(name, options)
26
- component_name = options[:component_name] || name
27
- system("rails g module_component #{name} method:controller component_name:#{component_name}")
26
+ module_name = options[:module_name]
27
+ system("rails g module_component #{module_name} method:controller component_name:#{name}")
28
28
  end
29
29
  end
30
30
  end
@@ -23,8 +23,8 @@ module Vtk
23
23
  private
24
24
 
25
25
  def create_model(name, options)
26
- component_name = options[:component_name] || name
27
- system("rails g module_component #{name} method:model component_name:#{component_name}")
26
+ module_name = options[:module_name]
27
+ system("rails g module_component #{module_name} method:model component_name:#{name}")
28
28
  end
29
29
  end
30
30
  end
@@ -23,8 +23,8 @@ module Vtk
23
23
  private
24
24
 
25
25
  def create_serializer(name, options)
26
- component_name = options[:component_name] || name
27
- system("rails g module_component #{name} method:serializer component_name:#{component_name}")
26
+ module_name = options[:module_name]
27
+ system("rails g module_component #{module_name} method:serializer component_name:#{name}")
28
28
  end
29
29
  end
30
30
  end
@@ -23,8 +23,8 @@ module Vtk
23
23
  private
24
24
 
25
25
  def create_service(name, options)
26
- component_name = options[:component_name] || name
27
- system("rails g module_component #{name} method:service component_name:#{component_name}")
26
+ module_name = options[:module_name]
27
+ system("rails g module_component #{module_name} method:service component_name:#{name}")
28
28
  end
29
29
  end
30
30
  end
data/lib/vtk/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vtk
4
- VERSION = '0.5.0'
4
+ VERSION = '0.7.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vtk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Boehs
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-02-19 00:00:00.000000000 Z
13
+ date: 2021-03-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor