apollo_upload_server 2.1.1 → 2.1.2

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: 8e3f4896b2a757aa6aaede64f0857a143dee07ab5b0776703216ea1d068cc8db
4
- data.tar.gz: a41cc43cad12e1b75410735b6f8d321a373cb210603880a9c6886140a1360c1d
3
+ metadata.gz: 295058d02fd7c1a31a61dd8e74d194637dd451404007bdc434d4488a314d92f1
4
+ data.tar.gz: f2473ad8f37131eb293ac05b6e98770cf516b2472c09bdeb97fe8cc2dd0df756
5
5
  SHA512:
6
- metadata.gz: 50e29c840adaebae8d075d14e356d4fec55deec85491dad49fd7877970366d6d65bc4aa6f53a3335f503fb88db5f47bed802f85da57d99cf1217c8614a5237db
7
- data.tar.gz: 344e997250c20022a31068d9573d875fbec9f79a81414c987bdcb19bad03cd6d0ba923f7b652a29facd66efbfc44f13ffbb50884f5850d1d66960ac6c954741e
6
+ metadata.gz: be95ceec730a81dbdc9bc3ce9b1e0e3c95342cfb7ce9cdd0902bc3bf538ce693c8100964792773dc594bcb36ba7486d08e55fad4e11bc3d2eec0bc7057642a62
7
+ data.tar.gz: 5683e72d706155e0a69723d2423dcb36f5894b8824dd71d42efa83c0dc93c5d479d7a2f91b80a0a63737e974de1974fe0079f3bd3911650c279a43d4450a8da6
data/Gemfile.lock CHANGED
@@ -1,57 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- apollo_upload_server (2.1.0)
5
- actionpack (~> 6.1)
4
+ apollo_upload_server (2.1.2)
5
+ activesupport (>= 7.0.3.1)
6
6
  graphql (>= 1.8)
7
+ rack (>= 2.2.1)
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
10
11
  specs:
11
- actionpack (6.1.6.1)
12
- actionview (= 6.1.6.1)
13
- activesupport (= 6.1.6.1)
14
- rack (~> 2.0, >= 2.0.9)
15
- rack-test (>= 0.6.3)
16
- rails-dom-testing (~> 2.0)
17
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
18
- actionview (6.1.6.1)
19
- activesupport (= 6.1.6.1)
20
- builder (~> 3.1)
21
- erubi (~> 1.4)
22
- rails-dom-testing (~> 2.0)
23
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
24
- activesupport (6.1.6.1)
12
+ activesupport (7.0.3.1)
25
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
26
14
  i18n (>= 1.6, < 2)
27
15
  minitest (>= 5.1)
28
16
  tzinfo (~> 2.0)
29
- zeitwerk (~> 2.3)
30
- builder (3.2.4)
31
17
  concurrent-ruby (1.1.10)
32
- crass (1.0.6)
33
18
  diff-lcs (1.3)
34
- erubi (1.10.0)
35
- graphql (1.12.14)
19
+ graphql (2.0.12)
36
20
  i18n (1.12.0)
37
21
  concurrent-ruby (~> 1.0)
38
- loofah (2.18.0)
39
- crass (~> 1.0.2)
40
- nokogiri (>= 1.5.9)
41
- mini_portile2 (2.8.0)
42
22
  minitest (5.16.2)
43
- nokogiri (1.13.7)
44
- mini_portile2 (~> 2.8.0)
45
- racc (~> 1.4)
46
- racc (1.6.0)
47
23
  rack (2.2.4)
48
- rack-test (2.0.2)
49
- rack (>= 1.3)
50
- rails-dom-testing (2.0.3)
51
- activesupport (>= 4.2.0)
52
- nokogiri (>= 1.6)
53
- rails-html-sanitizer (1.4.3)
54
- loofah (~> 2.3)
55
24
  rake (13.0.1)
56
25
  rspec (3.8.0)
57
26
  rspec-core (~> 3.8.0)
@@ -68,7 +37,6 @@ GEM
68
37
  rspec-support (3.8.0)
69
38
  tzinfo (2.0.5)
70
39
  concurrent-ruby (~> 1.0)
71
- zeitwerk (2.6.0)
72
40
 
73
41
  PLATFORMS
74
42
  ruby
@@ -18,8 +18,9 @@ Gem::Specification.new do |spec|
18
18
  end
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'actionpack', '~> 6.1'
21
+ spec.add_dependency 'rack', '>= 2.2.1'
22
22
  spec.add_dependency 'graphql', '>= 1.8'
23
+ spec.add_dependency 'activesupport', '>= 7.0.3.1'
23
24
 
24
25
  spec.add_development_dependency 'bundler', '~> 2.1'
25
26
  spec.add_development_dependency 'rake', '~> 13.0'
@@ -1,5 +1,6 @@
1
1
  require 'apollo_upload_server/graphql_data_builder'
2
2
  require "active_support/configurable"
3
+ require 'rack'
3
4
 
4
5
  module ApolloUploadServer
5
6
  class Middleware
@@ -19,7 +20,7 @@ module ApolloUploadServer
19
20
  return @app.call(env)
20
21
  end
21
22
 
22
- request = ActionDispatch::Request.new(env)
23
+ request = Rack::Request.new(env)
23
24
  params = request.params
24
25
 
25
26
  if params['operations'].present? && params['map'].present?
@@ -1,3 +1,3 @@
1
1
  module ApolloUploadServer
2
- VERSION = '2.1.1'.freeze
2
+ VERSION = '2.1.2'.freeze
3
3
  end
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'delegate'
4
- require 'action_dispatch/http/upload'
4
+ require 'rack'
5
5
 
6
6
  module ApolloUploadServer
7
7
  module Wrappers
8
- class UploadedFile < DelegateClass(::ActionDispatch::Http::UploadedFile)
8
+ class UploadedFile < DelegateClass(Rack::Multipart::UploadedFile)
9
9
  def initialize(wrapped_foo)
10
10
  super
11
11
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apollo_upload_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - JetRuby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-22 00:00:00.000000000 Z
11
+ date: 2022-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: actionpack
14
+ name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6.1'
19
+ version: 2.2.1
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: '6.1'
26
+ version: 2.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: graphql
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.8'
41
+ - !ruby/object:Gem::Dependency
42
+ name: activesupport
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 7.0.3.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 7.0.3.1
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement