Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

RCOUCH-20: add geocouch support

RCOUCH-20 done
  • Loading branch information...
commit 93f6cc7e4133f04009a65b2d290b561456d4b160 1 parent bd395c8
@benoitc benoitc authored
View
7 etc/rcouch/couch.ini
@@ -166,6 +166,7 @@ _design = {couch_httpd_db, handle_design_req}
_temp_view = {couch_mrview_http, handle_temp_view_req}
_view_cleanup = {couch_mrview_http, handle_cleanup_req}
_random_doc = {couch_randomdoc_httpd, handle_req}
+_spatial_cleanup = {couch_spatial_http, handle_cleanup_req}
; The external module takes an optional argument allowing you to narrow it to a
; single script. Otherwise the script name is inferred from the first path section
@@ -182,6 +183,12 @@ _show = {couch_mrview_show, handle_doc_show_req}
_update = {couch_mrview_show, handle_doc_update_req}
_view = {couch_mrview_http, handle_view_req}
_random = {couch_randomdoc_show, handle_randomdoc_show_req}
+_spatial = {couch_spatial_http, handle_spatial_req}
+_spatial/_list = {couch_spatial_list, handle_view_list_req}
+_spatial/_info = {couch_spatial_http, handle_info_req}
+_spatial/_compact = {couch_spatial_http, handle_compact_req}
+;deprecated API
+_spatiallist = {couch_spatial_list, handle_view_list_req_deprecated}
; enable external as an httpd handler, then link it with commands here.
; note, this api is still under consideration.
View
5 rebar.config.script
@@ -28,7 +28,10 @@ DepDescs = [
{couch_mrview, "couchdb-couch-mrview", {branch, "1994-merge-rcouch"}},
{couch_replicator, "couchdb-couch-replicator", {branch, "1994-merge-rcouch"}},
{couch_dbupdates, "couchdb-couch-dbupdates", {branch, "1994-merge-rcouch"}},
- {couch_randomdoc, "couch_randomdoc", {branch, "rcouch-0.1"}}
+
+ %% extras
+ {couch_randomdoc, "couch_randomdoc", {branch, "rcouch-0.1"}},
+ {geocouch, "geocouch", {branch, "rcouch"}}
],
MakeDep = fun({AppName, RepoName, Version}) ->
View
10 rel/reltool.config.script
@@ -109,7 +109,10 @@ CouchJSName = proplists:get_value(couchjs_name, Cfg, "couchjs"),
{app, couch_mrview, [{incl_cond, include}]},
{app, couch_replicator, [{incl_cond, include}]},
{app, couch_dbupdates, [{incl_cond, include}]},
- {app, couch_randomdoc, [{incl_cond, include}]}
+
+ %% extras
+ {app, couch_randomdoc, [{incl_cond, include}]},
+ {app, geocouch, [{incl_cond, include}]}
]},
@@ -149,7 +152,10 @@ CouchJSName = proplists:get_value(couchjs_name, Cfg, "couchjs"),
%% misc
{mkdir, "lib/rcouch-patches"},
- {copy, "../support/couch_rel/ebin/etop_txt.beam", "lib/rcouch-patches"}
+ {copy, "../support/couch_rel/ebin/etop_txt.beam", "lib/rcouch-patches"},
+
+ %% geocouch
+ {copy, "../src/geocouch/share/www/script/test/*", "share/www/script/test/"}
]}
].
View
9 share/www/script/couch_tests.js
@@ -112,3 +112,12 @@ loadTest("view_sandboxing.js");
loadTest("view_update_seq.js");
// keep sorted
+// geocouch tests
+loadTest("spatial.js");
+loadTest("list_spatial.js");
+loadTest("etags_spatial.js");
+loadTest("multiple_spatial_rows.js");
+loadTest("spatial_compaction.js");
+loadTest("spatial_design_docs.js");
+loadTest("spatial_bugfixes.js");
+loadTest("spatial_offsets.js");
Please sign in to comment.
Something went wrong with that request. Please try again.