summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsutosh Palai <asupalai@gmail.com>2016-06-08 21:43:00 +0530
committerAsutosh Palai <asupalai@gmail.com>2016-06-08 21:43:00 +0530
commit6b8fdf921e2cb0ea5fcf4c1643a9b35d06519229 (patch)
tree9d6a2e0aa99096b1b653aaf0a0bc68c37ca0f0ea
parentd90208f9d977cca6254458d402d2e2d975034495 (diff)
downloadbundler-6b8fdf921e2cb0ea5fcf4c1643a9b35d06519229.tar.gz
Fixing Hash#select for 1.8.7
-rw-r--r--lib/bundler/plugin/index.rb4
-rw-r--r--lib/bundler/plugin/installer.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/plugin/index.rb b/lib/bundler/plugin/index.rb
index f06284725d..3e682adcb2 100644
--- a/lib/bundler/plugin/index.rb
+++ b/lib/bundler/plugin/index.rb
@@ -74,12 +74,12 @@ module Bundler
SharedHelpers.filesystem_access(index_file) do |index_f|
FileUtils.mkdir_p(index_f.dirname)
- File.open(index_f, "w") {|f| f.puts dump_hash(index) }
+ File.open(index_f, "w") {|f| f.puts dump_yaml(index) }
end
end
def dump_yaml(hash)
- yaml = "---\n"
+ yaml = String.new("---\n")
yaml << dump_hash(hash)
end
diff --git a/lib/bundler/plugin/installer.rb b/lib/bundler/plugin/installer.rb
index 15de7a54ec..5b8bc3af08 100644
--- a/lib/bundler/plugin/installer.rb
+++ b/lib/bundler/plugin/installer.rb
@@ -37,7 +37,7 @@ module Bundler
paths = install_from_specs specs
- paths.select {|name, _| plugins.include? name }
+ Hash[paths.select {|name, _| plugins.include? name }]
end
private