filestack 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/filestack/models/filestack_transform.rb +1 -1
- data/lib/filestack/ruby/version.rb +1 -1
- data/lib/filestack/utils/multipart_upload_utils.rb +4 -2
- data/logo.svg +10 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa30085a7e62659fa69ee32a93e8d9121d0e47d1
|
4
|
+
data.tar.gz: d196c634af26cd628208b17b0b8e5089fe5aa4c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14861786fdf4db147eb4687e612512bdf3f2a123ba3fd3e9913f71b85b4a7ff79806bdcc539cfbe2a0f88eef2aa75e877a4e1f47d2bf130d247635b844a375b3
|
7
|
+
data.tar.gz: b1bbd5e31a4bdee3fe713594eb73d8aff5c17d0657115ae74cb97c50446743318276b274f7c74617c674d845face944604e21e9e96011c5f0c2959be74ad2f27
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Filestack-Ruby Changelog
|
2
2
|
|
3
|
+
## 2.5.0 (October 10, 2018)
|
4
|
+
- Update logo in README
|
5
|
+
- FS-4256 Fix issue with uploading file
|
3
6
|
## 2.4.0 (August 27, 2018)
|
4
7
|
- FS-3813 Convert security options hash with string keys to symbols
|
5
8
|
- FS-3903 Add parsing the response body before reading it
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
<p align="center"><img src="
|
1
|
+
<p align="center"><img src="logo.svg" align="center" width="100"/></p>
|
2
2
|
<h1 align="center">Filestack Ruby SDK</h1>
|
3
3
|
<p align="center">
|
4
4
|
<a href="https://travis-ci.org/filestack/filestack-ruby.svg?branch=master">
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.5.0
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'base64'
|
2
|
+
require 'timeout'
|
2
3
|
require 'digest'
|
3
4
|
require 'mimemagic'
|
4
5
|
require 'json'
|
@@ -57,7 +58,7 @@ module MultipartUploadUtils
|
|
57
58
|
headers: FilestackConfig::HEADERS
|
58
59
|
)
|
59
60
|
if response.code == 200
|
60
|
-
response.body
|
61
|
+
JSON.parse(response.body)
|
61
62
|
else
|
62
63
|
raise RuntimeError.new(response.body)
|
63
64
|
end
|
@@ -144,6 +145,7 @@ module MultipartUploadUtils
|
|
144
145
|
FilestackConfig::MULTIPART_UPLOAD_URL, body: data,
|
145
146
|
headers: FilestackConfig::HEADERS
|
146
147
|
).body
|
148
|
+
fs_response = JSON.parse(fs_response)
|
147
149
|
Typhoeus.put(
|
148
150
|
fs_response['url'], headers: fs_response['headers'], body: chunk
|
149
151
|
)
|
@@ -261,7 +263,7 @@ module MultipartUploadUtils
|
|
261
263
|
)
|
262
264
|
end
|
263
265
|
begin
|
264
|
-
Timeout::timeout(timeout){
|
266
|
+
Timeout::timeout(timeout) {
|
265
267
|
while response_complete.code == 202
|
266
268
|
response_complete = multipart_complete(
|
267
269
|
apikey, filename, filesize, mimetype,
|
data/logo.svg
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<svg width="28px" height="32px" viewBox="0 0 28 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
+
<!-- Generator: Sketch 49.2 (51160) - http://www.bohemiancoding.com/sketch -->
|
4
|
+
<title>Rectangle-356</title>
|
5
|
+
<desc>Created with Sketch.</desc>
|
6
|
+
<defs></defs>
|
7
|
+
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
8
|
+
<path d="M25,22 L25,3 L3,3 L3,29 L18,29 L18,32 L28,32 L28,22 L25,22 Z M0,0 L28,0 L28,32 L0,32 L0,0 Z M20,24 L28,24 L20,32 L20,24 Z M9,9 L19,9 L19,12 L9,12 L9,9 Z M9,14 L17,14 L17,17 L9,17 L9,14 Z M9,19 L12,19 L12,22 L9,22 L9,19 Z" id="Rectangle-356" fill="#EF4925" fill-rule="nonzero"></path>
|
9
|
+
</g>
|
10
|
+
</svg>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filestack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Filestack
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -190,6 +190,7 @@ files:
|
|
190
190
|
- lib/filestack/ruby/version.rb
|
191
191
|
- lib/filestack/utils/multipart_upload_utils.rb
|
192
192
|
- lib/filestack/utils/utils.rb
|
193
|
+
- logo.svg
|
193
194
|
homepage: https://github.com/filestack/filestack-ruby
|
194
195
|
licenses:
|
195
196
|
- MIT
|