uppy-s3_multipart 0.3.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +34 -22
  3. data/uppy-s3_multipart.gemspec +1 -1
  4. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3dcf8e7cc1e0deb72f1181336329d2e0eaf47998f4796e31b38435f1b5e0629
4
- data.tar.gz: 5fcf0a136c51fd23871013dfea618966014f5107e2a74bf365ccf49ae45635cc
3
+ metadata.gz: 127c554611e36c8802a60174dfbd624bab6de29aaa5f1ccdd04b71c2224f108e
4
+ data.tar.gz: 6950b75f85c04b03e973ae9581f59ec8defc4d1be7c5c50080fcd638c71adf97
5
5
  SHA512:
6
- metadata.gz: bd83f48900a2acdaacd83db8df6f66df98c2372720422678c48287e16ed02e914129902ec272d827d69a7a8095ab716ab60ed74757bdcad6acc569d58563c83b
7
- data.tar.gz: 3d72c6cda83d5320e0ca83f4a8138c1b4a015b37162d980bed0ed3973493393e74b6e4b8326642b005e3d7a1fa434af0c5f420e55bb412fb77da5d94321cb325
6
+ metadata.gz: 292d94dbb74c0efe2108f041207e86a5d46b99d63fb85f4cf2ccc5c252d47c00507b6118bdfd995ee762049fc389705982cfc566ddc1f906b7956185179db1fd
7
+ data.tar.gz: 305fb7fea58a49a3768ebda006c5827b9b3911006087bb61f623a2519b10f5c680a39ab0578db085823963d2046753f3f4b294a4716c3e6e836b3c18173c1999
data/README.md CHANGED
@@ -10,7 +10,7 @@ uploads.
10
10
  Add the gem to your Gemfile:
11
11
 
12
12
  ```rb
13
- gem "uppy-s3_multipart", "~> 0.3"
13
+ gem "uppy-s3_multipart", "~> 1.0"
14
14
  ```
15
15
 
16
16
  ## Setup
@@ -20,27 +20,39 @@ the bucket's CORS configuration. In the AWS S3 Console go to your bucket, click
20
20
  on "Permissions" tab and then on "CORS configuration". There paste in the
21
21
  following:
22
22
 
23
- ```xml
24
- <?xml version="1.0" encoding="UTF-8"?>
25
- <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
26
- <CORSRule>
27
- <AllowedOrigin>https://my-app.com</AllowedOrigin>
28
- <AllowedMethod>GET</AllowedMethod>
29
- <AllowedMethod>POST</AllowedMethod>
30
- <AllowedMethod>PUT</AllowedMethod>
31
- <MaxAgeSeconds>3000</MaxAgeSeconds>
32
- <AllowedHeader>Authorization</AllowedHeader>
33
- <AllowedHeader>x-amz-date</AllowedHeader>
34
- <AllowedHeader>x-amz-content-sha256</AllowedHeader>
35
- <AllowedHeader>content-type</AllowedHeader>
36
- <ExposeHeader>ETag</ExposeHeader>
37
- </CORSRule>
38
- <CORSRule>
39
- <AllowedOrigin>*</AllowedOrigin>
40
- <AllowedMethod>GET</AllowedMethod>
41
- <MaxAgeSeconds>3000</MaxAgeSeconds>
42
- </CORSRule>
43
- </CORSConfiguration>
23
+ ```json
24
+ [
25
+ {
26
+ "AllowedHeaders": [
27
+ "content-type",
28
+ "x-amz-content-sha256",
29
+ "x-amz-date"
30
+ ],
31
+ "AllowedMethods": [
32
+ "GET",
33
+ "POST",
34
+ "PUT"
35
+ ],
36
+ "AllowedOrigins": [
37
+ "https://my-app.com"
38
+ ],
39
+ "ExposeHeaders": [
40
+ "ETag"
41
+ ],
42
+ "MaxAgeSeconds": 3000
43
+ },
44
+ {
45
+ "AllowedHeaders": [],
46
+ "AllowedMethods": [
47
+ "GET"
48
+ ],
49
+ "AllowedOrigins": [
50
+ "*"
51
+ ],
52
+ "ExposeHeaders": [],
53
+ "MaxAgeSeconds": 3000
54
+ }
55
+ ]
44
56
  ```
45
57
 
46
58
  Replace `https://my-app.com` with the URL to your app (in development you can
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "uppy-s3_multipart"
3
- gem.version = "0.3.4"
3
+ gem.version = "1.0.0"
4
4
 
5
5
  gem.required_ruby_version = ">= 2.2"
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uppy-s3_multipart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janko Marohnić
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-03 00:00:00.000000000 Z
11
+ date: 2021-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: roda
@@ -142,7 +142,7 @@ dependencies:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
144
  version: '3.23'
145
- description:
145
+ description:
146
146
  email:
147
147
  - janko.marohnic@gmail.com
148
148
  executables: []
@@ -161,7 +161,7 @@ homepage: https://github.com/janko/uppy-s3_multipart
161
161
  licenses:
162
162
  - MIT
163
163
  metadata: {}
164
- post_install_message:
164
+ post_install_message:
165
165
  rdoc_options: []
166
166
  require_paths:
167
167
  - lib
@@ -176,8 +176,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  - !ruby/object:Gem::Version
177
177
  version: '0'
178
178
  requirements: []
179
- rubygems_version: 3.1.1
180
- signing_key:
179
+ rubygems_version: 3.2.15
180
+ signing_key:
181
181
  specification_version: 4
182
182
  summary: Provides a Rack application that implements endpoints for the AwsS3Multipart
183
183
  Uppy plugin.