github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jmettraux / rufus-sqs

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 9
    • 4
  • Source
  • Commits
  • Network (4)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

a ruby library for Amazon SQS. (WARNING : no longer works) — Read more

  cancel

http://rufus.rubyforge.org/rufus-sqs

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

gem no longer works 
jmettraux (author)
Thu Aug 20 16:40:07 -0700 2009
commit  8bae794f03f757c0b3e249fcdde8f557299475f1
tree    ff1b153fc811448f305bfd5db04b7f4fb50b59d5
parent  15d6a742758694e1a5607cecacfa60963566e2e0
rufus-sqs /
name age
history
message
file CHANGELOG.txt Tue Dec 09 23:04:56 -0800 2008 todo #23174 : indent = 2 [jmettraux]
file LICENSE.txt Mon Apr 07 16:32:15 -0700 2008 first git commit [jmettraux]
file README.rdoc Thu Aug 20 16:40:12 -0700 2009 gem no longer works [jmettraux]
file Rakefile Thu Aug 20 16:40:12 -0700 2009 gem no longer works [jmettraux]
directory doc/ Thu Mar 12 16:56:20 -0700 2009 moved to hanna rdoc template [jmettraux]
directory lib/ Tue Dec 09 23:04:56 -0800 2008 todo #23174 : indent = 2 [jmettraux]
directory test/ Tue Dec 09 23:04:56 -0800 2008 todo #23174 : indent = 2 [jmettraux]
README.rdoc

rufus-sqs

WARNING : as of 2008/08/21, this gem does no longer work.

Try to use the right_aws gem :

rightscale.rubyforge.org/right_aws_gem_doc/

…

getting it

  sudo gem install -y rufus-sqs

or at

rubyforge.org/frs/?group_id=4812

usage

At first, ‘rufus-sqs’ expects to find the Amazon WebServices keys in four environment variables : AMAZON_KEY_ID, AMAZON_ACCESS_KEY_ID, AMAZON_ACCESS_KEY and AMAZON_SECRET_ACCESS_KEY

(Like the gem "aws-s3" amazon.rubyforge.org/ does).

For example, I store them in a file named .amazon that gets loaded when necessary :

  export AMAZON_KEY_ID=171A375Y3DY838652G2
  export AMAZON_ACCESS_KEY_ID=17r37R45YZDY252G2

  export AMAZON_ACCESS_KEY=iOML8QLPy5DB5sCUoS0LbJcA2/OChUUNky
  export AMAZON_SECRET_ACCESS_KEY=ibMU8QfPDB5sCUgS0NLbScA2/OChUHNy

Some example code :

  qs = Rufus::SQS::QueueService.new

  qs.create_queue "mytestqueue"

  msg = "hello SQS world !"

  msg_id = qs.put_message "mytestqueue", msg

  put msg_id
    # will print something like
    # 0MQFS772Z73BG5R9QD6V|A717CAQHX0CS7N69WY71|M57DGQ7TB7T3MFY3J1X0

  sleep 1

  msgs = qs.get_messages "mytestqueue"

  puts msgs[0].message_body
    # => 'hello SQS world !"

  qs.delete_queue "mytestqueue"

more at Rufus::SQS::QueueService

dependencies

The gem ‘rufus-verbs’ (rufus.rubyforge.org/rufus-verbs) and its dependencies.

mailing list

On the rufus-ruby list :

groups.google.com/group/rufus-ruby

issue tracker

github.com/jmettraux/rufus-sqs/issues

source

github.com/jmettraux/rufus-sqs

  git clone git://github.com/jmettraux/rufus-sqs.git

author

John Mettraux, jmettraux@gmail.com jmettraux.wordpress.com

the rest of Rufus

rufus.rubyforge.org

license

MIT

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server