apollo_upload_server 2.1.4 → 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apollo_upload_server/upload.rb +2 -6
- 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: a93165fa220c06467d5073d0db5fc83e2e6f5a6350c959fbb4fc7cdb0efb24f2
|
4
|
+
data.tar.gz: 571fbe6aa0ee74c4352bfdb6332440c07c5c26a3a7c489d9c6de09b84a407477
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72274e29023925309d0e700a3a91bcd51d5ffe1e383d304809c0d4e3ada385a8942ec6670a137e1c4790a99176e6bd4d14dbf05faedcae1aec221cb63a41963e
|
7
|
+
data.tar.gz: 8582d1c6b9c5f69a5f79cc65585531a3ce31ec919b0e8652418a5d499119fd6742db14b1ac1a9033850ef8e8a8789019ba6aa3f0e1937ce35befc6aa549bae5d
|
@@ -7,13 +7,9 @@ module ApolloUploadServer
|
|
7
7
|
graphql_name "Upload"
|
8
8
|
|
9
9
|
def self.coerce_input(value, _ctx)
|
10
|
-
|
10
|
+
return super if value.nil? || value.is_a?(::ApolloUploadServer::Wrappers::UploadedFile)
|
11
11
|
|
12
|
-
value
|
13
|
-
end
|
14
|
-
|
15
|
-
def self.coerce_result(value, _ctx)
|
16
|
-
value
|
12
|
+
raise GraphQL::CoercionError, "#{value.inspect} is not a valid upload"
|
17
13
|
end
|
18
14
|
end
|
19
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apollo_upload_server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JetRuby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
|
-
rubygems_version: 3.3.
|
128
|
+
rubygems_version: 3.3.23
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: Middleware which allows you to upload files using graphql and multipart/form-data.
|