# Rake 0.6.0 Released

**URL:** <https://rubytalk.org/t/rake-0-6-0-released/20625>\
**Category:** ruby-talk\
**Created:** [6 September 2005 00:44 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625 "2005-09-06T00:44:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_Weirich1](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Jim\_Weirich1](https://rubytalk.org/u/Jim_Weirich1)\
**Post date:** [6 September 2005 00:44 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/1 "2005-09-06T00:44:43Z")

</div>

= Rake 0.6.0 Released

Its time for some long requested enhancements and lots of bug fixes  
... And a whole new web page.

== New Web Page

The primary documentation for rake has moved from the RubyForge based  
wiki to its own Hieraki based web site. Constant spam on the wiki  
made it a difficult to keep clean. The new site will be easier to  
update and organize.

Check out the new documentation at: [http://docs.rubyrake.org](http://docs.rubyrake.org)

We will be adding new documentation to the site as time goes on.

In addition to the new docs page, make sure you check out Martin  
Fowlers article on rake at [http://martinfowler.com/articles/rake.html](http://martinfowler.com/articles/rake.html)

== Changes

=== New Features

\* Multiple prerequisites on Rake rules now allowed. However, keep the  
&nbsp;&nbsp;following in mind:

&nbsp;&nbsp;1. All the prerequisites of a rule must be available before a rule  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;is triggered, where "enabled" means (a) an existing file, (b) a  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;defined rule, or (c) another rule which also must be  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;trigger-able.  
&nbsp;&nbsp;2. Rules are checked in order of definition, so it is important to  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;order your rules properly. If a file can be created by two  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;different rules, put the more specific rule first (otherwise the  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;more general rule will trigger first and the specific one will  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;never be triggered).  
&nbsp;&nbsp;3. The \<tt\>source\</tt\> method now returns the name of the first  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;prerequisite listed in the rule. \<tt\>sources\</tt\> returns the  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;names of all the rule prerequisites, ordered as they are defined  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in the rule. If the task has other prerequisites not defined in  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the rule (but defined in an explicit task definition), then they  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;will \_not\_ be included in the sources list.

\* FileLists may now use the egrep command. This popular enhancement  
&nbsp;&nbsp;is now a core part of the FileList object. If you want to get a  
&nbsp;&nbsp;list of all your to-dos, fixmes and TBD comments, add the following  
&nbsp;&nbsp;to your Rakefile.

&nbsp;&nbsp;&nbsp;&nbsp;desc "Look for TODO and FIXME tags in the code"  
&nbsp;&nbsp;&nbsp;&nbsp;task :todo do  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FileList['\*\*/\*.rb'].egrep /#.\*(FIXME|TODO|TBD)/  
&nbsp;&nbsp;&nbsp;&nbsp;end

\* The \<tt\>investigation\</tt\> method was added to task object to dump  
&nbsp;&nbsp;out some important values. This makes it a bit easier to debug Rake  
&nbsp;&nbsp;tasks.

&nbsp;&nbsp;For example, if you are having problems with a particular task, just  
&nbsp;&nbsp;print it out:

&nbsp;&nbsp;&nbsp;&nbsp;task :huh do  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;puts Rake::Task['huh'].investigation  
&nbsp;&nbsp;&nbsp;&nbsp;end

\* The Rake::TestTask class now supports a "ruby\_opts" option to pass  
&nbsp;&nbsp;arbitrary ruby options to a test subprocess.

=== Some Incompatibilities

\* When using the \<tt\>ruby\</tt\> command to start a Ruby subprocess, the  
&nbsp;&nbsp;Ruby interpreter that is currently running rake is used by default.  
&nbsp;&nbsp;This makes it easier to use rake in an environment with multiple  
&nbsp;&nbsp;ruby installation. (Previously, the first ruby command found in the  
&nbsp;&nbsp;PATH was used).

&nbsp;&nbsp;If you wish to chose a different Ruby interpreter, you can  
&nbsp;&nbsp;explicitly choose the interpreter via the \<tt\>sh\</tt\> command.

\* The major rake classes (Task, FileTask, FileCreationTask, RakeApp)  
&nbsp;&nbsp;have been moved out of the toplevel scope and are now accessible as  
&nbsp;&nbsp;Rake::Task, Rake::FileTask, Rake::FileCreationTask and  
&nbsp;&nbsp;Rake::Application. If your Rakefile  
&nbsp;&nbsp;directly references any one of these tasks, you may:

&nbsp;&nbsp;1. Update your Rakefile to use the new classnames  
&nbsp;&nbsp;2. Use the --classic-namespace option on the rake command to get the  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;old behavior,  
&nbsp;&nbsp;3. Add \<code\>require 'rake/classic\_namespace'\</code\> to the  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rakefile to get the old behavior.

&nbsp;&nbsp;\<tt\>rake\</tt\> will print a rather annoying warning whenever a  
&nbsp;&nbsp;deprecated class name is referenced without enabling classic  
&nbsp;&nbsp;namespace.

=== Bug Fixes

\* Several unit tests and functional tests were fixed to run better  
&nbsp;&nbsp;under windows.

\* Directory tasks are now a specialized version of a File task. A  
&nbsp;&nbsp;directory task will only be triggered if it doesn't exist. It will  
&nbsp;&nbsp;not be triggered if it is out of date w.r.t. any of its  
&nbsp;&nbsp;prerequisites.

\* Fixed a bug in the Rake::GemPackageTask class so that the gem now  
&nbsp;&nbsp;properly contains the platform name.

\* Fixed a bug where a prerequisite on a \<tt\>file\</tt\> task would cause  
&nbsp;&nbsp;an exception if the prerequisite did not exist.

== What is Rake

Rake is a build tool similar to the make program in many ways. But  
instead of cryptic make recipes, Rake uses standard Ruby code to  
declare tasks and dependencies. You have the full power of a modern  
scripting language built right into your build tool.

== Availability

The easiest way to get and install rake is via RubyGems ...

&nbsp;&nbsp;gem install rake (you may need root/admin privileges)

Otherwise, you can get it from the more traditional places:

Home Page:: [http://rake.rubyforge.org/](http://rake.rubyforge.org/)  
Download:: [http://rubyforge.org/project/showfiles.php?group\_id=50](http://rubyforge.org/project/showfiles.php?group_id=50)

== Thanks

As usual, it was input from users that drove a alot of these changes.  
The following people either contributed patches, made suggestions or  
made otherwise helpful comments. Thanks to ...

\* Greg Fast (better ruby\_opt test options)  
\* Kelly Felkins (requested by better namespace support)  
\* Martin Fowler (suggested Task.investigation)  
\* Stuart Jansen (send initial patch for multiple prerequisites).  
\* Masao Mutch (better support for non-ruby Gem platforms)  
\* Philipp Neubeck (patch for file task exception fix)

> **···**
>
> --  
> -- Jim Weirich [jim@weirichhouse.org](mailto:jim@weirichhouse.org)[http://onestepback.org](http://onestepback.org)  
> -----------------------------------------------------------------  
> "Beware of bugs in the above code; I have only proved it correct,  
> not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)

---

<div class="post-metadata">

**Author:** ![Joel\_VanderWerf1](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@Joel\_VanderWerf1](https://rubytalk.org/u/Joel_VanderWerf1)\
**Post date:** [6 September 2005 04:00 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/2 "2005-09-06T04:00:36Z")

</div>

Jim Weirich wrote:

> = Rake 0.6.0 Released

Trying to update my gems from 0.5.7, but I get this:

$ gem update  
Upgrading installed gems...  
Updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
Attempting remote upgrade of rake  
Attempting remote installation of 'rake'  
ERROR: While executing gem ... (Gem::Exception)  
&nbsp;&nbsp;&nbsp;&nbsp;SSL is not installed on this system

I do have libssl 0.9.7 installed, and the earlier rake installed ok.  
What could be causing this?

> **···**
>
> --  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

---

<div class="post-metadata">

**Author:** ![Stu\_George](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@Stu\_George](https://rubytalk.org/u/Stu_George)\
**Post date:** [6 September 2005 13:56 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/3 "2005-09-06T13:56:31Z")

</div>

hiya, a dumb question, what is the difference between rant and rake?  
they look the same?

- Stu : Email via [xdi.org](http://public.xdi.org/=stu)

> **···**
>
> On Tue, 6 Sep 2005 09:44:43 +0900, Jim Weirich \<jim@weirichhouse.org\> wrote:
> 
> > = Rake 0.6.0 Released
> > 
> > Its time for some long requested enhancements and lots of bug fixes  
> > .. And a whole new web page.

---

<div class="post-metadata">

**Author:** ![Christian\_Neukirche1](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@Christian\_Neukirche1](https://rubytalk.org/u/Christian_Neukirche1)\
**Post date:** [6 September 2005 15:17 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/4 "2005-09-06T15:17:46Z")

</div>

Jim Weirich \<jim@weirichhouse.org\> writes:

> = Rake 0.6.0 Released
> 
> Its time for some long requested enhancements and lots of bug fixes  
> ... And a whole new web page.

Wonderful, and thank you for developing it.

Since updating to 0.6.0, I have some problems with TestTask.  
This is the code that defines it:

&nbsp;&nbsp;desc "Run all the tests"  
&nbsp;&nbsp;Rake::TestTask.new do |t|  
&nbsp;&nbsp;&nbsp;&nbsp;t.libs \<\< "test"  
&nbsp;&nbsp;&nbsp;&nbsp;t.test\_files = FileList['test\_\*.rb']  
&nbsp;&nbsp;&nbsp;&nbsp;t.verbose = true  
&nbsp;&nbsp;&nbsp;&nbsp;t.loader = XXX  
&nbsp;&nbsp;end

For various values of XXX:

:rake results in:

&nbsp;&nbsp;/usr/local/bin/ruby -Ilib:test \  
&nbsp;&nbsp;&nbsp;&nbsp;"/usr/local/lib/ruby/site\_ruby/1.8/rake/rake\_test\_loader.rb" \  
&nbsp;&nbsp;&nbsp;&nbsp;"test\_dissident.rb" "test\_lifecycle.rb"  
&nbsp;&nbsp;Loaded suite /usr/local/lib/ruby/site\_ruby/1.8/rake/rake\_test\_loader  
&nbsp;&nbsp;Started  
&nbsp;&nbsp;...................  
&nbsp;&nbsp;Finished in 0.277981 seconds.  
&nbsp;&nbsp;  
&nbsp;&nbsp;19 tests, 116 assertions, 0 failures, 0 errors

This is the method that works, but it shows the wrong "loaded suite".

:testrb results in:

&nbsp;&nbsp;/usr/local/bin/ruby -Ilib:test "-S testrb \  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/usr/local/lib/ruby/site\_ruby/1.8/rake/ruby182\_test\_unit\_fix.rb" \  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"test\_dissident.rb" "test\_lifecycle.rb"  
&nbsp;&nbsp;/usr/local/bin/ruby: invalid option - (-h will show valid options)  
&nbsp;&nbsp;rake aborted!

I don't know exactly whats happening here, but "testrb test\_\*.rb"  
works when called directly.

For :direct, I get:

&nbsp;&nbsp;/usr/local/bin/ruby -Ilib:test "-e 'ARGV.each{|f| load f}'" \  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"test\_dissident.rb" "test\_lifecycle.rb"

And no further output. It works when I manually call

&nbsp;&nbsp;/usr/local/bin/ruby -e 'ARGV.each{|f| load f}' \  
&nbsp;&nbsp;&nbsp;&nbsp;"test\_dissident.rb" "test\_lifecycle.rb"

on the shell, though.

The TestTask worked with my previous version of rake, which I think  
was 0.4.15.

BTW, I think rake is a good tool every Ruby user benefits from, it  
would be great if it was included in future versions of the Ruby  
standard library.

> **···**
>
> > -- Jim Weirich
> 
> --  
> Christian Neukirchen \<chneukirchen@gmail.com\> [http://chneukirchen.org](http://chneukirchen.org)

---

<div class="post-metadata">

**Author:** ![Han\_Holl](https://avatars.discourse-cdn.com/v4/letter/h/d2c977/32.png) [@Han\_Holl](https://rubytalk.org/u/Han_Holl)\
**Post date:** [15 September 2005 10:11 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/5 "2005-09-15T10:11:48Z")

</div>

Hi Jim (and list),

[cut]

> Check out the new documentation at: [http://docs.rubyrake.org](http://docs.rubyrake.org)

This site seems to be down (two days already)

> \* The \<tt\>investigation\</tt\> method was added to task object to dump  
> out some important values. This makes it a bit easier to debug Rake  
> tasks.

Is there a reason not to call that inspect ?

Cheers,

Han Holl

---

<div class="post-metadata">

**Author:** ![Jim\_Weirich1](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Jim\_Weirich1](https://rubytalk.org/u/Jim_Weirich1)\
**Post date:** [6 September 2005 04:47 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/6 "2005-09-06T04:47:46Z")

</div>

Sounds like a gem issue. The Rake gem is signed, but RubyGems is pretty  
careful about continuing even when the ssl libraries are not available.

Try running the gem command with the --backtrace option so we can get a  
stacktrace and locate the code causing the error.

> **···**
>
> On Tuesday 06 September 2005 12:00 am, Joel VanderWerf wrote:
> 
> > I do have libssl 0.9.7 installed, and the earlier rake installed ok.  
> > What could be causing this?
> 
> --  
> -- Jim Weirich jim@weirichhouse.org [http://onestepback.org](http://onestepback.org)  
> -----------------------------------------------------------------  
> "Beware of bugs in the above code; I have only proved it correct,  
> not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)

---

<div class="post-metadata">

**Author:** ![Stefan\_Lang](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@Stefan\_Lang](https://rubytalk.org/u/Stefan_Lang)\
**Post date:** [10 September 2005 18:38 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/7 "2005-09-10T18:38:16Z")

</div>

Sorry for replying so late. Generally, it's possible to convert  
a Rakefile to an Rantfile without much work. AFAIK Rant has  
all major features of Rake plus:

\* Optional use of MD5 checksums instead of timestamps.  
\* Easy and portable tgz/zip file creation on Linux/MacOS X/Windows  
&nbsp;&nbsp;(and probably most other platforms where ruby runs).  
\* Create a script, tailored to the needs of a project, which  
&nbsp;&nbsp;can be used instead of an Rant installation  
&nbsp;&nbsp;=\> Distribute this script with your project and users  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and other developers don't need an Rant installation.  
\* It is possible to split up the build specification into  
&nbsp;&nbsp;multiple files in different directories.  
&nbsp;&nbsp;(=\> no such thing as "recursive make" necessary).  
&nbsp;&nbsp;This feature will be highly improved with the next release.  
\* and a few more...

Kind regards,  
&nbsp;&nbsp;Stefan

> **···**
>
> On Tuesday 06 September 2005 15:56, Stu George wrote:
> 
> > On Tue, 6 Sep 2005 09:44:43 +0900, Jim Weirich \> \<jim@weirichhouse.org\> \> \> wrote:  
> > \>= Rake 0.6.0 Released  
> > \>  
> > \>Its time for some long requested enhancements and lots of bug  
> > \> fixes .. And a whole new web page.
> > 
> > hiya, a dumb question, what is the difference between rant and  
> > rake? they look the same?

---

<div class="post-metadata">

**Author:** ![Jim\_Weirich1](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Jim\_Weirich1](https://rubytalk.org/u/Jim_Weirich1)\
**Post date:** [15 September 2005 12:04 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/8 "2005-09-15T12:04:33Z")

</div>

Sorry ... it seems that the database was wedged ... It is up and running  
again.

> **···**
>
> On Thursday 15 September 2005 06:11 am, Han Holl wrote:
> 
> > Hi Jim (and list),
> > 
> > [cut]
> > 
> > \> Check out the new documentation at: [http://docs.rubyrake.org](http://docs.rubyrake.org)
> > 
> > This site seems to be down (two days already)
> 
> --  
> -- Jim Weirich jim@weirichhouse.org [http://onestepback.org](http://onestepback.org)  
> -----------------------------------------------------------------  
> "Beware of bugs in the above code; I have only proved it correct,  
> not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)

---

<div class="post-metadata">

**Author:** ![Joel\_VanderWerf1](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@Joel\_VanderWerf1](https://rubytalk.org/u/Joel_VanderWerf1)\
**Post date:** [6 September 2005 05:21 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/9 "2005-09-06T05:21:22Z")

</div>

Jim Weirich wrote:

> > I do have libssl 0.9.7 installed, and the earlier rake installed ok.  
> > What could be causing this?
> 
> Sounds like a gem issue. The Rake gem is signed, but RubyGems is pretty  
> careful about continuing even when the ssl libraries are not available.
> 
> Try running the gem command with the --backtrace option so we can get a  
> stacktrace and locate the code causing the error.

$ gem update --backtrace  
Upgrading installed gems...  
Updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
Attempting remote upgrade of rake  
Attempting remote installation of 'rake'  
ERROR: While executing gem ... (Gem::Exception)  
&nbsp;&nbsp;&nbsp;&nbsp;SSL is not installed on this system  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/gem\_openssl.rb:21:in  
`ensure\_ssl\_available'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/package.rb:512:in `initialize'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/package.rb:481:in `each\_entry'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/package.rb:439:in `loop'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/package.rb:439:in `each\_entry'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/package.rb:424:in `each'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/package.rb:481:in `initialize'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in `new'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in `new'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/package.rb:580:in `open\_from\_io'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/package.rb:799:in `open\_from\_io'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/format.rb:53:in `from\_io'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/format.rb:41:in  
`from\_file\_by\_path'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/installer.rb:57:in `install'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/remote\_installer.rb:407:in  
`install'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/gem\_commands.rb:195:in `execute'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/gem\_commands.rb:153:in `each'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/gem\_commands.rb:153:in `execute'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/gem\_commands.rb:781:in `execute'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/gem\_commands.rb:777:in `each'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/gem\_commands.rb:777:in `execute'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/command.rb:49:in `invoke'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/cmd\_manager.rb:94:in  
`process\_args'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/cmd\_manager.rb:67:in `run'  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/gem\_runner.rb:13:in `run'  
/usr/local/bin/gem:17

> **···**
>
> > On Tuesday 06 September 2005 12:00 am, Joel VanderWerf wrote:
> 
> --  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

---

<div class="post-metadata">

**Author:** ![Schlu\_Do](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@Schlu\_Do](https://rubytalk.org/u/Schlu_Do)\
**Post date:** [6 September 2005 12:31 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/10 "2005-09-06T12:31:27Z")

</div>

Hi,

> Sounds like a gem issue. The Rake gem is signed, but RubyGems is pretty  
> careful about continuing even when the ssl libraries are not available.

I got the same problem here on a Debian/MIPSel (a Buffalo LinkStation)  
box. SSL is installed, but I was missing the Ruby/SSL bindings. Doing an  
'apt-get install libopenssl-ruby' did help (although it complained about  
the rdoc).

On my Mac (10.4.2 Tiger) I didn't run into any problems with Ruby  
installed via DarwinPorts.

Regards,

Dominik.

> **···**
>
> Jim Weirich \<jim@weirichhouse.org\> wrote:

---

<div class="post-metadata">

**Author:** ![stu3](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@stu3](https://rubytalk.org/u/stu3)\
**Post date:** [12 September 2005 02:06 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/11 "2005-09-12T02:06:31Z")

</div>

Thanks for the reply. I only asked as I currently use rant, and I  
wondered since they seem so similar.

the recursive thing / subdirs thing had some big bugs in the early  
0.4.something bus 0.4.4 has been great so far.. didnt know about he  
md5 thing.. as I've hit a nasty rant timestamp bug that caused me to  
change the way I do a build on my current project. 😕

i better go look it up...

-Stu

---

<div class="post-metadata">

**Author:** ![Scott\_Mathieson1](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Scott\_Mathieson1](https://rubytalk.org/u/Scott_Mathieson1)\
**Post date:** [15 September 2005 12:17 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/12 "2005-09-15T12:17:40Z")

</div>

Can somebody please tell me how to unsubscribe from this list?

---

<div class="post-metadata">

**Author:** ![Jim\_Weirich1](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Jim\_Weirich1](https://rubytalk.org/u/Jim_Weirich1)\
**Post date:** [6 September 2005 11:42 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/13 "2005-09-06T11:42:54Z")

</div>

Yeah, its the fact that the gem is signed and RubyGems is insisting on having  
SSL available. I think it should only do that if the security policy  
requires it, but that's a gems issue that needs looking into.

So, what to do?

(1) If you thought you had SSL, and you don't, then you probably should look  
into that.

(2) If you want the latest rake no matter what, I put out an unsigned version  
of the gem on my betagem site labelled version 0.6.1. You can get it with:

&nbsp;&nbsp;&nbsp;&nbsp;gem install rake --source [http://onestepback.org/betagems](http://onestepback.org/betagems)

> **···**
>
> On Tuesday 06 September 2005 01:21 am, Joel VanderWerf wrote:
> 
> > Jim Weirich wrote:  
> > \> On Tuesday 06 September 2005 12:00 am, Joel VanderWerf wrote:  
> > \>\>I do have libssl 0.9.7 installed, and the earlier rake installed ok.  
> > \>\>What could be causing this?  
> > \>  
> > \> Sounds like a gem issue. The Rake gem is signed, but RubyGems is pretty  
> > \> careful about continuing even when the ssl libraries are not available.  
> > \>  
> > \> Try running the gem command with the --backtrace option so we can get a  
> > \> stacktrace and locate the code causing the error.
> 
> --  
> -- Jim Weirich jim@weirichhouse.org [http://onestepback.org](http://onestepback.org)  
> -----------------------------------------------------------------  
> "Beware of bugs in the above code; I have only proved it correct,  
> not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)

---

<div class="post-metadata">

**Author:** ![Stefan\_Lang](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@Stefan\_Lang](https://rubytalk.org/u/Stefan_Lang)\
**Post date:** [12 September 2005 19:51 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/14 "2005-09-12T19:51:51Z")

</div>

> Thanks for the reply. I only asked as I currently use rant, and I  
> wondered since they seem so similar.
> 
> the recursive thing / subdirs thing had some big bugs in the early  
> 0.4.something bus 0.4.4 has been great so far.. didnt know about  
> he md5 thing.. as I've hit a nasty rant timestamp bug that caused  
> me to change the way I do a build on my current project. 😕

Please write a bug report! If I can reproduce the bug, I can fix  
it for the next release.

> i better go look it up...

To use it, just put

&nbsp;&nbsp;&nbsp;&nbsp;import "md5"

at the top of an Rantfile to use MD5 checksums instead of timestamps.

Kind regards,  
&nbsp;&nbsp;Stefan

> **···**
>
> On Monday 12 September 2005 04:06, stu wrote:

---

<div class="post-metadata">

**Author:** ![Brian\_Schroder1](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@Brian\_Schroder1](https://rubytalk.org/u/Brian_Schroder1)\
**Post date:** [19 September 2005 10:33 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/15 "2005-09-19T10:33:58Z")

</div>

> Can somebody please tell me how to unsubscribe from this list?

From the ML Helpfile:

> To unsubscribe ML \<ruby-talk@ruby-lang.org\>, send "unsubscribe" in

the mail body

> to the address \<ruby-talk-ctl@ruby-lang.org\>.

hth,

brian

> **···**
>
> On 15/09/05, Scott Mathieson \<uberkorp@uberkorp.co.uk\> wrote:
> 
> --  
> [http://ruby.brian-schroeder.de/](http://ruby.brian-schroeder.de/)
> 
> Stringed instrument chords: [http://chordlist.brian-schroeder.de/](http://chordlist.brian-schroeder.de/)

---

<div class="post-metadata">

**Author:** ![Joel\_VanderWerf1](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@Joel\_VanderWerf1](https://rubytalk.org/u/Joel_VanderWerf1)\
**Post date:** [7 September 2005 03:39 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/16 "2005-09-07T03:39:04Z")

</div>

Jim Weirich wrote:

> Yeah, its the fact that the gem is signed and RubyGems is insisting on having  
> SSL available. I think it should only do that if the security policy  
> requires it, but that's a gems issue that needs looking into.
> 
> So, what to do?
> 
> (1) If you thought you had SSL, and you don't, then you probably should look  
> into that.

That's it. My openssl.so was not installed correctly. It built ok in  
ext/openssl, but I had to disable the RUBYOPT=rubygems for it to install  
(and then gem update was able to install rake-0.6.0). With  
RUBYOPT=rubygems, I was getting this:

$ make install  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/security.rb:18: uninitialized  
constant OpenSSL::Digest::SHA1 (NameError)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:397:in `require'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:397  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/lib/ruby/site\_ruby/1.8/ubygems.rb:4:in `require'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/lib/ruby/site\_ruby/1.8/ubygems.rb:4  
make: \*\*\* [/usr/local/lib/ruby/site\_ruby/1.8/i686-linux/openssl.so] Error 1

> **···**
>
> --  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

---

<div class="post-metadata">

**Author:** ![Jim\_Weirich1](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Jim\_Weirich1](https://rubytalk.org/u/Jim_Weirich1)\
**Post date:** [7 September 2005 04:04 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/17 "2005-09-07T04:04:06Z")

</div>

Thanks for the feedback. RubyGems assumes that if you can successfully  
require the openssl library, then ssl is available. Unfortunately, in the  
half installed state you were in, the openssl.so library was available but  
not the ruby portion (openssl.rb). So the require succeeded, fooling  
RubyGems into thinking the entire ssl infrastructure was in place when it was  
not.

I'll put a fix in for that.

> **···**
>
> On Tuesday 06 September 2005 11:39 pm, Joel VanderWerf wrote:
> 
> > Jim Weirich wrote:  
> > \> Yeah, its the fact that the gem is signed and RubyGems is insisting on  
> > \> having SSL available. I think it should only do that if the security  
> > \> policy requires it, but that's a gems issue that needs looking into.  
> > \>  
> > \> So, what to do?  
> > \>  
> > \> (1) If you thought you had SSL, and you don't, then you probably should  
> > \> look into that.
> > 
> > That's it. My openssl.so was not installed correctly. It built ok in  
> > ext/openssl, but I had to disable the RUBYOPT=rubygems for it to install  
> > (and then gem update was able to install rake-0.6.0). With  
> > RUBYOPT=rubygems, I was getting this:
> > 
> > $ make install  
> > /usr/local/lib/ruby/site\_ruby/1.8/rubygems/security.rb:18: uninitialized  
> > constant OpenSSL::Digest::SHA1 (NameError)  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:397:in `require'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:397  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/lib/ruby/site\_ruby/1.8/ubygems.rb:4:in `require'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/lib/ruby/site\_ruby/1.8/ubygems.rb:4  
> > make: \*\*\* [/usr/local/lib/ruby/site\_ruby/1.8/i686-linux/openssl.so] Error 1
> 
> --  
> -- Jim Weirich jim@weirichhouse.org [http://onestepback.org](http://onestepback.org)  
> -----------------------------------------------------------------  
> "Beware of bugs in the above code; I have only proved it correct,  
> not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)

---

<div class="post-metadata">

**Author:** ![Chris\_Martin](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@Chris\_Martin](https://rubytalk.org/u/Chris_Martin)\
**Post date:** [7 September 2005 19:33 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/18 "2005-09-07T19:33:41Z")

</div>

To clarify for the slow and/or nubys who might get this error when  
installing and/or updating gems for rails.

The ruby openssl library needs to be installed. eg, debian needs  
libopenssl-ruby1.8

May be the error could be made clearer, I was sitting there going,  
"but it IS installed!" in much more expletive words. 😉  
I even read this thread last night, but your explanation didn't click  
until I double checked it today.

> **···**
>
> On 9/7/05, Jim Weirich \<jim@weirichhouse.org\> wrote:
> 
> > On Tuesday 06 September 2005 11:39 pm, Joel VanderWerf wrote:  
> > \> Jim Weirich wrote:  
> > \> \> Yeah, its the fact that the gem is signed and RubyGems is insisting on  
> > \> \> having SSL available. I think it should only do that if the security  
> > \> \> policy requires it, but that's a gems issue that needs looking into.  
> > \> \>  
> > \> \> So, what to do?  
> > \> \>  
> > \> \> (1) If you thought you had SSL, and you don't, then you probably should  
> > \> \> look into that.  
> > \>  
> > \> That's it. My openssl.so was not installed correctly. It built ok in  
> > \> ext/openssl, but I had to disable the RUBYOPT=rubygems for it to install  
> > \> (and then gem update was able to install rake-0.6.0). With  
> > \> RUBYOPT=rubygems, I was getting this:  
> > \>  
> > \> $ make install  
> > \> /usr/local/lib/ruby/site\_ruby/1.8/rubygems/security.rb:18: uninitialized  
> > \> constant OpenSSL::Digest::SHA1 (NameError)  
> > \> from /usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:397:in `require'  
> > \> from /usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:397  
> > \> from /usr/local/lib/ruby/site\_ruby/1.8/ubygems.rb:4:in `require'  
> > \> from /usr/local/lib/ruby/site\_ruby/1.8/ubygems.rb:4  
> > \> make: \*\*\* [/usr/local/lib/ruby/site\_ruby/1.8/i686-linux/openssl.so] Error 1
> > 
> > Thanks for the feedback. RubyGems assumes that if you can successfully  
> > require the openssl library, then ssl is available. Unfortunately, in the  
> > half installed state you were in, the openssl.so library was available but  
> > not the ruby portion (openssl.rb). So the require succeeded, fooling  
> > RubyGems into thinking the entire ssl infrastructure was in place when it was  
> > not.
> > 
> > I'll put a fix in for that.
> > 
> > --  
> > -- Jim Weirich jim@weirichhouse.org [http://onestepback.org](http://onestepback.org)  
> > -----------------------------------------------------------------  
> > "Beware of bugs in the above code; I have only proved it correct,  
> > not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)
> 
> --  
> Chris Martin  
> Web Developer  
> Open Source & Web Standards Advocate
> 
> > **[Chriscodes.com is for sale | HugeDomains](https://www.hugedomains.com/domain_profile.cfm?d=chriscodes.com)**
> >
> > Painless, quick delivery of your domain name. Fast and professional service.

---

<div class="post-metadata">

**Author:** ![Joel\_VanderWerf1](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@Joel\_VanderWerf1](https://rubytalk.org/u/Joel_VanderWerf1)\
**Post date:** [7 September 2005 22:22 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/19 "2005-09-07T22:22:21Z")

</div>

Chris Martin wrote:  
...

> To clarify for the slow and/or nubys who might get this error when  
> installing and/or updating gems for rails.
> 
> The ruby openssl library needs to be installed. eg, debian needs  
> libopenssl-ruby1.8

If you're not using packages and are building ruby from source, you can do

export RUBYOPT=

in your shell before building ruby. Then, if you have openssl installed  
(not the ruby binding--the real openssl lib), the ruby openssl extension  
in the ext/ dir will build and install. Then you can have

export RUBYOPT=rubygems

or whatever.

But I think Jim's fix to RubyGems will get around this entirely.

> **···**
>
> --  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

---

<div class="post-metadata">

**Author:** ![Jim\_Weirich1](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Jim\_Weirich1](https://rubytalk.org/u/Jim_Weirich1)\
**Post date:** [7 September 2005 22:37 UTC](https://rubytalk.org/t/rake-0-6-0-released/20625/20 "2005-09-07T22:37:44Z")

</div>

Joel VanderWerf said:

> Chris Martin wrote:  
> ...
> 
> > To clarify for the slow and/or nubys who might get this error when  
> > installing and/or updating gems for rails.
> > 
> > The ruby openssl library needs to be installed. eg, debian needs  
> > libopenssl-ruby1.8
> 
> If you're not using packages and are building ruby from source, you can do
> 
> export RUBYOPT=
> 
> in your shell before building ruby. Then, if you have openssl installed  
> (not the ruby binding--the real openssl lib), the ruby openssl extension  
> in the ext/ dir will build and install. Then you can have
> 
> export RUBYOPT=rubygems
> 
> or whatever.
> 
> But I think Jim's fix to RubyGems will get around this entirely.

The patch in RubyGems CVS will address this exact problem. We still need  
to fix the gem command so that it can install signed gems without SSL  
installed ... but I don't think that will be a hard problem.

> **···**
>
> --  
> -- Jim Weirich jim@weirichhouse.org [http://onestepback.org](http://onestepback.org)  
> -----------------------------------------------------------------  
> "Beware of bugs in the above code; I have only proved it correct,  
> not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)
