filestack 2.0.0 → 2.0.1
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 +4 -4
- data/CHANGELOG.md +4 -1
- data/Gemfile +2 -1
- data/Gemfile.lock +14 -3
- data/README.md +5 -5
- data/VERSION +1 -1
- data/lib/filestack/models/filestack_client.rb +0 -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: 45d7aacf132ef3dd705c669d129953249290d022
|
|
4
|
+
data.tar.gz: 31b9263afe6b70daddfeebfc24f817d84b1bc1fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 784bc62bdabfeccfeebae6a7383dd3dd4ea5cec831deb9706b4a29293a0246e6253f60838163cb133e8f0bd3bd1594891c28a981fdbe465d5e27862b31c58473
|
|
7
|
+
data.tar.gz: 39cadb89c3e116b119e88f3960cf4d98236c6ca0cdc2dba7ce85f56833011b602c12fad0f3110d87dee3a91cc8f115b7d4919aae19f5dc5136756f4170e2f2b1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
# Filestack-Ruby Changelog
|
|
2
2
|
|
|
3
3
|
## 2.0.0
|
|
4
|
-
- First release, includes uploads, transformations, conversions and tagging
|
|
4
|
+
- First release, includes uploads, transformations, conversions and tagging
|
|
5
|
+
|
|
6
|
+
## 2.0.1 (July 11, 2017)
|
|
7
|
+
- FS-1389 Fix import error when calling './lib' in client class
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
filestack (2.0.
|
|
4
|
+
filestack (2.0.1)
|
|
5
5
|
mimemagic (~> 0.3.2)
|
|
6
6
|
parallel (~> 1.11.2)
|
|
7
7
|
unirest (~> 1.1.2)
|
|
@@ -10,13 +10,19 @@ GEM
|
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
12
|
addressable (2.3.8)
|
|
13
|
+
coveralls (0.8.21)
|
|
14
|
+
json (>= 1.8, < 3)
|
|
15
|
+
simplecov (~> 0.14.1)
|
|
16
|
+
term-ansicolor (~> 1.3)
|
|
17
|
+
thor (~> 0.19.4)
|
|
18
|
+
tins (~> 1.6)
|
|
13
19
|
diff-lcs (1.3)
|
|
14
20
|
docile (1.1.5)
|
|
15
|
-
json (1.8.
|
|
21
|
+
json (1.8.6)
|
|
16
22
|
mime-types (1.25.1)
|
|
17
23
|
mimemagic (0.3.2)
|
|
18
24
|
parallel (1.11.2)
|
|
19
|
-
rake (
|
|
25
|
+
rake (12.0.0)
|
|
20
26
|
rest-client (1.6.9)
|
|
21
27
|
mime-types (~> 1.16)
|
|
22
28
|
rspec (3.6.0)
|
|
@@ -37,6 +43,10 @@ GEM
|
|
|
37
43
|
json (>= 1.8, < 3)
|
|
38
44
|
simplecov-html (~> 0.10.0)
|
|
39
45
|
simplecov-html (0.10.1)
|
|
46
|
+
term-ansicolor (1.6.0)
|
|
47
|
+
tins (~> 1.0)
|
|
48
|
+
thor (0.19.4)
|
|
49
|
+
tins (1.15.0)
|
|
40
50
|
unirest (1.1.2)
|
|
41
51
|
addressable (~> 2.3.5)
|
|
42
52
|
json (~> 1.8.1)
|
|
@@ -47,6 +57,7 @@ PLATFORMS
|
|
|
47
57
|
|
|
48
58
|
DEPENDENCIES
|
|
49
59
|
bundler (~> 1.15)
|
|
60
|
+
coveralls
|
|
50
61
|
filestack!
|
|
51
62
|
rake
|
|
52
63
|
rspec (~> 3.0)
|
data/README.md
CHANGED
|
@@ -26,7 +26,7 @@ And then execute:
|
|
|
26
26
|
|
|
27
27
|
Or install it yourself as:
|
|
28
28
|
|
|
29
|
-
$ gem install filestack
|
|
29
|
+
$ gem install filestack
|
|
30
30
|
|
|
31
31
|
## Usage
|
|
32
32
|
|
|
@@ -86,7 +86,7 @@ transform.url
|
|
|
86
86
|
Or you can store (upload) the transformation as a new filelink:
|
|
87
87
|
|
|
88
88
|
```ruby
|
|
89
|
-
new_filelink = transform.store
|
|
89
|
+
new_filelink = transform.store
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
For a list of valid transformations, please see [here](https://www.filestack.com/docs/image-transformations).
|
|
@@ -101,7 +101,7 @@ tags = filelink.tags
|
|
|
101
101
|
|
|
102
102
|
This will return a hash with labels and their associated confidence:
|
|
103
103
|
|
|
104
|
-
```ruby
|
|
104
|
+
```ruby
|
|
105
105
|
{
|
|
106
106
|
"auto" => {
|
|
107
107
|
"art"=>73,
|
|
@@ -120,7 +120,7 @@ This will return a hash with labels and their associated confidence:
|
|
|
120
120
|
SFW is called the same way, but returns a boolean value (true == safe-for-work, false == not-safe-for-work).
|
|
121
121
|
|
|
122
122
|
```ruby
|
|
123
|
-
sfw =
|
|
123
|
+
sfw = filelink.sfw
|
|
124
124
|
```
|
|
125
125
|
|
|
126
126
|
## Versioning
|
|
@@ -145,4 +145,4 @@ Thank you to all the [contributors](https://github.com/filestack/filestack-ruby/
|
|
|
145
145
|
[code_climate]: https://codeclimate.com/github/filestack/filestack-ruby
|
|
146
146
|
[code_climate_badge]: https://codeclimate.com/github/filestack/filestack-ruby.png
|
|
147
147
|
[coveralls]: https://coveralls.io/github/filestack/filestack-ruby?branch=master
|
|
148
|
-
[coveralls_badge]: https://coveralls.io/repos/github/filestack/filestack-ruby/badge.svg?branch=master
|
|
148
|
+
[coveralls_badge]: https://coveralls.io/repos/github/filestack/filestack-ruby/badge.svg?branch=master
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.0.
|
|
1
|
+
2.0.1
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
require 'filestack/utils/multipart_upload_utils'
|
|
2
2
|
require 'filestack/models/filestack_transform'
|
|
3
3
|
require 'filestack/utils/utils'
|
|
4
|
-
require './lib/filestack/'
|
|
5
4
|
|
|
6
5
|
# The Filestack Client class acts as a hub for all
|
|
7
6
|
# Filestack actions that do not require a file handle, including
|
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.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Filestack
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-07-
|
|
11
|
+
date: 2017-07-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: unirest
|