From: Glenn Rempe <glenn.re...@gmail.com>
Date: Sun, 11 May 2008 15:37:12 -0700 (PDT)
Local: Sun, May 11 2008 6:37 pm
Subject: Re: Stomp Ruby gem on GitHub
Hi Andrew,
Thanks for taking the time to provide a detailed response. Much
I'll provide some comments below:
On May 10, 12:34 pm, "Andrew Kuklewicz" <kooks...@gmail.com> wrote:
> I'm a bit confused why it was necessary to fork the project, and I hope it
I am totally happy to have the stomp gem use any of my patches and
> does not becomes confusing for users. > When I had a number of bug fixes and changes for the gem, I submitted > patches and quickly found myself with commit rights. > Is there a reason you didn't want to submit patches to the existing gem
pull them into the code. My 'fork' is not so much to take the project in a different direction, it is just the terminology used freely in the Git/GiHub context where forks are encouraged, but used to feed changes back to the master. I have found github to be an excellent tool for getting additional work done by others and feeding that back to the master since the barrier to entry for submitting changes is so very low (no commit privs needed, just fork and go, and then send pull requests for changes. > There are a number of changes to the stomp gem I have been working on lately
My git repo is actually able to be actively connected to both the SVN
> that fix some errors in the existing retry logic. > I am close to committing these to the gem trunk; I wonder how we can > coordinate active development on the gem with your fork of the code? master which I would pull your changes from, and then merge them into my branch which is what I would push to GitHub. So if you or others commit changes I can get those onto Git and keep everything in synch. Or even better :-) You can fork my git repo, and push the work onto
All this being said, if there is opposition to this approach, I am
> That said, if there is good stuff that comes out of your efforts, I would be
Cool.
> happy to help you get your changes into the official stomp gem repository. > > Please accompany all code changes with matching Rspec specs, which
> The current gem doesn't use or depend on rspec; I respect that this is how
because: a) It is a much better testing framework IMHO. :-)
> > TODO : One thing I would personally like to see is an easy way to make
> The way the gem works now is that when you make a request, it blocks until
make a call to @connection.somemethod and have it return the next message on the specified queue. If there is a message, give it to me and close the connection. If there is no message return nil. As I look at the comments in the code this is what poll seems to offer (comments say : # Return a pending message if one is available, otherwise return nil.). However, if there are no messages on the queue, poll blocks since its using the same receive method. No? My expected behavior would wrap the process of opening a connection, getting a message if avail, and then disconnecting. While this may not be as efficient as a thread which is listening and not always opening and tearing down connections it is useful in some cases. > Anyway, let me know if I have misunderstood, and I look forward to your
Thanks again for the detailed response. Actually much of what you
> contributions to stomp and messaging, > - Andrew Kuklewicz
> Happy coding!
said should be included in the rdoc comments in the code to make it clearer for newcomers how some of the code is expected to work. Perhaps I'll drop some of your comments in as a starting point if you don't mind. :-) Cheers.
Glenn
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||