# frozen_string_literal: true require_relative 'lib/shaped/version' Gem::Specification.new do |spec| spec.name = 'shaped' spec.version = Shaped::VERSION spec.authors = ['David Runger'] spec.email = ['davidjrunger@gmail.com'] spec.summary = 'Validate the "shape" of Ruby objects.' spec.description = 'Validate the "shape" of Ruby objects.' spec.homepage = 'https://github.com/davidrunger/shaped' spec.license = 'MIT' required_ruby_version = File.read('.ruby-version').rstrip.sub(/\A(\d+\.\d+)\.\d+\z/, '\1.0') spec.required_ruby_version = ">= #{required_ruby_version}" spec.metadata['rubygems_mfa_required'] = 'true' spec.metadata['homepage_uri'] = spec.homepage spec.metadata['source_code_uri'] = 'https://github.com/davidrunger/shaped' spec.metadata['changelog_uri'] = 'https://github.com/davidrunger/shaped/blob/main/CHANGELOG.md' # Specify which files should be added to the gem when it is released. # The `git ls-files -z` loads the files in the RubyGem that have been added into git. spec.files = Dir.chdir(File.expand_path(__dir__)) do `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } end spec.require_paths = ['lib'] spec.add_dependency('activemodel', '>= 6') spec.add_dependency('activesupport', '>= 6') end