filestack 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07dcc17274c65c4740665bb4fc382cd44e8af337
4
- data.tar.gz: 866e63f55957c74c0f374698c8a5c79b400fec2d
3
+ metadata.gz: aa30085a7e62659fa69ee32a93e8d9121d0e47d1
4
+ data.tar.gz: d196c634af26cd628208b17b0b8e5089fe5aa4c1
5
5
  SHA512:
6
- metadata.gz: a19cfe346bda3974b11a315139f4a51c2108397c21cf55d3848facabbbb12f455d273735806874d51d0e2238cff2324b80de8a75f3a9af73bc38888eaafab145
7
- data.tar.gz: 82a7b00a7772903cd892d48e6c691324a88c4b322d38f2269b882fca18aac3c67703b0fe55ddc80a7bff26f2b8497230045188ebfd5c64078bf46de67d5fdd67
6
+ metadata.gz: 14861786fdf4db147eb4687e612512bdf3f2a123ba3fd3e9913f71b85b4a7ff79806bdcc539cfbe2a0f88eef2aa75e877a4e1f47d2bf130d247635b844a375b3
7
+ data.tar.gz: b1bbd5e31a4bdee3fe713594eb73d8aff5c17d0657115ae74cb97c50446743318276b274f7c74617c674d845face944604e21e9e96011c5f0c2959be74ad2f27
@@ -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="https://filestack.com/themes/filestack/assets/images/press-articles/color.svg" align="center" width="100"/></p>
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.4.0
1
+ 2.5.0
@@ -60,7 +60,7 @@ class Transform
60
60
  if response.code == 200
61
61
  return AV.new(url, apikey: @apikey, security: @security)
62
62
  end
63
- response.body
63
+ JSON.parse(response.body)
64
64
  end
65
65
 
66
66
  # Add debug parameter to get information on transformation image
@@ -1,5 +1,5 @@
1
1
  module Filestack
2
2
  module Ruby
3
- VERSION = '2.4.0'.freeze
3
+ VERSION = '2.5.0'.freeze
4
4
  end
5
5
  end
@@ -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,
@@ -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.0
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-08-27 00:00:00.000000000 Z
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