-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathgraphql-docs.gemspec
More file actions
70 lines (61 loc) · 3.04 KB
/
graphql-docs.gemspec
File metadata and controls
70 lines (61 loc) · 3.04 KB
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
68
69
70
# frozen_string_literal: true
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "graphql-docs/version"
Gem::Specification.new do |spec|
spec.name = "graphql-docs"
spec.version = GraphQLDocs::VERSION
spec.authors = ["Brett Chalupa", "Garen Torikian"]
spec.email = ["brettchalupa@gmail.com"]
spec.summary = "Easily generate beautiful documentation from your GraphQL schema."
spec.description = <<-EOF
Library and CLI for generating a website from a GraphQL API's schema
definition. With ERB templating support and a plethora of configuration
options, you can customize the output to your needs. The library easily
integrates with your Ruby deployment toolchain to ensure the docs for your
API are up to date.
EOF
spec.homepage = "https://github.com/brettchalupa/graphql-docs"
spec.license = "MIT"
spec.metadata = {
"homepage_uri" => "https://graphql-docs.bcodes.me",
"bug_tracker_uri" => "https://github.com/brettchalupa/graphql-docs/issues",
"changelog_uri" => "https://github.com/brettchalupa/graphql-docs/blob/main/CHANGELOG.md",
"wiki_uri" => "https://github.com/brettchalupa/graphql-docs/wiki",
"documentation_uri" => "https://rubydoc.info/github/brettchalupa/graphql-docs.git/main",
"source_code_uri" => "https://github.com/brettchalupa/graphql-docs"
}
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features|\.github)/}) ||
f.match(%r{^(Gemfile|Rakefile|CODE_OF_CONDUCT\.md|CONTRIBUTING\.md|\.gitignore|\.rubocop\.yml|\.standard\.yml|config\.ru)$}) ||
f.match(%r{/webfonts/}) # Exclude webfonts directory - using system fonts
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.required_ruby_version = ">= 3.1"
spec.add_dependency "graphql", "~> 2.0"
# rendering
spec.add_dependency "commonmarker", "~> 2.0"
spec.add_dependency "escape_utils", "~> 1.2"
spec.add_dependency "gemoji", "~> 4.0"
spec.add_dependency "html-pipeline", "~> 3.0"
spec.add_dependency "sass-embedded", "~> 1.58"
spec.add_dependency "ostruct", "~> 0.6"
spec.add_dependency "logger", "~> 1.6"
# rack application support (optional, only needed for GraphQLDocs::App)
# Users can install rack separately if they want to use the Rack app feature:
# gem 'rack', '~> 2.0' or gem 'rack', '~> 3.0'
# The gem works with both Rack 2.x and 3.x
spec.add_development_dependency "html-proofer", "~> 5.0"
spec.add_development_dependency "minitest", "~> 5.24"
spec.add_development_dependency "minitest-focus", "~> 1.1"
spec.add_development_dependency "rack", ">= 2.0", "< 4"
spec.add_development_dependency "rack-test", "~> 2.0"
spec.add_development_dependency "rackup", "~> 2.0"
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "standard", "~> 1.0"
spec.add_development_dependency "webmock", "~> 2.3"
spec.add_development_dependency "webrick", "~> 1.7"
spec.add_development_dependency "yard", "~> 0.9"
end