vtk 0.5.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +5 -5
- data/lib/vtk/commands/module.rb +8 -8
- data/lib/vtk/commands/module/controller.rb +2 -2
- data/lib/vtk/commands/module/model.rb +2 -2
- data/lib/vtk/commands/module/serializer.rb +2 -2
- data/lib/vtk/commands/module/service.rb +2 -2
- data/lib/vtk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad99a9b7f12175a81330df9b6dd29e528e088a934d9ddb4d13532cdc82745b8a
|
4
|
+
data.tar.gz: 79949c6723be663c804e04e06f8ff8e6a13781b9eda335821fa28f1b73830200
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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 <
|
28
|
-
$ vtk module model <
|
29
|
-
$ vtk module serializer <
|
30
|
-
$ vtk module service <
|
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
|
|
data/lib/vtk/commands/module.rb
CHANGED
@@ -8,9 +8,9 @@ module Vtk
|
|
8
8
|
class Module < Thor
|
9
9
|
namespace :module
|
10
10
|
|
11
|
-
desc 'service <
|
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 :
|
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 <
|
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 :
|
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 <
|
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 :
|
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 <
|
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 :
|
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
|
-
|
27
|
-
system("rails g module_component #{
|
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
|
-
|
27
|
-
system("rails g module_component #{
|
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
|
-
|
27
|
-
system("rails g module_component #{
|
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
|
-
|
27
|
-
system("rails g module_component #{
|
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
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.
|
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-
|
13
|
+
date: 2021-03-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thor
|