diff options
author | Asutosh Palai <asupalai@gmail.com> | 2016-06-08 21:43:00 +0530 |
---|---|---|
committer | Asutosh Palai <asupalai@gmail.com> | 2016-06-08 21:43:00 +0530 |
commit | 6b8fdf921e2cb0ea5fcf4c1643a9b35d06519229 (patch) | |
tree | 9d6a2e0aa99096b1b653aaf0a0bc68c37ca0f0ea /lib/bundler/plugin | |
parent | d90208f9d977cca6254458d402d2e2d975034495 (diff) | |
download | bundler-6b8fdf921e2cb0ea5fcf4c1643a9b35d06519229.tar.gz |
Fixing Hash#select for 1.8.7
Diffstat (limited to 'lib/bundler/plugin')
-rw-r--r-- | lib/bundler/plugin/index.rb | 4 | ||||
-rw-r--r-- | lib/bundler/plugin/installer.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/plugin/index.rb b/lib/bundler/plugin/index.rb index f0628472..3e682adc 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 15de7a54..5b8bc3af 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 |