Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A synchronous Ruby client for Doozer.

tag: v0.1.0

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin disconnect. April 15, 2011
Octocat-spinner-32 examples disconnect. April 15, 2011
Octocat-spinner-32 lib
Octocat-spinner-32 test Fix the tests, whoops. April 21, 2011
Octocat-spinner-32 .gitignore Fraggle BLOCK April 14, 2011
Octocat-spinner-32 Gemfile Fraggle BLOCK April 14, 2011
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile rake test:all. April 14, 2011
Octocat-spinner-32 fraggle-block.gemspec
README.md

Fraggle::Block

A synchronous Ruby client for Doozer.

Install

$ gem install fraggle-block

Use

>> require 'rubygems'
>> require 'fraggle/block'
>> client = Fraggle::Block.connect
=> #<Fraggle::Block::Client:0x10217b260 @connection=#<Fraggle::Block::Connection:0x10217bbc0 @cn=#<TCPSocket:0x10217b3c8>, host"127.0.0.1", port8046
>> client.set('/foo', 'test', 0)
=> Fraggle::Block::Response tag: 0, flags: 3, rev: 482
>> foo = client.get('/foo')
=> Fraggle::Block::Response value: "test", tag: 0, flags: 3, rev: 482
>> foo = client.getdir('/')
=> [Fraggle::Block::Response path: "foo", tag: 0, flags: 1, Fraggle::Block::Response path: "ctl", tag: 0, flags: 1, Fraggle::Block::Response tag: 0, flags: 2]
>> foo = client.del('/foo', 482)
=> Fraggle::Block::Response tag: 0, flags: 3
>> client.disconnect
=> nil 

See examples for more.

Something went wrong with that request. Please try again.