1
0
Fork 0
mirror of https://github.com/ms-ati/docile synced 2023-03-27 23:21:52 -04:00
docile/docile.gemspec

55 lines
2.5 KiB
Ruby
Raw Normal View History

2018-01-14 17:17:12 -05:00
$:.push File.expand_path("../lib", __FILE__)
require File.expand_path("on_what", File.dirname(__FILE__))
require "docile/version"
2011-12-06 13:51:56 -05:00
Gem::Specification.new do |s|
2018-01-14 17:17:12 -05:00
s.name = "docile"
2011-12-06 13:51:56 -05:00
s.version = Docile::VERSION
2018-01-14 17:17:12 -05:00
s.author = "Marc Siegel"
s.email = "marc@usainnov.com"
s.homepage = "https://ms-ati.github.io/docile/"
s.summary = "Docile keeps your Ruby DSLs tame and well-behaved."
s.description = "Docile treats the methods of a given ruby object as a DSL " \
"(domain specific language) within a given block. \n\n" \
"Killer feature: you can also reference methods, instance " \
"variables, and local variables from the original (non-DSL) "\
"context within the block. \n\n" \
"Docile releases follow Semantic Versioning as defined at " \
"semver.org."
s.license = "MIT"
2011-12-06 13:51:56 -05:00
# Files included in the gem
2018-01-14 17:17:12 -05:00
s.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
s.require_paths = ["lib"]
2011-12-06 13:51:56 -05:00
# Specify oldest supported Ruby version
2018-01-14 17:17:12 -05:00
s.required_ruby_version = ">= 1.8.7"
2018-01-12 12:49:57 -05:00
# Run rspec tests from rake even on old Ruby versions
2018-01-14 17:17:12 -05:00
s.add_development_dependency "rake", "~> 10.5" if on_less_than_1_9_3? # Pin compatible rake on old rubies, see: https://github.com/travis-ci/travis.rb/issues/380
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
s.add_development_dependency "rspec", "~> 3.0"
2011-12-06 17:58:09 -05:00
2018-01-12 12:49:57 -05:00
# Run code coverage where possible - not on Rubinius
unless on_rubinius?
# Pin versions for Travis builds on 1.9
2018-01-14 17:17:12 -05:00
s.add_development_dependency "json", "< 2.0" if on_less_than_2_0?
2018-01-12 12:49:57 -05:00
# Pin versions for Travis builds on 1.8
2018-01-14 17:17:12 -05: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?
2018-01-12 12:49:57 -05:00
end
# To limit needed compatibility with versions of dependencies, only configure
2018-01-12 12:49:57 -05:00
# yard doc generation when *not* on Travis, JRuby, Rubinius, or < 2.0
if !on_travis? && !on_jruby? && !on_rubinius? && !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
2018-01-14 17:17:12 -05:00
s.add_development_dependency "yard"
s.add_development_dependency "redcarpet"
s.add_development_dependency "github-markup"
2014-02-04 13:54:06 -05:00
end
2011-12-06 13:51:56 -05:00
end