# Ruby 1.8.7 has been released

**URL:** <https://rubytalk.org/t/ruby-1-8-7-has-been-released/46831>\
**Category:** ruby-talk\
**Created:** [31 May 2008 15:25 UTC](https://rubytalk.org/t/ruby-1-8-7-has-been-released/46831 "2008-05-31T15:25:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akinori\_MUSHA](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@Akinori\_MUSHA](https://rubytalk.org/u/Akinori_MUSHA)\
**Post date:** [31 May 2008 15:25 UTC](https://rubytalk.org/t/ruby-1-8-7-has-been-released/46831/1 "2008-05-31T15:25:08Z")

</div>

Folks,

It is my pleasure to announce that Ruby 1.8.7 has just been released.

The new version of Ruby includes many bug fixes, lots of feature  
enhancements backported from 1.9 and some performance improvements  
since 1.8.6 while maintaining stability and backward compatibility  
with the previous release to a high degree. See the bundled  
documentation for details about compatibility issues.

The source code package is available in three formats at the following  
locations:

&nbsp;&nbsp;ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.tar.bz2  
&nbsp;&nbsp;ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.tar.gz  
&nbsp;&nbsp;ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.zip

Checksums:

&nbsp;&nbsp;MD5 (ruby-1.8.7.tar.bz2) = f17f14c8d55e731b3ce1bc35c42f0a6c  
&nbsp;&nbsp;SHA256 (ruby-1.8.7.tar.bz2) = 65f2a862ba5e88bac7a78cff15bcb88d7534e741b51a1ffb79a0136c7041359a  
&nbsp;&nbsp;SIZE (ruby-1.8.7.tar.bz2) = 4100024

&nbsp;&nbsp;MD5 (ruby-1.8.7.tar.gz) = de906850f9a012c12ffc6e9f56fb1b66  
&nbsp;&nbsp;SHA256 (ruby-1.8.7.tar.gz) = 600dccf13bca3e4179fa6ff554220ce4ba67ffc72bce1ac3bf74c2599c03a0ca  
&nbsp;&nbsp;SIZE (ruby-1.8.7.tar.gz) = 4799732

&nbsp;&nbsp;MD5 (ruby-1.8.7.zip) = 14d3eb37b32e4a26966bdd80f361ccd2  
&nbsp;&nbsp;SHA256 (ruby-1.8.7.zip) = 805987ad167d8f9cac90e4b9342686e96a7708664111be27a3c6d680ce21d6c1  
&nbsp;&nbsp;SIZE (ruby-1.8.7.zip) = 5851408

For a brief list of user visible changes and a full list of all  
changes, see the bundled files named NEWS and ChangeLog, which are  
also available at the following locations:

&nbsp;&nbsp;[http://svn.ruby-lang.org/repos/ruby/tags/v1\_8\_7/NEWS](http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7/NEWS)  
&nbsp;&nbsp;[http://svn.ruby-lang.org/repos/ruby/tags/v1\_8\_7/ChangeLog](http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7/ChangeLog)

Enjoy!

> **···**
>
> --  
> Akinori MUSHA / [http://akinori.org/](http://akinori.org/)

---

<div class="post-metadata">

**Author:** ![Michael\_Fellinger1](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@Michael\_Fellinger1](https://rubytalk.org/u/Michael_Fellinger1)\
**Post date:** [1 June 2008 01:33 UTC](https://rubytalk.org/t/ruby-1-8-7-has-been-released/46831/2 "2008-06-01T01:33:48Z")

</div>

> Folks,
> 
> It is my pleasure to announce that Ruby 1.8.7 has just been released.
> 
> The new version of Ruby includes many bug fixes, lots of feature  
> enhancements backported from 1.9 and some performance improvements  
> since 1.8.6 while maintaining stability and backward compatibility  
> with the previous release to a high degree. See the bundled  
> documentation for details about compatibility issues.
> 
> The source code package is available in three formats at the following  
> locations:
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.tar.bz2  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.tar.gz  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.zip
> 
> Checksums:
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MD5 (ruby-1.8.7.tar.bz2) = f17f14c8d55e731b3ce1bc35c42f0a6c  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SHA256 (ruby-1.8.7.tar.bz2) = 65f2a862ba5e88bac7a78cff15bcb88d7534e741b51a1ffb79a0136c7041359a  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SIZE (ruby-1.8.7.tar.bz2) = 4100024
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MD5 (ruby-1.8.7.tar.gz) = de906850f9a012c12ffc6e9f56fb1b66  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SHA256 (ruby-1.8.7.tar.gz) = 600dccf13bca3e4179fa6ff554220ce4ba67ffc72bce1ac3bf74c2599c03a0ca  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SIZE (ruby-1.8.7.tar.gz) = 4799732
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MD5 (ruby-1.8.7.zip) = 14d3eb37b32e4a26966bdd80f361ccd2  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SHA256 (ruby-1.8.7.zip) = 805987ad167d8f9cac90e4b9342686e96a7708664111be27a3c6d680ce21d6c1  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SIZE (ruby-1.8.7.zip) = 5851408
> 
> For a brief list of user visible changes and a full list of all  
> changes, see the bundled files named NEWS and ChangeLog, which are  
> also available at the following locations:
> 
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[http://svn.ruby-lang.org/repos/ruby/tags/v1\_8\_7/NEWS](http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7/NEWS)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[http://svn.ruby-lang.org/repos/ruby/tags/v1\_8\_7/ChangeLog](http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7/ChangeLog)
> 
> Enjoy!

I'm trying to, but it seems like this release breaks Hpricot due to an  
unknown issue.

^ manveru

> **···**
>
> On Sun, Jun 1, 2008 at 12:25 AM, Akinori MUSHA \<knu@idaemons.org\> wrote:
> 
> > --  
> > Akinori MUSHA / [http://akinori.org/](http://akinori.org/)

---

<div class="post-metadata">

**Author:** ![Jayson\_Williams](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@Jayson\_Williams](https://rubytalk.org/u/Jayson_Williams)\
**Post date:** [2 June 2008 16:12 UTC](https://rubytalk.org/t/ruby-1-8-7-has-been-released/46831/3 "2008-06-02T16:12:18Z")

</div>

Will there be a Windows One-Click install for this release?

> **···**
>
> On Sat, May 31, 2008 at 11:25 AM, Akinori MUSHA \<knu@idaemons.org\> wrote:
> 
> > Folks,
> > 
> > It is my pleasure to announce that Ruby 1.8.7 has just been released.
> > 
> > The new version of Ruby includes many bug fixes, lots of feature  
> > enhancements backported from 1.9 and some performance improvements  
> > since 1.8.6 while maintaining stability and backward compatibility  
> > with the previous release to a high degree. See the bundled  
> > documentation for details about compatibility issues.
> > 
> > Enjoy!
> > 
> > --  
> > Akinori MUSHA / [http://akinori.org/](http://akinori.org/)

---

<div class="post-metadata">

**Author:** ![Nate\_Dog](https://avatars.discourse-cdn.com/v4/letter/n/df705f/32.png) [@Nate\_Dog](https://rubytalk.org/u/Nate_Dog)\
**Post date:** [15 August 2008 15:56 UTC](https://rubytalk.org/t/ruby-1-8-7-has-been-released/46831/4 "2008-08-15T15:56:23Z")

</div>

Kornelius Kalnbach wrote:

> Akinori MUSHA wrote:
> 
> > It is my pleasure to announce that Ruby 1.8.7 has just been released.
> 
> thank you!
> 
> despite the claim of "some performance improvements" (are they  
> documented anywhere?): tests with the CodeRay syntax highlighting  
> library - which makes heavy use of StringScanner, Regexp and Hashes -  
> run about 20-30% slower than they did with 1.8.6. is anybody else  
> experiencing slowdowns, too? any ideas where to look for the bottleneck  
> before I profile the whole thing?
> 
> [murphy]

I haven't found the bottleneck myself but yes, moving to ruby 1.8.7 has  
slowed down all my Ruby on Rails tests. All together it now takes 100%  
longer. I moved back to 1.8.6 put out by the mod\_rails guys:

[http://www.rubyenterpriseedition.com/](http://www.rubyenterpriseedition.com/)

And the speed of the tests are back to normal.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Charlie\_Marx](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@Charlie\_Marx](https://rubytalk.org/u/Charlie_Marx)\
**Post date:** [3 January 2009 18:32 UTC](https://rubytalk.org/t/ruby-1-8-7-has-been-released/46831/5 "2009-01-03T18:32:00Z")

</div>

Actually comments will work in 1.8.7, but only with a specific, more  
limited syntax than shown in the original example above.

Here is a relevant portion from the inline documentation for ERB:

> ERB recognizes certain tags in the provided template and converts them based on the rules below:
> 
> &nbsp;&nbsp;\<% Ruby code -- inline with output %\>  
> &nbsp;&nbsp;\<%= Ruby expression -- replace with result %\>  
> &nbsp;&nbsp;\<%# comment -- ignored -- useful in testing %\>  
> &nbsp;&nbsp;% a line of Ruby code -- treated as \<% line %\> (optional -- see ERB.new)  
> &nbsp;&nbsp;%% replaced with % if first thing on a line and % processing is used  
> &nbsp;&nbsp;\<%% or %%\> -- replace with \<% or %\> respectively

So comments ARE allowed when the whole embedded expression is a comment,  
i.e.:

\<%# this is good comment %\>

\<% n=1 # this is a bad comment %\>

If your 'bad comments' are consistent in their usage of whitespace  
around the hash mark, then it ought to be easy to do a grep  
search-and-replace to change all your bad comments to look like this,  
which WILL work in Ruby 1.8.7:

\<% n=1 %\>\<%# this is the fixed comment %\>

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Michael\_Fellinger1](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@Michael\_Fellinger1](https://rubytalk.org/u/Michael_Fellinger1)\
**Post date:** [1 June 2008 03:24 UTC](https://rubytalk.org/t/ruby-1-8-7-has-been-released/46831/6 "2008-06-01T03:24:36Z")

</div>

> > Folks,

...

> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[http://svn.ruby-lang.org/repos/ruby/tags/v1\_8\_7/NEWS](http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7/NEWS)  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[http://svn.ruby-lang.org/repos/ruby/tags/v1\_8\_7/ChangeLog](http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7/ChangeLog)
> > 
> > Enjoy!
> 
> I'm trying to, but it seems like this release breaks Hpricot due to an  
> unknown issue.

After checking the source and change log I've found that Hpricot  
depends on the erroneous Array#slice! return value which is nil now,  
i've made a fix and put up a Hpricot mirror with the changes necessary  
on:

[http://github.com/manveru/hpricot](http://github.com/manveru/hpricot)

> **···**
>
> On Sun, Jun 1, 2008 at 10:33 AM, Michael Fellinger \<m.fellinger@gmail.com\> wrote:
> 
> > On Sun, Jun 1, 2008 at 12:25 AM, Akinori MUSHA \<knu@idaemons.org\> wrote:
> 
> --  
> ^ manveru
> 
> > > --  
> > > Akinori MUSHA / [http://akinori.org/](http://akinori.org/)

---

<div class="post-metadata">

**Author:** ![Jordan\_Brough](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@Jordan\_Brough](https://rubytalk.org/u/Jordan_Brough)\
**Post date:** [28 January 2009 13:30 UTC](https://rubytalk.org/t/ruby-1-8-7-has-been-released/46831/7 "2009-01-28T13:30:42Z")

</div>

Comments aren't supported, only comment tags are.

ruby -v -rerb -e 'p ERB.new("\<%# test %\>foobar").result'

correctly gives 'foobar'. while

ruby -v -rerb -e 'p ERB.new("\<% # test %\>foobar").result'

gives an empty string (in 1.8.6 and 1.8.7).

Charlie Marx wrote:

> **···**
>
> > Actually comments will work in 1.8.7, but only with a specific, more  
> > limited syntax than shown in the original example above.
> 
> > So comments ARE allowed when the whole embedded expression is a comment,
> 
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).
