aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Direct uploads for S3David Heinemeier Hansson2017-07-097-19/+91
|
* Test URL generation for S3 and DiskDavid Heinemeier Hansson2017-07-092-0/+10
|
* Instrument and log the servicesDavid Heinemeier Hansson2017-07-091-0/+1
|
* Example of keyfile specificationDavid Heinemeier Hansson2017-07-091-1/+12
|
* Merge pull request #26 from jeremy/service-configuratorDavid Heinemeier Hansson2017-07-092-4/+3
|\ | | | | Clarify how a service can build other composed services
| * Clarify how a service can build other composed servicesJeremy Daer2017-07-092-4/+3
| | | | | | | | | | | | | | | | | | * Service.build takes the literal YAML config hash for the service and a reference to the Configurator that's doing the building. * Services that compose additional services can use the Configurator to look them up and build them by name. See MirrorService for an example. References #23
* | Match new configurator needsDavid Heinemeier Hansson2017-07-091-0/+2
|/
* Configure services that reference other servicesJeremy Daer2017-07-085-15/+20
| | | | | | | | * Move service configuration from the Engine to Service * Delegate configuration mechanics to internal Service::Configurator * Delegate service building to the concrete Service classes, allowing them to configure composed services. * Implement for the Mirror service.
* Mirror: explicit primary service and list of mirrorsJeremy Daer2017-07-081-5/+13
| | | | | | | | | | | | Pass separate primary service and list of mirrors rather than treating the first of the services list as the primary. Nice fit for keyword args, and something we've long wanted in the equivalent Basecamp file repository. Upload returns the results of the underlying service uploads rather than the io.rewind result. Rewind before uploading rather than afterward, and demonstrate that behavior with a test. Test that more than one mirror works.
* Merge pull request #21 from jeremy/disk-binary-ioDavid Heinemeier Hansson2017-07-091-6/+4
|\ | | | | Disk service: use binary IO throughout, not UTF-8
| * Disk service: use binary IO throughout, not UTF-8Jeremy Daer2017-07-081-6/+4
| |
* | Disk storage: ensure URLs end with the blob filename since some user agents ↵Jeremy Daer2017-07-082-4/+4
|/ | | | don't respect Content-Disposition filename
* Tests: skip GCS/AWS service tests if unconfiguredJeremy Daer2017-07-081-0/+1
|
* Merge pull request #8 from robin850/fix-migrationsGeorge Claghorn2017-07-062-3/+3
|\ | | | | Fix the migration class name
| * Fix the migration class nameRobin Dupret2017-07-062-3/+3
| | | | | | | | | | | | Due to Active Support auto loading feature, the migration class shouldn't be name-spaced under the `ActiveStorage` constant, otherwise, running the migrations would throw an error.
* | Test deleting a nonexistent keyGeorge Claghorn2017-07-061-0/+6
| |
* | Correct config path in error messageJohn Williams2017-07-061-1/+1
|/
* Fix testGeorge Claghorn2017-07-061-2/+2
| | | | | | | * S3 fails fast if the Content-MD5 header on an upload request is an invalid checksum. Send a valid but incorrect checksum. * Rescue the service-specific exception and raise the generic one.
* Helper methods are privateDavid Heinemeier Hansson2017-07-061-4/+5
|
* Check integrity after uploadsDavid Heinemeier Hansson2017-07-061-2/+15
|
* It's base64 now since the clouds expect thatDavid Heinemeier Hansson2017-07-061-1/+1
| | | | Gotta please them clouds. SPEAK THE CLOUD.
* Compute checksum and byte_size client sideDavid Heinemeier Hansson2017-07-061-8/+0
| | | | | Then we can add integrity checks on uploads to prevent errors in transport.
* Flesh out mirror testsGeorge Claghorn2017-07-061-7/+26
|
* Rename from Site to Service now that we're called Active StorageDavid Heinemeier Hansson2017-07-0614-140/+140
|
* ActiveVault -> ActiveStorageDavid Heinemeier Hansson2017-07-0613-70/+63
| | | | Yaroslav agreed to hand over the gem name ❤️
* ActiveVault::Site::MirrorSite#urlGeorge Claghorn2017-07-051-1/+8
|
* Basic MirrorSiteDavid Heinemeier Hansson2017-07-051-0/+30
| | | | Still need to convert it to threading
* Default to purging later when the owning record is destroyedDavid Heinemeier Hansson2017-07-051-0/+34
|
* Fix testGeorge Claghorn2017-07-051-1/+1
|
* Attached one and manyDavid Heinemeier Hansson2017-07-052-7/+41
|
* Add attachmentsDavid Heinemeier Hansson2017-07-054-2/+46
|
* Merge remote-tracking branch 'origin/master'David Heinemeier Hansson2017-07-051-0/+9
|\
| * Eliminate SIGNERGeorge Claghorn2017-07-041-4/+5
| |
| * ActiveFile::Site::GCSSite#urlGeorge Claghorn2017-07-041-1/+9
| |
* | Rename from ActiveFile to ActiveVault since activefile gem name was takenDavid Heinemeier Hansson2017-07-0510-40/+40
|/
* Fix up DiskController and add basic testingDavid Heinemeier Hansson2017-07-041-0/+34
|
* Extract create_blob test helperDavid Heinemeier Hansson2017-07-042-5/+8
|
* Actually #url needs to deal with the dispositionDavid Heinemeier Hansson2017-07-041-2/+8
|
* Test filenameDavid Heinemeier Hansson2017-07-041-0/+36
|
* Use lazy-loaded factory method for site configurationDavid Heinemeier Hansson2017-07-0410-32/+32
|
* Differentiate between io streams and read dataDavid Heinemeier Hansson2017-07-041-1/+1
|
* Extract cloud site configuration to gitignored YAML fileDavid Heinemeier Hansson2017-07-045-14/+26
|
* Extract shared testsDavid Heinemeier Hansson2017-07-046-128/+45
|
* Remove unnecessary requiresGeorge Claghorn2017-07-032-5/+1
|
* Add a Google Cloud Storage siteGeorge Claghorn2017-07-031-0/+64
|
* Update for AWS S3 v2 API and test it when supplying the right ENVsDavid Heinemeier Hansson2017-07-031-0/+65
|
* Fix and test expirationDavid Heinemeier Hansson2017-07-031-0/+8
|
* Match File.exist?David Heinemeier Hansson2017-07-031-3/+3
|
* Download disk blobs with verified URLsDavid Heinemeier Hansson2017-07-033-4/+22
|
* WIP: Disk URLsDavid Heinemeier Hansson2017-07-031-1/+11
|