Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
copiousfreetime committed Jul 6, 2014
0 parents commit d931cf4
Show file tree
Hide file tree
Showing 12 changed files with 654 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
*~
*.swp
*.swo
*.log
coverage
doc
log
pkg
tmp
Gemfile*
*.gemspec
46 changes: 46 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Hi there!

I see you are interested in contributing. That is wonderful. I love
contributions.

I guarantee that there are bugs in this software. And I guarantee that there is
a feature you want that is not in here yet. As such, any and all bugs reports
are gratefully accepted, bugfixes even more so. Helping out with bugs is the
easiest way to contribute.


## The Quick Version

* Have a [GitHub Account][].
* Search the [GitHub Issues][] and see if your issue already present. If so
add your comments, :thumbsup:, etc.
* Issue not there? Not a problem, open up a [new issue][].
* **Bug reports** please be as detailed as possible. Include:
* full ruby engine and version: `ruby -e 'puts RUBY_DESCRIPTION'`
* operating system and version
* version of torid `ruby -rubygems -e "require 'torid'; puts Torid::VERSION"`
* as much detail about the bug as possible so I can replicate it. Feel free
to link in a [gist][]
* **New Feature**
* What the new feature should do.
* What benefit the new feature brings to the project.
* Fork the [repo][].
* Create a new branch for your issue: `git checkout -b issue/my-issue`
* Lovingly craft your contribution:
* `rake develop` to get started, or if you prefer bundler `rake develop:using_bundler && bundle`.
* `rake test` to run tests
* Make sure that `rake test` passes. It's important, I said it twice.
* Add yourself to the contributors section below.
* Submit your [pull request][].

# Contributors

* [Jeremy Hinegardner](https://github.com/copiousfreetime)
* [Kevin Barnes](https://github.com/vinbarnes)

[GitHub Account]: https://github.com/signup/free "GitHub Signup"
[GitHub Issues]: https://github.com/copiousfreetime/torid/issues "Torid Issues"
[new issue]: https://github.com/copiousfreetime/torid/issues/new "New Torid Issue"
[gist]: https://gist.github.com/ "New Gist"
[repo]: https://github.com/copiousfreetime/torid "Torid Repo"
[pull request]: https://help.github.com/articles/using-pull-requests "Using Pull Requests"
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Torid Changelog
## Version 1.0.0

* Initial Release - Yeah!

16 changes: 16 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ISC LICENSE - http://opensource.org/licenses/isc-license.txt

Copyright (c) 2013 Jeremy Hinegardner

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

11 changes: 11 additions & 0 deletions Manifest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CONTRIBUTING.md
HISTORY.md
LICENSE
Manifest.txt
README.md
Rakefile
lib/torid.rb
spec/spec_helper.rb
spec/version_spec.rb
tasks/default.rake
tasks/this.rb
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## Torid

* [Homepage](https://github.com/copiousfreetime/torid/)
* [Github Project](https://github.com/copiousfreetime/torid)
* email jeremy at copiousfreetime dot org

## DESCRIPTION

FIXME

## FEATURES

FIXME

## Examples

## ISC LICENSE

http://opensource.org/licenses/isc-license.txt

Copyright (c) 2014 Jeremy Hinegardner

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice
and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

15 changes: 15 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# vim: syntax=ruby
load 'tasks/this.rb'

This.name = "torid"
This.author = "Jeremy Hinegardner"
This.email = "[email protected]"
This.homepage = "http://github.com/copiousfreetime/#{ This.name }"

This.ruby_gemspec do |spec|
spec.add_development_dependency( 'rake' , '~> 10.1')
spec.add_development_dependency( 'minitest' , '~> 5.0' )
spec.add_development_dependency( 'rdoc' , '~> 4.0' )
end

load 'tasks/default.rake'
10 changes: 10 additions & 0 deletions lib/torid.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Torid is a Time Ordered ID system. It is heavily inspired by the criteria
# listed for Boundary's Flake ID generation system and the lexical_uuid gem from
# James Golick.
module Torid
VERSION = "1.0.0"
end

require 'fnv'
require 'torid/generator'
require 'torid/clock'
Loading

0 comments on commit d931cf4

Please sign in to comment.