bundler_bash_completion 0.3.4 → 0.4.0

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
  SHA1:
3
- metadata.gz: 35131401130ac2b52551e26354136941bb0e7072
4
- data.tar.gz: cec2f976a20660d1890003f9a4b574b9aa4eded1
3
+ metadata.gz: c903d57c7e408b8fecabdb4fd458e96770898a02
4
+ data.tar.gz: c3f5800a5c4e1d43b7c91ff0e31e0e06067667cb
5
5
  SHA512:
6
- metadata.gz: 5c766c7d1b842e1142dd0f74009bfc7e4c312b42e466bd4b49dd37231a8125b780debd09b09414a6eed15bd48653c04e81ffa9fb6e2f2710fde404c3cfbdc7de
7
- data.tar.gz: c5d5ff4701fefe177cabe499b8e086ec501e45b9b2bebe3bb71c81b0b461c7495648e6e9823d232e656a31849e1fddc7fbcea7b9342b19a9e5be43f45905ee61
6
+ metadata.gz: 7dff578f30f3923db5bfd66393dc7340a4abf4d0cbd2c05ba98bce475bd9b54c2a0354f2d9f902b1e0751c998cdadeb5b45f734c2e476994deb5e3243cf371f5
7
+ data.tar.gz: b3cddb41116888fb74884d1f6eb5b75b6dfc7507e954974ce9b3ed9adef9e9065ae63efb820d6ba76eecf6ef3d202c881a71e30d27613a78188747ca6c9edaeb
data/.gitignore CHANGED
@@ -1,5 +1,5 @@
1
1
  .DS_Store
2
- .bundle
3
- .ruby-version
4
- Gemfile.lock
5
- pkg/*
2
+ /.bundle/
3
+ /.ruby-version
4
+ /Gemfile.lock
5
+ /pkg/
data/README.mdown CHANGED
@@ -12,8 +12,12 @@ etc.). Completion is also made for installed gems and their binaries (for
12
12
 
13
13
  First, install gem:
14
14
 
15
- gem install bundler_bash_completion
15
+ ```ruby
16
+ gem install bundler_bash_completion
17
+ ```
16
18
 
17
19
  Then, add following line to your `~/.bashrc` file:
18
20
 
19
- eval `complete_bundle_bash_command init`
21
+ ```sh
22
+ eval `complete_bundle_bash_command init`
23
+ ```
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.4
1
+ 0.4.0
@@ -1,8 +1,13 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  if ARGV[0] == 'init'
4
- puts "complete -C #{File.expand_path(__FILE__)} -o default bundle"
5
- else
4
+ puts %Q{
5
+ _bundler_bash_completion() {
6
+ COMPREPLY=($(compgen -W "$(#{File.expand_path(__FILE__)} complete "$COMP_LINE")"))
7
+ }
8
+ complete -F _bundler_bash_completion bundle
9
+ }
10
+ elsif ARGV[0] == 'complete' && ARGV.size == 2
6
11
  require File.expand_path("#{__dir__}/../lib/bundler_bash_completion")
7
- puts BundlerBashCompletion.new(ENV['COMP_LINE']).complete.sort.join("\n")
12
+ puts BundlerBashCompletion.new(ARGV[1]).complete.sort.join("\n")
8
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler_bash_completion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Toulotte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-28 00:00:00.000000000 Z
11
+ date: 2016-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project: bundler_bash_completion
112
- rubygems_version: 2.2.2
112
+ rubygems_version: 2.5.1
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Bundler bash completion