apollo_upload_server 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of apollo_upload_server might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb13c1edd791288fa79cb27e6650dcecc112c3c47ff9d4eff0a96b9aa1a6bb16
4
- data.tar.gz: '08a299f6aa01a5472d3d63336df2a4acf4b62b280c0c519f9f752c8b629ed4bb'
3
+ metadata.gz: d3f7d6e0c074200aabb933e1498c160ce9660c9af4f5af0eaa87bfd3597c3105
4
+ data.tar.gz: 771919ca9e241cdc4e9132939666d5d050999c22b74884a9ba818385773b8dcc
5
5
  SHA512:
6
- metadata.gz: d69c72b2a062756656410b9f8819f277a9c073a14dd8139dca53794d28605a8522dbdaa75e68d6f275bfb056bc1cd4fe030b4d830abdc28549f8d50b7df9c130
7
- data.tar.gz: f0880d3a068fcf2537adc0711426cf02b98000cfc5c0814e791f4914cf8109d382289fa2c2048d330ed47a8ce789a0f296b6f2ffa8719b0f78aedf23c3151a66
6
+ metadata.gz: 4306ebfc74c8377d3fe3e6a9f0305f3ce9301145364aa133e378a4feb796ba306f1d0ee49a1a858922d5f0d13950ba62f4bd2fca847be8046eeb3fc61bf290b4
7
+ data.tar.gz: f38a1d205f9f0f40c55a84dfa9027faf12c1ec4c91b2f43d6fccec2249289db303ceddc49dfcf6a03fdbcf48ff2ac0d5aa5ba9e5b70397d8678785ea37e5ad7f
data/README.md CHANGED
@@ -9,7 +9,7 @@ use [version 1.0.0](https://github.com/jetruby/apollo_upload_server-ruby/tree/1.
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'apollo_upload_server', '2.0.3'
12
+ gem 'apollo_upload_server', '2.0.4'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  end
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'rails', '>= 4.2'
21
+ spec.add_dependency 'actionpack', '>= 4.2'
22
22
  spec.add_dependency 'graphql', '>= 1.8'
23
23
 
24
24
  spec.add_development_dependency 'bundler', '~> 2.1'
@@ -7,17 +7,19 @@ module ApolloUploadServer
7
7
  end
8
8
 
9
9
  def call(env)
10
+ unless env['CONTENT_TYPE'].to_s.include?('multipart/form-data')
11
+ return @app.call(env)
12
+ end
13
+
10
14
  request = ActionDispatch::Request.new(env)
11
15
  params = request.params
12
16
 
13
- if env['CONTENT_TYPE'].to_s.include?('multipart/form-data') && params['operations'].present? && params['map'].present?
17
+ if params['operations'].present? && params['map'].present?
14
18
  result = GraphQLDataBuilder.new.call(request.params)
15
19
  result&.each do |key, value|
16
20
  request.update_param(key, value)
17
21
  end
18
22
  end
19
-
20
- @app.call(env)
21
23
  end
22
24
  end
23
25
  end
@@ -1,3 +1,3 @@
1
1
  module ApolloUploadServer
2
- VERSION = '2.0.3'.freeze
2
+ VERSION = '2.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apollo_upload_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - JetRuby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-02 00:00:00.000000000 Z
11
+ date: 2021-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: actionpack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="