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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5072a41d4a54448bb8e90569df08524c3cfae801
|
|
4
|
+
data.tar.gz: 991ed21c747a48a669c78b5c52e20076afae0321
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|