Permalink
Browse files

Moving aws-s3 into git

  • Loading branch information...
0 parents commit d390edeea995328e71f92dd3f380cd1a890c13d5 @marcel marcel committed Jun 6, 2008
Showing with 8,664 additions and 0 deletions.
  1. +67 −0 CHANGELOG
  2. +19 −0 COPYING
  3. +55 −0 INSTALL
  4. +545 −0 README
  5. +58 −0 README.erb
  6. +328 −0 Rakefile
  7. +26 −0 TODO
  8. +6 −0 bin/s3sh
  9. +10 −0 bin/setup.rb
  10. +61 −0 lib/aws/s3.rb
  11. +636 −0 lib/aws/s3/acl.rb
  12. +218 −0 lib/aws/s3/authentication.rb
  13. +232 −0 lib/aws/s3/base.rb
  14. +58 −0 lib/aws/s3/bittorrent.rb
  15. +320 −0 lib/aws/s3/bucket.rb
  16. +314 −0 lib/aws/s3/connection.rb
  17. +69 −0 lib/aws/s3/error.rb
  18. +133 −0 lib/aws/s3/exceptions.rb
  19. +323 −0 lib/aws/s3/extensions.rb
  20. +306 −0 lib/aws/s3/logging.rb
  21. +610 −0 lib/aws/s3/object.rb
  22. +44 −0 lib/aws/s3/owner.rb
  23. +99 −0 lib/aws/s3/parsing.rb
  24. +180 −0 lib/aws/s3/response.rb
  25. +51 −0 lib/aws/s3/service.rb
  26. +12 −0 lib/aws/s3/version.rb
  27. +41 −0 site/index.erb
  28. BIN site/public/images/box-and-gem.gif
  29. BIN site/public/images/favicon.ico
  30. +18 −0 site/public/ruby.css
  31. +99 −0 site/public/screen.css
  32. +18 −0 support/faster-xml-simple/COPYING
  33. +8 −0 support/faster-xml-simple/README
  34. +54 −0 support/faster-xml-simple/Rakefile
  35. +187 −0 support/faster-xml-simple/lib/faster_xml_simple.rb
  36. +4 −0 support/faster-xml-simple/test/fixtures/test-1.rails.yml
  37. +3 −0 support/faster-xml-simple/test/fixtures/test-1.xml
  38. +4 −0 support/faster-xml-simple/test/fixtures/test-1.yml
  39. +6 −0 support/faster-xml-simple/test/fixtures/test-2.rails.yml
  40. +3 −0 support/faster-xml-simple/test/fixtures/test-2.xml
  41. +6 −0 support/faster-xml-simple/test/fixtures/test-2.yml
  42. +6 −0 support/faster-xml-simple/test/fixtures/test-3.rails.yml
  43. +5 −0 support/faster-xml-simple/test/fixtures/test-3.xml
  44. +6 −0 support/faster-xml-simple/test/fixtures/test-3.yml
  45. +5 −0 support/faster-xml-simple/test/fixtures/test-4.rails.yml
  46. +7 −0 support/faster-xml-simple/test/fixtures/test-4.xml
  47. +5 −0 support/faster-xml-simple/test/fixtures/test-4.yml
  48. +8 −0 support/faster-xml-simple/test/fixtures/test-5.rails.yml
  49. +7 −0 support/faster-xml-simple/test/fixtures/test-5.xml
  50. +8 −0 support/faster-xml-simple/test/fixtures/test-5.yml
  51. +43 −0 support/faster-xml-simple/test/fixtures/test-6.rails.yml
  52. +29 −0 support/faster-xml-simple/test/fixtures/test-6.xml
  53. +41 −0 support/faster-xml-simple/test/fixtures/test-6.yml
  54. +23 −0 support/faster-xml-simple/test/fixtures/test-7.rails.yml
  55. +22 −0 support/faster-xml-simple/test/fixtures/test-7.xml
  56. +22 −0 support/faster-xml-simple/test/fixtures/test-7.yml
  57. +14 −0 support/faster-xml-simple/test/fixtures/test-8.rails.yml
  58. +8 −0 support/faster-xml-simple/test/fixtures/test-8.xml
  59. +11 −0 support/faster-xml-simple/test/fixtures/test-8.yml
  60. +47 −0 support/faster-xml-simple/test/regression_test.rb
  61. +17 −0 support/faster-xml-simple/test/test_helper.rb
  62. +46 −0 support/faster-xml-simple/test/xml_simple_comparison_test.rb
  63. +211 −0 support/rdoc/code_info.rb
  64. +254 −0 test/acl_test.rb
  65. +96 −0 test/authentication_test.rb
  66. +143 −0 test/base_test.rb
  67. +48 −0 test/bucket_test.rb
  68. +190 −0 test/connection_test.rb
  69. +75 −0 test/error_test.rb
  70. +331 −0 test/extensions_test.rb
  71. +89 −0 test/fixtures.rb
  72. +102 −0 test/fixtures/buckets.yml
  73. +34 −0 test/fixtures/errors.yml
  74. +3 −0 test/fixtures/headers.yml
  75. +15 −0 test/fixtures/logging.yml
  76. +5 −0 test/fixtures/loglines.yml
  77. +7 −0 test/fixtures/logs.yml
  78. +16 −0 test/fixtures/policies.yml
  79. +89 −0 test/logging_test.rb
  80. +89 −0 test/mocks/base.rb
  81. +217 −0 test/object_test.rb
  82. +66 −0 test/parsing_test.rb
  83. +117 −0 test/remote/acl_test.rb
  84. +45 −0 test/remote/bittorrent_test.rb
  85. +146 −0 test/remote/bucket_test.rb
  86. +82 −0 test/remote/logging_test.rb
  87. +371 −0 test/remote/object_test.rb
  88. BIN test/remote/test_file.data
  89. +30 −0 test/remote/test_helper.rb
  90. +70 −0 test/response_test.rb
  91. +26 −0 test/service_test.rb
  92. +86 −0 test/test_helper.rb
@@ -0,0 +1,67 @@
+trunk:
+
+0.4.0:
+
+- Various adjustments to connection handling to try to mitigate exceptions raised from deep within Net::HTTP.
+
+- Don't coerce numbers that start with a zero because the zero will be lost. If a bucket, for example, has a name like '0815', all operation it will fail. Closes ticket #10089 [reported anonymously]"
+
+- Add ability to connect through a proxy using the :proxy option when establishing a connection. Suggested by [Simon Horne <simon@soulware.co.uk>]
+
+- Add :authenticated option to url_for. When passing false, don't generate signature parameters for query string.
+
+- Make url_for accept custom port settings. [Rich Olson]
+
+0.3.0:
+
+- Ensure content type is eventually set to account for changes made to Net::HTTP in Ruby version 1.8.5. Reported by [David Hanson, Stephen Caudill, Tom Mornini <tmornini@engineyard.com>]
+
+- Add :persistent option to connections which keeps a persistent connection rather than creating a new one per request, defaulting to true. Based on a patch by [Metalhead <metalhead@metalhead.ws>]
+
+- If we are retrying a request after rescuing one of the retry exceptions, rewind the body if its an IO stream so it starts at the beginning. [Jamis Buck]
+
+- Ensure that all paths being submitted to S3 are valid utf8. If they are not, we remove the extended characters. Ample help from [Jamis Buck]
+
+- Wrap logs in Log objects which exposes each line as a Log::Line that has accessors by name for each field.
+
+- Various performance optimizations for the extensions code. [Roman LE NEGRATE <roman2k@free.fr>]
+
+- Make S3Object.copy more efficient by streaming in both directions in parallel.
+
+- Open up Net:HTTPGenericRequest to make the chunk size 1 megabyte, up from 1 kilobyte.
+
+- Add S3Object.exists?
+
+0.2.1:
+
+- When the bucket name argument (for e.g. Bucket.objects) is being used as the option hash, reassign it to the options variable and set the bucket to nil so bucket inference + options works.
+
+- Don't call CGI.escape on query string parameters in Hash#to_query_string since all paths get passed through URI.escape right before the request is made. Paths were getting double escaped. Bug spotted by [David Hanson]
+
+- Make s3sh exec irb.bat if on Windows. Bug spotted by [N. Sathish Kumar <nsathishk@yahoo.com>]
+
+- Avoid class_variable_(get|set) since it was only recently added to Ruby. Spotted by [N. Sathish Kumar <nsathishk@yahoo.com>]
+
+- Raise NoSuchKey if S3Object.about requests a key that does not exist.
+
+- If the response body is an empty string, don't try to parse it as xml.
+
+- Don't reject every body type save for IO and String at the door when making a request. Suggested by [Alex MacCaw <maccman@gmail.com>]
+
+- Allow dots in bucket names. [Jesse Newland]
+
+0.2.0:
+
+- Infer content type for an object when calling S3Object.store without explicitly passing in the :content_type option.
+
+0.1.2:
+
+- Scrap (overly) fancy generator based version of CoercibleString with a much simpler and clearer case statement. Continuations are really slow and the specific use of the generator was leaking memory. Bug spotted by [Remco van't Veer]
+
+0.1.1:
+
+- Don't add the underscore method to String if it is already defined (like, for example, from ActiveSupport). Bug spotted by [Matt White <stockliasteroid@gmail.com>]
+
+0.1.0:
+
+- Initial public release
19 COPYING
@@ -0,0 +1,19 @@
+#
+# Copyright (c) 2006-2007 Marcel Molina Jr. <marcel@vernix.org>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy of
+# this software and associated documentation files (the "Software"), to deal in the
+# Software without restriction, including without limitation the rights to use,
+# copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
+# Software, and to permit persons to whom the Software is furnished to do so,
+# subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in all
+# copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
55 INSTALL
@@ -0,0 +1,55 @@
+== Rubygems
+
+The easiest way to install aws/s3 is with Rubygems:
+
+ % sudo gem i aws-s3 -ry
+
+== Directly from svn
+
+ % svn co svn://rubyforge.org/var/svn/amazon/s3/trunk aws
+
+== As a Rails plugin
+
+If you want to use aws/s3 with a Rails application, you can export the repository
+into your plugins directory and then check it in:
+
+ % cd my-rails-application/vendor/plugins
+ % svn export svn://rubyforge.org/var/svn/amazon/s3/trunk aws
+ % svn add aws
+
+Or you could pull it down with an svn:externals:
+
+ % cd my-rails-application/vendor/plugins
+ % svn propedit svn:externals .
+
+Then add the following line, save and exit:
+
+ aws svn://rubyforge.org/var/svn/amazon/s3/trunk
+
+If you go the svn route, be sure that you have all the dependencies installed. The list of dependencies follow.
+
+== Dependencies
+
+AWS::S3 requires Ruby 1.8.4 or greater.
+
+It also has the following dependencies:
+
+ sudo gem i xml-simple -ry
+ sudo gem i builder -ry
+ sudo gem i mime-types -ry
+
+=== XML parsing (xml-simple)
+
+AWS::S3 depends on XmlSimple (http://xml-simple.rubyforge.org/). When installing aws/s3 with
+Rubygems, this dependency will be taken care of for you. Otherwise, installation instructions are listed on the xml-simple
+site.
+
+If your system has the Ruby libxml bindings installed (http://libxml.rubyforge.org/) they will be used instead of REXML (which is what XmlSimple uses). For those concerned with speed and efficiency, it would behoove you to install libxml (instructions here: http://libxml.rubyforge.org/install.html) as it is considerably faster and less expensive than REXML.
+
+=== XML generation (builder)
+
+AWS::S3 also depends on the Builder library (http://builder.rubyforge.org/ and http://rubyforge.org/projects/builder/). This will also automatically be installed for you when using Rubygems.
+
+=== Content type inference (mime-types)
+
+AWS::S3 depends on the MIME::Types library (http://mime-types.rubyforge.org/) to infer the content type of an object that does not explicitly specify it. This library will automatically be installed for you when using Rubygems.
Oops, something went wrong.

0 comments on commit d390ede

Please sign in to comment.