diff options
author | Hiroshi SHIBATA <[email protected]> | 2019-11-06 11:29:51 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2019-11-07 07:16:26 +0900 |
commit | 91135f6d2900b1b8ae41998a921b6382ebba395c (patch) | |
tree | 8072672d3572151d699c49d70a3852af46be8a87 /lib/singleton | |
parent | 40e161a61238625e1ef021311759b2159be5b50a (diff) |
Promote singleton to default gems
Diffstat (limited to 'lib/singleton')
-rw-r--r-- | lib/singleton/singleton.gemspec | 27 | ||||
-rw-r--r-- | lib/singleton/version.rb | 3 |
2 files changed, 30 insertions, 0 deletions
diff --git a/lib/singleton/singleton.gemspec b/lib/singleton/singleton.gemspec new file mode 100644 index 0000000000..f7ee6bb2dc --- /dev/null +++ b/lib/singleton/singleton.gemspec @@ -0,0 +1,27 @@ +begin + require_relative "lib/singleton/version" +rescue LoadError # Fallback to load version file in ruby core repository + require_relative "version" +end + +Gem::Specification.new do |spec| + spec.name = "singleton" + spec.version = Singleton::VERSION + spec.authors = ["Yukihiro Matsumoto"] + spec.email = ["[email protected]"] + + spec.summary = %q{The Singleton module implements the Singleton pattern.} + spec.description = spec.summary + spec.homepage = "https://github.com/ruby/singleton" + spec.license = "BSD-2-Clause" + + spec.metadata["homepage_uri"] = spec.homepage + spec.metadata["source_code_uri"] = spec.homepage + + spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do + `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } + end + spec.bindir = "exe" + spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } + spec.require_paths = ["lib"] +end diff --git a/lib/singleton/version.rb b/lib/singleton/version.rb new file mode 100644 index 0000000000..01ab1eb5fa --- /dev/null +++ b/lib/singleton/version.rb @@ -0,0 +1,3 @@ +module Singleton + VERSION = "0.1.0" +end |