2018-06-07 06:13:00 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-07-28 11:31:52 -04: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-22 19:40:32 -05:00
|
|
|
end
|
|
|
|
|
2018-06-07 06:13:00 -04:00
|
|
|
Gem::Specification.new do |spec|
|
2020-07-28 11:31:52 -04:00
|
|
|
spec.name = name
|
|
|
|
spec.version = version
|
2018-06-07 06:13:00 -04: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 07:15:59 -04:00
|
|
|
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
2020-03-26 20:42:54 -04:00
|
|
|
spec.required_ruby_version = ">= 2.5.0"
|
2018-06-07 06:13:00 -04:00
|
|
|
|
2020-12-22 07:43:30 -05:00
|
|
|
spec.files = [".gitignore", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/ostruct.rb", "ostruct.gemspec"]
|
2018-06-07 06:13:00 -04:00
|
|
|
spec.require_paths = ["lib"]
|
|
|
|
|
|
|
|
spec.add_development_dependency "bundler"
|
|
|
|
spec.add_development_dependency "rake"
|
|
|
|
end
|