forked from mdub/arboreal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharboreal.gemspec
30 lines (26 loc) · 1.31 KB
/
arboreal.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
27
28
29
30
description = <<TEXT
Arboreal is yet another extension to ActiveRecord to support tree-shaped data structures.
Internally, Arboreal maintains a computed "materialized_path" column, which caches the path from the root of
a tree to each node, allowing efficient retrieval of both ancestors and descendants.
Arboreal surfaces relationships within the tree like "children", "ancestors", "descendants", and "siblings"
as scopes, so that additional filtering/pagination can be performed.
TEXT
$: << File.expand_path("../lib", __FILE__)
require "arboreal/version"
Gem::Specification.new do |s|
s.name = "arboreal"
s.version = Arboreal::VERSION.dup
s.platform = Gem::Platform::RUBY
s.required_ruby_version = ">= 2.2.0"
s.summary = "Efficient tree structures for ActiveRecord"
s.description = description
s.author = "Mike Williams"
s.email = "[email protected]"
s.homepage = "http://github.com/mdub/arboreal"
s.extra_rdoc_files = ["README.rdoc", "LICENSE"]
s.rdoc_options = ["--title", "Arboreal", "--main", "README.rdoc"]
s.require_path = "lib"
s.files = Dir["lib/**/*", "spec/**/*", "Rakefile"] + s.extra_rdoc_files
s.add_runtime_dependency("activerecord", ">= 4.2")
s.add_runtime_dependency("activesupport", ">= 4.2")
end