Skip to content
A simple Ruby decorator to make your objects thread-safe
Branch: master
Clone or download
Latest commit 7a4ec54 Jul 3, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib #3 fixed Jun 23, 2019
test #3 fixed Jun 23, 2019
.0pdd.yml #1 skeleton Mar 6, 2019
.gitignore #1 skeleton Mar 6, 2019
.pdd #1 skeleton Mar 6, 2019
.rubocop.yml #1 appveyor fix Mar 6, 2019
.rultor.yml readme and logo Jun 23, 2019
.travis.yml readme and logo Jun 23, 2019
Gemfile #1 skeleton Mar 6, 2019
LICENSE.txt license May 22, 2019 blog post Jul 3, 2019
Rakefile #1 skeleton Mar 6, 2019
appveyor.yml #1 skeleton Mar 6, 2019
logo.svg readme and logo Jun 23, 2019
syncem.gemspec #1 skeleton Mar 6, 2019

EO principles respected here DevOps By We recommend RubyMine

Build Status Build status Gem Version Maintainability Yard Docs

Hits-of-Code License

Read this blog post: SyncEm: Thread-Safe Decorators in Ruby.

Sometimes you have an object that is not thread-safe, but you need to make sure each of its methods is thread-safe, because they deal with some resources, like files or databases and you want them to manage those resources sequentially. This small gem will help you achieve exactly that without any re-design of the objects you already have. Just decorate them with SyncEm thread-safe decorator and that is it.

First, install it:

$ gem install syncem

Then, use it like this:

require 'syncem'
obj =

That's it.

How to contribute

Read these guidelines. Make sure you build is green before you contribute your pull request. You will need to have Ruby 2.3+ and Bundler installed. Then:

$ bundle update
$ bundle exec rake

If it's clean and you don't see any error messages, submit your pull request.

You can’t perform that action at this time.