summaryrefslogtreecommitdiff
path: root/lib/delegate
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-11-07 13:21:46 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-11-07 16:36:14 +0900
commit1159dbf305603b60a1e5d2b9ff77a9cf30775296 (patch)
tree42f11e4299ced5f0b68250eb1a12d88f97a96fca /lib/delegate
parent3b0bd34001bbb7ba98e9594278a8fcbb7b734af9 (diff)
Promote delegate to default gems
Diffstat (limited to 'lib/delegate')
-rw-r--r--lib/delegate/delegate.gemspec27
-rw-r--r--lib/delegate/version.rb3
2 files changed, 30 insertions, 0 deletions
diff --git a/lib/delegate/delegate.gemspec b/lib/delegate/delegate.gemspec
new file mode 100644
index 0000000000..e51b50a98f
--- /dev/null
+++ b/lib/delegate/delegate.gemspec
@@ -0,0 +1,27 @@
+begin
+ require_relative "lib/delegate/version"
+rescue LoadError # Fallback to load version file in ruby core repository
+ require_relative "version"
+end
+
+Gem::Specification.new do |spec|
+ spec.name = "delegate"
+ spec.version = Delegator::VERSION
+ spec.authors = ["Yukihiro Matsumoto"]
+ spec.email = ["matz@ruby-lang.org"]
+
+ spec.summary = %q{Provides three abilities to delegate method calls to an object.}
+ spec.description = %q{Provides three abilities to delegate method calls to an object.}
+ spec.homepage = "https://github.com/ruby/delegate"
+ 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/delegate/version.rb b/lib/delegate/version.rb
new file mode 100644
index 0000000000..456e8f772c
--- /dev/null
+++ b/lib/delegate/version.rb
@@ -0,0 +1,3 @@
+class Delegator
+ VERSION = "0.1.0"
+end