Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby noeqd GUID client.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
LICENSE
README.md
Rakefile
TODO
noeq.gemspec

README.md

noeq-rb

noeq-rb is a noeqd GUID client in Ruby.

Annotated source code is available.

Installation

gem install noeq

Usage

One-time GUID from localhost

require 'noeq'
Noeq.generate(2) #=> [142692304753262592, 142692304753262593]

Regular usage

require 'noeq'

noeq = Noeq.new('idserver.local')
noeq.generate #=> 142692638036852736
noeq.generate(5) #=> [142692782450933760, 142692782450933761, 142692782450933762, 142692782450933763, 142692782450933764]

Async usage

require 'noeq'

noeq = Noeq.new('localhost', 4444, :async => true)
noeq.request_id
# do some things
noeq.fetch_id #=> 142692638036852736
Something went wrong with that request. Please try again.