rack-graphql 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.dependabot/config.yml +18 -0
- data/Gemfile.lock +16 -11
- data/Rakefile +1 -1
- data/lib/rack_graphql/middleware.rb +2 -2
- data/lib/rack_graphql/version.rb +1 -1
- data/rack-graphql.gemspec +12 -11
- metadata +26 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 534df83e2743f2330c67f593f0ba03e17fae5336a43c0a727e9a02eef5accca4
|
4
|
+
data.tar.gz: 590dee70aece16af8d283b31600b8471eb3f4025d061493719753902c3290ca2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf8d40ff80a2bb21bcff2d13416af3a4094732692ebc3665bf9f90e39746192a58fc199b51a5ef0a2c935500f98a5117de5554227c9e0f0e7ccedce10ed955db
|
7
|
+
data.tar.gz: 31d9a2459fc14d59ed189d8c0fd568770690480ed3a0fcf6e1e40ea006ff2d777cc2cbe02f251107e686de6fa0c4987a3d1e09141404664b97a053adb4e9c03c
|
@@ -0,0 +1,18 @@
|
|
1
|
+
version: 1
|
2
|
+
|
3
|
+
update_configs:
|
4
|
+
- package_manager: "ruby:bundler"
|
5
|
+
directory: "/"
|
6
|
+
update_schedule: "monthly"
|
7
|
+
commit_message:
|
8
|
+
prefix: "[dependabot]"
|
9
|
+
allowed_updates:
|
10
|
+
- match:
|
11
|
+
update_type: "all"
|
12
|
+
automerged_updates:
|
13
|
+
- match:
|
14
|
+
dependency_type: "development"
|
15
|
+
update_type: "all"
|
16
|
+
- match:
|
17
|
+
dependency_type: "production"
|
18
|
+
update_type: "all"
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rack-graphql (1.2.
|
5
|
-
graphql (
|
4
|
+
rack-graphql (1.2.1)
|
5
|
+
graphql (~> 1.9)
|
6
6
|
oj
|
7
|
-
rack (
|
7
|
+
rack (~> 2.0)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
@@ -12,21 +12,22 @@ GEM
|
|
12
12
|
ast (2.4.0)
|
13
13
|
coderay (1.1.2)
|
14
14
|
diff-lcs (1.3)
|
15
|
-
graphql (1.
|
15
|
+
graphql (1.10.3)
|
16
16
|
jaro_winkler (1.5.4)
|
17
17
|
method_source (0.9.2)
|
18
|
-
oj (3.10.
|
18
|
+
oj (3.10.2)
|
19
19
|
parallel (1.19.1)
|
20
|
-
parser (2.7.0.
|
20
|
+
parser (2.7.0.3)
|
21
21
|
ast (~> 2.4.0)
|
22
22
|
pry (0.12.2)
|
23
23
|
coderay (~> 1.1.0)
|
24
24
|
method_source (~> 0.9.0)
|
25
|
-
rack (2.
|
25
|
+
rack (2.2.2)
|
26
26
|
rack-test (1.1.0)
|
27
27
|
rack (>= 1.0, < 3)
|
28
28
|
rainbow (3.0.0)
|
29
29
|
rake (13.0.1)
|
30
|
+
rexml (3.2.4)
|
30
31
|
rspec (3.9.0)
|
31
32
|
rspec-core (~> 3.9.0)
|
32
33
|
rspec-expectations (~> 3.9.0)
|
@@ -40,17 +41,20 @@ GEM
|
|
40
41
|
diff-lcs (>= 1.2.0, < 2.0)
|
41
42
|
rspec-support (~> 3.9.0)
|
42
43
|
rspec-support (3.9.2)
|
43
|
-
rubocop (0.
|
44
|
+
rubocop (0.80.0)
|
44
45
|
jaro_winkler (~> 1.5.1)
|
45
46
|
parallel (~> 1.10)
|
46
|
-
parser (>= 2.
|
47
|
+
parser (>= 2.7.0.1)
|
47
48
|
rainbow (>= 2.2.2, < 4.0)
|
49
|
+
rexml
|
48
50
|
ruby-progressbar (~> 1.7)
|
49
51
|
unicode-display_width (>= 1.4.0, < 1.7)
|
50
52
|
rubocop-performance (1.5.2)
|
51
53
|
rubocop (>= 0.71.0)
|
54
|
+
rubocop-rspec (1.38.1)
|
55
|
+
rubocop (>= 0.68.1)
|
52
56
|
ruby-progressbar (1.10.1)
|
53
|
-
unicode-display_width (1.6.
|
57
|
+
unicode-display_width (1.6.1)
|
54
58
|
|
55
59
|
PLATFORMS
|
56
60
|
ruby
|
@@ -64,6 +68,7 @@ DEPENDENCIES
|
|
64
68
|
rspec
|
65
69
|
rubocop
|
66
70
|
rubocop-performance
|
71
|
+
rubocop-rspec
|
67
72
|
|
68
73
|
BUNDLED WITH
|
69
|
-
2.
|
74
|
+
2.1.4
|
data/Rakefile
CHANGED
@@ -13,9 +13,9 @@ module RackGraphql
|
|
13
13
|
|
14
14
|
return [400, {}, []] unless params.is_a?(Hash)
|
15
15
|
|
16
|
-
variables
|
16
|
+
variables = ensure_hash(params['variables'])
|
17
17
|
operation_name = params['operationName']
|
18
|
-
context
|
18
|
+
context = context_handler.call(env)
|
19
19
|
|
20
20
|
log("Executing with params: #{params.inspect}, operationName: #{operation_name}, variables: #{variables.inspect}")
|
21
21
|
result = execute(params: params, operation_name: operation_name, variables: variables, context: context)
|
data/lib/rack_graphql/version.rb
CHANGED
data/rack-graphql.gemspec
CHANGED
@@ -3,14 +3,14 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
require 'rack_graphql/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name
|
7
|
-
spec.version
|
8
|
-
spec.authors
|
9
|
-
spec.email
|
6
|
+
spec.name = 'rack-graphql'
|
7
|
+
spec.version = RackGraphql::VERSION
|
8
|
+
spec.authors = ['Krzysztof Knapik', 'RenoFi Engineering Team']
|
9
|
+
spec.email = ['knapo@knapo.net', 'engineering@renofi.com']
|
10
10
|
|
11
|
-
spec.summary
|
11
|
+
spec.summary = 'Rack middleware implementing graphql endpoint.'
|
12
12
|
spec.homepage = 'https://github.com/RenoFi/rack-graphql'
|
13
|
-
spec.license
|
13
|
+
spec.license = 'MIT'
|
14
14
|
|
15
15
|
spec.metadata['homepage_uri'] = 'https://github.com/RenoFi/rack-graphql'
|
16
16
|
spec.metadata['source_code_uri'] = 'https://github.com/RenoFi/rack-graphql'
|
@@ -18,15 +18,15 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.files = Dir.chdir(__dir__) do
|
19
19
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
|
20
20
|
end
|
21
|
-
spec.bindir
|
22
|
-
spec.executables
|
21
|
+
spec.bindir = 'exe'
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
|
-
spec.required_ruby_version = '>= 2.
|
25
|
+
spec.required_ruby_version = '>= 2.6'
|
26
26
|
|
27
|
-
spec.add_dependency 'graphql', '
|
27
|
+
spec.add_dependency 'graphql', '~> 1.9'
|
28
28
|
spec.add_dependency 'oj'
|
29
|
-
spec.add_dependency 'rack', '
|
29
|
+
spec.add_dependency 'rack', '~> 2.0'
|
30
30
|
|
31
31
|
spec.add_development_dependency 'bundler'
|
32
32
|
spec.add_development_dependency 'pry'
|
@@ -35,4 +35,5 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_development_dependency 'rspec'
|
36
36
|
spec.add_development_dependency 'rubocop'
|
37
37
|
spec.add_development_dependency 'rubocop-performance'
|
38
|
+
spec.add_development_dependency 'rubocop-rspec'
|
38
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-graphql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-02-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: graphql
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.9
|
20
|
+
version: '1.9'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 1.9
|
27
|
+
version: '1.9'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: oj
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -43,16 +43,16 @@ dependencies:
|
|
43
43
|
name: rack
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - "
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 2.0
|
48
|
+
version: '2.0'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - "
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 2.0
|
55
|
+
version: '2.0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: bundler
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,6 +151,20 @@ dependencies:
|
|
151
151
|
- - ">="
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: '0'
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: rubocop-rspec
|
156
|
+
requirement: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
type: :development
|
162
|
+
prerelease: false
|
163
|
+
version_requirements: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
154
168
|
description:
|
155
169
|
email:
|
156
170
|
- knapo@knapo.net
|
@@ -159,6 +173,7 @@ executables: []
|
|
159
173
|
extensions: []
|
160
174
|
extra_rdoc_files: []
|
161
175
|
files:
|
176
|
+
- ".dependabot/config.yml"
|
162
177
|
- ".gitignore"
|
163
178
|
- ".rspec"
|
164
179
|
- ".travis.yml"
|
@@ -189,7 +204,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
189
204
|
requirements:
|
190
205
|
- - ">="
|
191
206
|
- !ruby/object:Gem::Version
|
192
|
-
version: '2.
|
207
|
+
version: '2.6'
|
193
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
194
209
|
requirements:
|
195
210
|
- - ">="
|