Skip to content

Commit

Permalink
Update documentation and version to reflect move to 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eee-c committed Aug 10, 2009
1 parent 6543486 commit 0295a82
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 7 deletions.
11 changes: 11 additions & 0 deletions History.txt
@@ -1,3 +1,14 @@
== 1.0.0 / 2009-08-09

* Update the couch-docs script to be able to dump a CouchDB database
to a local directory as well as uploading a local directory into a
CouchDB database.

* CouchDB revision numbers are stripped when dumping (to prevent
conflicts when re-loading)

* Attachments are dumped as well.

== 0.9.0 / 2009-08-08

* Import from couch_design_docs (name change to reflect increased functionality)
37 changes: 32 additions & 5 deletions README.rdoc
Expand Up @@ -9,13 +9,36 @@ Manage CouchDB views and documents.

== FEATURES/PROBLEMS:

* Store your CouchDB documents on the filesystem for on-demand
upload. Design documents are kept in a <tt>_design</tt>
sub-directory, with <tt>.js</tt> extensions. Normal documents are
stored with a <tt>.json</tt> extension.
* Upload JSON documents stored on the filesystem into a CouchDB
database.

* Map <tt>.js</tt> files stored on the filesystem
(e.g. <tt>_design/recipes/count_by_month/map.js</tt>) into CouchDB
design documents.

* Dump documents stored in CouchDB to the filesystem.

* Script (couch-docs) to restore / backup CouchDB database.

* The couch-docs scipts does not work with design documents.

* A progress bar would be helpful.

* Unit testing of view javascript would be very nice.

== SYNOPSIS:

From the command line:

# For dumping the contents of a CouchDB database to the filesystem
couch-docs dump "http://localhost:5984/db" path/to/dump_dir/

# For loading documents from the filesystem into CouchDB
couch-docs load path/to/dump_dir/ "http://localhost:5984/db"


In code:

DB_URL = "http://localhost:5984/db"
DIRECTORY = "/repos/db/couchdb/"

Expand All @@ -30,6 +53,10 @@ Manage CouchDB views and documents.
# a document named "foo" with the JSON contents from the foo.json
# file

CouchDocs.dump(DB_URL, "/repos/db/bak")

# => JSON dump of every document at DB_URL

== REQUIREMENTS:

* CouchDB
Expand All @@ -38,7 +65,7 @@ Manage CouchDB views and documents.

== INSTALL:

* sudo gem install couch_docs
* sudo gem install eee-c-couch_docs

== LICENSE:

Expand Down
2 changes: 1 addition & 1 deletion couch_docs.gemspec
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = %q{couch_docs}
s.version = "0.9.0"
s.version = "1.0.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Chris Strom"]
Expand Down
2 changes: 1 addition & 1 deletion lib/couch_docs.rb
@@ -1,7 +1,7 @@
module CouchDocs

# :stopdoc:
VERSION = '0.9.0'
VERSION = '1.0.0'
LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
# :startdoc:
Expand Down

1 comment on commit 0295a82

@jo
Copy link

@jo jo commented on 0295a82 Dec 28, 2009

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just found this project and want to mention my effort, which has quiet the same approach, except that it uses FUSE to mount the CouchDB documents: http://github.com/jo/quilt

Greetings
Johannes

Please sign in to comment.