harbourmaster 0.2.1 → 0.2.2

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: 46e97df78d7a65e494e48a1b15469038f5642d56
4
- data.tar.gz: a8ef2c4426d04b802efd0411f425fccb51ac620a
3
+ metadata.gz: 5072a41d4a54448bb8e90569df08524c3cfae801
4
+ data.tar.gz: 991ed21c747a48a669c78b5c52e20076afae0321
5
5
  SHA512:
6
- metadata.gz: be55227d0d86422fa4af8bb8447921b4451b4874d477f3caf2f6c9c287534551bf76f6671a17d71eeef26e17a6ea7ad4f2a178915903b357851bd70b652a1712
7
- data.tar.gz: a63f687a487b32dd026aa12fe84c9efdd4994ad15a3becb0764ec11e1eb4ca11b88d2ca9d4cb92311caa026f93e618a4f7346e27a7cb66251ab26efa03319e86
6
+ metadata.gz: a11074ba1f6781706bbdd79191504d1eb311a3d94695d4c3ab4c0f7cfa93f26c5324e786a7174074cace4618b2cb1b01bce12a56c8fc1ba82384b05b52203f69
7
+ data.tar.gz: 9e04ba78d47ca9db1bfd92743102ed74b5fac08473a38efd34a2e47e1c3449c6be5a54e8b0971a2cd277b6c222f5bcf5b4a4b4a3a5f8612c5a27b9ca377c7926
@@ -3,6 +3,7 @@ module Harbourmaster
3
3
  desc 'Used to create a documented API controller'
4
4
  argument :api_base_route, type: :string, default: "app/controllers/api"
5
5
  class_option :permit_params, type: :boolean, desc: "When included will generate a permitted_params method in the controller"
6
+ class_option :skip_tests, type: :boolean, desc: "Skip generating the acceptance tests used for generating documentation"
6
7
  class_option :actions, type: :array, aliases: '-a', desc: "List of controller actions to generate"
7
8
  source_root File.expand_path('../templates', __FILE__)\
8
9
 
@@ -11,6 +12,7 @@ module Harbourmaster
11
12
  end
12
13
 
13
14
  def create_acceptance_tests
15
+ return if options['skip_tests']
14
16
  template 'acceptance_tests.rb', "spec/acceptance/#{plural_name}_spec.rb" if options['actions']
15
17
  end
16
18
 
@@ -1,3 +1,3 @@
1
1
  module Harbourmaster
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harbourmaster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Norman