# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "dagnabit/version"

Gem::Specification.new do |s|
  s.name          = "dagnabit"
  s.version       = Dagnabit::VERSION
  s.platform      = Gem::Platform::RUBY
  s.authors       = ["David Yip"]
  s.email         = ["yipdw@member.fsf.org"]
  s.homepage      = "http://rubygems.org/gems/dagnabit"
  s.summary       = %q{Directed acyclic graph plugin for ActiveRecord/PostgreSQL}
  s.description   = %q{Directed acyclic graph support library for applications using ActiveRecord on top of PostgreSQL.}
  s.files         = Dir.glob("{*.md,LICENSE,lib/**/*,bin/dagnabit-test,db/**/*}")
  s.executables   = ["dagnabit-test"]
  s.require_paths = ["lib"]

  s.add_dependency  'activerecord', '~> 2.3.0'

  [ [ 'autotest',   nil        ],
    [ 'bluecloth',  nil        ],
    [ 'cucumber',   nil        ],
    [ 'rake',       nil        ],
    [ 'rcov',       nil        ],
    [ 'rspec',      '~> 2.0',  ],
    [ 'pg',         nil        ],
    [ 'yard',       nil        ]
  ].each do |gem, version|
    s.add_development_dependency gem, version
  end
end

# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "dagnabit/version"

Gem::Specification.new do |s|
  s.name          = "dagnabit"
  s.version       = Dagnabit::VERSION
  s.platform      = Gem::Platform::RUBY
  s.authors       = ["David Yip"]
  s.email         = ["yipdw@member.fsf.org"]
  s.homepage      = "http://rubygems.org/gems/dagnabit"
  s.summary       = %q{Directed acyclic graph plugin for ActiveRecord/PostgreSQL}
  s.description   = %q{Directed acyclic graph support library for applications using ActiveRecord on top of PostgreSQL.}
  s.files         = Dir.glob("{*.md,LICENSE,lib/**/*,bin/dagnabit-test,db/**/*}")
  s.executables   = ["dagnabit-test"]
  s.require_paths = ["lib"]

  s.add_dependency  'activerecord', '>= 2.3.0'

  [ [ 'autotest',   nil        ],
    [ 'bluecloth',  nil        ],
    [ 'cucumber',   nil        ],
    [ 'rake',       nil        ],
    [ 'rcov',       nil        ],
    [ 'rspec',      '~> 2.0',  ],
    [ 'pg',         nil        ],
    [ 'yard',       nil        ]
  ].each do |gem, version|
    s.add_development_dependency gem, version
  end
end

Declare compatibility with ActiveRecord 3.0.
Declare compatibility with ActiveRecord 3.0.

Strictly speaking, this declares compatibility with every ActiveRecord
version >= 2.3.0, and I need a CI build to provide some evidence of
that; however, dagnabit's specs and Cucumber scenarios pass with 2.3.10
and 3.0.3, so I'm going to make an unwarranted assumption and say >=
2.3.0 is okay.
