apollo_upload_server 2.1.3 → 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/Gemfile.lock +17 -17
- data/apollo_upload_server.gemspec +1 -1
- data/lib/apollo_upload_server/upload.rb +2 -6
- data/lib/apollo_upload_server/version.rb +1 -1
- metadata +5 -5
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
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
apollo_upload_server (2.1.
|
5
|
-
actionpack (>=
|
4
|
+
apollo_upload_server (2.1.4)
|
5
|
+
actionpack (>= 6.1.6)
|
6
6
|
graphql (>= 1.8)
|
7
7
|
|
8
8
|
GEM
|
@@ -29,16 +29,16 @@ GEM
|
|
29
29
|
builder (3.2.4)
|
30
30
|
concurrent-ruby (1.1.10)
|
31
31
|
crass (1.0.6)
|
32
|
-
diff-lcs (1.
|
32
|
+
diff-lcs (1.5.0)
|
33
33
|
erubi (1.11.0)
|
34
|
-
graphql (2.0.
|
34
|
+
graphql (2.0.13)
|
35
35
|
i18n (1.12.0)
|
36
36
|
concurrent-ruby (~> 1.0)
|
37
37
|
loofah (2.18.0)
|
38
38
|
crass (~> 1.0.2)
|
39
39
|
nokogiri (>= 1.5.9)
|
40
40
|
mini_portile2 (2.8.0)
|
41
|
-
minitest (5.16.
|
41
|
+
minitest (5.16.3)
|
42
42
|
nokogiri (1.13.8)
|
43
43
|
mini_portile2 (~> 2.8.0)
|
44
44
|
racc (~> 1.4)
|
@@ -51,20 +51,20 @@ GEM
|
|
51
51
|
nokogiri (>= 1.6)
|
52
52
|
rails-html-sanitizer (1.4.3)
|
53
53
|
loofah (~> 2.3)
|
54
|
-
rake (13.0.
|
55
|
-
rspec (3.
|
56
|
-
rspec-core (~> 3.
|
57
|
-
rspec-expectations (~> 3.
|
58
|
-
rspec-mocks (~> 3.
|
59
|
-
rspec-core (3.
|
60
|
-
rspec-support (~> 3.
|
61
|
-
rspec-expectations (3.
|
54
|
+
rake (13.0.6)
|
55
|
+
rspec (3.11.0)
|
56
|
+
rspec-core (~> 3.11.0)
|
57
|
+
rspec-expectations (~> 3.11.0)
|
58
|
+
rspec-mocks (~> 3.11.0)
|
59
|
+
rspec-core (3.11.0)
|
60
|
+
rspec-support (~> 3.11.0)
|
61
|
+
rspec-expectations (3.11.0)
|
62
62
|
diff-lcs (>= 1.2.0, < 2.0)
|
63
|
-
rspec-support (~> 3.
|
64
|
-
rspec-mocks (3.
|
63
|
+
rspec-support (~> 3.11.0)
|
64
|
+
rspec-mocks (3.11.1)
|
65
65
|
diff-lcs (>= 1.2.0, < 2.0)
|
66
|
-
rspec-support (~> 3.
|
67
|
-
rspec-support (3.
|
66
|
+
rspec-support (~> 3.11.0)
|
67
|
+
rspec-support (3.11.0)
|
68
68
|
tzinfo (2.0.5)
|
69
69
|
concurrent-ruby (~> 1.0)
|
70
70
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
end
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_dependency 'actionpack', '>=
|
21
|
+
spec.add_dependency 'actionpack', '>= 6.1.6'
|
22
22
|
spec.add_dependency 'graphql', '>= 1.8'
|
23
23
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 2.1'
|
@@ -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
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 6.1.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 6.1.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: graphql
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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.
|