Fetching contributors…
Cannot retrieve contributors at this time
52 lines (47 sloc) 1.89 KB
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
require 'ancestry/version' do |s| = 'ancestry'
s.summary = 'Organize ActiveRecord model into a tree structure'
s.description = <<-EOF
Ancestry allows the records of a ActiveRecord model to be organized in a tree
structure, using a single, intuitively formatted database column. It exposes
all the standard tree structure relations (ancestors, parent, root, children,
siblings, descendants) and all of them can be fetched in a single sql query.
Additional features are named_scopes, integrity checking, integrity restoration,
arrangement of (sub)tree into hashes and different strategies for dealing with
orphaned records.
s.metadata = {
"homepage_uri" => "",
"changelog_uri" => "",
"source_code_uri" => "",
"bug_tracker_uri" => "",
s.version = Ancestry::VERSION
s.authors = ['Stefan Kroes', 'Keenan Brock'] = ''
s.homepage = ''
s.license = 'MIT'
s.files = [
s.required_ruby_version = '>= 1.8.7'
s.add_runtime_dependency 'activerecord', '>= 3.2.0'
s.add_development_dependency 'yard'
s.add_development_dependency 'rake', '~> 10.0'
s.add_development_dependency 'test-unit'
s.add_development_dependency 'minitest'
s.add_development_dependency 'sqlite3'