filestack 2.5.4 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df82fcab255164aa2495b536833524af2dc53a88
4
- data.tar.gz: 63e1a01506b9b407f9e616835aa3a86c50dd38ff
3
+ metadata.gz: b6387d81116ffc15ca9a2d9ece2d364458192fc8
4
+ data.tar.gz: f8976d1794453a041a5045800a638e57c107670d
5
5
  SHA512:
6
- metadata.gz: a4df97fd84c2044647fcb82bbfeeaedb185725fb1d3bc1b6018b358c6ff1124c06d69471b4777ba9f05c760d9db36b0be089e458043b244a65bea28a754801a4
7
- data.tar.gz: d524e4b2f95f5d8b4e61884e738991c96658f2e9fa233261904e51708a99152fbce4d4828cf9d09394d23e04ea51798538598b2673f097be211b98829f592576
6
+ metadata.gz: 3e3f4603bf9c44c9238304a7b363d33fbd2017ec45c30b3e453cdffc33f60fa62ff95d7aaf0eb5f006ee1cdc3dce9cedb79aad04326f82f7b202e379afa3fddc
7
+ data.tar.gz: 173eaf79b38a349dff8815c4f97034247bfeed63199f586253b131091a4654343e629bc218b2302834246e941e6c8394b9f905f572cbe87f48d7a4054c9490e1
@@ -1,5 +1,8 @@
1
1
  # Filestack-Ruby Changelog
2
2
 
3
+ ## 2.6.0 (March 25, 2019)
4
+ - Add fallback and docs processing to transformations
5
+
3
6
  ## 2.5.4 (February 12, 2019)
4
7
  - Fixed issue with multipart upload
5
8
 
data/README.md CHANGED
@@ -118,6 +118,20 @@ new_filelink = transform.store
118
118
 
119
119
  For a list of valid transformations, please see [here](https://www.filestack.com/docs/image-transformations).
120
120
 
121
+ ### Fallback
122
+ Return `default` file if the source of the transformation does not work or the transformation fails.
123
+ To use fallback, you should provide `handle` of the file that should be returned. Optionally, you can add `cache`, which means number of seconds fallback response should be cached in CDN.
124
+
125
+ ```ruby
126
+ transform = client.transform_external('https://someurl.com').fallback(handle: 'DEFAULT_HANDLE')
127
+ ```
128
+
129
+ If you are using fallback handle that belongs to different application than the one which runs transformation (APIKEY) and it is secured with security policy, appropriate signature and policy with read call should be used:
130
+
131
+ ```ruby
132
+ transform = client.transform_external('https://someurl.com').fallback(handle: 'DEFAULT_HANDLE?policy=HANDLE_APIKEY_POLICY&signature=HANDLE_APIKEY_SIGNATURE', cache: 10)
133
+ ```
134
+
121
135
  ### Tagging
122
136
 
123
137
  If you have auto-tagging enabled onto your account, it can be called on any filelink object (tags don't work on external URLs).
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.4
1
+ 2.6.0
@@ -113,7 +113,7 @@
113
113
  </span><span class='tstring_content'> blackwhite</span><span class='words_sep'> </span><span class='tstring_content'>sepia</span><span class='words_sep'> </span><span class='tstring_content'>pixelate</span><span class='words_sep'> </span><span class='tstring_content'>oil_paint</span><span class='words_sep'> </span><span class='tstring_content'>negative</span><span class='words_sep'> </span><span class='tstring_content'>modulate</span><span class='words_sep'>
114
114
  </span><span class='tstring_content'> partial_pixelate</span><span class='words_sep'> </span><span class='tstring_content'>partial_blur</span><span class='words_sep'> </span><span class='tstring_content'>collage</span><span class='words_sep'> </span><span class='tstring_content'>upscale</span><span class='words_sep'> </span><span class='tstring_content'>enhance</span><span class='words_sep'>
115
115
  </span><span class='tstring_content'> redeye</span><span class='words_sep'> </span><span class='tstring_content'>ascii</span><span class='words_sep'> </span><span class='tstring_content'>filetype_conversion</span><span class='words_sep'> </span><span class='tstring_content'>quality</span><span class='words_sep'> </span><span class='tstring_content'>urlscreenshot</span><span class='words_sep'>
116
- </span><span class='tstring_content'> no_metadata</span><span class='words_sep'></span>
116
+ </span><span class='tstring_content'> no_metadata</span><span class='words_sep'></span><span class='tstring_content'> fallback</span><span class='words_sep'></span><span class='tstring_content'> pdfinfo</span><span class='words_sep'></span><span class='tstring_content'> pdfconvert</span><span class='words_sep'></span><span class='tstring_content'> monochrome</span><span class='words_sep'></span>
117
117
  <span class='tstring_end'>]</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
118
118
 
119
119
  </dl>
@@ -35,6 +35,7 @@ class TransformConfig
35
35
  torn_edges shadow circle border sharpen blur monochrome
36
36
  blackwhite sepia pixelate oil_paint negative modulate
37
37
  partial_pixelate partial_blur collage upscale enhance
38
- redeye ascii filetype_conversion quality urlscreenshot no_metadata
38
+ redeye ascii filetype_conversion quality urlscreenshot
39
+ no_metadata fallback pdfinfo pdfconvert monochrome
39
40
  ].freeze
40
41
  end
@@ -1,5 +1,5 @@
1
1
  module Filestack
2
2
  module Ruby
3
- VERSION = '2.5.4'.freeze
3
+ VERSION = '2.6.0'.freeze
4
4
  end
5
5
  end
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.5.4
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filestack
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-12 00:00:00.000000000 Z
11
+ date: 2019-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus