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 +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +14 -0
- data/VERSION +1 -1
- data/docs/TransformConfig.html +1 -1
- data/lib/filestack/config.rb +2 -1
- data/lib/filestack/ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6387d81116ffc15ca9a2d9ece2d364458192fc8
|
4
|
+
data.tar.gz: f8976d1794453a041a5045800a638e57c107670d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e3f4603bf9c44c9238304a7b363d33fbd2017ec45c30b3e453cdffc33f60fa62ff95d7aaf0eb5f006ee1cdc3dce9cedb79aad04326f82f7b202e379afa3fddc
|
7
|
+
data.tar.gz: 173eaf79b38a349dff8815c4f97034247bfeed63199f586253b131091a4654343e629bc218b2302834246e941e6c8394b9f905f572cbe87f48d7a4054c9490e1
|
data/CHANGELOG.md
CHANGED
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.
|
1
|
+
2.6.0
|
data/docs/TransformConfig.html
CHANGED
@@ -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>
|
data/lib/filestack/config.rb
CHANGED
@@ -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
|
38
|
+
redeye ascii filetype_conversion quality urlscreenshot
|
39
|
+
no_metadata fallback pdfinfo pdfconvert monochrome
|
39
40
|
].freeze
|
40
41
|
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.
|
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-
|
11
|
+
date: 2019-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|