jchris / couchrest Goto Github PK
View Code? Open in Web Editor NEWA RESTful CouchDB client based on Heroku's RestClient and Couch.js - you want the version at http://github.com/couchrest/couchrest
Home Page: http://github.com/couchrest/couchrest
A RESTful CouchDB client based on Heroku's RestClient and Couch.js - you want the version at http://github.com/couchrest/couchrest
Home Page: http://github.com/couchrest/couchrest
When putting standalone attachments to a document that are named like "folder/filename.txt" the CGI.escape escapes the slashes. This way you cannot produce paths like http://host/dbname/doc_id/folder/filename.txt which would be great since couchdb itself supports it (while futon fails).
I fiddled a bit with the escaping of attachment names, but now a single test is failing
"POST document with attachment (with funky name)" within the database_spec.rb (specifically line 417, when fetching the attachment by name).
I don't know how to fix this without breaking compatiblity with other stuff.
Any suggestions?
there is a problem with couchrest and "Time.mktime_with_offset" when you save a doc the created_at is decrementing 1 hour each save.
on Ubuntu 9.04 jaunty with ruby 1.9.0 (2008-06-20 revision 17482) I get the error :
/var/lib/gems/1.9.0/gems/couchrest-0.33/lib/couchrest/core/database.rb:2:in require': no such file to load -- base64 (LoadError) from /var/lib/gems/1.9.0/gems/couchrest-0.33/lib/couchrest/core/database.rb:2:in
<top (required)>'
from /var/lib/gems/1.9.0/gems/couchrest-0.33/lib/couchrest/core/server.rb:53:in database' from /var/lib/gems/1.9.0/gems/couchrest-0.33/lib/couchrest/core/server.rb:59:in
database!'
from /var/lib/gems/1.9.0/gems/couchrest-0.33/lib/couchrest.rb:138:in database!' from /usr/local/aimpl-version/aimpl/scripts/make_pl.rb:6:in
Hi,
I want to use couchrest to integrate with an existing CouchDB system, where we use 'doctype' as the 'type' identifier for documents.
The string 'couchrest-type' seems to be hard coded in - could this be made configurable? It could still default to couchrest-type for backwards compatability.
Cheers
On line 87 of design_doc.rb, it assumes that if the design doc was saved, it has views. This is not always the case, especially if you use CouchDB lists and push them to the design doc before CouchDB can push the views.
How to generate rdoc for.
class Foo < ExtendedDocument
property :bar
end
Is this even possible so that :bar is generated into the rdoc?
Brad
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.