apollo_upload_server 2.1.0 → 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 +38 -40
- data/README.md +1 -1
- 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 -6
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,74 +1,72 @@
|
|
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
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionpack (
|
12
|
-
actionview (=
|
13
|
-
activesupport (=
|
14
|
-
rack (~> 2.0, >= 2.0
|
11
|
+
actionpack (7.0.3.1)
|
12
|
+
actionview (= 7.0.3.1)
|
13
|
+
activesupport (= 7.0.3.1)
|
14
|
+
rack (~> 2.0, >= 2.2.0)
|
15
15
|
rack-test (>= 0.6.3)
|
16
16
|
rails-dom-testing (~> 2.0)
|
17
17
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
18
|
-
actionview (
|
19
|
-
activesupport (=
|
18
|
+
actionview (7.0.3.1)
|
19
|
+
activesupport (= 7.0.3.1)
|
20
20
|
builder (~> 3.1)
|
21
21
|
erubi (~> 1.4)
|
22
22
|
rails-dom-testing (~> 2.0)
|
23
23
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
24
|
-
activesupport (
|
24
|
+
activesupport (7.0.3.1)
|
25
25
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
26
26
|
i18n (>= 1.6, < 2)
|
27
27
|
minitest (>= 5.1)
|
28
28
|
tzinfo (~> 2.0)
|
29
|
-
zeitwerk (~> 2.3)
|
30
29
|
builder (3.2.4)
|
31
|
-
concurrent-ruby (1.1.
|
30
|
+
concurrent-ruby (1.1.10)
|
32
31
|
crass (1.0.6)
|
33
|
-
diff-lcs (1.
|
34
|
-
erubi (1.
|
35
|
-
graphql (
|
36
|
-
i18n (1.
|
32
|
+
diff-lcs (1.5.0)
|
33
|
+
erubi (1.11.0)
|
34
|
+
graphql (2.0.13)
|
35
|
+
i18n (1.12.0)
|
37
36
|
concurrent-ruby (~> 1.0)
|
38
|
-
loofah (2.
|
37
|
+
loofah (2.18.0)
|
39
38
|
crass (~> 1.0.2)
|
40
39
|
nokogiri (>= 1.5.9)
|
41
|
-
mini_portile2 (2.
|
42
|
-
minitest (5.
|
43
|
-
nokogiri (1.
|
44
|
-
mini_portile2 (~> 2.
|
40
|
+
mini_portile2 (2.8.0)
|
41
|
+
minitest (5.16.3)
|
42
|
+
nokogiri (1.13.8)
|
43
|
+
mini_portile2 (~> 2.8.0)
|
45
44
|
racc (~> 1.4)
|
46
|
-
racc (1.
|
47
|
-
rack (2.2.
|
48
|
-
rack-test (
|
49
|
-
rack (>= 1.
|
45
|
+
racc (1.6.0)
|
46
|
+
rack (2.2.4)
|
47
|
+
rack-test (2.0.2)
|
48
|
+
rack (>= 1.3)
|
50
49
|
rails-dom-testing (2.0.3)
|
51
50
|
activesupport (>= 4.2.0)
|
52
51
|
nokogiri (>= 1.6)
|
53
|
-
rails-html-sanitizer (1.3
|
52
|
+
rails-html-sanitizer (1.4.3)
|
54
53
|
loofah (~> 2.3)
|
55
|
-
rake (13.0.
|
56
|
-
rspec (3.
|
57
|
-
rspec-core (~> 3.
|
58
|
-
rspec-expectations (~> 3.
|
59
|
-
rspec-mocks (~> 3.
|
60
|
-
rspec-core (3.
|
61
|
-
rspec-support (~> 3.
|
62
|
-
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)
|
63
62
|
diff-lcs (>= 1.2.0, < 2.0)
|
64
|
-
rspec-support (~> 3.
|
65
|
-
rspec-mocks (3.
|
63
|
+
rspec-support (~> 3.11.0)
|
64
|
+
rspec-mocks (3.11.1)
|
66
65
|
diff-lcs (>= 1.2.0, < 2.0)
|
67
|
-
rspec-support (~> 3.
|
68
|
-
rspec-support (3.
|
69
|
-
tzinfo (2.0.
|
66
|
+
rspec-support (~> 3.11.0)
|
67
|
+
rspec-support (3.11.0)
|
68
|
+
tzinfo (2.0.5)
|
70
69
|
concurrent-ruby (~> 1.0)
|
71
|
-
zeitwerk (2.4.2)
|
72
70
|
|
73
71
|
PLATFORMS
|
74
72
|
ruby
|
@@ -80,4 +78,4 @@ DEPENDENCIES
|
|
80
78
|
rspec (~> 3.5)
|
81
79
|
|
82
80
|
BUNDLED WITH
|
83
|
-
2.
|
81
|
+
2.3.17
|
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 '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:
|
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,8 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
|
-
|
129
|
-
rubygems_version: 2.7.3
|
128
|
+
rubygems_version: 3.3.23
|
130
129
|
signing_key:
|
131
130
|
specification_version: 4
|
132
131
|
summary: Middleware which allows you to upload files using graphql and multipart/form-data.
|