# Re: open4-0.6.0

**URL:** <https://www.ruby-forum.com/t/re-open4-0-6-0/67127>\
**Category:** Ruby\
**Created:** [August 31, 2006, 9:14pm UTC](https://www.ruby-forum.com/t/re-open4-0-6-0/67127 "2006-08-31T21:14:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [August 31, 2006, 9:14pm UTC](https://www.ruby-forum.com/t/re-open4-0-6-0/67127/1 "2006-08-31T21:14:55Z")

</div>

> > > From: removed\_email\_address@domain.invalid [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]
> > 
> > 1. I noticed you have the files layed out somewhat  
> > [http://www.codeforpeople.com/lib/ruby/open4/](http://www.codeforpeople.com/lib/ruby/open4/)
> 
> sorry for hassle…
> 
> > May I suggest putting related files under the same release? Take a  
> > look at [http://rubyforge.org/frs/?group\_id=735](http://rubyforge.org/frs/?group_id=735) for what I mean.
> 
> isn’t that how i have it
> 
> [http://rubyforge.org/frs/?group\_id=1024](http://rubyforge.org/frs/?group_id=1024)

Not exactly. For example, I see this under alib:

alib  
0.4.0  
alib-0.4.0.gem  
0.4.0  
alib-0.4.0.tgz

Instead of just:

alib  
0.4.0  
alib-0.4.0.gem  
alib-0.4.0.tgz

I didn’t even realize that GForge allowed identical release names for  
the same package. Maybe this has nothing to do with the problem,  
however. I’m just guessing.

> > Anyway, assuming this works on Windows (it does, right?)  
> > then I might  
> > have to start a petition to include it in the stdlib. 🙂
> 
> errr - no. ;-(
> 
> however. i would **love** to make it so. can i ask you to  
> have a look at the source and see what it would take to make  
> work? i’m sure this will mean factoring out fork or  
> requiring one of you windows libs that do so - and that may be all.

It would require C I’m afraid. The win32-open3 package is one of those  
that can’t properly be converted to pure Ruby. Perhaps a simple facade  
is in order.

> next i’ll have you help me make posixlock cross-platform 😉

I haven’t looked at the source yet, but I suppose I would start with  
Lock() and LockEx():

> **[Technical documentation](https://learn.microsoft.com/en-us/docs/)**

5/html/wce50lrfLockFile.asp

Regards,

Dan

This communication is the property of Qwest and may contain confidential  
or  
privileged information. Unauthorized use of this communication is  
strictly  
prohibited and may be unlawful. If you have received this communication  
in error, please immediately notify the sender by reply e-mail and  
destroy  
all copies of the communication and any attachments.

---

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [August 31, 2006, 9:22pm UTC](https://www.ruby-forum.com/t/re-open4-0-6-0/67127/2 "2006-08-31T21:22:56Z")

</div>

On Fri, 1 Sep 2006, Berger, Daniel wrote:

> alib  
> 0.4.0  
> alib-0.4.0.gem  
> alib-0.4.0.tgz
> 
> I didn’t even realize that GForge allowed identical release names for  
> the same package. Maybe this has nothing to do with the problem,  
> however. I’m just guessing.

ah. didn’t know you could do that! in any case i’ve been doing for a  
looong  
time so i’m sure it’s not the problem in this case… i’ll look into it  
for  
my rubyforge script.

> It would require C I’m afraid. The win32-open3 package is one of those  
> that can’t properly be converted to pure Ruby. Perhaps a simple facade  
> is in order.

that’s ok. a facade would be fine.

> > next i’ll have you help me make posixlock cross-platform 😉
> 
> I haven’t looked at the source yet, but I suppose I would start with  
> Lock() and LockEx():
> 
> [Technical documentation | Microsoft Learn](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcedata)  
> 5/html/wce50lrfLockFile.asp

right. i’d like both those and fctnl (posix) based locking wrapped into  
a  
single

file.lock File::LOCK\_EX

interface that mimics File#flock

if you have a minute check out posixlock - it’s really short. which  
win32 lib  
might already have locking builtin?

-a
