forked from ahx/openapi_first
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi_first.gemspec
53 lines (45 loc) · 1.95 KB
/
openapi_first.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
# frozen_string_literal: true
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'openapi_first/version'
Gem::Specification.new do |spec|
spec.name = 'openapi_first'
spec.version = OpenapiFirst::VERSION
spec.authors = ['Andreas Haller']
spec.email = ['[email protected]']
spec.licenses = ['MIT']
spec.summary = 'Implement REST APIs based on OpenApi.'
spec.homepage = 'https://github.com/ahx/openapi_first'
if spec.respond_to?(:metadata)
spec.metadata['https://github.com/ahx/openapi_first'] = spec.homepage
spec.metadata['source_code_uri'] = 'https://github.com/ahx/openapi_first'
spec.metadata['changelog_uri'] = 'https://github.com/ahx/openapi_first/blob/master/CHANGELOG.md'
else
raise 'RubyGems 2.0 or newer is required to protect against ' \
'public gem pushes.'
end
spec.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`
.split("\x0")
.reject { |f| f.match(%r{^(test|spec|features)/}) }
.reject { |f| %w[Dockerfile Jenkinsfile .tool-versions].include?(f) }
end
spec.bindir = 'exe'
spec.require_paths = ['lib']
spec.required_ruby_version = '>= 3.0.5'
spec.add_runtime_dependency 'deep_merge', '>= 1.2.1'
spec.add_runtime_dependency 'hanami-router', '~> 2.0.0'
spec.add_runtime_dependency 'hanami-utils', '~> 2.0.0'
spec.add_runtime_dependency 'json_refs', '~> 0.1', '>= 0.1.7'
spec.add_runtime_dependency 'json_schemer', '~> 0.2.16'
spec.add_runtime_dependency 'multi_json', '~> 1.14'
spec.add_runtime_dependency 'rack', '~> 2.2'
spec.add_runtime_dependency 'rj_schema', '~> 1.0', '>= 1.0.4'
spec.add_development_dependency 'bundler', '~> 2'
spec.add_development_dependency 'rack-test', '~> 1'
spec.add_development_dependency 'rake', '~> 13'
spec.add_development_dependency 'rspec', '~> 3'
spec.metadata = {
'rubygems_mfa_required' => 'true'
}
end