code_ownership 1.25.0 → 1.26.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/code_ownership/cli.rb +12 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9217ed67fd18ab3aa4ca0e2baa52632e9a2d6b620ca5adb717ee4b81c6d5510b
4
- data.tar.gz: b3b5e77abd9ff82f0397b8b67cbfb08e5065e7441b08588e9992b559f72d6a3f
3
+ metadata.gz: 988c067afbabcc65d5b697aea162ba1c288787e4d7d9a84a261b00f76859aa6b
4
+ data.tar.gz: 6a504214d4470cfd2d1ab103f201069367e39962a390d34382410587a6067e40
5
5
  SHA512:
6
- metadata.gz: a0b16cdc80b8d2678432e534b25b21e2262ae1c663808594d1724d62b4284dcb0270bab5e56160570fa4c7e497c07ae003f57854f1cf08c81becd3176686bf2b
7
- data.tar.gz: bf619efd34dceee115036e41860c88d83d86d5d678cb9b09069cd6e74ee5e34219b3fcffa6ecba704a6e5c4e427a30627d3c6eedf605cf58b2db715409564dba
6
+ metadata.gz: 16b3e48c3cb734857dd66cf03f9d43d89bb92ee3ab92abfc0550004274531e03eef4abc9157fab33e25d815dd5b5c6f055d65987e7526dcb4952212930935678
7
+ data.tar.gz: 0f0cc9f4a1b8938e088bc258d5b247d633beaac3c68ddf37ea269fa3740d27d796b9773354e47855e79ecd5e958b49d97fd9f231f42502e62eab508d1d8ea9a1
@@ -11,7 +11,19 @@ module CodeOwnership
11
11
  validate!(argv)
12
12
  elsif command == 'for_file'
13
13
  for_file(argv)
14
+ elsif [nil, "help"].include?(command)
15
+ puts <<~USAGE
16
+ Usage: bin/codeownership <subcommand>
17
+
18
+ Subcommands:
19
+ validate - run all validations
20
+ for_file - find code ownership for a single file
21
+ help - display help information about code_ownership
22
+ USAGE
23
+ else
24
+ puts "'#{command}' is not a code_ownership command. See `bin/codeownership help`."
14
25
  end
26
+
15
27
  end
16
28
 
17
29
  def self.validate!(argv)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code_ownership
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.0
4
+ version: 1.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-28 00:00:00.000000000 Z
11
+ date: 2022-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigrails-teams