diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-17 12:21:29 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-17 12:21:29 +0000 |
commit | e749134f0a38fca202aacc0ff65db882646749c2 (patch) | |
tree | 6fc116a3afc76b4d694853be1ee6941c8c2afab2 /lib | |
parent | c982cbd16a97e74be42463580c8dea0c1c4bb280 (diff) |
Promote Synchronizer to default gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sync.gemspec | 22 | ||||
-rw-r--r-- | lib/sync.rb | 3 |
2 files changed, 25 insertions, 0 deletions
diff --git a/lib/sync.gemspec b/lib/sync.gemspec new file mode 100644 index 0000000000..5c664657c6 --- /dev/null +++ b/lib/sync.gemspec @@ -0,0 +1,22 @@ +require_relative "sync" + +Gem::Specification.new do |spec| + spec.name = "sync" + spec.version = Sync::VERSION + spec.authors = ["Keiju ISHITSUKA"] + spec.email = ["keiju@ruby-lang.org"] + + spec.summary = %q{A module that provides a two-phase lock with a counter.} + spec.description = %q{A module that provides a two-phase lock with a counter.} + spec.homepage = "https://github.com/ruby/sync" + spec.license = "BSD-2-Clause" + + spec.files = [".gitignore", ".travis.yml", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/sync.rb", "sync.gemspec"] + spec.bindir = "exe" + spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } + spec.require_paths = ["lib"] + + spec.add_development_dependency "bundler" + spec.add_development_dependency "rake" + spec.add_development_dependency "test-unit" +end diff --git a/lib/sync.rb b/lib/sync.rb index 6e203bc8f0..ba80d372a7 100644 --- a/lib/sync.rb +++ b/lib/sync.rb @@ -316,6 +316,9 @@ Synchronizer_m = Sync_m # details. class Sync + + VERSION = "0.1.0" + include Sync_m end |