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
2016-05-18 11:50:59 -04:00
s . add_development_dependency 'rake' , '~> 10.5.0' if on_less_than_1_9_3? # Pin compatible rake on old rubies, see: https://github.com/travis-ci/travis.rb/issues/380
2016-12-27 14:32:23 -05:00
s . add_development_dependency 'rake' , '< 11.0' unless on_less_than_1_9_3? # See http://stackoverflow.com/questions/35893584/nomethoderror-undefined-method-last-comment-after-upgrading-to-rake-11
2014-06-15 13:44:31 -04:00
s . add_development_dependency 'rspec' , '~> 3.0.0'
2011-12-06 17:58:09 -05:00
2016-12-27 15:18:44 -05:00
# Pin versions for Travis builds on 1.9
s . add_development_dependency 'json' , '< 2.0' if on_less_than_2_0?
# Pin versions for Travis builds on 1.8
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
2016-12-27 15:18:44 -05:00
# yard doc generation when *not* on Travis, JRuby, or < 2.0
if ! on_travis? && ! on_jruby? && ! on_less_than_2_0?
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
2011-12-06 13:51:56 -05:00
end