Commits on Nov 10, 2011
  1. Merge pull request #52 from bluefuton/master

    Fix cdn_ssl_url and cdn_streaming_url methods
    minter committed Nov 10, 2011
  2. The cdn_ssl_url method was duplicated in container.rb. Removed duplic…

    …ate and corrected name of cdn_streaming_url method
    bluefuton committed Nov 10, 2011
Commits on Nov 1, 2011
  1. Fixed some unit tests

    Conrad Weidenkeller committed Nov 1, 2011
  2. Merge

    Conrad Weidenkeller committed Nov 1, 2011
  3. peer review complete

    Conrad Weidenkeller committed Nov 1, 2011
Commits on Oct 27, 2011
  1. adding streaming url support

    sasimpson committed Oct 27, 2011
Commits on Oct 24, 2011
Commits on Oct 18, 2011
Commits on Sep 28, 2011
Commits on Sep 14, 2011
Commits on Sep 8, 2011
Commits on Sep 7, 2011
  1. Added Support for CDN Streaming URL

    Conrad Weidenkeller committed Sep 7, 2011
Commits on Sep 6, 2011
Commits on Aug 10, 2011
  1. Merge pull request #49 from tobowers/dev/acl-cleanup

    Clean up return value and metadata state management for set_*_acl methods
    minter committed Aug 10, 2011
  2. Clean up return value and metadata state management for set_*_acl met…

    This commit fixes two small issues with the set_read_acl and set_write_acl
    Currently the set_*_acl methods don't reset the cached metadata, so after
    changing the value server-side, the read_acl and write_acl methods will still
    return the old values. This patch fixes that behavior so that the new values
    will be fetched from the server on the next invocation.
    The return value currently is the response code of the HTTP request sent to the
    server, which while not erroneous (as it would be a non-nil or false value), is
    not consistent with the rest of the API. 
    This commit also adds tests for error cases and return values.
    slyphon committed Aug 10, 2011
  3. Merge pull request #48 from tobowers/dev/connection-cleanup-and-acl-s…

    Dev/connection cleanup and acl support
    minter committed Aug 10, 2011
Commits on Aug 9, 2011
  1. Add support for adjusting ACLs using X-Container-* headers (Openstack…

    … Swift support)
    Openstack Swift allows one to change the container-level ACLs using a post with
    "X-Container-Read" and "X-Container-Write" headers set. This change implements those
    as instance methods on the Container and includes the associated tests.
    slyphon committed Aug 9, 2011
  2. Remove UTF8 "smart-quotes" from comment

    Not everyone has a multibyte-capable editor (for instance when using 
    terminal-based VIM), and these characters may not render properly when 
    generating documentation from the source depending on the local character 
    slyphon committed Aug 9, 2011
  3. Use Connection#cdn_request and Connection#storage_request in Containe…

    …r and StorageObject
    Reduce the duplication in Container and StorageObject by using the
    storage_request and cdn_request methods on Connection. Currently, the complete
    cfreq call must be constructed in both the Container and StorageObject for each
    and every request being made using data duplicated from the Connection on
    initialization. By using the *_request methods on the related Connection
    instance, we no longer need to copy this information into instance variables in
    these children of a given Connection. 
    This is an improvement in "information hiding", as only the Connection needs to
    track this information (simplifying maintenance going forward if the format of
    these requests changes in the future). This also simplifies mocking in the tests.
    slyphon committed Aug 9, 2011
  4. Merge pull request #47 from tobowers/dev/auth-cleanup

    Dev/auth cleanup
    minter committed Aug 9, 2011
  5. undo bad merge edit

    slyphon committed Aug 9, 2011
  6. Consolidate storage and cdn requests into specific methods

    Instead of constructing cdn or storage paths in each and every 
    method on the connection object, generalize the concept of 
    "making a {storage,cdn} request" into methods for each. This allows
    us to simplify making a request in other methods, and centralizes
    the generation of request paths, which in turn (will eventually) make 
    mocking and testing simpler.
    slyphon committed Aug 9, 2011
  7. In Authentication, don't call URI.parse multiple times

    Parsing the x-cdn-management-url and x-storage-url multiple times is confusing
    and inefficient. Instead, parse the URI once per string and use the parsed
    URI instance returned.
    slyphon committed Aug 9, 2011
  8. Merge pull request #46 from tobowers/dev/fix-tests

    Dev/fix tests
    minter committed Aug 9, 2011
  9. In test_net_http_raises_continual_eof_exceptions server does not resp…

    I'm not sure if this is a bug in the tests, or if this will happen in real life, but
    server in this context does not always respond_to?(:address) and this causes a 
    This commit uses server.address if server.responds_to?(:address), otherwise assumes
    server is a String, and uses it directly in creating the exception message.
    Additionally, preserves the stack when raising CloudFiles::Exception::Connection
    slyphon committed Aug 9, 2011
  10. "rescue" keyword without argument only catches subclasses of Standard…

    In order to catch errors that don't inherit from StandardError, you need to 
    'rescue Exception', otherwise the exception will just blow past and bubble up.
    In addition, when rescuing an exception and raising a different one, it is 
    useful to add the "caller" as a third argument to raise, which will preserve
    the stack trace from the original exception, aiding debugging the actual cause
    of the error.
    slyphon committed Aug 9, 2011
Commits on Jul 29, 2011
  1. Merge pull request #45 from slyphon/fix-metadata-in-192

    Fix StorageObject#metadata for 1.9.2
    minter committed Jul 29, 2011
  2. Fix StorageObject#metadata for 1.9.2

    In ruby 1.8.7, Array#to_s behaves like:
    >> ['a',1,'b',2].to_s
    => "a1b2"
    In ruby 1.9.2 however:
    >> ['a',1,'b',2].to_s
    => "["a", 1, "b", 2]"
    This means that StorageObject#metadata is returning mangled values for those headers. This fix should replicate the 1.8.7 behavior in 1.9.2. 
    Tests are included and pass (for that specific test) in both 1.8.7 and 1.9.2
    slyphon committed Jul 29, 2011
Commits on Jun 23, 2011