dry-schema/dry-schema.gemspec

49 lines
2.0 KiB
Ruby
Raw Normal View History

2019-03-04 09:28:07 +00:00
# frozen_string_literal: true
# this file is synced from dry-rb/template-gem project
2019-03-04 09:28:07 +00:00
lib = File.expand_path("lib", __dir__)
2020-01-12 11:55:40 +00:00
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "dry/schema/version"
2017-04-17 15:04:17 +00:00
Gem::Specification.new do |spec|
spec.name = "dry-schema"
2020-01-12 11:55:40 +00:00
spec.authors = ["Piotr Solnica"]
spec.email = ["piotr.solnica@gmail.com"]
spec.license = "MIT"
2020-01-12 11:55:40 +00:00
spec.version = Dry::Schema::VERSION.dup
spec.summary = "Coercion and validation for data structures"
spec.description = <<~TEXT
2019-05-03 10:53:03 +00:00
dry-schema provides a DSL for defining schemas with keys and rules that should be applied to
values. It supports coercion, input sanitization, custom types and localized error messages
(with or without I18n gem). It's also used as the schema engine in dry-validation.
2020-01-12 11:55:40 +00:00
TEXT
spec.homepage = "https://dry-rb.org/gems/dry-schema"
2020-01-17 17:14:04 +00:00
spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "dry-schema.gemspec", "lib/**/*", "config/*.yml"]
spec.bindir = "bin"
2020-01-31 08:30:01 +00:00
spec.executables = []
spec.require_paths = ["lib"]
2017-04-17 15:04:17 +00:00
spec.metadata["allowed_push_host"] = "https://rubygems.org"
spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-schema/blob/main/CHANGELOG.md"
spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-schema"
spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-schema/issues"
2020-01-12 11:55:40 +00:00
spec.required_ruby_version = ">= 2.7.0"
2020-01-12 11:55:40 +00:00
# to update dependencies edit project.yml
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
spec.add_runtime_dependency "dry-configurable", "~> 1.0", "< 2"
spec.add_runtime_dependency "dry-core", "~> 1.0", "< 2"
2020-01-12 11:55:40 +00:00
spec.add_runtime_dependency "dry-initializer", "~> 3.0"
spec.add_runtime_dependency "dry-logic", ">= 1.4", "< 2"
spec.add_runtime_dependency "dry-types", ">= 1.7", "< 2"
spec.add_runtime_dependency "zeitwerk", "~> 2.6"
2020-01-12 11:55:40 +00:00
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
2017-04-17 15:04:17 +00:00
end