2014-06-15 13:24:15 -04:00
|
|
|
require File.expand_path('on_what', File.dirname(__FILE__))
|
2013-11-26 15:53:45 -05:00
|
|
|
$:.push File.expand_path('../lib', __FILE__)
|
|
|
|
require 'docile/version'
|
2011-12-06 13:51:56 -05:00
|
|
|
|
|
|
|
Gem::Specification.new do |s|
|
2013-11-26 15:53:45 -05:00
|
|
|
s.name = 'docile'
|
2011-12-06 13:51:56 -05:00
|
|
|
s.version = Docile::VERSION
|
2014-06-15 15:14:37 -04:00
|
|
|
s.author = 'Marc Siegel'
|
|
|
|
s.email = 'marc@usainnov.com'
|
2014-06-11 19:16:55 -04:00
|
|
|
s.homepage = 'https://ms-ati.github.io/docile/'
|
2013-11-26 15:53:45 -05:00
|
|
|
s.summary = 'Docile keeps your Ruby DSLs tame and well-behaved'
|
|
|
|
s.description = 'Docile turns any Ruby object into a DSL. Especially useful with the Builder pattern.'
|
|
|
|
s.license = 'MIT'
|
2011-12-06 13:51:56 -05:00
|
|
|
|
2014-06-15 15:14:37 -04:00
|
|
|
# Files included in the gem
|
2011-12-06 13:51:56 -05:00
|
|
|
s.files = `git ls-files`.split("\n")
|
|
|
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
|
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
2013-11-26 15:53:45 -05:00
|
|
|
s.require_paths = %w(lib)
|
2011-12-06 13:51:56 -05:00
|
|
|
|
2014-06-15 15:14:37 -04:00
|
|
|
# Specify oldest supported Ruby version
|
|
|
|
s.required_ruby_version = '>= 1.8.7'
|
|
|
|
|
|
|
|
# Run rspec tests from rake
|
2014-06-15 13:48:45 -04:00
|
|
|
s.add_development_dependency 'rake'
|
2014-06-15 13:44:31 -04:00
|
|
|
s.add_development_dependency 'rspec', '~> 3.0.0'
|
2011-12-06 17:58:09 -05:00
|
|
|
|
2014-06-15 14:03:48 -04:00
|
|
|
# NOTE: needed for Travis builds on 1.8, but can't yet reproduce failure locally
|
2015-03-12 10:51:46 -04:00
|
|
|
s.add_development_dependency 'mime-types' , '~> 1.25.1' if on_1_8?
|
|
|
|
s.add_development_dependency 'rest-client', '~> 1.6.8' if on_1_8?
|
2014-06-15 14:03:48 -04:00
|
|
|
|
2014-06-15 13:24:15 -04:00
|
|
|
# To limit needed compatibility with versions of dependencies, only configure
|
|
|
|
# yard doc generation when *not* on Travis, JRuby, or 1.8
|
|
|
|
if !on_travis? && !on_jruby? && !on_1_8?
|
2014-02-04 14:24:17 -05:00
|
|
|
# Github flavored markdown in YARD documentation
|
|
|
|
# http://blog.nikosd.com/2011/11/github-flavored-markdown-in-yard.html
|
|
|
|
s.add_development_dependency 'yard'
|
2014-06-15 13:39:01 -04:00
|
|
|
s.add_development_dependency 'redcarpet'
|
2014-02-04 14:24:17 -05:00
|
|
|
s.add_development_dependency 'github-markup'
|
2014-02-04 13:54:06 -05:00
|
|
|
end
|
2014-02-04 14:59:09 -05:00
|
|
|
|
2014-06-15 15:14:37 -04:00
|
|
|
# Coveralls test coverage tool, basically hosted SimpleCov
|
2014-02-20 22:17:02 -05:00
|
|
|
s.add_development_dependency 'coveralls'
|
2011-12-06 13:51:56 -05:00
|
|
|
end
|