1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
# frozen_string_literal: true
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "view_component/version"
Gem::Specification.new do |spec|
spec.name = "view_component"
spec.version = ViewComponent::VERSION::STRING
spec.author = "ViewComponent Team"
spec.summary = "A framework for building reusable, testable & encapsulated view components in Ruby on Rails."
spec.homepage = "https://viewcomponent.org"
spec.license = "MIT"
spec.metadata["allowed_push_host"] = "https://rubygems.org"
spec.metadata["rubygems_mfa_required"] = "true"
spec.metadata["source_code_uri"] = "https://github.com/viewcomponent/view_component"
spec.metadata["changelog_uri"] = "https://github.com/ViewComponent/view_component/blob/main/docs/CHANGELOG.md"
spec.files = Dir[
"LICENSE.txt",
"README.md",
"app/**/*",
"docs/CHANGELOG.md",
"lib/generators/**/*.rb",
"lib/generators/**/*.tt",
"lib/view_component.rb",
"lib/view_component/**/*"
]
spec.require_paths = ["lib"]
spec.required_ruby_version = ">= 3.2.0"
supported_rails_version = [">= 7.1.0"]
spec.add_runtime_dependency "activesupport", supported_rails_version
spec.add_runtime_dependency "actionview", supported_rails_version
spec.add_runtime_dependency "concurrent-ruby", "~> 1"
end
|