We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74494a5 + 596533a commit 96374aeCopy full SHA for 96374ae
completion-gem
@@ -64,7 +64,7 @@ __gem() {
64
return;;
65
uninstall | cleanup)
66
choices=$(__gem_installed_gems);;
67
- push)
+ push | unpack)
68
type -t _filedir >/dev/null && _filedir gem
69
70
esac
tests/completion-gem/test.sh
@@ -70,3 +70,15 @@ begin-test 'should offer command-specific options'
reject --strict
71
)
72
end-test
73
+
74
+begin-test 'after unpack should suggest local .gem files'
75
+(
76
+ touch foo.rb foo.gem foo.gemspec
77
78
+ test-completion gem unpack f
79
+ expect foo.gem
80
+ reject foo.rb foo.gemspec
81
82
+ rm -f foo.rb foo.gem foo.gemspec
83
+)
84
+end-test
0 commit comments