apollo_upload_server 2.0.0.beta.1 → 2.0.2

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
- SHA1:
3
- metadata.gz: 0ff70bc416b85ee891bb575707310efbf97bcb39
4
- data.tar.gz: f0955ebecd5ebf2425a0b06f32326ddf3f3700f5
2
+ SHA256:
3
+ metadata.gz: 7dfe5737f6d9c1b447e8acefd1730560941d90ea0dc7b7347732123068b75f0b
4
+ data.tar.gz: b1c6b5261aff9dfedd7b625eb99c79bf78223530058ae842954758281e258145
5
5
  SHA512:
6
- metadata.gz: fb0cbcaf13d2abac5ea0c55564ecae56ba5eb9751c168b6820714f9d738c85ea2f173db56835c8f1036a7d4b6ad81dbc1a4ef9147a9e0023f76a5d93207b6b45
7
- data.tar.gz: cc1a8ec9efee4fd1c217b1e544ac24dbe62dd71ea7457954f97db48a9998565483b2c09f40740e4919b2de884da388cf8aea4cd2eae1ceec72a4d7965d0a14dd
6
+ metadata.gz: c1e4046d7cdd19a3b6b40030298a38241d3be1dff0c763a41c02887fc1a031568680ad900daea43f771704e53c25ab4835ea4d1b8250e1a3bead25287695d4ce
7
+ data.tar.gz: c3ad8ad5a11a986f7738a52bae7fa277793ee99b3d46a060ec5d5bbce56b2546fe6319290971a24fd6e07d6612b83cd0a8dd7cbba5175820a041fb8921eafb8b
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ cache: bundler
3
+ rvm:
4
+ - 2.5
5
+ install: bundle install --jobs=3 --retry=3
6
+ script: bundle exec rspec
@@ -1,144 +1,160 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- apollo_upload_server (2.0.0.alpha.6)
5
- graphql (~> 1.7)
4
+ apollo_upload_server (2.0.0.beta.3)
5
+ graphql (>= 1.8)
6
6
  rails (>= 4.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.2.0)
12
- actionpack (= 5.2.0)
11
+ actioncable (6.0.2.2)
12
+ actionpack (= 6.0.2.2)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
- actionmailer (5.2.0)
16
- actionpack (= 5.2.0)
17
- actionview (= 5.2.0)
18
- activejob (= 5.2.0)
15
+ actionmailbox (6.0.2.2)
16
+ actionpack (= 6.0.2.2)
17
+ activejob (= 6.0.2.2)
18
+ activerecord (= 6.0.2.2)
19
+ activestorage (= 6.0.2.2)
20
+ activesupport (= 6.0.2.2)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.0.2.2)
23
+ actionpack (= 6.0.2.2)
24
+ actionview (= 6.0.2.2)
25
+ activejob (= 6.0.2.2)
19
26
  mail (~> 2.5, >= 2.5.4)
20
27
  rails-dom-testing (~> 2.0)
21
- actionpack (5.2.0)
22
- actionview (= 5.2.0)
23
- activesupport (= 5.2.0)
24
- rack (~> 2.0)
28
+ actionpack (6.0.2.2)
29
+ actionview (= 6.0.2.2)
30
+ activesupport (= 6.0.2.2)
31
+ rack (~> 2.0, >= 2.0.8)
25
32
  rack-test (>= 0.6.3)
26
33
  rails-dom-testing (~> 2.0)
27
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.2.0)
29
- activesupport (= 5.2.0)
34
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
35
+ actiontext (6.0.2.2)
36
+ actionpack (= 6.0.2.2)
37
+ activerecord (= 6.0.2.2)
38
+ activestorage (= 6.0.2.2)
39
+ activesupport (= 6.0.2.2)
40
+ nokogiri (>= 1.8.5)
41
+ actionview (6.0.2.2)
42
+ activesupport (= 6.0.2.2)
30
43
  builder (~> 3.1)
31
44
  erubi (~> 1.4)
32
45
  rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.2.0)
35
- activesupport (= 5.2.0)
46
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
47
+ activejob (6.0.2.2)
48
+ activesupport (= 6.0.2.2)
36
49
  globalid (>= 0.3.6)
37
- activemodel (5.2.0)
38
- activesupport (= 5.2.0)
39
- activerecord (5.2.0)
40
- activemodel (= 5.2.0)
41
- activesupport (= 5.2.0)
42
- arel (>= 9.0)
43
- activestorage (5.2.0)
44
- actionpack (= 5.2.0)
45
- activerecord (= 5.2.0)
50
+ activemodel (6.0.2.2)
51
+ activesupport (= 6.0.2.2)
52
+ activerecord (6.0.2.2)
53
+ activemodel (= 6.0.2.2)
54
+ activesupport (= 6.0.2.2)
55
+ activestorage (6.0.2.2)
56
+ actionpack (= 6.0.2.2)
57
+ activejob (= 6.0.2.2)
58
+ activerecord (= 6.0.2.2)
46
59
  marcel (~> 0.3.1)
47
- activesupport (5.2.0)
60
+ activesupport (6.0.2.2)
48
61
  concurrent-ruby (~> 1.0, >= 1.0.2)
49
62
  i18n (>= 0.7, < 2)
50
63
  minitest (~> 5.1)
51
64
  tzinfo (~> 1.1)
52
- arel (9.0.0)
53
- builder (3.2.3)
54
- concurrent-ruby (1.0.5)
55
- crass (1.0.4)
65
+ zeitwerk (~> 2.2)
66
+ builder (3.2.4)
67
+ concurrent-ruby (1.1.6)
68
+ crass (1.0.6)
56
69
  diff-lcs (1.3)
57
- erubi (1.7.1)
58
- globalid (0.4.1)
70
+ erubi (1.9.0)
71
+ globalid (0.4.2)
59
72
  activesupport (>= 4.2.0)
60
- graphql (1.7.14)
61
- i18n (1.0.1)
73
+ graphql (1.8.13)
74
+ i18n (1.8.2)
62
75
  concurrent-ruby (~> 1.0)
63
- loofah (2.2.2)
76
+ loofah (2.4.0)
64
77
  crass (~> 1.0.2)
65
78
  nokogiri (>= 1.5.9)
66
- mail (2.7.0)
79
+ mail (2.7.1)
67
80
  mini_mime (>= 0.1.1)
68
- marcel (0.3.2)
81
+ marcel (0.3.3)
69
82
  mimemagic (~> 0.3.2)
70
- method_source (0.9.0)
71
- mimemagic (0.3.2)
72
- mini_mime (1.0.0)
73
- mini_portile2 (2.3.0)
74
- minitest (5.11.3)
75
- nio4r (2.3.0)
76
- nokogiri (1.8.2)
77
- mini_portile2 (~> 2.3.0)
78
- rack (2.0.4)
79
- rack-test (1.0.0)
83
+ method_source (1.0.0)
84
+ mimemagic (0.3.4)
85
+ mini_mime (1.0.2)
86
+ mini_portile2 (2.4.0)
87
+ minitest (5.14.0)
88
+ nio4r (2.5.2)
89
+ nokogiri (1.10.9)
90
+ mini_portile2 (~> 2.4.0)
91
+ rack (2.2.2)
92
+ rack-test (1.1.0)
80
93
  rack (>= 1.0, < 3)
81
- rails (5.2.0)
82
- actioncable (= 5.2.0)
83
- actionmailer (= 5.2.0)
84
- actionpack (= 5.2.0)
85
- actionview (= 5.2.0)
86
- activejob (= 5.2.0)
87
- activemodel (= 5.2.0)
88
- activerecord (= 5.2.0)
89
- activestorage (= 5.2.0)
90
- activesupport (= 5.2.0)
94
+ rails (6.0.2.2)
95
+ actioncable (= 6.0.2.2)
96
+ actionmailbox (= 6.0.2.2)
97
+ actionmailer (= 6.0.2.2)
98
+ actionpack (= 6.0.2.2)
99
+ actiontext (= 6.0.2.2)
100
+ actionview (= 6.0.2.2)
101
+ activejob (= 6.0.2.2)
102
+ activemodel (= 6.0.2.2)
103
+ activerecord (= 6.0.2.2)
104
+ activestorage (= 6.0.2.2)
105
+ activesupport (= 6.0.2.2)
91
106
  bundler (>= 1.3.0)
92
- railties (= 5.2.0)
107
+ railties (= 6.0.2.2)
93
108
  sprockets-rails (>= 2.0.0)
94
109
  rails-dom-testing (2.0.3)
95
110
  activesupport (>= 4.2.0)
96
111
  nokogiri (>= 1.6)
97
- rails-html-sanitizer (1.0.4)
98
- loofah (~> 2.2, >= 2.2.2)
99
- railties (5.2.0)
100
- actionpack (= 5.2.0)
101
- activesupport (= 5.2.0)
112
+ rails-html-sanitizer (1.3.0)
113
+ loofah (~> 2.3)
114
+ railties (6.0.2.2)
115
+ actionpack (= 6.0.2.2)
116
+ activesupport (= 6.0.2.2)
102
117
  method_source
103
118
  rake (>= 0.8.7)
104
- thor (>= 0.18.1, < 2.0)
105
- rake (10.5.0)
106
- rspec (3.7.0)
107
- rspec-core (~> 3.7.0)
108
- rspec-expectations (~> 3.7.0)
109
- rspec-mocks (~> 3.7.0)
110
- rspec-core (3.7.1)
111
- rspec-support (~> 3.7.0)
112
- rspec-expectations (3.7.0)
119
+ thor (>= 0.20.3, < 2.0)
120
+ rake (13.0.1)
121
+ rspec (3.8.0)
122
+ rspec-core (~> 3.8.0)
123
+ rspec-expectations (~> 3.8.0)
124
+ rspec-mocks (~> 3.8.0)
125
+ rspec-core (3.8.0)
126
+ rspec-support (~> 3.8.0)
127
+ rspec-expectations (3.8.2)
113
128
  diff-lcs (>= 1.2.0, < 2.0)
114
- rspec-support (~> 3.7.0)
115
- rspec-mocks (3.7.0)
129
+ rspec-support (~> 3.8.0)
130
+ rspec-mocks (3.8.0)
116
131
  diff-lcs (>= 1.2.0, < 2.0)
117
- rspec-support (~> 3.7.0)
118
- rspec-support (3.7.0)
119
- sprockets (3.7.1)
132
+ rspec-support (~> 3.8.0)
133
+ rspec-support (3.8.0)
134
+ sprockets (4.0.0)
120
135
  concurrent-ruby (~> 1.0)
121
136
  rack (> 1, < 3)
122
137
  sprockets-rails (3.2.1)
123
138
  actionpack (>= 4.0)
124
139
  activesupport (>= 4.0)
125
140
  sprockets (>= 3.0.0)
126
- thor (0.20.0)
141
+ thor (1.0.1)
127
142
  thread_safe (0.3.6)
128
- tzinfo (1.2.5)
143
+ tzinfo (1.2.6)
129
144
  thread_safe (~> 0.1)
130
- websocket-driver (0.7.0)
145
+ websocket-driver (0.7.1)
131
146
  websocket-extensions (>= 0.1.0)
132
- websocket-extensions (0.1.3)
147
+ websocket-extensions (0.1.4)
148
+ zeitwerk (2.3.0)
133
149
 
134
150
  PLATFORMS
135
151
  ruby
136
152
 
137
153
  DEPENDENCIES
138
154
  apollo_upload_server!
139
- bundler (~> 1.16)
140
- rake (~> 10.0)
155
+ bundler (~> 2.1)
156
+ rake (~> 13.0)
141
157
  rspec (~> 3.5)
142
158
 
143
159
  BUNDLED WITH
144
- 1.16.1
160
+ 2.1.4
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.0.beta.1'
12
+ gem 'apollo_upload_server', '2.0.2'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -21,9 +21,9 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ['lib']
22
22
 
23
23
  spec.add_dependency 'rails', '>= 4.2'
24
- spec.add_dependency 'graphql', '~> 1.7'
24
+ spec.add_dependency 'graphql', '>= 1.8'
25
25
 
26
- spec.add_development_dependency 'bundler', '~> 1.16'
27
- spec.add_development_dependency 'rake', '~> 10.0'
26
+ spec.add_development_dependency 'bundler', '~> 2.1'
27
+ spec.add_development_dependency 'rake', '~> 13.0'
28
28
  spec.add_development_dependency 'rspec', '~> 3.5'
29
29
  end
@@ -3,10 +3,17 @@
3
3
  require 'graphql'
4
4
 
5
5
  module ApolloUploadServer
6
- Upload = GraphQL::ScalarType.define do
7
- name 'Upload'
6
+ class Upload < GraphQL::Schema::Scalar
7
+ graphql_name "Upload"
8
8
 
9
- coerce_input ->(value, _ctx) { value }
10
- coerce_result ->(value, _ctx) { value }
9
+ def self.coerce_input(value, _ctx)
10
+ raise GraphQL::CoercionError, "#{value.inspect} is not a valid upload" unless value.is_a?(::ApolloUploadServer::Wrappers::UploadedFile)
11
+
12
+ value
13
+ end
14
+
15
+ def self.coerce_result(value, _ctx)
16
+ value
17
+ end
11
18
  end
12
19
  end
@@ -1,3 +1,3 @@
1
1
  module ApolloUploadServer
2
- VERSION = '2.0.0.beta.1'.freeze
2
+ VERSION = '2.0.2'.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.0.0.beta.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - JetRuby
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-18 00:00:00.000000000 Z
11
+ date: 2020-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -28,44 +28,44 @@ dependencies:
28
28
  name: graphql
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.7'
33
+ version: '1.8'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.7'
40
+ version: '1.8'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.16'
47
+ version: '2.1'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.16'
54
+ version: '2.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '10.0'
61
+ version: '13.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '10.0'
68
+ version: '13.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -91,6 +91,7 @@ extra_rdoc_files: []
91
91
  files:
92
92
  - ".gitignore"
93
93
  - ".rspec"
94
+ - ".travis.yml"
94
95
  - CODE_OF_CONDUCT.md
95
96
  - Gemfile
96
97
  - Gemfile.lock
@@ -111,7 +112,7 @@ homepage: https://github.com/jetruby/apollo_upload_server-ruby
111
112
  licenses:
112
113
  - MIT
113
114
  metadata: {}
114
- post_install_message:
115
+ post_install_message:
115
116
  rdoc_options: []
116
117
  require_paths:
117
118
  - lib
@@ -122,13 +123,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
123
  version: '0'
123
124
  required_rubygems_version: !ruby/object:Gem::Requirement
124
125
  requirements:
125
- - - ">"
126
+ - - ">="
126
127
  - !ruby/object:Gem::Version
127
- version: 1.3.1
128
+ version: '0'
128
129
  requirements: []
129
- rubyforge_project:
130
- rubygems_version: 2.6.11
131
- signing_key:
130
+ rubyforge_project:
131
+ rubygems_version: 2.7.3
132
+ signing_key:
132
133
  specification_version: 4
133
134
  summary: Middleware which allows you to upload files using graphql and multipart/form-data.
134
135
  test_files: []