Skip to content

Commit

Permalink
initial support for gem creation
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymous committed Jan 29, 2012
1 parent 421cd15 commit 938b59b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions syncache.gemspec
@@ -0,0 +1,24 @@
Gem::Specification.new do |spec|
spec.name = 'syncache'
spec.version = '1.2'
spec.author = 'Dmitry Borodaenko'
spec.email = 'angdraug@debian.org'
spec.homepage = 'https://github.com/angdraug/syncache'
spec.summary = 'Thread-safe time-limited cache with flexible replacement policy'
spec.description = <<-EOF
SynCache stores cached objects in a Hash that is protected by an advanced
two-level locking mechanism which ensures that:
* Multiple threads can add and fetch objects in parallel.
* While one thread is working on a cache entry, other threads can access
the rest of the cache with no waiting on the global lock, no race
conditions nor deadlock or livelock situations.
* While one thread is performing a long and resource-intensive
operation, other threads that request the same data will be put on hold,
and as soon as the first thread completes the operation, the result will be
returned to all threads.
EOF
spec.files = `git ls-files`.split "\n"
spec.executables = spec.files.map{|p| p =~ /^bin\/(.*)/ ? $1 : nil }.compact
spec.license = 'GPL3+'
end

0 comments on commit 938b59b

Please sign in to comment.