aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Clarify how a service can build other composed servicesJeremy Daer2017-07-093-34/+36
| | | | | | | | | * 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
* Service: clarify Service.build argumentsJeremy Daer2017-07-092-5/+5
| | | | | | | First arg is config for the service we're instantiating. Second arg is service configurations so we can look up and configure other services by name.
* Configure services that reference other servicesJeremy Daer2017-07-085-28/+69
| | | | | | | | * 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-10/+9
| | | | | | | | | | | | 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-8/+4
|\ | | | | Disk service: use binary IO throughout, not UTF-8
| * Disk service: use binary IO throughout, not UTF-8Jeremy Daer2017-07-081-8/+4
| |
* | Disk storage: ensure URLs end with the blob filename since some user agents ↵Jeremy Daer2017-07-083-5/+5
|/ | | | don't respect Content-Disposition filename
* Merge pull request #15 from robin850/documentationDavid Heinemeier Hansson2017-07-086-5/+100
|\ | | | | Add some documentation
| * Add some documentationRobin Dupret2017-07-076-5/+100
| |
* | Change type of created_at columns from time to datetimeGeorge Claghorn2017-07-071-8/+8
| | | | | | | | We intend to store a date and time, not merely a time.
* | It is an engine (because of tasks) not a railtieDavid Heinemeier Hansson2017-07-072-2/+2
|/
* Create db/migrate if it doesn't existGeorge Claghorn2017-07-061-0/+1
|
* Merge pull request #8 from robin850/fix-migrationsGeorge Claghorn2017-07-061-1/+1
|\ | | | | Fix the migration class name
| * Fix the migration class nameRobin Dupret2017-07-061-1/+1
| | | | | | | | | | | | 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.
* | Use safe navigationGeorge Claghorn2017-07-061-1/+1
| |
* | Remove unnecessary method delegationsGeorge Claghorn2017-07-061-1/+1
|/
* Fix testGeorge Claghorn2017-07-061-0/+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.
* Merge branch 'master' into s3_integrityJohn Williams2017-07-061-2/+3
|\
| * StyleGeorge Claghorn2017-07-061-5/+3
| |
| * Adding server side integrity check for GCS ServiceStanislav Gospodinov2017-07-061-2/+5
| |
* | Send checksum to S3 to verify file integrityJohn Williams2017-07-061-2/+1
|/
* Fix hash usage consistency.Ra'Shaun Stovall2017-07-061-1/+1
| | | | | | | Unless this was intentional, being consistent with: https://github.com/rails/activestorage/blob/master/lib/active_storage/service/s3_service.rb#L8 Just showin' a lil' <3 while perusing the repo @dhh
* Check integrity after uploadsDavid Heinemeier Hansson2017-07-066-7/+19
|
* Dropped from the interfaceDavid Heinemeier Hansson2017-07-061-9/+0
|
* Need the byte helpersDavid Heinemeier Hansson2017-07-062-0/+2
|
* Compute checksum and byte_size client sideDavid Heinemeier Hansson2017-07-064-37/+15
| | | | | Then we can add integrity checks on uploads to prevent errors in transport.
* Remember to add streamingDavid Heinemeier Hansson2017-07-061-0/+1
|
* This is even more explaining and upload/download don't have some inherent ↵David Heinemeier Hansson2017-07-061-4/+2
| | | | need to synchronize chunk sizes anyway
* We have the technology!David Heinemeier Hansson2017-07-061-1/+1
|
* Convert magic number to constantDavid Heinemeier Hansson2017-07-061-2/+4
|
* Extract configuration into config/storage_configuration.ymlDavid Heinemeier Hansson2017-07-064-29/+67
|
* Add task to install the migration neededDavid Heinemeier Hansson2017-07-062-1/+13
|
* Mirror: only hit all sites for upload and deleteGeorge Claghorn2017-07-061-21/+4
| | | | The mirror service exists for the purpose of migration, where all blobs exist in the primary subservice and a subset of blobs exist in the secondary subservice. Since the primary subservice is the source of truth until a migration is completed, operations like existence checks need not be performed against the secondary subservices.
* Rename from Site to Service now that we're called Active StorageDavid Heinemeier Hansson2017-07-069-75/+75
|
* ActiveVault -> ActiveStorageDavid Heinemeier Hansson2017-07-0622-104/+104
| | | | Yaroslav agreed to hand over the gem name ❤️
* ActiveVault::Site::MirrorSite#urlGeorge Claghorn2017-07-051-2/+6
|
* Basic MirrorSiteDavid Heinemeier Hansson2017-07-051-3/+6
| | | | Still need to convert it to threading
* Default to purging later when the owning record is destroyedDavid Heinemeier Hansson2017-07-054-5/+21
|
* Moving this to the macro definitionDavid Heinemeier Hansson2017-07-051-4/+0
|
* Only purge if attachedDavid Heinemeier Hansson2017-07-052-4/+22
|
* Avoid duplicate attachmentsDavid Heinemeier Hansson2017-07-051-1/+1
|
* Require the Active Support core extension usedGeorge Claghorn2017-07-051-0/+1
|
* Ensure the array is flatDavid Heinemeier Hansson2017-07-051-1/+1
|
* Fix configuration namesDavid Heinemeier Hansson2017-07-051-3/+3
|
* Attached one and manyDavid Heinemeier Hansson2017-07-057-34/+98
|
* Add attachmentsDavid Heinemeier Hansson2017-07-054-7/+85
|
* Assign plain metadata for nowDavid Heinemeier Hansson2017-07-051-0/+1
|
* Use active_vault as the table prefixDavid Heinemeier Hansson2017-07-052-2/+2
| | | | At least pretend this can be used outside of Rails as well
* Merge remote-tracking branch 'origin/master'David Heinemeier Hansson2017-07-051-0/+5
|\
| * ActiveFile::Site::GCSSite#urlGeorge Claghorn2017-07-041-0/+5
| |