Skip to content

Commit 69ac3ae

Browse files
committed
Added vendored thor change to automatiek patch
#9125 (comment)
1 parent 9e44b5e commit 69ac3ae

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tool/automatiek/thor-v1.4.0.patch

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
diff --git a/bundler/lib/bundler/vendor/thor/lib/thor.rb b/bundler/lib/bundler/vendor/thor/lib/thor.rb
2+
index bfd9f5c914..945bdbd551 100644
3+
--- a/bundler/lib/bundler/vendor/thor/lib/thor.rb
4+
+++ b/bundler/lib/bundler/vendor/thor/lib/thor.rb
5+
@@ -625,7 +625,7 @@ def normalize_command_name(meth) #:nodoc:
6+
# alias name.
7+
def find_command_possibilities(meth)
8+
len = meth.to_s.length
9+
- possibilities = all_commands.merge(map).keys.select { |n| meth == n[0, len] }.sort
10+
+ possibilities = all_commands.reject { |_k, c| c.hidden? }.merge(map).keys.select { |n| meth == n[0, len] }.sort
11+
unique_possibilities = possibilities.map { |k| map[k] || k }.uniq
12+
13+
if possibilities.include?(meth)
14+
115
diff --git a/bundler/lib/bundler/vendor/thor/lib/thor/runner.rb b/bundler/lib/bundler/vendor/thor/lib/thor/runner.rb
216
index 95f8b16e31..f0ce6df96c 100644
317
--- a/bundler/lib/bundler/vendor/thor/lib/thor/runner.rb

0 commit comments

Comments
 (0)