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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e6137c4872a50afe15b153b0a9769671b9af0ba5d507010651dc77e4956a2ab
4
- data.tar.gz: 54d1845eb83c6222228b1a48d5177c7acd5afee949ef643b255349f1909ac762
3
+ metadata.gz: a93165fa220c06467d5073d0db5fc83e2e6f5a6350c959fbb4fc7cdb0efb24f2
4
+ data.tar.gz: 571fbe6aa0ee74c4352bfdb6332440c07c5c26a3a7c489d9c6de09b84a407477
5
5
  SHA512:
6
- metadata.gz: 4bf054bee800a9e36bdff5e5838f9121ca8b85ec106c1298355bcb16d543e40c64ea7d7f3c2f799fbdf9739da47fa96f4cf08374cf3457e1e61b96b13cf26378
7
- data.tar.gz: a5b2865885ee26c49626308bb7ec7adf2cff69d7bfe64c88f77b6a6be6d607ab6a4a7931a3d4839d32e74543493e3c59b74396f409de5d8b00fd848fd5b24908
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
- raise GraphQL::CoercionError, "#{value.inspect} is not a valid upload" unless value.nil? || value.is_a?(::ApolloUploadServer::Wrappers::UploadedFile)
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
@@ -1,3 +1,3 @@
1
1
  module ApolloUploadServer
2
- VERSION = '2.1.4'.freeze
2
+ VERSION = '2.1.5'.freeze
3
3
  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
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-08-22 00:00:00.000000000 Z
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.15
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.