<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://townx.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>townx - Ruby Tuesday: s33r (Ruby library for Amazon S3) available as gem - Comments</title>
 <link>http://townx.org/blog/elliot/ruby_tuesday_s3_gem</link>
 <description>Comments for &quot;Ruby Tuesday: s33r (Ruby library for Amazon S3) available as gem&quot;</description>
 <language>en</language>
<item>
 <title>Wordpress</title>
 <link>http://townx.org/blog/elliot/ruby_tuesday_s3_gem#comment-40280</link>
 <description>&lt;p&gt;Thanks, now if I can only figure out how to implement this into my &lt;a href=&quot;http://www.sandiegocreativemusicdjs.com&gt;San Diego DJ&lt;/a&gt; Wordpress website.&lt;/p&gt;</description>
 <pubDate>Sat, 23 Jan 2010 22:04:44 -0600</pubDate>
 <dc:creator>Wedding DJ San Diego</dc:creator>
 <guid isPermaLink="false">comment 40280 at http://townx.org</guid>
</item>
<item>
 <title>Sync is something I&#039;m</title>
 <link>http://townx.org/blog/elliot/ruby_tuesday_s3_gem#comment-2547</link>
 <description>&lt;p&gt;Sync is something I&#039;m looking at at the moment. I definitely need this myself, as I&#039;d like to do a kind of rsync to S3 eventually. And it would make sense to do some caching, though this would be tricky in a sync situation. The library still seem a bit slow, but it&#039;s difficult to track where the bottleneck is: in the Ruby code, the network, or S3 itself. I&#039;m looking into it.&lt;/p&gt;</description>
 <pubDate>Thu, 17 Aug 2006 03:55:45 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 2547 at http://townx.org</guid>
</item>
<item>
 <title>Thanks !</title>
 <link>http://townx.org/blog/elliot/ruby_tuesday_s3_gem#comment-2522</link>
 <description>&lt;p&gt;One idea I may like to add is a database list of the buckets with a &quot;synch&quot; option to, well - synch.&lt;br /&gt;
The database could also hold header and acl info?&lt;/p&gt;

&lt;p&gt;Regards&lt;br /&gt;
Peter&lt;br /&gt;
(I was using the old pre gem version and did find it loaded a little slowly.)&lt;/p&gt;</description>
 <pubDate>Wed, 16 Aug 2006 14:06:08 -0500</pubDate>
 <dc:creator>Peter Retief</dc:creator>
 <guid isPermaLink="false">comment 2522 at http://townx.org</guid>
</item>
<item>
 <title>It din&#039;t work on window xp</title>
 <link>http://townx.org/blog/elliot/ruby_tuesday_s3_gem#comment-2494</link>
 <description>&lt;p&gt;It din&#039;t work on window xp&lt;/p&gt;</description>
 <pubDate>Tue, 15 Aug 2006 17:30:42 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 2494 at http://townx.org</guid>
</item>
<item>
 <title>Thanks for the comment</title>
 <link>http://townx.org/blog/elliot/ruby_tuesday_s3_gem#comment-2048</link>
 <description>&lt;p&gt;Dear Keaka, you&#039;re right, I was being inconsistent with parameter placements. I will sort this out before the next version.&lt;/p&gt;</description>
 <pubDate>Wed, 02 Aug 2006 03:42:15 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 2048 at http://townx.org</guid>
</item>
<item>
 <title>put_text() typo?</title>
 <link>http://townx.org/blog/elliot/ruby_tuesday_s3_gem#comment-2034</link>
 <description>&lt;p&gt;Thanks for making this gem elliot!  &lt;/p&gt;

&lt;p&gt;In the put_text() method, I think the params to put_resource() are transposed.  Line 131 of client.rb should be:&lt;br /&gt;
put_resource(string, bucket_name, resource_key, headers)&lt;/p&gt;

&lt;p&gt;instead of:&lt;br /&gt;
put_resource(bucket_name, resource_key, string, headers)&lt;/p&gt;

&lt;p&gt;Or I could be completely wrong, I&#039;ve only been trying it out for a few minutes.&lt;/p&gt;</description>
 <pubDate>Tue, 01 Aug 2006 19:38:50 -0500</pubDate>
 <dc:creator>Keaka</dc:creator>
 <guid isPermaLink="false">comment 2034 at http://townx.org</guid>
</item>
<item>
 <title>Do you mean the S3 gem</title>
 <link>http://townx.org/blog/elliot/ruby_tuesday_s3_gem#comment-2021</link>
 <description>&lt;p&gt;Do you mean the S3 gem throws out an internal server error? Does this happen during connections to S3? Or are you talking about the Rails application?&lt;/p&gt;</description>
 <pubDate>Tue, 01 Aug 2006 03:35:12 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 2021 at http://townx.org</guid>
</item>
<item>
 <title>It works fine on a Mac, but</title>
 <link>http://townx.org/blog/elliot/ruby_tuesday_s3_gem#comment-1992</link>
 <description>&lt;p&gt;It works fine on a Mac, but on FreeBSD, it chucks out a Http/1.1 Internal Server Error for any request. Any idea why this could be?&lt;/p&gt;</description>
 <pubDate>Mon, 31 Jul 2006 04:35:46 -0500</pubDate>
 <dc:creator>Vishnu</dc:creator>
 <guid isPermaLink="false">comment 1992 at http://townx.org</guid>
</item>
<item>
 <title>Ruby Tuesday: s33r (Ruby library for Amazon S3) available as gem</title>
 <link>http://townx.org/blog/elliot/ruby_tuesday_s3_gem</link>
 <description>&lt;p&gt;I&#039;ve got round to packaging my latest attempt at an &lt;a href=&quot;http://amazon.com/s3/&quot;&gt;Amazon S3&lt;/a&gt; library for Ruby into a gem. (For those of you unfamiliar with it, S3 is a network storage solution.) It is less complete than my &lt;a href=&quot;http://townx.org/blog/elliot/s3_rails&quot;&gt;previous effort&lt;/a&gt;, but more solid, more elegant, and with a test suite (which uses &lt;a href=&quot;http://rubyforge.org/projects/rspec&quot;&gt;RSpec&lt;/a&gt; - I haven&#039;t added RSpec as a gem dependency (you can ignore the tests if you like), but for reference I developed the tests using RSpec 0.5.12). It has big chunks based on the Amazon S3 Ruby sample code, but I&#039;ve wrapped it up and made it nice and neat. I&#039;ve also done things like provide a mechanism for streaming files to S3 (the Amazon sample doesn&#039;t do this) using customisable chunk sizes (the Net::HTTP library in Ruby uses 1024 byte chunks by default; mine is customisable). There&#039;s lots left to do, of course, but I didn&#039;t want another Tuesday to go by without a Ruby Tuesday :).&lt;/p&gt;

&lt;p&gt;Download the attached file and install it with a:&lt;/p&gt;



&lt;pre&gt;
gem install s33r-0.1.gem
&lt;/pre&gt;



&lt;p&gt;To use it from inside your Ruby script:&lt;/p&gt;



&lt;pre&gt;
require &#039;s33r&#039;
&lt;/pre&gt;



&lt;p&gt;If you want to see an example program which uses the library, have a look at bin/s3cli.rb. This is a simple command line client which you can use to post a file to S3 and email a link to the file to someone. Useful for sending big files to people without clogging their email inbox with enormous files. It is also intended as a demonstration of how to use the library. Full instructions are included at the top of the file.&lt;/p&gt;

&lt;p&gt;By the way, I&#039;ve tested this on Linux, but not on Windows or Mac.&lt;/p&gt;

&lt;p&gt;Anyone aware of other S3 libraries for Ruby?&lt;/p&gt;</description>
 <comments>http://townx.org/blog/elliot/ruby_tuesday_s3_gem#comments</comments>
 <category domain="http://townx.org/tech">tech</category>
 <enclosure url="http://townx.org/files/s33r-0.1.gem" length="27648" type="application/octet-stream" />
 <pubDate>Tue, 25 Jul 2006 05:48:17 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">365 at http://townx.org</guid>
</item>
</channel>
</rss>
