2024-10-24 02:26:39 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-12-14 07:48:37 +08:00
|
|
|
lib = File.expand_path('../lib/', __FILE__)
|
2024-10-24 06:28:03 +08:00
|
|
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
2015-12-14 07:48:37 +08:00
|
|
|
require 'ancestry/version'
|
|
|
|
|
2009-10-16 22:47:29 +08:00
|
|
|
Gem::Specification.new do |s|
|
|
|
|
s.name = 'ancestry'
|
2013-08-13 21:46:49 +08:00
|
|
|
s.summary = 'Organize ActiveRecord model into a tree structure'
|
2013-08-13 21:54:48 +08:00
|
|
|
s.description = <<-EOF
|
|
|
|
Ancestry allows the records of a ActiveRecord model to be organized in a tree
|
2020-08-03 22:05:32 +08:00
|
|
|
structure, using the materialized path pattern. It exposes the standard
|
|
|
|
relations (ancestors, parent, root, children, siblings, descendants)
|
|
|
|
and allows them to be fetched in a single query. Additional features include
|
|
|
|
named scopes, integrity checking, integrity restoration, arrangement
|
|
|
|
of (sub)tree into hashes and different strategies for dealing with orphaned
|
|
|
|
records.
|
2013-08-13 21:54:48 +08:00
|
|
|
EOF
|
2020-09-24 02:42:05 +08:00
|
|
|
|
|
|
|
s.post_install_message = "Thank you for installing Ancestry. You can visit http://github.com/stefankroes/ancestry to read the documentation."
|
|
|
|
|
2017-05-20 18:51:26 +08:00
|
|
|
s.metadata = {
|
|
|
|
"homepage_uri" => "https://github.com/stefankroes/ancestry",
|
|
|
|
"changelog_uri" => "https://github.com/stefankroes/ancestry/blob/master/CHANGELOG.md",
|
|
|
|
"source_code_uri" => "https://github.com/stefankroes/ancestry/",
|
|
|
|
"bug_tracker_uri" => "https://github.com/stefankroes/ancestry/issues",
|
2024-10-24 06:28:03 +08:00
|
|
|
"rubygems_mfa_required" => "true"
|
2017-05-20 18:51:26 +08:00
|
|
|
}
|
2015-12-14 07:48:37 +08:00
|
|
|
s.version = Ancestry::VERSION
|
2009-10-16 22:47:29 +08:00
|
|
|
|
2017-05-05 23:55:09 +08:00
|
|
|
s.authors = ['Stefan Kroes', 'Keenan Brock']
|
|
|
|
s.email = 'keenan@thebrocks.net'
|
2018-05-29 05:00:38 +08:00
|
|
|
s.homepage = 'https://github.com/stefankroes/ancestry'
|
2013-08-13 21:43:51 +08:00
|
|
|
s.license = 'MIT'
|
2009-10-16 22:47:29 +08:00
|
|
|
|
2024-10-24 06:28:03 +08:00
|
|
|
s.files = Dir[
|
2020-09-24 02:52:00 +08:00
|
|
|
"{lib}/**/*",
|
2020-09-24 02:42:05 +08:00
|
|
|
'CHANGELOG.md',
|
2011-02-19 14:25:20 +08:00
|
|
|
'MIT-LICENSE',
|
2017-05-20 18:47:20 +08:00
|
|
|
'README.md'
|
2010-09-18 17:19:40 +08:00
|
|
|
]
|
2020-09-24 02:42:05 +08:00
|
|
|
s.require_paths = ["lib"]
|
2024-10-24 06:28:03 +08:00
|
|
|
|
|
|
|
s.required_ruby_version = '>= 2.5'
|
2021-05-26 04:54:33 +08:00
|
|
|
s.add_runtime_dependency 'activerecord', '>= 5.2.6'
|
2024-10-24 08:07:08 +08:00
|
|
|
s.add_runtime_dependency 'logger'
|
2019-06-07 02:15:58 +08:00
|
|
|
s.add_development_dependency 'appraisal'
|
|
|
|
s.add_development_dependency 'minitest'
|
2024-10-24 06:28:03 +08:00
|
|
|
s.add_development_dependency 'rake', '~> 13.0'
|
2021-05-22 07:33:39 +08:00
|
|
|
s.add_development_dependency 'simplecov'
|
2019-06-07 02:15:58 +08:00
|
|
|
s.add_development_dependency 'yard'
|
2010-10-28 15:16:32 +08:00
|
|
|
end
|