# \[ANN\] dev-utils v1.0

**URL:** <https://rubytalk.org/t/ann-dev-utils-v1-0/14034>\
**Category:** ruby-talk\
**Created:** [7 October 2004 18:40 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034 "2004-10-07T18:40:34Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gavin\_Sinclair](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Gavin\_Sinclair](https://rubytalk.org/u/Gavin_Sinclair)\
**Post date:** [7 October 2004 18:40 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034/1 "2004-10-07T18:40:34Z")

</div>

Hi all,

It's with great relief that I finally release dev-utils 1.0. Never  
have I put so much effort into a project with so little code. (That's  
because the effort was wasted on documentation...)

It's gem-only at the moment. Within a few days, I'll release 1.0.1  
complete with tarball, and see its way clear to the RPA. For now,  
though, it's 4am and I'm off to bed.

BTW, it depends on newly-released extensions-0.5. I'll be in touch,  
Mauricio 🙂

Cheers,  
Gavin

About dev-utils:

&nbsp;&nbsp;With dev-utils/debug you can:  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Escape to an IRB session from a running program.

&nbsp;&nbsp;breakpoint  
&nbsp;&nbsp;breakpoint 'Person#name' # Identify it when it happens.  
&nbsp;&nbsp;breakpoint { @name } # Default return value.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Access a no-config logfile for debugging.

&nbsp;&nbsp;debug 'Database connection established' # Look in ./debug.log

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Trace expressions in that logfile.

&nbsp;&nbsp;trace 'x + y'  
&nbsp;&nbsp;trace 'Process.pid'  
&nbsp;&nbsp;trace 'names', :pp # Pretty-print.  
&nbsp;&nbsp;trace 'page\_structure', :yaml # YAML representation.

Home page: [http://dev-utils.rubyforge.org](http://dev-utils.rubyforge.org)  
Project page: [http://rubyforge.org/projects/dev-utils](http://rubyforge.org/projects/dev-utils)  
Download: [http://rubyforge.org/frs/?group\_id=270](http://rubyforge.org/frs/?group_id=270)  
API Documentation: [http://dev-utils.rubyforge.org/api](http://dev-utils.rubyforge.org/api)

---

<div class="post-metadata">

**Author:** ![Bill\_Atkins](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@Bill\_Atkins](https://rubytalk.org/u/Bill_Atkins)\
**Post date:** [7 October 2004 19:46 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034/2 "2004-10-07T19:46:28Z")

</div>

Wow, breakpoint looks \_really\_ useful. I await RPA-ification.

Bill

> **···**
>
> On Fri, 8 Oct 2004 03:40:34 +0900, Gavin Sinclair \<gsinclair@soyabean.com.au\> wrote:
> 
> > Hi all,
> > 
> > It's with great relief that I finally release dev-utils 1.0. Never  
> > have I put so much effort into a project with so little code. (That's  
> > because the effort was wasted on documentation...)
> > 
> > It's gem-only at the moment. Within a few days, I'll release 1.0.1  
> > complete with tarball, and see its way clear to the RPA. For now,  
> > though, it's 4am and I'm off to bed.
> > 
> > BTW, it depends on newly-released extensions-0.5. I'll be in touch,  
> > Mauricio 🙂
> > 
> > Cheers,  
> > Gavin
> > 
> > About dev-utils:
> > 
> > &nbsp;&nbsp;With dev-utils/debug you can:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Escape to an IRB session from a running program.
> > 
> > &nbsp;&nbsp;breakpoint  
> > &nbsp;&nbsp;breakpoint 'Person#name' # Identify it when it happens.  
> > &nbsp;&nbsp;breakpoint { @name } # Default return value.
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Access a no-config logfile for debugging.
> > 
> > &nbsp;&nbsp;debug 'Database connection established' # Look in ./debug.log
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Trace expressions in that logfile.
> > 
> > &nbsp;&nbsp;trace 'x + y'  
> > &nbsp;&nbsp;trace 'Process.pid'  
> > &nbsp;&nbsp;trace 'names', :pp # Pretty-print.  
> > &nbsp;&nbsp;trace 'page\_structure', :yaml # YAML representation.
> > 
> > Home page: [http://dev-utils.rubyforge.org](http://dev-utils.rubyforge.org)  
> > Project page: [http://rubyforge.org/projects/dev-utils](http://rubyforge.org/projects/dev-utils)  
> > Download: [http://rubyforge.org/frs/?group\_id=270](http://rubyforge.org/frs/?group_id=270)  
> > API Documentation: [http://dev-utils.rubyforge.org/api](http://dev-utils.rubyforge.org/api)

---

<div class="post-metadata">

**Author:** ![Aredridel](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@Aredridel](https://rubytalk.org/u/Aredridel)\
**Post date:** [7 October 2004 21:12 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034/3 "2004-10-07T21:12:21Z")

</div>

Totally looking forward to the tarball and RPA releases. .. I still  
can't get RubyGems to work.

---

<div class="post-metadata">

**Author:** ![Mauricio\_Fernndez](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Mauricio\_Fernndez](https://rubytalk.org/u/Mauricio_Fernndez)\
**Post date:** [10 October 2004 23:19 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034/4 "2004-10-10T23:19:57Z")

</div>

I've been waiting until the weekend was over to see if you released  
1.0.1 🙂

I know several people were waiting for this to enter RPA so I  
tried to repackage the gem. I have to thank you for following  
(maybe unknowingly) most of the good practices described in  
[http://rpa-base.rubyforge.org/wiki/wiki.cgi?GoodPractices](http://rpa-base.rubyforge.org/wiki/wiki.cgi?GoodPractices) ; this made  
repackaging your gem easier.

Plz find below a minor patch I had to apply to make the documentation  
generator work (I have removed the RPA specific part).

batsman@tux-chan:~/src/rpa/ports$ rpa update --no-proxy  
Getting port info from [http://rpa-base.rubyforge.org/ports/ports.info\](http://rpa-base.rubyforge.org/ports/ports.info%5C).  
100% [========================================] 88230 bytes

Ports added since the last 'rpa update'  
dev-utils 1.0-1 Debugging utilities: breakpoints, debugging, and tracing.

(the following was run with an early version of the 0.3 branch after install)  
batsman@tux-chan:~/src/rpa/rpa-base$ rpa show dev-utils  
Port: dev-utils  
Classification: Top.Library.Development  
Available-Version: 1.0-1  
Installed-Version: 1.0-1  
RPA-Version: 0.0  
Updated: Mon, 11 Oct 2004 00:43:25 +0200  
Source-URL: [http://rpa-base.rubyforge.org/ports/dev-utils\_1.0-1.rps](http://rpa-base.rubyforge.org/ports/dev-utils_1.0-1.rps)  
Build-Requires: cstemplate, redcloth  
Requires: extensions  
Description:  
&nbsp;&nbsp;Debugging utilities: breakpoints, debugging, and tracing.  
&nbsp;&nbsp;.  
&nbsp;&nbsp;dev-utils provides utilites to assist the process of developing Ruby  
&nbsp;&nbsp;programs. At the moment, the target areas are debugging and unit testing.

batsman@tux-chan:~/src/rpa/ports$ rpa install dev-utils --no-proxy  
Installing ports  
Getting port dev-utils from [http://rpa-base.rubyforge.org/ports/dev-utils\_1.0-1.rps\](http://rpa-base.rubyforge.org/ports/dev-utils_1.0-1.rps%5C).  
100% [========================================] 30720 bytes  
Building dev-utils (1.0-1).  
Installing pre-dependencies cstemplate redcloth.  
Reusing cached package /home/batsman/usr/lib/ruby/rpa0.0/packages/cstemplate\_0.5.1-3\_i686-pc-linux-gnu.rpa.  
Package cstemplate unchanged.  
Reusing cached package /home/batsman/usr/lib/ruby/rpa0.0/packages/redcloth\_2.0.11-2\_i686-pc-linux-gnu.rpa.  
Package redcloth unchanged.  
Building dependencies extensions.  
Generating RI data files.  
Generating RDoc HTML documentation.  
Calculating MD5 digests.  
Building package in dev-utils\_1.0-1\_i686-pc-linux-gnu.rpa.  
&nbsp;&nbsp;Installing dev-utils  
Reusing cached package /home/batsman/usr/lib/ruby/rpa0.0/packages/dev-utils\_1.0-1\_i686-pc-linux-gnu.rpa.  
Installing dependencies extensions.  
Starting lightweight (metadata only) transaction for dev-utils  
Reusing cached package /home/batsman/usr/lib/ruby/rpa0.0/packages/extensions\_0.5.0-1\_i686-pc-linux-gnu.rpa.  
Package extensions unchanged.  
Checking for file conflicts in dev-utils.  
Starting transaction for dev-utils  
Package /home/batsman/usr/lib/ruby/rpa0.0/packages/dev-utils\_1.0-1\_i686-pc-linux-gnu.rpa unpacked.  
Finished transaction for dev-utils  
Starting lightweight (metadata only) transaction for dev-utils  
Finished lightweight (metadata only) transaction for dev-utils  
Finished lightweight (metadata only) transaction for dev-utils  
Committed changes

As for the (really minor 🙂 patch:

--- etc/doc/generate.rb (revision 974)  
+++ etc/doc/generate.rb (working copy)  
@@ -9,10 +9,10 @@  
# The simple function +generate\_document+ does this.

> **···**
>
> On Fri, Oct 08, 2004 at 03:40:34AM +0900, Gavin Sinclair wrote:
> 
> > Hi all,
> > 
> > It's with great relief that I finally release dev-utils 1.0. Never  
> > have I put so much effort into a project with so little code. (That's  
> > because the effort was wasted on documentation...)
> > 
> > It's gem-only at the moment. Within a few days, I'll release 1.0.1  
> > complete with tarball, and see its way clear to the RPA. For now,  
> > though, it's 4am and I'm off to bed.
> 
> #
> 
> require 'rubygems'  
> require 'redcloth'  
> require 'extensions/io'  
> require 'celsoft.com/template'  
> +require 'pathname'
> 
> &nbsp;&nbsp;&nbsp;#  
> &nbsp;&nbsp;&nbsp;# Takes the Textile file from +path+ (relative to ~/Projects/dev-utils) and generates an HTML
> 
> --  
> Running Debian GNU/Linux Sid (unstable)  
> batsman dot geo at yahoo dot com

---

<div class="post-metadata">

**Author:** ![Brian\_Palmer](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@Brian\_Palmer](https://rubytalk.org/u/Brian_Palmer)\
**Post date:** [11 October 2004 04:09 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034/5 "2004-10-11T04:09:55Z")

</div>

I love it, the breakpoints feature is going to get heavy use right here, let me tell you. As a quick note, you might put a mention in your docs for us poor Windows Rubyists that ^Z is in fact the EOF character in Windows/DOS, not ^D. Cheers.

- Brian Palmer

Gavin Sinclair wrote:

> **···**
>
> > Hi all,
> > 
> > It's with great relief that I finally release dev-utils 1.0. Never  
> > have I put so much effort into a project with so little code. (That's  
> > because the effort was wasted on documentation...)
> > 
> > It's gem-only at the moment. Within a few days, I'll release 1.0.1  
> > complete with tarball, and see its way clear to the RPA. For now,  
> > though, it's 4am and I'm off to bed.
> > 
> > BTW, it depends on newly-released extensions-0.5. I'll be in touch,  
> > Mauricio 🙂
> > 
> > Cheers,  
> > Gavin
> > 
> > About dev-utils:
> > 
> > With dev-utils/debug you can:  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Escape to an IRB session from a running program.
> > 
> > breakpoint  
> > breakpoint 'Person#name' # Identify it when it happens.  
> > breakpoint { @name } # Default return value.
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;\* Access a no-config logfile for debugging.
> > 
> > debug 'Database connection established' # Look in ./debug.log
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;\* Trace expressions in that logfile.
> > 
> > trace 'x + y'  
> > trace 'Process.pid'  
> > trace 'names', :pp # Pretty-print.  
> > trace 'page\_structure', :yaml # YAML representation.
> > 
> > Home page: [http://dev-utils.rubyforge.org](http://dev-utils.rubyforge.org)  
> > Project page: [http://rubyforge.org/projects/dev-utils](http://rubyforge.org/projects/dev-utils)  
> > Download: [http://rubyforge.org/frs/?group\_id=270](http://rubyforge.org/frs/?group_id=270)  
> > API Documentation: [http://dev-utils.rubyforge.org/api](http://dev-utils.rubyforge.org/api)

---

<div class="post-metadata">

**Author:** ![Chad\_Fowler4](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@Chad\_Fowler4](https://rubytalk.org/u/Chad_Fowler4)\
**Post date:** [7 October 2004 22:47 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034/6 "2004-10-07T22:47:28Z")

</div>

What issue are you having? I saw that you were joining the rubygems  
developers list. Can you post your problem there? I apologize if  
it's been mentioned and overlooked. It's been a hectic several weeks  
leading up to RubyConf.

Chad

> **···**
>
> On Fri, 8 Oct 2004 06:12:21 +0900, Aredridel \<aredridel@gmail.com\> wrote:
> 
> > Totally looking forward to the tarball and RPA releases. .. I still  
> > can't get RubyGems to work.

---

<div class="post-metadata">

**Author:** ![Chad\_Fowler4](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@Chad\_Fowler4](https://rubytalk.org/u/Chad_Fowler4)\
**Post date:** [11 October 2004 00:45 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034/7 "2004-10-11T00:45:30Z")

</div>

So, Mauricio, this is a repackage to RPA of a gem? Any  
rubygems-related issues in the process? Did the fact that there was  
already some metadata present help you at all?

I'm still interested in the possibility to script rubygems -\> rpa-base  
conversion and would like to hear your stories.

Chad

> **···**
>
> On Mon, 11 Oct 2004 08:19:57 +0900, Mauricio Fernández \<batsman.geo@yahoo.com\> wrote:
> 
> > I know several people were waiting for this to enter RPA so I  
> > tried to repackage the gem. I have to thank you for following  
> > (maybe unknowingly) most of the good practices described in  
> > [http://rpa-base.rubyforge.org/wiki/wiki.cgi?GoodPractices](http://rpa-base.rubyforge.org/wiki/wiki.cgi?GoodPractices) ; this made  
> > repackaging your gem easier.

---

<div class="post-metadata">

**Author:** ![Gavin\_Sinclair](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Gavin\_Sinclair](https://rubytalk.org/u/Gavin_Sinclair)\
**Post date:** [11 October 2004 05:35 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034/8 "2004-10-11T05:35:36Z")

</div>

> > It's gem-only at the moment. Within a few days, I'll release 1.0.1  
> > complete with tarball, and see its way clear to the RPA. For now,  
> > though, it's 4am and I'm off to bed.

> I've been waiting until the weekend was over to see if you released  
> 1.0.1 🙂

And I was waiting for your comments (not necessarily your actions)  
before doing so 🙂 Well, that's my excuse and I'm sticking to it.

> I know several people were waiting for this to enter RPA so I  
> tried to repackage the gem. I have to thank you for following  
> (maybe unknowingly) most of the good practices described in  
> [http://rpa-base.rubyforge.org/wiki/wiki.cgi?GoodPractices](http://rpa-base.rubyforge.org/wiki/wiki.cgi?GoodPractices) ; this made  
> repackaging your gem easier.

I try my best 🙂

> Plz find below a minor patch I had to apply to make the documentation  
> generator work (I have removed the RPA specific part).

This makes me curious. Reading through the RPA transcript, it's not  
clear that the non-RDoc documentation is actually built. There's  
copious details of everything else, yet no mention of that. Yet the  
dev-utils RPA, as opposed to the dev-utils gem, specifies a dependency  
on cstemplate and redcloth. Are they actually used?

This is interesting as a matter of packaging policy. I'd like to  
assist users in building local documentation, but in this era of  
universal Internet access, people (I think) tend to just hit the  
website, which has exactly the same information.

Cheers,  
Gavin

BTW, I can't install dev-utils with rpa-base 0.2.2. I know earlier  
versions had an issue with Cygwin, but thought that was resolved.  
Besides, I don't see any error messages during the install:

$ rpa install dev-utils  
Installing ports  
Getting port dev-utils from [http://rpa-base.rubyforge.org/ports/dev-utils\_1.0-1.rps\](http://rpa-base.rubyforge.org/ports/dev-utils_1.0-1.rps%5C).  
100% [========================================] 30720 bytes  
Building dev-utils (1.0-1).  
Installing pre-dependencies cstemplate redcloth.  
Reusing cached package /usr/local/lib/ruby/rpa0.0/packages/cstemplate\_0.5.1-3\_i686-pc-cygwin.rpa.  
Starting lightweight (metadata only) transaction for cstemplate  
Checking for file conflicts in cstemplate.  
Starting transaction for cstemplate  
Package /usr/local/lib/ruby/rpa0.0/packages/cstemplate\_0.5.1-3\_i686-pc-cygwin.rpa unpacked.  
Finished transaction for cstemplate  
Finished lightweight (metadata only) transaction for cstemplate  
Reusing cached package /usr/local/lib/ruby/rpa0.0/packages/redcloth\_2.0.11-2\_i686-pc-cygwin.rpa.  
Starting lightweight (metadata only) transaction for redcloth  
Checking for file conflicts in redcloth.  
Starting transaction for redcloth  
Package /usr/local/lib/ruby/rpa0.0/packages/redcloth\_2.0.11-2\_i686-pc-cygwin.rpa unpacked.  
Finished transaction for redcloth  
Finished lightweight (metadata only) transaction for redcloth  
Building dependencies extensions.  
/usr/local/lib/ruby/site\_ruby/1.8/rpa/helper.rb:513: warning: Insecure world writable dir /d/Softwar  
e/MikTex/Main/miktex, mode 040777  
Generating RI data files.  
Generating RDoc HTML documentation.

$ rpa list  
Installed ports:  
4 stopped transaction(s):  
cstemplate 0.5.1-3 metadata  
cstemplate 0.5.1-3 cleanup  
redcloth 2.0.11-2 metadata  
redcloth 2.0.11-2 cleanup

Restoring state...  
Restoring state...  
Restoring state...  
Restoring state...  
rpa-base 0.2.2-1 A port/package manager for the Ruby Production Archive (RPA)

> **···**
>
> On Monday, October 11, 2004, 9:19:57 AM, Mauricio wrote:

---

<div class="post-metadata">

**Author:** ![Mauricio\_Fernndez](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Mauricio\_Fernndez](https://rubytalk.org/u/Mauricio_Fernndez)\
**Post date:** [11 October 2004 01:59 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034/9 "2004-10-11T01:59:16Z")

</div>

> \>  
> \> I know several people were waiting for this to enter RPA so I  
> \> tried to repackage the gem. I have to thank you for following  
> \> (maybe unknowingly) most of the good practices described in  
> \> [http://rpa-base.rubyforge.org/wiki/wiki.cgi?GoodPractices](http://rpa-base.rubyforge.org/wiki/wiki.cgi?GoodPractices) ; this made  
> \> repackaging your gem easier.  
> \>
> 
> So, Mauricio, this is a repackage to RPA of a gem? Any  
> rubygems-related issues in the process?

As I said above, the process was relatively easy because Gavin followed  
many of the good practices documented in rpa-base's wiki. This doesn't  
mean that the conversion was automatic (or could be automated for the  
matter), though. There were dependencies on RubyGems I had to remove,  
and the documentation was generated with a custom script so I had to  
adapt it; I also had to discover the "build dependencies" (I found them  
in the documentation later) and fix some issues...

> Did the fact that there was already some metadata present help you at all?

Honestly, not really. The only piece of metadata I reused was  
'Debugging utilities: breakpoints, debugging, and tracing.'. Since that  
is not an acceptable description in RPA, I had to look for a better one  
elsewhere. As far as I'm concerned, the rest of the metadata (with  
the exception of the author, dep, email and homepage) consists only of  
implementation details of RubyGems and is hence useless to me:  
&nbsp;&nbsp;s.description = s.summary  
&nbsp;&nbsp;s.files = FileList['[A-Z]\*', '{etc,examples,lib,test}/\*\*/\*'].to\_a  
&nbsp;&nbsp;s.require\_path = 'lib'  
&nbsp;&nbsp;s.autorequire = nil  
&nbsp;&nbsp;s.has\_rdoc = true  
&nbsp;&nbsp;s.extra\_rdoc\_files = FileList['\*.txt'].to\_a  
&nbsp;&nbsp;s.rdoc\_options \<\< '--main' \<\< 'README.txt' \<\< '--title' \<\< 'dev-utils API Documentation'  
&nbsp;&nbsp;s.test\_files =   
do not bring me that much useful information.

Moreover, it lacks information about the "build dependencies" (required  
to generate the documentation).

> I'm still interested in the possibility to script rubygems -\> rpa-base  
> conversion and would like to hear your stories.

The conversion of dev-utils was relatively easy, and yet impossible to  
automate. I had to read and understand the Rakefile and adapt  
documentation generation. Plus remove the dependency on RubyGems and  
correct the associated problems ("shadow requires").  
I would \*really\* love to see you come up with a script able to  
do what I did manually, but it would have to read and understand  
Rakefiles/documentation/etc so it's probably as hard a problem as you  
can get.

I'd like to remind you once again that the conversion involves much  
more than a simple change in the package format. In general, systems  
with a package manager have some associated policies, which determine  
the quality of packages in that context --- besides being just "legal"  
as far as the format it concerned. In the case of RubyGems, you have  
decided to keep it "policy free", which means that you just cannot target  
systems with a policy automatically, at least with the current metadata[1]:  
such a script would really have to be "intelligent" (say, comparable  
to a FreeBSD developer 🙂 to create policy-compliant packages/ports for  
other systems.

[1] if you managed to find a way to define the whole "gem build" process  
in the gemspec and hence REMOVE altogether the reliance on external  
processes, plus mark all files "semantically" (e.g.: example, test,  
documentation, configuration, shared data) AND standardize the build  
scripts, it could become possible. Note that the latter is essentially at  
least as hard as (and actually more difficult than) post-install scripts;  
so far, the only working design that could solve the latter completely is  
[http://rubyforge.org/pipermail/rubygems-developers/2004-October/001081.html](http://rubyforge.org/pipermail/rubygems-developers/2004-October/001081.html)  
as far as I know.

> **···**
>
> On Mon, Oct 11, 2004 at 09:45:30AM +0900, Chad Fowler wrote:
> 
> > On Mon, 11 Oct 2004 08:19:57 +0900, Mauricio Fernández \> \<batsman.geo@yahoo.com\> wrote:
> 
> --  
> Running Debian GNU/Linux Sid (unstable)  
> batsman dot geo at yahoo dot com

---

<div class="post-metadata">

**Author:** ![Alexander\_Kellett2](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@Alexander\_Kellett2](https://rubytalk.org/u/Alexander_Kellett2)\
**Post date:** [11 October 2004 09:23 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034/10 "2004-10-11T09:23:43Z")

</div>

> versions had an issue with Cygwin, but thought that was resolved.  
> Besides, I don't see any error messages during the install:

[snip]

> $ rpa install dev-utils

[snip]

> Generating RDoc HTML documentation.

umm thats totally freaky

looks like it just stops during the rdoc creation  
maybe ruby is segfaulting or something under cygwin?  
maybe --debug would provide some more information?

Alex

> **···**
>
> On Mon, Oct 11, 2004 at 02:35:36PM +0900, Gavin Sinclair wrote:

---

<div class="post-metadata">

**Author:** ![Mauricio\_Fernndez](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Mauricio\_Fernndez](https://rubytalk.org/u/Mauricio_Fernndez)\
**Post date:** [11 October 2004 18:58 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034/11 "2004-10-11T18:58:44Z")

</div>

> \> Plz find below a minor patch I had to apply to make the documentation  
> \> generator work (I have removed the RPA specific part).
> 
> This makes me curious. Reading through the RPA transcript, it's not  
> clear that the non-RDoc documentation is actually built. There's  
> copious details of everything else, yet no mention of that. Yet the  
> dev-utils RPA, as opposed to the dev-utils gem, specifies a dependency  
> on cstemplate and redcloth. Are they actually used?

They are 🙂 The generation of the other docs isn't reported because...  
well, I just didn't add anything to report it in the associated task \*g\*.  
Note that redcloth and cstemplate are "build dependencies", i.e. only  
needed to build the package. rpa-base knows that and can remove them  
afterwards since they are no longer needed.

> This is interesting as a matter of packaging policy. I'd like to  
> assist users in building local documentation, but in this era of  
> universal Internet access, people (I think) tend to just hit the  
> website, which has exactly the same information.

rpa-base can be used to install from local repositories (will have to  
document this though 🙂 when the user has got no internet connection...

> BTW, I can't install dev-utils with rpa-base 0.2.2.

Thank you for reporting the problem.  
I had failed to declare the "build dependency" on 'extensions'.

I believe the issue is solved in the newly uploaded dev-utils 1.0-2. I  
also solved the 'Win32 error 5', so the following should work:

&nbsp;&nbsp;&nbsp;rpa clean  
&nbsp;&nbsp;&nbsp;rpa update  
&nbsp;&nbsp;&nbsp;rpa install dev-utils

Please report any other problem you might experience; it is hard to  
get all details right, even when you've packaged quite some libs/apps  
before...

> **···**
>
> On Mon, Oct 11, 2004 at 02:35:36PM +0900, Gavin Sinclair wrote:
> 
> --  
> Running Debian GNU/Linux Sid (unstable)  
> batsman dot geo at yahoo dot com

---

<div class="post-metadata">

**Author:** ![Chad\_Fowler4](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@Chad\_Fowler4](https://rubytalk.org/u/Chad_Fowler4)\
**Post date:** [11 October 2004 03:07 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034/12 "2004-10-11T03:07:47Z")

</div>

> As I said above, the process was relatively easy because Gavin followed  
> many of the good practices documented in rpa-base's wiki.

So by that you mean to use obvious directory names, don't do anything  
fancy with test suites, and use rdoc for documentation. Is that it?  
Pretty much exactly what it says in the gems chapter of the Pickaxe,  
it turns out 😉

> This doesn't  
> mean that the conversion was automatic (or could be automated for the  
> matter), though. There were dependencies on RubyGems I had to remove,  
> and the documentation was generated with a custom script so I had to  
> adapt it; I also had to discover the "build dependencies" (I found them  
> in the documentation later) and fix some issues...

\<snip/\>

> Moreover, it lacks information about the "build dependencies" (required  
> to generate the documentation).

What do you mean by "build dependencies" in this context?

> I'd like to remind you once again that the conversion involves much  
> more than a simple change in the package format. In general, systems  
> with a package manager have some associated policies, which determine  
> the quality of packages in that context --- besides being just "legal"  
> as far as the format it concerned.

Obviously. But if you could run a script and have everything setup  
for an inspection/sign-off, I imagine it would make things easier. I  
guess it's really not worth the effort.

By "remove rubygems dependencies" are you saying you had to remove  
"require 'rubygems'" and a few "require\_gem" statements or was it  
something somehow more involved?

Chad

> **···**
>
> On Mon, 11 Oct 2004 10:59:16 +0900, Mauricio Fernández \<batsman.geo@yahoo.com\> wrote:

---

<div class="post-metadata">

**Author:** ![Gavin\_Sinclair](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Gavin\_Sinclair](https://rubytalk.org/u/Gavin_Sinclair)\
**Post date:** [11 October 2004 12:55 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034/13 "2004-10-11T12:55:25Z")

</div>

Here you go:

Generating RI data files.  
Generating RDoc HTML documentation.  
Running task RPA::Helper::Installman.  
Running task RPA::Helper::Installexamples.  
Running task RPA::Helper::Compress.  
Running task RPA::Helper::Installtests.  
Running task RPA::Helper::Installmodules.  
Running task RPA::Helper::Installexecutables.  
Running task RPA::Helper::Installextensions.  
Running task RPA::Helper::Moduledeps.  
Running task RPA::Helper::Fixperms.  
Running task RPA::Helper::Fixshebangs.  
Running task RPA::Helper::Task.  
/usr/local/lib/ruby/site\_ruby/1.8/i386-cygwin/celsoft.com/template.so: dlopen: Win32 error 5 - /usr  
local/lib/ruby/site\_ruby/1.8/i386-cygwin/celsoft.com/template.so (LoadError)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/lib/ruby/site\_ruby/1.8/rubygems/loadpath\_manager.rb:5:in `require'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from ./etc/doc/generate.rb:14  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/lib/ruby/site\_ruby/1.8/rubygems/loadpath\_manager.rb:5:in `require\_\_'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/lib/ruby/site\_ruby/1.8/rubygems/loadpath\_manager.rb:5:in `require'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /f/TEMP/RPA\_1097498956.951070/dev-utils/install.rb:28  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /f/TEMP/RPA\_1097498956.951070/dev-utils/install.rb:24:in `instance\_eval'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/lib/ruby/site\_ruby/1.8/rpa/helper.rb:707:in `instance\_eval'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/lib/ruby/site\_ruby/1.8/rpa/helper.rb:707:in `run'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;... 12 levels...  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/lib/ruby/site\_ruby/1.8/rpa/frontend.rb:27:in `initialize'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/lib/ruby/site\_ruby/1.8/rpa/rpafrontend.rb:34:in `initialize'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/bin/rpa:12:in `new'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/bin/rpa:12

The fact that it borked on celsoft.com/template (the cstemplate  
package) indicates that it's trying to build the extra documentation  
(not that it says so explicitly).

The cstemplate gem has a problem: it comes packaged with a binary,  
even though it's meant to be a source gem. I'm working on that. It  
seems the cstemplate RPA has a problem of some kind as well, at least  
on Cygwin.

Gavin

> **···**
>
> On Monday, October 11, 2004, 7:23:43 PM, Alexander wrote:
> 
> > On Mon, Oct 11, 2004 at 02:35:36PM +0900, Gavin Sinclair wrote:
> > 
> > > versions had an issue with Cygwin, but thought that was resolved.  
> > > Besides, I don't see any error messages during the install:
> > 
> > [snip]
> > 
> > > $ rpa install dev-utils
> > 
> > [snip]
> > 
> > > Generating RDoc HTML documentation.
> 
> > umm thats totally freaky
> 
> > looks like it just stops during the rdoc creation  
> > maybe ruby is segfaulting or something under cygwin?  
> > maybe --debug would provide some more information?

---

<div class="post-metadata">

**Author:** ![vruz](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@vruz](https://rubytalk.org/u/vruz)\
**Post date:** [11 October 2004 03:24 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034/14 "2004-10-11T03:24:56Z")

</div>

> \> As I said above, the process was relatively easy because Gavin followed  
> \> many of the good practices documented in rpa-base's wiki.
> 
> So by that you mean to use obvious directory names, don't do anything  
> fancy with test suites, and use rdoc for documentation. Is that it?  
> Pretty much exactly what it says in the gems chapter of the Pickaxe,  
> it turns out 😉

Pretty much what has been documented.

[http://rpa-base.rubyforge.org/wiki/wiki.cgi?GoodPractices](http://rpa-base.rubyforge.org/wiki/wiki.cgi?GoodPractices)

best,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vruz

---

<div class="post-metadata">

**Author:** ![Mauricio\_Fernndez](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Mauricio\_Fernndez](https://rubytalk.org/u/Mauricio_Fernndez)\
**Post date:** [11 October 2004 20:09 UTC](https://rubytalk.org/t/ann-dev-utils-v1-0/14034/15 "2004-10-11T20:09:30Z")

</div>

> \>  
> \> As I said above, the process was relatively easy because Gavin followed  
> \> many of the good practices documented in rpa-base's wiki.
> 
> So by that you mean to use obvious directory names, don't do anything  
> fancy with test suites, and use rdoc for documentation. Is that it?

You're missing some details specified in

[http://rpa-base.rubyforge.org/wiki/wiki.cgi?GoodPractices](http://rpa-base.rubyforge.org/wiki/wiki.cgi?GoodPractices)

> Pretty much exactly what it says in the gems chapter of the Pickaxe,  
> it turns out 😉

As I've said before, I would have liked that chapter to include more  
general information about good practices wrt. packaging, which would  
benefit all systems. The \<1 page "package layout" section in that  
chapter isn't quite enough IMHO. It is also a pity that you couldn't  
document the "Rational Versioning Policy" which was presented by  
Jim Weirich in his RubyConf talk and first described by Eivind Eklund  
in April  
([http://rubyforge.org/pipermail/rubygems-developers/2004-April/000294.html\](http://rubyforge.org/pipermail/rubygems-developers/2004-April/000294.html%5C)).

It would be nice it you could list the expectations/assumptions of  
RubyGems (the software) since that would help shape up RubyGems' policy  
and foster fruitful interaction between the two projects.

> \> Moreover, it lacks information about the "build dependencies" (required  
> \> to generate the documentation).
> 
> What do you mean by "build dependencies" in this context?

Other libraries/applications that are only needed to build the package:  
they are not required to \*use\* it and can be safely removed afterwards  
(and rpa-base's package GC does remove them).

RubyGems doesn't have an equivalent concept because the 'gem build'  
process must be performed by the original developers themselves, as  
the rest of the packaging.

> \> I'd like to remind you once again that the conversion involves much  
> \> more than a simple change in the package format. In general, systems  
> \> with a package manager have some associated policies, which determine  
> \> the quality of packages in that context --- besides being just "legal"  
> \> as far as the format it concerned.
> 
> Obviously. But if you could run a script and have everything setup  
> for an inspection/sign-off, I imagine it would make things easier. I  
> guess it's really not worth the effort.

This would work much better if the "standard" directory structure (the  
one that setup.rb has used for years) was promoted more actively and  
more gems respected it. I understand it can be difficult for RubyGems to  
adopt any policy (since you always depend on 3rd parties) but it would  
become much easier if the gem build process encouraged it actively,  
just like original developers are encouraged to use "require 'rubygems'"  
because otherwise their software won't work once gemified 😉

> By "remove rubygems dependencies" are you saying you had to remove  
> "require 'rubygems'" and a few "require\_gem" statements or was it  
> something somehow more involved?

Something a bit less obvious (the "shadowed requires" problem).

> **···**
>
> On Mon, Oct 11, 2004 at 12:07:47PM +0900, Chad Fowler wrote:
> 
> > On Mon, 11 Oct 2004 10:59:16 +0900, Mauricio Fernández \> \<batsman.geo@yahoo.com\> wrote:
> 
> --  
> Running Debian GNU/Linux Sid (unstable)  
> batsman dot geo at yahoo dot com
