forked from pact-foundation/pact_broker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpact_broker.gemspec
67 lines (60 loc) · 3.45 KB
/
pact_broker.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'pact_broker/version'
Gem::Specification.new do |gem|
gem.name = "pact_broker"
gem.version = PactBroker::VERSION
gem.authors = ["Bethany Skurrie", "Sergei Matheson", "Warner Godfrey"]
gem.description = %q{A server that stores and returns pact files generated by the pact gem. It enables head/prod cross testing of the consumer and provider projects.}
gem.summary = %q{See description}
gem.homepage = "https://github.com/pact-foundation/pact_broker"
gem.required_ruby_version = '>= 2.2.0'
gem.files = begin
if Dir.exist?(".git")
`git ls-files`.split($/)
else
root_path = File.dirname(__FILE__)
all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") }
all_files.reject! { |file| [".", ".."].include?(File.basename(file)) || File.directory?(file)}
gitignore_path = File.join(root_path, ".gitignore")
gitignore = File.readlines(gitignore_path)
gitignore.map! { |line| line.chomp.strip }
gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ }
all_files.reject do |file|
gitignore.any? do |ignore|
file.start_with?(ignore) ||
File.fnmatch(ignore, file, File::FNM_PATHNAME) ||
File.fnmatch(ignore, File.basename(file), File::FNM_PATHNAME)
end
end
end
end
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
gem.license = 'MIT'
#gem.add_runtime_dependency 'pact'
gem.add_runtime_dependency 'httparty', '~> 0.14'
gem.add_runtime_dependency 'json', '~> 2.3'
gem.add_runtime_dependency 'roar', '~> 1.1'
gem.add_runtime_dependency 'reform', '~> 2.3','>= 2.3.1'
gem.add_runtime_dependency 'dry-validation', '~> 0.10.5'
gem.add_runtime_dependency 'sequel', '~> 5.28'
gem.add_runtime_dependency 'webmachine', '1.5.0'
gem.add_runtime_dependency 'semver2', '~> 3.4.2'
gem.add_runtime_dependency 'rack', '>= 2.2.3', '~> 2.2'
gem.add_runtime_dependency 'redcarpet', '>= 3.5.1', '~>3.5'
gem.add_runtime_dependency 'pact-support' , '~> 1.16', '>= 1.16.4'
gem.add_runtime_dependency 'padrino-core', '>= 0.14.3', '~> 0.14'
gem.add_runtime_dependency 'sinatra', '>= 2.0.8.1', '< 3.0'
gem.add_runtime_dependency 'haml', '~>5.0'
gem.add_runtime_dependency 'sucker_punch', '~>2.0'
gem.add_runtime_dependency 'rack-protection', '>= 2.0.8.1', '< 3.0'
gem.add_runtime_dependency 'dry-types', '~> 0.10.3' # https://travis-ci.org/pact-foundation/pact_broker/jobs/249448621
gem.add_runtime_dependency 'dry-logic', '0.4.2' # Later version cases ArgumentError: wrong number of arguments
gem.add_runtime_dependency 'table_print', '~> 1.5'
gem.add_runtime_dependency 'semantic_logger', '~> 4.3'
gem.add_runtime_dependency 'sanitize', '>= 5.2.1', '~> 5.2'
end