All of lore.kernel.org
 help / color / mirror / Atom feed
* desperados: a Ruby library for RADOS
@ 2011-01-23 18:41 John Leach
  2011-01-23 19:19 ` Wido den Hollander
  0 siblings, 1 reply; 3+ messages in thread
From: John Leach @ 2011-01-23 18:41 UTC (permalink / raw)
  To: ceph-devel

Hi all,

I've just made the first release of my RADOS Ruby library, desperados.

It's dead easy to use:

  pool = Rados::Pool.create("mypool")
  o = pool.objects.new("mykey")
  o.write("Once upon")
  o.write(" a time")
  o.seek(0)
  o.read == "Once upon a time"
  o = pool.objects.find("mykey")
  o.seek(5)
  o.read == "upon a time"

I've been using it to read and write thousands of pool and millions of
objects whilst load testing ceph and it's behaved well.

Behind the scenes it just uses librados (via the Ruby FFI).

The code is on github: https://github.com/johnl/desperados

Documentation here: http://rdoc.info/gems/desperados/0.1/frames

And there is a gem available: https://rubygems.org/gems/desperados

You can file bugs or feature requests on github too:
https://github.com/johnl/desperados/issues

Bug reports and contributions are welcomed!

Thanks,

John.
--
http://beta.brightbox.com/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: desperados: a Ruby library for RADOS
  2011-01-23 18:41 desperados: a Ruby library for RADOS John Leach
@ 2011-01-23 19:19 ` Wido den Hollander
  2011-01-25 10:38   ` John Leach
  0 siblings, 1 reply; 3+ messages in thread
From: Wido den Hollander @ 2011-01-23 19:19 UTC (permalink / raw)
  To: John Leach; +Cc: ceph-devel

Hi John,

On Sun, 2011-01-23 at 18:41 +0000, John Leach wrote:
> Hi all,
> 
> I've just made the first release of my RADOS Ruby library, desperados.
> 

Sounds great! I'm no ruby user at all, but browsing through the
sourcecode it seems very simple to attach external lib's to Ruby.

> Bug reports and contributions are welcomed!
> 

I found it a bit too much to create a patch for it, but browsing through
your .spec file:

  s.email       = ["john@johnleach.co.uk.co.uk"]

Isn't there a .co.uk too much?

Wido


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: desperados: a Ruby library for RADOS
  2011-01-23 19:19 ` Wido den Hollander
@ 2011-01-25 10:38   ` John Leach
  0 siblings, 0 replies; 3+ messages in thread
From: John Leach @ 2011-01-25 10:38 UTC (permalink / raw)
  To: Wido den Hollander; +Cc: ceph-devel

On Sun, 2011-01-23 at 20:19 +0100, Wido den Hollander wrote:
> Hi John,
> 
> On Sun, 2011-01-23 at 18:41 +0000, John Leach wrote:
> > Hi all,
> > 
> > I've just made the first release of my RADOS Ruby library, desperados.
> > 
> 
> Sounds great! I'm no ruby user at all, but browsing through the
> sourcecode it seems very simple to attach external lib's to Ruby.

thanks!

> > Bug reports and contributions are welcomed!
> > 
> 
> I found it a bit too much to create a patch for it, but browsing through
> your .spec file:
> 
>   s.email       = ["john@johnleach.co.uk.co.uk"]
> 
> Isn't there a .co.uk too much?

doh, indeed. I'll fix that. Thanks!

John.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-25 10:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-23 18:41 desperados: a Ruby library for RADOS John Leach
2011-01-23 19:19 ` Wido den Hollander
2011-01-25 10:38   ` John Leach

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.