completely 0.6.1 → 0.6.3

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: 96373b5a76365d9d8dd59e017dec1c32159520ac92f4d2abaed7dd807843a847
4
- data.tar.gz: fea9ce43a598c7f52ddb59971f895ebdb8eb9bb4f9a1d6918e5c15c52eb583e9
3
+ metadata.gz: a1725a40745985999197a9e3aa59c2b4d2ff7a5669657e1f4425a5537ae3c888
4
+ data.tar.gz: 67547ef69659b1751cf17f1c71ede5ad7176e7d3816367ed0bdacccb474b75df
5
5
  SHA512:
6
- metadata.gz: c2b06ef048b16ddc565534b7934c421bc9dde18bf7706071972f64d406563be6044308cd4a38497f96f78208ba5916bc29d5aa4c1228f30fdfb0e6cad638f61b
7
- data.tar.gz: ae92c96a9d51cf4574868257432f348494e16c8bbcfa10a3a6703ae6ca3de110a008c443bc1da25807a815792e7e9d7e3cc6df5530a32ee21c5653524662b93d
6
+ metadata.gz: 3aa99c40ee76e3488702a8c6b59f8ba3789ec12995dbf9655f0600d7d81787d2cd2bc820c465247966cc695e84be3aa43cb6ccf08854b85d4422f2f0fe8b4bba
7
+ data.tar.gz: eb44a7eee738f7810491913b4a9873a528804991669a506d63fa54dc610bef025daf2603fd9c3db6c5c21b3d119580e12e224d54e75880f87cd4b4aa71ec08df
data/README.md CHANGED
@@ -77,7 +77,7 @@ mygit status:
77
77
  - --help
78
78
  - --verbose
79
79
  - --branch
80
- - $(git branch 2> /dev/null)
80
+ - $(git branch 2>/dev/null)
81
81
 
82
82
  mygit init:
83
83
  - --bare
@@ -169,7 +169,7 @@ branches to your suggestions, use the following:
169
169
 
170
170
  ```yaml
171
171
  mygit:
172
- - $(git branch 2> /dev/null)
172
+ - $(git branch 2>/dev/null)
173
173
  ```
174
174
 
175
175
  The `2> /dev/null` is used so that if the command is executed in a directory
@@ -186,10 +186,10 @@ mygit checkout:
186
186
  - -b
187
187
 
188
188
  mygit checkout*--branch:
189
- - $(git branch 2> /dev/null)
189
+ - $(git branch 2>/dev/null)
190
190
 
191
191
  mygit checkout*-b:
192
- - $(git branch 2> /dev/null)
192
+ - $(git branch 2>/dev/null)
193
193
  ```
194
194
 
195
195
  The above will suggest git branches for commands that end with `-b` or `--branch`.
@@ -202,7 +202,7 @@ mygit checkout:
202
202
  - -b
203
203
 
204
204
  mygit checkout*--branch: &branches
205
- - $(git branch 2> /dev/null)
205
+ - $(git branch 2>/dev/null)
206
206
 
207
207
  mygit checkout*-b: *branches
208
208
  ```
@@ -227,6 +227,7 @@ Alternatively, you can copy the script manually to one of these directories
227
227
 
228
228
  - `/usr/share/bash-completion/completions`
229
229
  - `/usr/local/etc/bash_completion.d`
230
+ - `~/.local/share/bash-completion/completions`
230
231
 
231
232
  ## Testing and debugging completion scripts
232
233
 
@@ -11,6 +11,7 @@ module Completely
11
11
  @target_directories ||= %W[
12
12
  /usr/share/bash-completion/completions
13
13
  /usr/local/etc/bash_completion.d
14
+ #{Dir.home}/.local/share/bash-completion/completions
14
15
  #{Dir.home}/.bash_completion.d
15
16
  ]
16
17
  end
@@ -9,7 +9,7 @@ mygit status:
9
9
  - --help
10
10
  - --verbose
11
11
  - --branch
12
- - $(git branch 2> /dev/null)
12
+ - $(git branch 2>/dev/null)
13
13
 
14
14
  mygit init:
15
15
  - --bare
@@ -11,7 +11,7 @@
11
11
 
12
12
  if [[ "${cur:0:1}" == "-" ]]; then
13
13
  echo "$words"
14
-
14
+
15
15
  else
16
16
  for word in $words; do
17
17
  [[ "${word:0:1}" != "-" ]] && result+=("$word")
@@ -38,12 +38,12 @@
38
38
  % patterns.each do |pattern|
39
39
  % next if pattern.empty?
40
40
  <%= pattern.case_string %>)
41
- while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen <%= pattern.compgen %> -- "$cur" )
41
+ while read -r; do COMPREPLY+=("$REPLY"); done < <(compgen <%= pattern.compgen %> -- "$cur")
42
42
  ;;
43
43
 
44
44
  % end
45
45
  esac
46
46
  } &&
47
- complete -F <%= function_name %> <%= command %>
47
+ complete -F <%= function_name %> <%= command %>
48
48
 
49
49
  # ex: filetype=sh
@@ -1,3 +1,3 @@
1
1
  module Completely
2
- VERSION = '0.6.1'
2
+ VERSION = '0.6.3'
3
3
  end
data/lib/completely.rb CHANGED
@@ -1,8 +1,3 @@
1
- if ENV['BYEBUG']
2
- require 'byebug'
3
- require 'lp'
4
- end
5
-
6
1
  require 'completely/exceptions'
7
2
  require 'completely/pattern'
8
3
  require 'completely/completions'
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.6.1
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-23 00:00:00.000000000 Z
11
+ date: 2024-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colsole
@@ -79,7 +79,7 @@ metadata:
79
79
  changelog_uri: https://github.com/DannyBen/completely/blob/master/CHANGELOG.md
80
80
  source_code_uri: https://github.com/DannyBen/completely
81
81
  rubygems_mfa_required: 'true'
82
- post_install_message:
82
+ post_install_message:
83
83
  rdoc_options: []
84
84
  require_paths:
85
85
  - lib
@@ -94,8 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubygems_version: 3.4.14
98
- signing_key:
97
+ rubygems_version: 3.5.14
98
+ signing_key:
99
99
  specification_version: 4
100
100
  summary: Bash Completions Generator
101
101
  test_files: []