<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,6 +3,7 @@
 Bug fixes:
 
 * Fix use of prerelease gems.
+* Gem.bin_path no longer escapes path with spaces. Bug #25935 and #26458.
 
 Deprecation Notices:
 </diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -381,7 +381,7 @@ module Gem
       raise Gem::Exception, msg
     end
 
-    File.join(spec.full_gem_path, spec.bindir, exec_name).sub(/.*\s.*/m, '&quot;\&amp;&quot;')
+    File.join(spec.full_gem_path, spec.bindir, exec_name)
   end
 
   ##</diff>
      <filename>lib/rubygems.rb</filename>
    </modified>
    <modified>
      <diff>@@ -78,14 +78,6 @@ class TestGem &lt; RubyGemTestCase
     end
   end
 
-  def test_self_bin_path_with_spaces
-    quick_gem 'sp ace', '3' do |s|
-      s.executables = ['exec']
-    end
-    path = Gem.bin_path('sp ace', 'exec')
-    assert_equal %w(&quot; &quot;), [path[0,1], path[-1,1]], &quot;Path should be escaped&quot;
-  end
-
   def test_self_bin_path_not_found
     assert_raises(Gem::GemNotFoundException) do
       Gem.bin_path('non-existent')</diff>
      <filename>test/test_gem.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5911a135dd32d97dffa2275bc59108c959e433b3</id>
    </parent>
  </parents>
  <author>
    <name>luislavena</name>
    <email>luislavena@3d4018f9-ac1a-0410-99e9-8a154d859a19</email>
  </author>
  <url>http://github.com/vvs/rubygems/commit/b793a7829aaf9ad7db22f68893fc254e41a6e438</url>
  <id>b793a7829aaf9ad7db22f68893fc254e41a6e438</id>
  <committed-date>2009-07-08T05:53:35-07:00</committed-date>
  <authored-date>2009-07-08T05:53:35-07:00</authored-date>
  <message>Backported r2272 from branches/1_3 - No longer escapes spaces on Gem.bin_path

git-svn-id: http://rubygems.rubyforge.org/svn/trunk@2273 3d4018f9-ac1a-0410-99e9-8a154d859a19</message>
  <tree>26917c5ab1017e8adaf1122374afa06d103bda2c</tree>
  <committer>
    <name>luislavena</name>
    <email>luislavena@3d4018f9-ac1a-0410-99e9-8a154d859a19</email>
  </committer>
</commit>
