apollo_upload_server 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of apollo_upload_server might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/apollo_upload_server.gemspec +1 -1
- data/lib/apollo_upload_server/middleware.rb +5 -3
- data/lib/apollo_upload_server/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3f7d6e0c074200aabb933e1498c160ce9660c9af4f5af0eaa87bfd3597c3105
|
4
|
+
data.tar.gz: 771919ca9e241cdc4e9132939666d5d050999c22b74884a9ba818385773b8dcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4306ebfc74c8377d3fe3e6a9f0305f3ce9301145364aa133e378a4feb796ba306f1d0ee49a1a858922d5f0d13950ba62f4bd2fca847be8046eeb3fc61bf290b4
|
7
|
+
data.tar.gz: f38a1d205f9f0f40c55a84dfa9027faf12c1ec4c91b2f43d6fccec2249289db303ceddc49dfcf6a03fdbcf48ff2ac0d5aa5ba9e5b70397d8678785ea37e5ad7f
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
end
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_dependency '
|
21
|
+
spec.add_dependency 'actionpack', '>= 4.2'
|
22
22
|
spec.add_dependency 'graphql', '>= 1.8'
|
23
23
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 2.1'
|
@@ -7,17 +7,19 @@ module ApolloUploadServer
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def call(env)
|
10
|
+
unless env['CONTENT_TYPE'].to_s.include?('multipart/form-data')
|
11
|
+
return @app.call(env)
|
12
|
+
end
|
13
|
+
|
10
14
|
request = ActionDispatch::Request.new(env)
|
11
15
|
params = request.params
|
12
16
|
|
13
|
-
if
|
17
|
+
if params['operations'].present? && params['map'].present?
|
14
18
|
result = GraphQLDataBuilder.new.call(request.params)
|
15
19
|
result&.each do |key, value|
|
16
20
|
request.update_param(key, value)
|
17
21
|
end
|
18
22
|
end
|
19
|
-
|
20
|
-
@app.call(env)
|
21
23
|
end
|
22
24
|
end
|
23
25
|
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apollo_upload_server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JetRuby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: actionpack
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|