completely 0.4.2 → 0.4.3

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
  SHA256:
3
- metadata.gz: cb9fe8791d64ddc71e8ee082ce9fc9cf028376f61c71bf354b758f38ecfded86
4
- data.tar.gz: 9fa6a5ced31c2fafdebfbd0172f939cccd9aa95b48eedd5ca528ab5a3b03eee2
3
+ metadata.gz: 207f7cf5e1b259c6cb7e9006f59cbf22b2096456707ef8d42edddbc6b0dc4e4e
4
+ data.tar.gz: 51e59317f307d3da3e09f7a30092970607000be5c7a11e4276e378dd0a41bb78
5
5
  SHA512:
6
- metadata.gz: ea9dcf451393c1b242bebcf0766a2d56e847005da451557aa601893536fdb7a2773bd1abbeb6a3b510abae3ffa87258fd6bbc45641405a991690c2bd0441a623
7
- data.tar.gz: 77ee32ac693f7cdee5953e173974e84ddee4380b0298b3caf3a68a79208bae2ab6f856ae0e8f49b9c15d152b171ad7ad5186837e56cfcbc69b5abe4bd82a6873
6
+ metadata.gz: 4eaaacc3785c367510802ad2945057d1ecc50fbfd8ddbcba08234a80b73c12adbe6157c0fd9726e9eb2a9f043470bccac9fdd45bea767edce94b4b47e0dc6912
7
+ data.tar.gz: fc79892cbbe2647aa5647ea68d6fe29ef3b91b0686565e16ce9e6c784157539ab728dce24c4991234c1a1756facca1b0aa019c9654a1fa90b91a7d8476ea3de8
data/README.md CHANGED
@@ -250,6 +250,17 @@ puts completions.wrapper_function "custom_function_name"
250
250
  p completions.tester.test "mygit status "
251
251
  ```
252
252
 
253
+ ## Completions in ZSH
254
+
255
+ If you are using Oh-My-Zsh, bash completions should already be enabled,
256
+ otherwise, you should enable completion by adding this to your `~/.zshrc`
257
+ (if is it not already there):
258
+
259
+ ```bash
260
+ # Load completion functions
261
+ autoload -Uz +X compinit && compinit
262
+ autoload -Uz +X bashcompinit && bashcompinit
263
+ ```
253
264
 
254
265
  ## Contributing / Support
255
266
 
@@ -19,7 +19,7 @@
19
19
  % patterns.each do |pattern|
20
20
  % next if pattern.empty?
21
21
  <%= pattern.case_string %>)
22
- COMPREPLY=($(compgen <%= pattern.compgen %> -- "$cur"))
22
+ while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen <%= pattern.compgen %> -- "$cur" )
23
23
  ;;
24
24
 
25
25
  % end
@@ -16,4 +16,7 @@ COMP_POINT=${#COMP_LINE}
16
16
  COMP_CWORD=<%= cword %>
17
17
 
18
18
  <%= function_name %>
19
- echo "${COMPREPLY[*]}"
19
+ for suggestion in "${COMPREPLY[@]}"; do
20
+ echo "$suggestion"
21
+ done
22
+
@@ -14,7 +14,7 @@ module Completely
14
14
  f << tester_script(compline)
15
15
  f.flush
16
16
  `bash #{f.path}`
17
- end.split " "
17
+ end.split "\n"
18
18
  end
19
19
 
20
20
  def tester_script(compline)
@@ -1,3 +1,3 @@
1
1
  module Completely
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: completely
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-27 00:00:00.000000000 Z
11
+ date: 2022-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colsole
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
- rubygems_version: 3.3.3
83
+ rubygems_version: 3.3.14
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Bash Completions Generator