2018-06-07 13:13:00 +03:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-07-28 18:31:52 +03:00
|
|
|
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
|
2019-12-23 03:40:32 +03:00
|
|
|
end
|
|
|
|
|
2018-06-07 13:13:00 +03:00
|
|
|
Gem::Specification.new do |spec|
|
2020-07-28 18:31:52 +03:00
|
|
|
spec.name = name
|
|
|
|
spec.version = version
|
2018-06-07 13:13:00 +03:00
|
|
|
spec.authors = ["Marc-Andre Lafortune"]
|
|
|
|
spec.email = ["ruby-core@marc-andre.ca"]
|
|
|
|
|
|
|
|
spec.summary = %q{Class to build custom data structures, similar to a Hash.}
|
|
|
|
spec.description = %q{Class to build custom data structures, similar to a Hash.}
|
|
|
|
spec.homepage = "https://github.com/ruby/ostruct"
|
2020-08-18 14:15:59 +03:00
|
|
|
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
2020-03-27 03:42:54 +03:00
|
|
|
spec.required_ruby_version = ">= 2.5.0"
|
2018-06-07 13:13:00 +03:00
|
|
|
|
2020-12-22 15:43:30 +03:00
|
|
|
spec.files = [".gitignore", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/ostruct.rb", "ostruct.gemspec"]
|
2018-06-07 13:13:00 +03:00
|
|
|
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"
|
|
|
|
end
|