thor-zsh_completion 0.1.6 → 0.1.7

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: a14bd88f01d2f3389989eb8325cf4fefeb441bf73678a9e35665f27d4420a052
4
- data.tar.gz: 632f050d06d11c50355e318867037ec31a1b53e151e379c21b85d66bf739dc33
3
+ metadata.gz: 80edce6f394ea4b9fc61c8ec1d3de8120cc6fc67dd0ea4a3f696802582bf368d
4
+ data.tar.gz: e57bca556d1cb99cf7ab21ab359777a244f2bf92fe106f5668191dd5a2a20b2a
5
5
  SHA512:
6
- metadata.gz: 6cf2c8c5c8cf1f61851bec0570810ba00e628d2374b7c7a05e812dce088d94edc80933debe86c70f9a937eeac9d6621737208f54d4fb12b3fd150ddcf6400188
7
- data.tar.gz: 9015c85103b6a35f150bc74bd139194b22a7102dd8b76d82c9227e92079e27f1e5cf50cd50ad9cf6d4a9ae209a9d3b7b51046a3c1265faaff1908ba4ff9ddbfe
6
+ metadata.gz: d12f3e04253be27957e5cb0aad094988e95bd93fc7d9a4bd82179fd769b61e7ef8e53cbd454c9b8e5bafd4c75485ae58e322654b0ba7251969019f9eaea33747
7
+ data.tar.gz: 0e7464b50012941279344e9ab849a3f1cc6cff8d1a9752b1ee5d5ab8f93d9b6f2d65bcb26e1101fcf6218c536007fc70b01443208391346fb46200543a2c076e
@@ -1,8 +1,14 @@
1
+ ### 0.1.7
2
+
3
+ Misc
4
+
5
+ - fix the generation of zsh completion scripts to prevent all [ShellCheck](https://www.shellcheck.net/) warnings
6
+
1
7
  ### 0.1.6
2
8
 
3
9
  Misc
4
10
 
5
- - fix the generation of zsh completion scripts to prevent [ShellCheck](https://www.shellcheck.net/) warnings (@joehorsnell)†verz
11
+ - fix the generation of zsh completion scripts to prevent [ShellCheck](https://www.shellcheck.net/) warnings (@joehorsnell)
6
12
 
7
13
  ### 0.1.5
8
14
 
@@ -1,4 +1,6 @@
1
1
  #compdef <%= name %>
2
+ # shellcheck disable=SC2034
3
+ # https://github.com/koalaman/shellcheck/wiki/SC2034
2
4
 
3
5
  _<%= name %>() {
4
6
  __<%= name %>
@@ -3,14 +3,14 @@
3
3
  readonly local DEPTH=<%= depth %>
4
4
 
5
5
  case $CURRENT in
6
- $DEPTH)
6
+ "$DEPTH")
7
7
  _arguments \
8
8
  <%- subcommand[:options].each do |option| -%>
9
9
  <%= escape_option_names(option[:names]) %><%= quote(bracket(option[:description])) if option[:description] %> \
10
10
  <%- end -%>
11
11
  '*: :->subcommands'
12
12
 
13
- case $state in
13
+ case ${state:?} in
14
14
  subcommands)
15
15
  _values \
16
16
  'subcommand' \
@@ -25,7 +25,7 @@
25
25
  esac
26
26
  ;;
27
27
  *)
28
- case ${words[$DEPTH]} in
28
+ case ${words[$DEPTH]:?} in
29
29
  <%- subcommand[:subcommands].each do |subcommand| -%>
30
30
  <%= subcommand[:name] %>)
31
31
  <%= function_name %>_<%= subcommand[:name] %>
@@ -53,7 +53,7 @@
53
53
  <%- end -%>
54
54
  '*: :->rest'
55
55
 
56
- case $state in
56
+ case ${state:?} in
57
57
  rest)
58
58
  # complete rest arguments
59
59
  _files
@@ -1,5 +1,5 @@
1
1
  class Thor
2
2
  module ZshCompletion
3
- VERSION = "0.1.6".freeze
3
+ VERSION = "0.1.7".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thor-zsh_completion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - labocho
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-23 00:00:00.000000000 Z
11
+ date: 2020-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor