Rake tasks for Trac?

Before I reinvent too many wheels, has anyone cooked up, or know about, handy Rake tasks for interacting with Trac?

Thanks!

(BTW, I did a Google of "Ruby Rake task cookbook", and was surprised not to find a Rake task cookbook site anyplace. )

···

--
James Britt

"Take eloquence and wring its neck."
  - Paul Verlaine

James Britt wrote:

Before I reinvent too many wheels, has anyone cooked up, or know about,
handy Rake tasks for interacting with Trac?

Thanks!

(BTW, I did a Google of "Ruby Rake task cookbook", and was surprised not
to find a Rake task cookbook site anyplace. )

--
James Britt

"Take eloquence and wring its neck."
  - Paul Verlaine

I haven't but I'm curious?

Which Trac tasks would you want to use through rake?

···

--
Posted via http://www.ruby-forum.com/.

James Britt wrote:

(BTW, I did a Google of "Ruby Rake task cookbook", and was surprised not
to find a Rake task cookbook site anyplace. )

This is an excellent idea ... I've started a page here:
http://wikis.onestepback.org/Rake/page/show/TaskCookbook

···

--
Posted via http://www.ruby-forum.com/.

I've worked with tying a Rails app to Trac in a number of ways, mostly to get user comments and errors sent straight to Trac instead of my inbox or a logfile I forget to check.

It's pretty easy with the XML-RPC plugin. (http://www.trac-hacks.org/wiki/XmlRpcPlugin). Two caveats though:

1) you need to get a new version of Trac from their SVN, it's not compatible with the 0.9 series.
2) you need to hack the library slightly. it does content auto-detection to on the URL in Trac and routes you to the XML-RPC machinery if you're posting XML otherwise it gives you a *very* nice HTML page detailing the API. (http://www.trac-hacks.org/ticket/411)

Let me know if you have any questions about how I set it up.

HTH,
-Dane

···

On Jun 27, 2006, at 1:19 PM, James Britt wrote:

Before I reinvent too many wheels, has anyone cooked up, or know about, handy Rake tasks for interacting with Trac?

Jim Weirich wrote:

James Britt wrote:

(BTW, I did a Google of "Ruby Rake task cookbook", and was surprised not
to find a Rake task cookbook site anyplace. )

This is an excellent idea ... I've started a page here: http://wikis.onestepback.org/Rake/page/show/TaskCookbook

Cool.

I've a hacky task that adds a new ticket via HTTP post. I want to poke it a bit more, shake out the critters with more real-world usage, and then I'll add it.

Thanks for Rake.

···

--
James Britt

"Judge a man by his questions, rather than his answers."
  - Voltaire

Michael Greenly wrote:

James Britt wrote:

Before I reinvent too many wheels, has anyone cooked up, or know about,
handy Rake tasks for interacting with Trac?

Thanks!

(BTW, I did a Google of "Ruby Rake task cookbook", and was surprised not
to find a Rake task cookbook site anyplace. )

--
James Britt

"Take eloquence and wring its neck."
- Paul Verlaine

I haven't but I'm curious?

Which Trac tasks would you want to use through rake?

Adding tickets, for one thing.

I want to (and, as of 1 hour ago, I can) run

  rake trac:post_task

and answer a few prompts (summary, description, ticket type [defaults to task] )

and have a new ticket created in Trac.

Or run

   rake trac:tickets_for james

and get back a plain-text list of open tickets assigned to me.

The first I can now do. The second is not a big need (I just made it up, actually), but reasonably useful, and easy enough to code (pulling stuff from Trac is easier than pushing).

It would be more interesting if I could query for tickets that way, see if there are any tickets related to something or other (tag/keyword search), and then add a ticket if I need to.

These are the sorts of little things that I'd like to do from the command line while working, to avoid the psychic disruption of clicking around a Web page.

···

--
James Britt

"I was born not knowing and have had only a little
  time to change that here and there."
  - Richard P. Feynman

Dane Jensen wrote:

Before I reinvent too many wheels, has anyone cooked up, or know about, handy Rake tasks for interacting with Trac?

I've worked with tying a Rails app to Trac in a number of ways, mostly to get user comments and errors sent straight to Trac instead of my inbox or a logfile I forget to check.

It's pretty easy with the XML-RPC plugin. (http://www.trac-hacks.org/ wiki/XmlRpcPlugin). Two caveats though:

1) you need to get a new version of Trac from their SVN, it's not compatible with the 0.9 series.
2) you need to hack the library slightly. it does content auto- detection to on the URL in Trac and routes you to the XML-RPC machinery if you're posting XML otherwise it gives you a *very* nice HTML page detailing the API. (http://www.trac-hacks.org/ticket/411)

Let me know if you have any questions about how I set it up.

I looked at the Trac XML-RPC a bit, and decided against trying to upgrade my Trac installation. It might make certain things simpler, but POSTing content with authenticated HTTP requests works fine right now.

(I now have useful code for posting new tickets and fetching a list of open tickets.)

···

On Jun 27, 2006, at 1:19 PM, James Britt wrote:

--
James Britt

http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - The Journal By & For Rubyists
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://yourelevatorpitch.com - Finding Business Focus