2020-07-28 11:31:52 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
name = File.basename(__FILE__, ".gemspec")
|
|
|
|
version = ["lib", Array.new(name.count("-")+1, "..").join("/")].find do |dir|
|
|
|
|
break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
|
|
|
|
/^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
|
|
|
|
end rescue nil
|
2018-07-31 08:56:17 -04:00
|
|
|
end
|
2018-07-25 07:53:57 -04:00
|
|
|
|
|
|
|
Gem::Specification.new do |spec|
|
2020-07-28 11:31:52 -04:00
|
|
|
spec.name = name
|
|
|
|
spec.version = version
|
2018-07-25 07:53:57 -04:00
|
|
|
spec.authors = ["Keiju ISHITSUKA"]
|
|
|
|
spec.email = ["keiju@ruby-lang.org"]
|
|
|
|
|
|
|
|
spec.summary = %q{Provides delegation of specified methods to a designated object.}
|
|
|
|
spec.description = %q{Provides delegation of specified methods to a designated object.}
|
|
|
|
spec.homepage = "https://github.com/ruby/forwardable"
|
2020-08-18 07:15:59 -04:00
|
|
|
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
2018-07-25 07:53:57 -04:00
|
|
|
|
2019-08-12 09:28:03 -04:00
|
|
|
spec.files = ["forwardable.gemspec", "lib/forwardable.rb", "lib/forwardable/impl.rb", "lib/forwardable/version.rb"]
|
2018-07-25 07:53:57 -04:00
|
|
|
spec.bindir = "exe"
|
|
|
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
|
|
spec.require_paths = ["lib"]
|
|
|
|
end
|