The reason I want to get the tests passing is because I'm getting a
strange error with ruby 1.8.7 (2008-08-11 patchlevel 72)
[i686-darwin9]:
>> db = CouchRest.database("http://127.0.0.1:5984/account_1-database_1")
=> #<CouchRest::Database:0x2347b94
@streamer=#<CouchRest::Streamer:0x2347b58
@db=#<CouchRest::Database:0x2347b94 ...>>,
@root="127.0.0.1:5984/account_1-database_1", @host="127.0.0.1:5984",
@server=#<CouchRest::Server:0x2347ba8 @uuid_batch_count=1000,
@uri="127.0.0.1:5984">, @name="account_1-database_1">
>> db.get('_design/system')
URI::InvalidURIError: bad URI(is not URI?):
127.0.0.1:5984/account_1-database_1/_design%2Fsystem
from /opt/local/lib/ruby/1.8/uri/common.rb:436:in `split'
from /opt/local/lib/ruby/1.8/uri/common.rb:485:in `parse'
from /Users/aeden/Development/aetrion/ndepth/vendor/gems/rest-client-0.8/lib/rest_client.rb:196:in
`process_result'
from /Users/aeden/Development/aetrion/ndepth/vendor/gems/rest-client-0.8/lib/rest_client.rb:177:in
`transmit'
from /opt/local/lib/ruby/1.8/net/http.rb:543:in `start'
from /Users/aeden/Development/aetrion/ndepth/vendor/gems/rest-client-0.8/lib/rest_client.rb:174:in
`transmit'
from /Users/aeden/Development/aetrion/ndepth/vendor/gems/rest-client-0.8/lib/rest_client.rb:114:in
`execute_inner'
from /Users/aeden/Development/aetrion/ndepth/vendor/gems/rest-client-0.8/lib/rest_client.rb:106:in
`execute'
from /Users/aeden/Development/aetrion/ndepth/vendor/gems/rest-client-0.8/lib/rest_client.rb:93:in
`execute'
from /Users/aeden/Development/aetrion/ndepth/vendor/gems/rest-client-0.8/lib/rest_client.rb:47:in
`get'
from /Users/aeden/Development/aetrion/ndepth/vendor/gems/jchris-couchrest-0.9.12/lib/couchrest.rb:99:in
`get'
from /Users/aeden/Development/aetrion/ndepth/vendor/gems/jchris-couchrest-0.9.12/lib/couchrest/core/database.rb:73:in
`get'
from (irb):5
Any thoughts on either of these issues would be greatly appreciated. Thanks.
Sincerely,
Anthony Eden
--
GMU/IT d- s: a32 C++(++++)$ UL@ P--- L+(++) !E W+++$ !N o? K? w--- !O
M++ V PS+ PE Y PGP t+ !5 X- R tv b++ DI+ D++ G- e++ h---- r+++ y++++**
>
> I'm trying to run the specs for the latest couchrest code in github
> and it's failing for specs that involve move and copy. I looked in the
> rest-client and I can't find any references to copy or move. I also
> looked in your fork but didn't see it there either. Any suggestions on
> how I can get the specs passing?
There's a comment in this commit:
http://github.com/jchris/couchrest/commit/9faa9daacab151ebd89241cead8cb4261f6b0702
saying that you need a specific version of RestClient that includes
move and copy.
Antony Blakey
-------------
CTO, Linkuistics Pty Ltd
Ph: 0438 840 787
There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies.
-- C. A. R. Hoare
the patch will be forthcoming tonight, provided i don't get entangled
in another life-sapping call to zipcar customer service like I did
last night.
fwiw I'm all about things "just working" as much as anyone; i should
have held the patch until I had heard back from adam about
rest-client.
ml
Upgrading to the latest gem solved the issue I was having with the URI, thanks.