filestack 2.9.1 → 2.9.5
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/.travis.yml +0 -3
- data/CHANGELOG.md +12 -0
- data/README.md +0 -13
- data/VERSION +1 -1
- data/docs/FilestackCommon.html +1 -1
- data/docs/MultipartUploadUtils.html +491 -491
- data/filestack-ruby.gemspec +1 -1
- data/lib/filestack/mixins/filestack_common.rb +2 -2
- data/lib/filestack/ruby/version.rb +1 -1
- data/lib/filestack/utils/multipart_upload_utils.rb +10 -2
- data/lib/filestack/utils/utils.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ebe62c67bc8e70b956260dd4f9c9c660390353d69c8d813a69503d9b2aa9c07
|
4
|
+
data.tar.gz: 799b76ab0cf935f4799ae93c98b82277888983391ca46e9d0a04773ed12c4bec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0155678c978e5a9618e590a876779478aff9a4e435986b82afbcddb0ed9fcd7adea84a3eb25315d7478da656e7c41f56f335d535634570bc910c74a27409b1fb'
|
7
|
+
data.tar.gz: 7c462f87ee1c72f2c6c50933e6852644959e4cd44dfcd4ec2d0695a2ef12d9c41ba000f720c5bbee61eb8a5946f79facc5afa48c2923ca4f356e04a69b2071da
|
data/.travis.yml
CHANGED
@@ -9,9 +9,6 @@ rvm:
|
|
9
9
|
before_install:
|
10
10
|
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
11
11
|
- gem install bundler -v '< 2'
|
12
|
-
- sudo apt-get update -y
|
13
|
-
- sudo apt-get install -y shared-mime-info
|
14
|
-
- mkdir -p ./usr/share/mime/packages && cp -a /usr/share/mime/packages/freedesktop.org.xml ./usr/share/mime/packages/
|
15
12
|
|
16
13
|
after_success:
|
17
14
|
- coveralls
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Filestack-Ruby Changelog
|
2
2
|
|
3
|
+
## 2.9.5 (Oct 19, 2021)
|
4
|
+
- Add url encoding - fix the issue with transformation crop dim
|
5
|
+
|
6
|
+
## 2.9.4 (July 26, 2021)
|
7
|
+
- Change the version of mini_mime
|
8
|
+
|
9
|
+
## 2.9.3 (June 7, 2021)
|
10
|
+
- Handle nil mimetype of file
|
11
|
+
|
12
|
+
## 2.9.2 (May 5, 2021)
|
13
|
+
- Replace mimemagic with mini_magic
|
14
|
+
|
3
15
|
## 2.9.1 (March 26, 2021)
|
4
16
|
- Update version of mimemagic gem to 0.3.9
|
5
17
|
|
data/README.md
CHANGED
@@ -37,19 +37,6 @@ Or install it yourself as:
|
|
37
37
|
|
38
38
|
$ gem install filestack
|
39
39
|
|
40
|
-
## Dependencies
|
41
|
-
|
42
|
-
We use the gem `mimemagic` which requires a copy of the Freedesktop.org shared-mime-info database.
|
43
|
-
|
44
|
-
macOS users can install the database via Homebrew with `brew install shared-mime-info`.
|
45
|
-
|
46
|
-
If you are unable to use a package manager, you can obtain a copy of the needed file by extracting it from the Debian package. This process will also work on a Windows machine.
|
47
|
-
|
48
|
-
1. Download the package from https://packages.debian.org/sid/amd64/shared-mime-info/download
|
49
|
-
2. Ensure the command line version of 7-Zip is installed
|
50
|
-
3. `7z x -so shared-mime-info_2.0-1_amd64.deb data.tar | 7z e -sidata.tar "./usr/share/mime/packages/freedesktop.org.xml"`
|
51
|
-
4. Place the file `freedesktop.org.xml` in an appropriate location, and then set the environment variable `FREEDESKTOP_MIME_TYPES_PATH` to that path. Once that has been done the gem should install successfully. Please note that the gem will depend upon the file remaining in that location at run time.
|
52
|
-
|
53
40
|
## Usage
|
54
41
|
|
55
42
|
### Import
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.9.
|
1
|
+
2.9.5
|
data/docs/FilestackCommon.html
CHANGED
@@ -730,7 +730,7 @@ call.</p>
|
|
730
730
|
<span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Overwrite requires security</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_security'>security</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
731
731
|
|
732
732
|
<span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_filepath'>filepath</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>r</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
733
|
-
<span class='id identifier rubyid_mimetype'>mimetype</span> <span class='op'>=</span> <span class='const'>
|
733
|
+
<span class='id identifier rubyid_mimetype'>mimetype</span> <span class='op'>=</span> <span class='const'>MiniMime</span><span class='period'>.</span><span class='id identifier rubyid_lookup_by_filename'>lookup_by_filename</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_content_type'>content_type</span>
|
734
734
|
<span class='id identifier rubyid_content'>content</span> <span class='op'>=</span> <span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span>
|
735
735
|
|
736
736
|
<span class='id identifier rubyid_signature'>signature</span> <span class='op'>=</span> <span class='id identifier rubyid_security'>security</span><span class='period'>.</span><span class='id identifier rubyid_signature'>signature</span>
|