Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

PIVOTAL LABS
Standup 10/15/2010: OAuth without net/http, right_aws with webmock oddities, which gem for aws

Help

“Anybody have any experience using the oath gem without net/http? There are some things we want to do that it’s not good at”

Like posting large files? Shell out to curl. There are a couple things nobody seems to have done right, yet, and that you just have to use curl for.

“What is the right gem to use for AWS? The official one seems newer than this right_aws that hasn’t had a commit in a couple years”

You are probably looking at the wrong version. Another project was using right_aws and they swear it’s newer than that. It sounds like the gem forked and you probably want the RightScale one. Either way it definitely works better than Amazons ec2 gem, which will get the job done sometimes, but is less than optimal.

Interesting

Testing right_aws with webmock

A team was seeing webmock continuing to feed a bad result to all of their tests (within a timeout for the shared connection) when one failed, instead of trying again. They switched to using connection=dedicated instead of shared.

Comments
  1. pete says:

    > “Anybody have any experience using the oath gem without net/http? There are some things we want to do that it’s not good at”

    The oauth2 gem (no idea if they are compatible) uses faraday, which has adapters for typhoeus and patron. One of those two should be capable of transferring big files.

    > “What is the right gem to use for AWS? The official one seems newer than this right_aws that hasn’t had a commit in a couple years”

    right_aws wasn’t being worked on, and it got forked into appoxy’s aws. Unfortunately, neither has a lot of active development, and they have since diverged. They still share a large portion of the code, but differ in small ways from what I can tell.

    Also, a lot of the different AWS services have specialized gems just for them, so that might be worth looking into if you’re not buying into AWS whole hog.

    > Testing right_aws with webmock

    right_aws has a dependency on right_http_connection, which by default (maybe?) keeps one connection object per thread. It might be keeping a state in between tests and screwing things up.

  2. Abhi Hiremagalur says:

    Regarding my comment during Standup that it appeared that right_aws not being updated for two years – I was wrong.

    I was looking at the wrong git repo – [RightScale’s right_aws repo](http://github.com/rightscale/right_aws) has commits as recently as June this year and so far it appears to meet our, fairly simple, needs.

    @pete: Thanks for the tip. Well look for specialized gems for each AWS service if/when our needs grow more complex.

  3. Trevor Turk says:

    I’d recommend using Fog to interact with S3. In my experience, it’s been a pleasure to work with, and is under (very) active development sponsored by Engine Yard.

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *