-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrails_model_load_hook.gemspec
26 lines (21 loc) · 1.09 KB
/
rails_model_load_hook.gemspec
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
require_relative "lib/rails_model_load_hook/version"
require_relative 'lib/rails_model_load_hook/authors'
Gem::Specification.new do |spec|
spec.platform = Gem::Platform::RUBY
spec.name = "rails_model_load_hook"
spec.version = RailsModelLoadHook::VERSION
spec.authors = RailsModelLoadHook::AUTHORS.filter_map &:name
spec.email = RailsModelLoadHook::AUTHORS.filter_map &:email
spec.homepage = "#{RailsModelLoadHook::AUTHORS.filter_map(&:github_url).first}/#{spec.name}"
spec.summary = 'Load hook for Rails model classes.'
spec.description = 'Adds :model_class load hook for every ActiveRecord descendant.'
spec.license = "MIT"
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
spec.metadata["changelog_uri"] = "#{spec.metadata['source_code_uri']}/blob/v#{spec.version}/CHANGELOG.md"
spec.files = Dir.chdir(File.expand_path(__dir__)) do
Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md", 'CHANGELOG.md']
end
spec.required_ruby_version = '>= 2.7'
spec.add_dependency 'rails', '~> 7.1'
end