2020-07-28 18:31:52 +03: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 15:56:17 +03:00
|
|
|
end
|
2018-07-25 14:53:57 +03:00
|
|
|
|
|
|
|
Gem::Specification.new do |spec|
|
2020-07-28 18:31:52 +03:00
|
|
|
spec.name = name
|
|
|
|
spec.version = version
|
2018-07-25 14:53:57 +03: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 14:15:59 +03:00
|
|
|
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
2018-07-25 14:53:57 +03:00
|
|
|
|
2019-08-12 16:28:03 +03:00
|
|
|
spec.files = ["forwardable.gemspec", "lib/forwardable.rb", "lib/forwardable/impl.rb", "lib/forwardable/version.rb"]
|
2018-07-25 14:53:57 +03:00
|
|
|
spec.bindir = "exe"
|
|
|
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
|
|
spec.require_paths = ["lib"]
|
|
|
|
end
|