forked from mindmatters/apivore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apivore.gemspec
40 lines (36 loc) · 1.62 KB
/
apivore.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
$:.push File.expand_path("../lib", __FILE__)
require 'apivore/version'
Gem::Specification.new do |s|
s.name = 'apivore'
s.version = Apivore::VERSION
s.summary = "Tests your API against its OpenAPI (Swagger) 2.0 spec"
s.description = "Tests your rails API using its OpenAPI (Swagger) description of end-points, models, and query parameters."
s.authors = ["Charles Horn"]
s.email = '[email protected]'
s.files = ['lib/apivore.rb', 'data/swagger_2.0_schema.json', 'data/draft04_schema.json']
s.files += Dir['lib/apivore/*.rb']
s.files += Dir['data/custom_schemata/*.json']
s.homepage = 'http://github.com/westfieldlabs/apivore'
s.licenses = ['Apache 2.0']
s.add_runtime_dependency 'json-schema', '~> 2.5'
s.add_runtime_dependency 'rspec', '~> 3'
s.add_runtime_dependency 'rspec-expectations', '~> 3.1'
s.add_runtime_dependency 'rspec-mocks', '~> 3.1'
s.add_runtime_dependency 'hashie', '~> 3.3'
s.add_development_dependency 'pry', '~> 0'
s.add_development_dependency 'rake', '~> 10.3'
s.add_development_dependency 'rspec-rails', '~> 3'
# Rails 5 stopped support for ruby < 2.2.2
# Hack to support currently suported ruby versions
# TODO: remove and explicitly require ruby 2.2.2 as min version in version 2 of apivore
if RUBY_VERSION >= '2.2.2'
s.add_runtime_dependency 'actionpack', '~> 6'
s.add_development_dependency 'activesupport', '~> 6'
else
s.add_runtime_dependency 'actionpack', '< 5'
s.add_development_dependency 'activesupport', '< 5'
end
if RUBY_VERSION >= '2.2.0'
s.add_development_dependency 'test-unit', '~> 3'
end
end