elasticgraph-rack 0.18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +24 -0
- data/README.md +36 -0
- data/elasticgraph-rack.gemspec +22 -0
- data/lib/elastic_graph/rack/graphiql/README.md +38 -0
- data/lib/elastic_graph/rack/graphiql/index.html +69 -0
- data/lib/elastic_graph/rack/graphiql.rb +31 -0
- data/lib/elastic_graph/rack/graphql_endpoint.rb +52 -0
- metadata +369 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b67497d866092a00cf5bdd62d1498d4207b69c3d5117ef026e284ec28ff6911e
|
4
|
+
data.tar.gz: f3074f28918c80cc01d4f54413144557cb289b82b5313a6e1b5a3c55968adab1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8a86bbbc5e58025acbd83020b638fe8e6a2a3bec78f7b6821ce9ffbe0cf9693c948af42debcb24272fa9eec0623e8780df8309c63d2cd3c924846169e50ba9e2
|
7
|
+
data.tar.gz: 3db0fc284aba5d738cd7b4e6dab0f20cd933b4ad0148e15fd35db292ccc71e01d3a86c8a1011e8228668f6d51dee62d17df60aec3ef40286362d319eef8735ee
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2024 Block, Inc.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
22
|
+
|
23
|
+
Part of the distributed code (lib/elastic_graph/rack/graphiql/index.html)
|
24
|
+
comes from the GraphiQL project, licensed under the MIT License. Copyright (c) GraphQL Contributors.
|
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# ElasticGraph::Rack
|
2
|
+
|
3
|
+
Uses [Rack](https://github.com/rack/rack) to serve an ElasticGraph application.
|
4
|
+
Intended primarily to make it easy to boot ElasticGraph applications locally,
|
5
|
+
but could also be used to serve an ElasticGraph application from any Rack
|
6
|
+
compatible web server.
|
7
|
+
|
8
|
+
## Serving an ElasticGraph GraphQL Endpoint
|
9
|
+
|
10
|
+
`ElasticGraph::Rack::GraphQLEndpoint` is a Rack application. Here's an
|
11
|
+
example of using it in a Rack `config.ru` file:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'elastic_graph/graphql'
|
15
|
+
require 'elastic_graph/rack/graphql_endpoint'
|
16
|
+
|
17
|
+
graphql = ElasticGraph::GraphQL.from_yaml_file("path/to/config.yaml")
|
18
|
+
run ElasticGraph::Rack::GraphQLEndpoint.new(graphql)
|
19
|
+
```
|
20
|
+
|
21
|
+
Run this with `rackup` (after installing the `rackup` gem) or any other rack-compatible server.
|
22
|
+
|
23
|
+
## Serving a GraphiQL UI
|
24
|
+
|
25
|
+
This gem also provides a simple GraphiQL UI using the CDN-hosted GraphiQL assets.
|
26
|
+
Here's an example `config.ru` to boot that:
|
27
|
+
|
28
|
+
``` ruby
|
29
|
+
require 'elastic_graph/graphql'
|
30
|
+
require 'elastic_graph/rack/graphiql'
|
31
|
+
|
32
|
+
graphql = ElasticGraph::GraphQL.from_yaml_file("path/to/config.yaml")
|
33
|
+
run ElasticGraph::Rack::GraphiQL.new(graphql)
|
34
|
+
```
|
35
|
+
|
36
|
+
Run this with `rackup` (after installing the `rackup` gem) or any other rack-compatible server.
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Copyright 2024 Block, Inc.
|
2
|
+
#
|
3
|
+
# Use of this source code is governed by an MIT-style
|
4
|
+
# license that can be found in the LICENSE file or at
|
5
|
+
# https://opensource.org/licenses/MIT.
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require_relative "../gemspec_helper"
|
10
|
+
|
11
|
+
ElasticGraphGemspecHelper.define_elasticgraph_gem(gemspec_file: __FILE__, category: :local) do |spec, eg_version|
|
12
|
+
spec.summary = "ElasticGraph gem for serving an ElasticGraph GraphQL endpoint using rack."
|
13
|
+
|
14
|
+
spec.add_dependency "elasticgraph-graphql", eg_version
|
15
|
+
spec.add_dependency "rack", "~> 3.1"
|
16
|
+
|
17
|
+
spec.add_development_dependency "elasticgraph-admin", eg_version
|
18
|
+
spec.add_development_dependency "elasticgraph-elasticsearch", eg_version
|
19
|
+
spec.add_development_dependency "elasticgraph-opensearch", eg_version
|
20
|
+
spec.add_development_dependency "elasticgraph-indexer", eg_version
|
21
|
+
spec.add_development_dependency "rack-test", "~> 2.1"
|
22
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
## GraphiQL for ElasticGraph
|
2
|
+
|
3
|
+
This directory provides the GraphiQL in browser UI for working with ElasticGraph
|
4
|
+
applications. The GraphiQL license is included in `LICENSE.txt`, copied verbatim
|
5
|
+
from:
|
6
|
+
|
7
|
+
https://github.com/graphql/graphiql/blob/graphiql%402.4.0/LICENSE
|
8
|
+
|
9
|
+
The `index.html` file is copied from:
|
10
|
+
|
11
|
+
https://github.com/graphql/graphiql/blob/graphiql%402.4.0/examples/graphiql-cdn/index.html
|
12
|
+
|
13
|
+
However, we've applied some slight changes to make it work for ElasticGraph.
|
14
|
+
|
15
|
+
```diff
|
16
|
+
diff --git a/elasticgraph-rack/lib/elastic_graph/rack/graphiql/index.html b/elasticgraph-rack/lib/elastic_graph/rack/graphiql/index.html
|
17
|
+
index 55cf5d05..a672ead9 100644
|
18
|
+
--- a/elasticgraph-rack/lib/elastic_graph/rack/graphiql/index.html
|
19
|
+
+++ b/elasticgraph-rack/lib/elastic_graph/rack/graphiql/index.html
|
20
|
+
@@ -8,7 +8,7 @@
|
21
|
+
<!DOCTYPE html>
|
22
|
+
<html lang="en">
|
23
|
+
<head>
|
24
|
+
- <title>GraphiQL</title>
|
25
|
+
+ <title>ElasticGraph GraphiQL</title>
|
26
|
+
<style>
|
27
|
+
body {
|
28
|
+
height: 100%;
|
29
|
+
@@ -58,7 +58,7 @@
|
30
|
+
ReactDOM.render(
|
31
|
+
React.createElement(GraphiQL, {
|
32
|
+
fetcher: GraphiQL.createFetcher({
|
33
|
+
- url: 'https://swapi-graphql.netlify.app/.netlify/functions/index',
|
34
|
+
+ url: '/graphql',
|
35
|
+
}),
|
36
|
+
defaultEditorToolsVisibility: true,
|
37
|
+
}),
|
38
|
+
```
|
@@ -0,0 +1,69 @@
|
|
1
|
+
<!--
|
2
|
+
* Copyright (c) 2021 GraphQL Contributors
|
3
|
+
* All rights reserved.
|
4
|
+
*
|
5
|
+
* This source code is licensed under the license found in the
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
7
|
+
-->
|
8
|
+
<!DOCTYPE html>
|
9
|
+
<html lang="en">
|
10
|
+
<head>
|
11
|
+
<title>ElasticGraph GraphiQL</title>
|
12
|
+
<style>
|
13
|
+
body {
|
14
|
+
height: 100%;
|
15
|
+
margin: 0;
|
16
|
+
width: 100%;
|
17
|
+
overflow: hidden;
|
18
|
+
}
|
19
|
+
|
20
|
+
#graphiql {
|
21
|
+
height: 100vh;
|
22
|
+
}
|
23
|
+
</style>
|
24
|
+
|
25
|
+
<!--
|
26
|
+
This GraphiQL example depends on Promise and fetch, which are available in
|
27
|
+
modern browsers, but can be "polyfilled" for older browsers.
|
28
|
+
GraphiQL itself depends on React DOM.
|
29
|
+
If you do not want to rely on a CDN, you can host these files locally or
|
30
|
+
include them directly in your favored resource bundler.
|
31
|
+
-->
|
32
|
+
<script
|
33
|
+
src="https://unpkg.com/react@17/umd/react.development.js"
|
34
|
+
integrity="sha512-Vf2xGDzpqUOEIKO+X2rgTLWPY+65++WPwCHkX2nFMu9IcstumPsf/uKKRd5prX3wOu8Q0GBylRpsDB26R6ExOg=="
|
35
|
+
crossorigin="anonymous"
|
36
|
+
></script>
|
37
|
+
<script
|
38
|
+
src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"
|
39
|
+
integrity="sha512-Wr9OKCTtq1anK0hq5bY3X/AvDI5EflDSAh0mE9gma+4hl+kXdTJPKZ3TwLMBcrgUeoY0s3dq9JjhCQc7vddtFg=="
|
40
|
+
crossorigin="anonymous"
|
41
|
+
></script>
|
42
|
+
|
43
|
+
<!--
|
44
|
+
These two files can be found in the npm module, however you may wish to
|
45
|
+
copy them directly into your environment, or perhaps include them in your
|
46
|
+
favored resource bundler.
|
47
|
+
-->
|
48
|
+
<link rel="stylesheet" href="https://unpkg.com/graphiql/graphiql.min.css" />
|
49
|
+
</head>
|
50
|
+
|
51
|
+
<body>
|
52
|
+
<div id="graphiql">Loading...</div>
|
53
|
+
<script
|
54
|
+
src="https://unpkg.com/graphiql/graphiql.min.js"
|
55
|
+
type="application/javascript"
|
56
|
+
></script>
|
57
|
+
<script>
|
58
|
+
ReactDOM.render(
|
59
|
+
React.createElement(GraphiQL, {
|
60
|
+
fetcher: GraphiQL.createFetcher({
|
61
|
+
url: '/graphql',
|
62
|
+
}),
|
63
|
+
defaultEditorToolsVisibility: true,
|
64
|
+
}),
|
65
|
+
document.getElementById('graphiql'),
|
66
|
+
);
|
67
|
+
</script>
|
68
|
+
</body>
|
69
|
+
</html>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Copyright 2024 Block, Inc.
|
2
|
+
#
|
3
|
+
# Use of this source code is governed by an MIT-style
|
4
|
+
# license that can be found in the LICENSE file or at
|
5
|
+
# https://opensource.org/licenses/MIT.
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require "elastic_graph/rack/graphql_endpoint"
|
10
|
+
require "rack/static"
|
11
|
+
|
12
|
+
module ElasticGraph
|
13
|
+
module Rack
|
14
|
+
# A Rack app that exposes both a GraphQL endpoint and an admin UI using GraphiQL:
|
15
|
+
#
|
16
|
+
# https://github.com/graphql/graphiql/tree/graphiql%402.4.0
|
17
|
+
module GraphiQL
|
18
|
+
def self.new(graphql)
|
19
|
+
graphql_endpoint = ElasticGraph::Rack::GraphQLEndpoint.new(graphql)
|
20
|
+
|
21
|
+
::Rack::Builder.new do
|
22
|
+
use ::Rack::Static, urls: {"/" => "index.html"}, root: ::File.join(__dir__, "graphiql")
|
23
|
+
|
24
|
+
map "/graphql" do
|
25
|
+
run graphql_endpoint
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# Copyright 2024 Block, Inc.
|
2
|
+
#
|
3
|
+
# Use of this source code is governed by an MIT-style
|
4
|
+
# license that can be found in the LICENSE file or at
|
5
|
+
# https://opensource.org/licenses/MIT.
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require "elastic_graph/graphql/http_endpoint"
|
10
|
+
require "rack"
|
11
|
+
|
12
|
+
module ElasticGraph
|
13
|
+
module Rack
|
14
|
+
# A simple Rack wrapper around an ElasticGraph endpoint. This can be used for local development,
|
15
|
+
# or mounted in a Rails app, or run in any other rack-compatible context.
|
16
|
+
class GraphQLEndpoint
|
17
|
+
def initialize(graphql)
|
18
|
+
@logger = graphql.logger
|
19
|
+
@graphql_http_endpoint = graphql.graphql_http_endpoint
|
20
|
+
end
|
21
|
+
|
22
|
+
def call(env)
|
23
|
+
rack_request = ::Rack::Request.new(env)
|
24
|
+
|
25
|
+
# Rack doesn't provide a nice method to provide all HTTP headers. In general,
|
26
|
+
# HTTP headers are prefixed with `HTTP_` as per https://stackoverflow.com/a/6318491/16481862,
|
27
|
+
# but `Content-Type`, as a "standard" header, isn't exposed that way, sadly.
|
28
|
+
headers = env
|
29
|
+
.select { |k, v| k.start_with?("HTTP_") }
|
30
|
+
.to_h { |k, v| [k.delete_prefix("HTTP_"), v] }
|
31
|
+
.merge("Content-Type" => rack_request.content_type)
|
32
|
+
|
33
|
+
request = GraphQL::HTTPRequest.new(
|
34
|
+
http_method: rack_request.request_method.downcase.to_sym,
|
35
|
+
url: rack_request.url,
|
36
|
+
headers: headers,
|
37
|
+
body: rack_request.body&.read
|
38
|
+
)
|
39
|
+
|
40
|
+
response = @graphql_http_endpoint.process(request)
|
41
|
+
|
42
|
+
[response.status_code, response.headers.transform_keys(&:downcase), [response.body]]
|
43
|
+
rescue => e
|
44
|
+
raise if ENV["RACK_ENV"] == "test"
|
45
|
+
|
46
|
+
@logger.error "Got an exception: #{e.class.name}: #{e.message}\n\n#{e.backtrace.join("\n")}"
|
47
|
+
error = {message: e.message, exception_class: e.class, backtrace: e.backtrace}
|
48
|
+
[500, {"content-type" => "application/json"}, [::JSON.generate(errors: [error])]]
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
metadata
ADDED
@@ -0,0 +1,369 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: elasticgraph-rack
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.18.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Myron Marston
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-08-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubocop-factory_bot
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.26'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.26'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.6'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.6'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: standard
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.39.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.39.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: coderay
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.1'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: flatware-rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.3.2
|
90
|
+
- - "<"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '3.0'
|
93
|
+
type: :development
|
94
|
+
prerelease: false
|
95
|
+
version_requirements: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: 2.3.2
|
100
|
+
- - "<"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '3.0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rspec
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '3.13'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '3.13'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: super_diff
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 0.12.1
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 0.12.1
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: simplecov
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0.22'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0.22'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: simplecov-console
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: 0.9.1
|
152
|
+
- - "<"
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '1.0'
|
155
|
+
type: :development
|
156
|
+
prerelease: false
|
157
|
+
version_requirements: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: 0.9.1
|
162
|
+
- - "<"
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '1.0'
|
165
|
+
- !ruby/object:Gem::Dependency
|
166
|
+
name: httpx
|
167
|
+
requirement: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - ">="
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: 1.2.6
|
172
|
+
- - "<"
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '2.0'
|
175
|
+
type: :development
|
176
|
+
prerelease: false
|
177
|
+
version_requirements: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: 1.2.6
|
182
|
+
- - "<"
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: '2.0'
|
185
|
+
- !ruby/object:Gem::Dependency
|
186
|
+
name: method_source
|
187
|
+
requirement: !ruby/object:Gem::Requirement
|
188
|
+
requirements:
|
189
|
+
- - "~>"
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: '1.1'
|
192
|
+
type: :development
|
193
|
+
prerelease: false
|
194
|
+
version_requirements: !ruby/object:Gem::Requirement
|
195
|
+
requirements:
|
196
|
+
- - "~>"
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: '1.1'
|
199
|
+
- !ruby/object:Gem::Dependency
|
200
|
+
name: rspec-retry
|
201
|
+
requirement: !ruby/object:Gem::Requirement
|
202
|
+
requirements:
|
203
|
+
- - "~>"
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0.6'
|
206
|
+
type: :development
|
207
|
+
prerelease: false
|
208
|
+
version_requirements: !ruby/object:Gem::Requirement
|
209
|
+
requirements:
|
210
|
+
- - "~>"
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '0.6'
|
213
|
+
- !ruby/object:Gem::Dependency
|
214
|
+
name: vcr
|
215
|
+
requirement: !ruby/object:Gem::Requirement
|
216
|
+
requirements:
|
217
|
+
- - ">="
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: 6.3.1
|
220
|
+
- - "<"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 7.0.0
|
223
|
+
type: :development
|
224
|
+
prerelease: false
|
225
|
+
version_requirements: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: 6.3.1
|
230
|
+
- - "<"
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: 7.0.0
|
233
|
+
- !ruby/object:Gem::Dependency
|
234
|
+
name: elasticgraph-graphql
|
235
|
+
requirement: !ruby/object:Gem::Requirement
|
236
|
+
requirements:
|
237
|
+
- - '='
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
version: 0.18.0.0
|
240
|
+
type: :runtime
|
241
|
+
prerelease: false
|
242
|
+
version_requirements: !ruby/object:Gem::Requirement
|
243
|
+
requirements:
|
244
|
+
- - '='
|
245
|
+
- !ruby/object:Gem::Version
|
246
|
+
version: 0.18.0.0
|
247
|
+
- !ruby/object:Gem::Dependency
|
248
|
+
name: rack
|
249
|
+
requirement: !ruby/object:Gem::Requirement
|
250
|
+
requirements:
|
251
|
+
- - "~>"
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: '3.1'
|
254
|
+
type: :runtime
|
255
|
+
prerelease: false
|
256
|
+
version_requirements: !ruby/object:Gem::Requirement
|
257
|
+
requirements:
|
258
|
+
- - "~>"
|
259
|
+
- !ruby/object:Gem::Version
|
260
|
+
version: '3.1'
|
261
|
+
- !ruby/object:Gem::Dependency
|
262
|
+
name: elasticgraph-admin
|
263
|
+
requirement: !ruby/object:Gem::Requirement
|
264
|
+
requirements:
|
265
|
+
- - '='
|
266
|
+
- !ruby/object:Gem::Version
|
267
|
+
version: 0.18.0.0
|
268
|
+
type: :development
|
269
|
+
prerelease: false
|
270
|
+
version_requirements: !ruby/object:Gem::Requirement
|
271
|
+
requirements:
|
272
|
+
- - '='
|
273
|
+
- !ruby/object:Gem::Version
|
274
|
+
version: 0.18.0.0
|
275
|
+
- !ruby/object:Gem::Dependency
|
276
|
+
name: elasticgraph-elasticsearch
|
277
|
+
requirement: !ruby/object:Gem::Requirement
|
278
|
+
requirements:
|
279
|
+
- - '='
|
280
|
+
- !ruby/object:Gem::Version
|
281
|
+
version: 0.18.0.0
|
282
|
+
type: :development
|
283
|
+
prerelease: false
|
284
|
+
version_requirements: !ruby/object:Gem::Requirement
|
285
|
+
requirements:
|
286
|
+
- - '='
|
287
|
+
- !ruby/object:Gem::Version
|
288
|
+
version: 0.18.0.0
|
289
|
+
- !ruby/object:Gem::Dependency
|
290
|
+
name: elasticgraph-opensearch
|
291
|
+
requirement: !ruby/object:Gem::Requirement
|
292
|
+
requirements:
|
293
|
+
- - '='
|
294
|
+
- !ruby/object:Gem::Version
|
295
|
+
version: 0.18.0.0
|
296
|
+
type: :development
|
297
|
+
prerelease: false
|
298
|
+
version_requirements: !ruby/object:Gem::Requirement
|
299
|
+
requirements:
|
300
|
+
- - '='
|
301
|
+
- !ruby/object:Gem::Version
|
302
|
+
version: 0.18.0.0
|
303
|
+
- !ruby/object:Gem::Dependency
|
304
|
+
name: elasticgraph-indexer
|
305
|
+
requirement: !ruby/object:Gem::Requirement
|
306
|
+
requirements:
|
307
|
+
- - '='
|
308
|
+
- !ruby/object:Gem::Version
|
309
|
+
version: 0.18.0.0
|
310
|
+
type: :development
|
311
|
+
prerelease: false
|
312
|
+
version_requirements: !ruby/object:Gem::Requirement
|
313
|
+
requirements:
|
314
|
+
- - '='
|
315
|
+
- !ruby/object:Gem::Version
|
316
|
+
version: 0.18.0.0
|
317
|
+
- !ruby/object:Gem::Dependency
|
318
|
+
name: rack-test
|
319
|
+
requirement: !ruby/object:Gem::Requirement
|
320
|
+
requirements:
|
321
|
+
- - "~>"
|
322
|
+
- !ruby/object:Gem::Version
|
323
|
+
version: '2.1'
|
324
|
+
type: :development
|
325
|
+
prerelease: false
|
326
|
+
version_requirements: !ruby/object:Gem::Requirement
|
327
|
+
requirements:
|
328
|
+
- - "~>"
|
329
|
+
- !ruby/object:Gem::Version
|
330
|
+
version: '2.1'
|
331
|
+
description:
|
332
|
+
email:
|
333
|
+
- myron@squareup.com
|
334
|
+
executables: []
|
335
|
+
extensions: []
|
336
|
+
extra_rdoc_files: []
|
337
|
+
files:
|
338
|
+
- LICENSE.txt
|
339
|
+
- README.md
|
340
|
+
- elasticgraph-rack.gemspec
|
341
|
+
- lib/elastic_graph/rack/graphiql.rb
|
342
|
+
- lib/elastic_graph/rack/graphiql/README.md
|
343
|
+
- lib/elastic_graph/rack/graphiql/index.html
|
344
|
+
- lib/elastic_graph/rack/graphql_endpoint.rb
|
345
|
+
homepage:
|
346
|
+
licenses:
|
347
|
+
- MIT
|
348
|
+
metadata:
|
349
|
+
gem_category: local
|
350
|
+
post_install_message:
|
351
|
+
rdoc_options: []
|
352
|
+
require_paths:
|
353
|
+
- lib
|
354
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
355
|
+
requirements:
|
356
|
+
- - "~>"
|
357
|
+
- !ruby/object:Gem::Version
|
358
|
+
version: '3.2'
|
359
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
360
|
+
requirements:
|
361
|
+
- - ">="
|
362
|
+
- !ruby/object:Gem::Version
|
363
|
+
version: '0'
|
364
|
+
requirements: []
|
365
|
+
rubygems_version: 3.5.9
|
366
|
+
signing_key:
|
367
|
+
specification_version: 4
|
368
|
+
summary: ElasticGraph gem for serving an ElasticGraph GraphQL endpoint using rack.
|
369
|
+
test_files: []
|