-
Notifications
You must be signed in to change notification settings - Fork 9
/
goliath-contrib.gemspec
52 lines (40 loc) · 1.68 KB
/
goliath-contrib.gemspec
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
44
45
46
47
48
49
50
51
52
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require 'goliath/contrib/version'
Gem::Specification.new do |s|
s.name = "goliath-contrib"
s.version = Goliath::Contrib::VERSION
s.authors = ["goliath-io"]
s.email = ["goliath-io@googlegroups.com"]
s.homepage = "https://github.com/postrank-labs/goliath-contrib"
s.summary = "Contributed Goliath middleware, plugins, and utilities"
s.description = s.summary
s.required_ruby_version = '>=1.9.2'
s.add_dependency 'goliath'
s.add_development_dependency 'rspec', '>2.0'
s.add_development_dependency 'em-http-request', '>=1.0.0'
s.add_development_dependency 'postrank-uri'
s.add_development_dependency 'guard'
s.add_development_dependency 'guard-rspec'
if RUBY_PLATFORM.include?('darwin')
s.add_development_dependency 'growl', '~> 1.0.3'
s.add_development_dependency 'rb-fsevent'
end
if RUBY_PLATFORM != 'java'
s.add_development_dependency 'yajl-ruby'
s.add_development_dependency 'bluecloth'
s.add_development_dependency 'bson_ext'
else
s.add_development_dependency 'json-jruby'
s.add_development_dependency 'maruku'
end
ignores = File.readlines(".gitignore").grep(/\S+/).map {|i| i.chomp }
dotfiles = [".gemtest", ".gitignore", ".rspec", ".yardopts"]
# s.files = `git ls-files`.split($\)
# s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
# s.test_files = s.files.grep(%r{^(test|spec|features)/})
# s.require_paths = ["lib"]
s.files = Dir["**/*"].reject {|f| File.directory?(f) || ignores.any? {|i| File.fnmatch(i, f) } } + dotfiles
s.test_files = s.files.grep(/^spec\//)
s.require_paths = ['lib']
end