Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Sep 28, 2011
  1. @minter
  2. @minter
Commits on Sep 7, 2011
  1. Added Support for CDN Streaming URL

    Conrad Weidenkeller authored
Commits on Aug 10, 2011
  1. @minter

    Merge pull request #49 from tobowers/dev/acl-cleanup

    minter authored
    Clean up return value and metadata state management for set_*_acl methods
  2. Clean up return value and metadata state management for set_*_acl met…

    authored
    …hods
    
    This commit fixes two small issues with the set_read_acl and set_write_acl
    methods.
    
    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.
  3. @minter

    Merge pull request #48 from tobowers/dev/connection-cleanup-and-acl-s…

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

    authored
    … 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.
  2. Remove UTF8 "smart-quotes" from comment

    authored
    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 
    encoding.
  3. Use Connection#cdn_request and Connection#storage_request in Containe…

    authored
    …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.
  4. @minter

    Merge pull request #47 from tobowers/dev/auth-cleanup

    minter authored
    Dev/auth cleanup
  5. undo bad merge edit

    authored
  6. Consolidate storage and cdn requests into specific methods

    authored
    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.
  7. In Authentication, don't call URI.parse multiple times

    authored
    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.
  8. @minter
  9. In test_net_http_raises_continual_eof_exceptions server does not resp…

    authored
    …ond_to?(:address)
    
    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 
    NoMethodError.
    
    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
  10. "rescue" keyword without argument only catches subclasses of Standard…

    authored
    …Error
    
    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.
Commits on Jul 29, 2011
  1. @minter

    Merge pull request #45 from slyphon/fix-metadata-in-192

    minter authored
    Fix StorageObject#metadata for 1.9.2
  2. Fix StorageObject#metadata for 1.9.2

    authored
    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
Commits on Jun 23, 2011
  1. @minter
  2. @minter
  3. @minter
  4. @tobowers @minter

    1.9.2 compatability

    tobowers authored minter committed
Commits on Jun 21, 2011
  1. @minter
  2. @minter
  3. @minter
Commits on Jun 17, 2011
  1. @minter

    Merge pull request #41 from tobowers/dev/192-compat

    minter authored
    1.9.2 compatability
  2. @tobowers

    1.9.2 compatability

    tobowers authored
Commits on May 27, 2011
  1. @minter

    Updating changelog for 1.4.17

    minter authored
  2. @minter
Commits on May 19, 2011
  1. @minter
  2. @minter
Commits on May 9, 2011
  1. @minter

    Merge pull request #38 from dillona/master

    minter authored
    Updated load_from_filename to include the ability to check md5sum
Commits on May 7, 2011
  1. @dillona

    Do not calculate MD5 in chuncks

    dillona authored
    Digest module handles it
Something went wrong with that request. Please try again.