File: docile.gemspec

package info (click to toggle)
ruby-docile 1.1.5-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 156 kB
  • sloc: ruby: 374; makefile: 2
file content (43 lines) | stat: -rw-r--r-- 1,724 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
require File.expand_path('on_what', File.dirname(__FILE__))
$:.push File.expand_path('../lib', __FILE__)
require 'docile/version'

Gem::Specification.new do |s|
  s.name        = 'docile'
  s.version     = Docile::VERSION
  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 turns any Ruby object into a DSL. Especially useful with the Builder pattern.'
  s.license     = 'MIT'

  # Files included in the gem
  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) }
  s.require_paths = %w(lib)

  # Specify oldest supported Ruby version
  s.required_ruby_version = '>= 1.8.7'

  # Run rspec tests from rake
  s.add_development_dependency 'rake'
  s.add_development_dependency 'rspec', '~> 3.0.0'

  # NOTE: needed for Travis builds on 1.8, but can't yet reproduce failure locally
  s.add_development_dependency 'mime-types', '~> 1.25.1' if on_1_8?

  # 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?
    # Github flavored markdown in YARD documentation
    # http://blog.nikosd.com/2011/11/github-flavored-markdown-in-yard.html
    s.add_development_dependency 'yard'
    s.add_development_dependency 'redcarpet'
    s.add_development_dependency 'github-markup'
  end

  # Coveralls test coverage tool, basically hosted SimpleCov
  s.add_development_dependency 'coveralls'
end