197 Commits

Author SHA1 Message Date
Garret Alfert
088cd2677c Send ETag header with 304 response as well 2013-11-16 13:54:30 +01:00
af270bc27c Merge pull request #33 from 5apps/square_bracket_fix
Use patched riak-ruby-client (closes #32)
2013-11-06 14:07:57 -08:00
Garret Alfert
3937862358 Use patched riak-ruby-client (closes #32)
The patched version escapes square brackets in the
key and bucket names correctly.
2013-11-06 21:56:23 +01:00
Garret Alfert
08a7cddcfe Tell Travis to wait a little longer for riak to start 2013-11-01 14:40:39 +01:00
Garret Alfert
48dc081ba5 Tell travis to only test master and stable branch 2013-11-01 14:01:02 +01:00
Garret Alfert
75b5fda0e9 Remove unicorn gem dependency 2013-11-01 13:06:06 +01:00
165a30bcca Merge pull request #31 from 5apps/rs_spec_01
remoteStorage spec 01
2013-10-27 15:32:33 -07:00
Garret Alfert
256b3c426e Use ETags as version in directory listings 2013-10-27 22:29:17 +01:00
Garret Alfert
39dac0a5ed Remove some duplication 2013-10-27 22:29:17 +01:00
Garret Alfert
a470b37c2c Allow to expose ETag header via CORS 2013-10-27 22:29:06 +01:00
Garret Alfert
2a2cc0a3ec Allow If-Match and If-None-Match headers via CORS 2013-10-27 22:28:43 +01:00
Garret Alfert
b907f02f37 Specs for ETag headers for binary files 2013-10-27 22:28:05 +01:00
Garret Alfert
5215cdc5e0 Spec for updating ETags of all parent directories on delete 2013-10-27 22:27:19 +01:00
Garret Alfert
3b5f99ee0d Refactor 2013-10-27 22:26:50 +01:00
Garret Alfert
f7eac9b411 Specs for If-None-Match on GET requests 2013-10-26 05:10:11 +02:00
Garret Alfert
f61eef717e Don't overwrite existing data when If-None-Match is "*" (refs #26) 2013-10-26 05:09:37 +02:00
Garret Alfert
67435157ed Specs for If-Match header 2013-10-26 03:31:54 +02:00
Garret Alfert
189d202d66 Specs for ETag headers 2013-10-25 23:09:04 +02:00
Garret Alfert
5dd1d26b20 Set and check ETag headers 2013-10-25 12:45:47 +02:00
Garret Alfert
f852e7719f Requests for empty directories respond with 404 (refs #26) 2013-10-25 12:44:39 +02:00
Garret Alfert
2656239fb1 Add rainbows gem 2013-10-25 02:15:11 +02:00
Garret Alfert
d93e3faa7e Don't run Ruby 1.9.2 tests on Travis 2013-10-16 14:41:08 +02:00
d7925f5b12 Merge pull request #30 from 5apps/riak-cs
Save binary data in Riak CS
2013-10-15 20:19:23 -07:00
Garret Alfert
0fd252208a Install and configure Riak CS on Travis 2013-10-11 17:32:30 +02:00
Garret Alfert
20d33cc1af Read CS credentials from file 2013-10-11 17:30:05 +02:00
Garret Alfert
4f91c9aa87 Purge cs binary bucket after tests 2013-10-10 14:58:08 +02:00
Garret Alfert
e5dfbff82d Test that files get deleted from Riak CS 2013-10-10 14:57:10 +02:00
Garret Alfert
b12df5470f Make sure that 'allow_mult' is false for all buckets 2013-10-07 15:23:09 +02:00
Garret Alfert
6259e22442 Disable logging only for staging and production 2013-10-07 15:21:43 +02:00
Garret Alfert
c10fd893c6 Store binary objects in Riak CS 2013-10-07 15:19:46 +02:00
Garret Alfert
e2d69af020 Add Fog gem 2013-09-20 20:57:00 +02:00
Garret Alfert
173632ad81 Update riak-client to 1.4.1 2013-09-19 16:59:34 +02:00
Garret Alfert
6770a8cfb1 Move Rack::CommonLogger into it's own file 2013-09-19 16:09:18 +02:00
Garret Alfert
53256ecc00 Use class instead of module 2013-09-19 16:09:12 +02:00
Garret Alfert
75915556cb Simplify definition of entry points 2013-09-19 16:09:04 +02:00
Garret Alfert
21d06a4970 Enable http_url_encoding in Travis Riak config
Conflicts:
	.travis/app.config
2013-09-13 19:27:28 +02:00
Garret Alfert
629ff399ff Don't try to deserialize an object to check if it already exists (fixes #29) 2013-09-13 19:10:32 +02:00
Garret Alfert
1a2933bf48 Allow to put app in maintenance mode (closes #27) 2013-07-25 18:46:51 +02:00
Garret Alfert
82554e0356 Fix DateTime to timestamp conversion 2013-07-17 12:05:18 +02:00
037987845a Merge pull request #25 from 5apps/http_url_encoding_fix
Http url encoding fix & opslog
2013-07-17 02:31:28 -07:00
Garret Alfert
cd8d51d8b7 Disable Rack logging completely 2013-07-16 17:13:19 +02:00
Garret Alfert
6d757ef552 Update Sinatra 2013-07-16 16:40:04 +02:00
Garret Alfert
c6059153f8 Fix encoding in directory listings 2013-07-11 13:44:40 +02:00
Garret Alfert
fa7c7ad020 Test for special characters in a directory name 2013-06-14 19:20:51 +02:00
Garret Alfert
73336ed5bc Fix for using Riak with http_url_encoding config enabled 2013-06-14 18:49:26 +02:00
95f24beef7 Use count instead of action
In order to be able to combine multiple log entries (and of different
types) into one, we now set the object count instead of an action verb
when logging an operation.
2013-04-30 20:48:28 +02:00
61478d8c8c Remove obsolete variable from example config 2013-04-30 20:47:48 +02:00
Garret Alfert
80d540577d Fix config for test environment 2013-04-30 12:10:53 +02:00
Garret Alfert
db1272b6fe Set RACK_ENV before requiring files in spec_helper.rb
This is because liquor_cabinet.rb is using the
environment to read the appropriate configuration
settings.
2013-04-30 12:10:16 +02:00
eaa3dbfe83 Use opslog instead of counters
Account for eventual consistency by storing log items for
create/update/delete operations instead of using counter keys. We can
then map/reduce over the log items in order to extract category sizes
and object counts. Furthermore, we can combine single items from time to
time in order to keep things fast and tidy.
2013-04-29 22:11:41 +02:00