Date | Commit message (Collapse) |
|
Not sure how or why I missed these with commit 4e0f8155a62711ae
("fix indentation warnings with ruby trunk"), but this cleans
them up.
|
|
This should make it easier to fully test on machines without
access to an existing MogileFS instance. You'll still
need mogilefsd and mogstored available, however, but these
tests are skipped on machines without them.
|
|
Tests fail anyways on uncaught exceptions, so
assert_nothing_raised only makes it harder to debug the problem
by swallowing the backtrace.
|
|
This changes the class associated with +key+.
This is _not_ the same as the "update_class" admin command
which actually modifies the class itself.
|
|
This adds an internal :ruby_no_raise flag to the backend
to avoid exceptions.
|
|
|
|
Unlinking Tempfiles is good practice, so we should
allow/encourage people to use unlinked Tempfiles
with store_file.
|
|
Some applications will rely on this feature
|
|
These allow us to specify Content-MD5 and checksums for use
with the new and improved new_file interface without breaking
existing apps.
|
|
|
|
This still needs docs and integration with store_content and
store_file, but seems to be mostly working.
|
|
It's not consistent between Ruby versions... oh well..
|
|
Destination path will be created with 0600 permissions to
be consistent with IO.copy_stream [ruby-core:41151]
|
|
The +to+ arg of list_fids is now actually +count+ internally
because gaps may appear in an auto-incrementing FID range
(due to deleted files). We also have a default +count+ of
100 (matches the internal MogileFS default).
|
|
Ruby isn't Perl, Ruby won't automatically coerce between
Strings and numeric types (Integer and Floats)
|
|
Just like IO.copy_stream
|
|
We'll now accept an optional argument which can be passed to
IO.copy_stream directly. This should make life easier on users
so they won't be exposed to our internals to make efficient
copies of large files.
|
|
We can use the file_info command to get things faster, now.
|
|
This was added in MogileFS 2.45
|
|
This is a command added in MogileFS 2.45
|
|
If a user tries to pipe something to us and we can't
rewind on failure, propagate that error all the way
up to avoid risking a corrupted upload.
|
|
Using unknown sizes with StoreContent is now supported
(but you're probably better off using a pipe or just
and object that acts like an IO)
|
|
Of course the backend server needs to support chunking,
but the latest Perlbal does.
|
|
We'll also be testing some admin commands in there.
|