vtk 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbb2159bd782736d6f9647826b073ab189e0e7d40d69dcb1664c16f62a688f09
4
- data.tar.gz: 36386f949cd2c08013e97d3689ebc6f2c86c95ce0ca9fd7344223c35cb3ff261
3
+ metadata.gz: d6b58311e9937247860415f80c363b1581cd3d3bf837ca5e6e134e53478168b3
4
+ data.tar.gz: 8de8e128edfd1c0a2e8eba8ca96cca82ab9fe3126ce7be8ee098222ea0f62f9b
5
5
  SHA512:
6
- metadata.gz: b375532131584051a1ad0c3036f68bab2304e8bdeb47cbfe7e3806fba24a5838be3e2229663cc836ae429eb17ebc2dc86a771589d83934226ea011dd80a8edc5
7
- data.tar.gz: e28c0bbfa60f7ef3b15948e355171a8e9f2b8cb17fca8f4094217b75423b337e1e693d7226b42a80cc2b1165da08f7ac3951a284c26c68fc5178da2fef5504d9
6
+ metadata.gz: 46abbf43265d2b03f78ea898ad2a3561dc63d1e54d90f2d403c0ad36d7222b77f0f530d2e83d6834e17bcc7163046df7cf8cdf40060418349ef6697bfe5c3ee4
7
+ data.tar.gz: 7ab9d5c8efd22832a1bfcbf91fd49a44237fcc1a8b108b83f39bce1107cef9ac1f0628fffb843e8f70af5a28499e81b02714ba9a1af3b552429b4c151574ea7c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.3.0](https://github.com/department-of-veterans-affairs/vtk/tree/v0.3.0) (2021-02-16)
4
+
5
+ [Full Changelog](https://github.com/department-of-veterans-affairs/vtk/compare/v0.2.6...v0.3.0)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - SOCKS On/Off Commands [\#9](https://github.com/department-of-veterans-affairs/vtk/pull/9) ([ericboehs](https://github.com/ericboehs))
10
+
3
11
  ## [v0.2.6](https://github.com/department-of-veterans-affairs/vtk/tree/v0.2.6) (2021-02-03)
4
12
 
5
13
  [Full Changelog](https://github.com/department-of-veterans-affairs/vtk/compare/v0.2.5...v0.2.6)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # VSP Toolkit (`vtk`)
1
+ # Platform Developer Toolkit
2
2
 
3
- The purpose of this gem is to allow VFS engineers to quickly begin developing on the platform. It does this by providing a command line interface that allows the use of simple commands and parameters to do everything from setting up a development environment to building out a directory structure and creating necessary files for separating code into its own module.
3
+ The purpose of this gem is to allow VFS engineers to quickly begin developing on VA.gov. It does this by providing a command line interface that allows the use of simple commands and parameters to do everything from setting up a development environment to building out a directory structure and creating necessary files for separating code into its own module.
4
4
 
5
5
  *The following assumes you have Ruby 2.6.6 or higher installed*
6
6
 
@@ -9,6 +9,10 @@ The purpose of this gem is to allow VFS engineers to quickly begin developing on
9
9
  Install it yourself as:
10
10
 
11
11
  $ gem install vtk
12
+
13
+ To update to the latest version:
14
+
15
+ $ gem update vtk
12
16
 
13
17
  ## Usage
14
18
 
@@ -18,12 +22,12 @@ Teams developing for vets-api should create their code as a module. This allows
18
22
 
19
23
  $ vtk module add <module name>
20
24
 
21
- 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>*
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.
22
26
 
23
- $ vtk module controller <module name>
24
- $ vtk module model <module name>
25
- $ vtk module serializer <module name>
26
- $ vtk module service <module name>
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
31
 
28
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)
29
33
 
@@ -50,6 +54,7 @@ For helpful information about commands and subcommands run the following:
50
54
 
51
55
  $ vtk -h
52
56
  $ vtk module -h
57
+ $ vtk socks -h
53
58
 
54
59
  ### Docker
55
60
 
@@ -9,8 +9,8 @@ module Vtk
9
9
  namespace :module
10
10
 
11
11
  desc 'service <module name>', 'Add new service class to a module in vets-api'
12
- method_option :help, aliases: '-h', type: :boolean,
13
- desc: 'Display usage information'
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'
14
14
  def service(name)
15
15
  if options[:help]
16
16
  invoke :help, ['service']
@@ -21,8 +21,8 @@ module Vtk
21
21
  end
22
22
 
23
23
  desc 'serializer <module name>', 'Add new serializer to a module in vets-api'
24
- method_option :help, aliases: '-h', type: :boolean,
25
- desc: 'Display usage information'
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'
26
26
  def serializer(name)
27
27
  if options[:help]
28
28
  invoke :help, ['serializer']
@@ -33,8 +33,8 @@ module Vtk
33
33
  end
34
34
 
35
35
  desc 'model <module name>', 'Add new model to a module in vets-api'
36
- method_option :help, aliases: '-h', type: :boolean,
37
- desc: 'Display usage information'
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'
38
38
  def model(name)
39
39
  if options[:help]
40
40
  invoke :help, ['model']
@@ -45,8 +45,8 @@ module Vtk
45
45
  end
46
46
 
47
47
  desc 'controller <module name>', 'Add new controller to a module in vets-api'
48
- method_option :help, aliases: '-h', type: :boolean,
49
- desc: 'Display usage information'
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'
50
50
  def controller(name)
51
51
  if options[:help]
52
52
  invoke :help, ['controller']
@@ -57,8 +57,7 @@ module Vtk
57
57
  end
58
58
 
59
59
  desc 'add <module name>', 'Add a new module to vets-api'
60
- method_option :help, aliases: '-h', type: :boolean,
61
- desc: 'Display usage information'
60
+ method_option :help, aliases: '-h', type: :boolean, desc: 'Display usage information'
62
61
  def add(name)
63
62
  if options[:help]
64
63
  invoke :help, ['add']
@@ -17,13 +17,14 @@ module Vtk
17
17
  end
18
18
 
19
19
  def execute(_input: $stdin, _output: $stdout)
20
- create_controller(name)
20
+ create_controller(name, options)
21
21
  end
22
22
 
23
23
  private
24
24
 
25
- def create_controller(name)
26
- system("rails g module_component #{name} controller")
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}")
27
28
  end
28
29
  end
29
30
  end
@@ -17,13 +17,14 @@ module Vtk
17
17
  end
18
18
 
19
19
  def execute(_input: $stdin, _output: $stdout)
20
- create_model(name)
20
+ create_model(name, options)
21
21
  end
22
22
 
23
23
  private
24
24
 
25
- def create_model(name)
26
- system("rails g module_component #{name} model")
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}")
27
28
  end
28
29
  end
29
30
  end
@@ -17,13 +17,14 @@ module Vtk
17
17
  end
18
18
 
19
19
  def execute(_input: $stdin, _output: $stdout)
20
- create_serializer(name)
20
+ create_serializer(name, options)
21
21
  end
22
22
 
23
23
  private
24
24
 
25
- def create_serializer(name)
26
- system("rails g module_component #{name} serializer")
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}")
27
28
  end
28
29
  end
29
30
  end
@@ -17,13 +17,14 @@ module Vtk
17
17
  end
18
18
 
19
19
  def execute(_input: $stdin, _output: $stdout)
20
- create_service(name)
20
+ create_service(name, options)
21
21
  end
22
22
 
23
23
  private
24
24
 
25
- def create_service(name)
26
- system("rails g module_component #{name} service")
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}")
27
28
  end
28
29
  end
29
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.3.0'
4
+ VERSION = '0.4.0'
5
5
  end
data/vtk.gemspec CHANGED
@@ -9,12 +9,13 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ['Eric Boehs', 'Lindsey Hattamer', 'Travis Hilton']
10
10
  spec.email = ['eric.boehs@oddball.io', 'lindsey.hattamer@oddball.io', 'travis.hilton@oddball.io']
11
11
 
12
- spec.summary = 'A CLI for the VSP platform'
13
- spec.description = 'This is a CLI tool for the VSP platform for developer usage'
14
- spec.homepage = 'https://github.com/department-of-veterans-affairs/vsp-toolkit'
12
+ spec.summary = 'A CLI for the platform'
13
+ spec.description = 'This is a platform CLI tool for VFS developer usage.'
14
+ spec.homepage = 'https://github.com/department-of-veterans-affairs/vtk'
15
15
  spec.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
16
16
 
17
17
  spec.metadata['homepage_uri'] = spec.homepage
18
+ spec.metadata['documentation_uri'] = spec.homepage
18
19
  spec.metadata['source_code_uri'] = spec.homepage
19
20
  spec.metadata['changelog_uri'] = 'https://github.com/department-of-veterans-affairs/vtk/blob/master/CHANGELOG.md'
20
21
 
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vtk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Boehs
8
8
  - Lindsey Hattamer
9
9
  - Travis Hilton
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-02-16 00:00:00.000000000 Z
13
+ date: 2021-02-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor
@@ -124,7 +124,7 @@ dependencies:
124
124
  - - "~>"
125
125
  - !ruby/object:Gem::Version
126
126
  version: 2.0.0
127
- description: This is a CLI tool for the VSP platform for developer usage
127
+ description: This is a platform CLI tool for VFS developer usage.
128
128
  email:
129
129
  - eric.boehs@oddball.io
130
130
  - lindsey.hattamer@oddball.io
@@ -166,14 +166,15 @@ files:
166
166
  - lib/vtk/templates/module/add/.gitkeep
167
167
  - lib/vtk/version.rb
168
168
  - vtk.gemspec
169
- homepage: https://github.com/department-of-veterans-affairs/vsp-toolkit
169
+ homepage: https://github.com/department-of-veterans-affairs/vtk
170
170
  licenses:
171
171
  - MIT
172
172
  metadata:
173
- homepage_uri: https://github.com/department-of-veterans-affairs/vsp-toolkit
174
- source_code_uri: https://github.com/department-of-veterans-affairs/vsp-toolkit
173
+ homepage_uri: https://github.com/department-of-veterans-affairs/vtk
174
+ documentation_uri: https://github.com/department-of-veterans-affairs/vtk
175
+ source_code_uri: https://github.com/department-of-veterans-affairs/vtk
175
176
  changelog_uri: https://github.com/department-of-veterans-affairs/vtk/blob/master/CHANGELOG.md
176
- post_install_message:
177
+ post_install_message:
177
178
  rdoc_options: []
178
179
  require_paths:
179
180
  - lib
@@ -188,8 +189,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
189
  - !ruby/object:Gem::Version
189
190
  version: '0'
190
191
  requirements: []
191
- rubygems_version: 3.2.1
192
- signing_key:
192
+ rubygems_version: 3.0.3
193
+ signing_key:
193
194
  specification_version: 4
194
- summary: A CLI for the VSP platform
195
+ summary: A CLI for the platform
195
196
  test_files: []