summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/cli.rb18
-rw-r--r--lib/bundler/similarity_detector.rb9
2 files changed, 13 insertions, 14 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 00df870e28..150df56c7f 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -48,15 +48,15 @@ module Bundler
end
manpages = %w(
- bundle
- bundle-config
- bundle-exec
- bundle-gem
- bundle-install
- bundle-package
- bundle-update
- bundle-platform
- gemfile.5)
+ bundle
+ bundle-config
+ bundle-exec
+ bundle-gem
+ bundle-install
+ bundle-package
+ bundle-update
+ bundle-platform
+ gemfile.5)
if manpages.include?(command)
root = File.expand_path("../man", __FILE__)
diff --git a/lib/bundler/similarity_detector.rb b/lib/bundler/similarity_detector.rb
index de2de05992..e6921393b1 100644
--- a/lib/bundler/similarity_detector.rb
+++ b/lib/bundler/similarity_detector.rb
@@ -47,11 +47,10 @@ module Bundler
for j in 1..this.length
# critical comparison
dm[i][j] = [
- dm[i - 1][j - 1] +
- (this[j - 1] == that[i - 1] ? 0 : sub),
- dm[i][j - 1] + ins,
- dm[i - 1][j] + del
- ].min
+ dm[i - 1][j - 1] + (this[j - 1] == that[i - 1] ? 0 : sub),
+ dm[i][j - 1] + ins,
+ dm[i - 1][j] + del
+ ].min
end
end