froala-editor-sdk 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/froala-editor-sdk/s3.rb +7 -5
- data/lib/froala-editor-sdk/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: c51a689daf99ec97c6ccebbb452f66e3c0c217b8
|
4
|
+
data.tar.gz: 4dc43249a447e483c3463103d4e8cebd755ff4a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 642103cf3c5b322c4e7d9664c9619ef86503b720b9a1f3827a1bc94544862fce3cabd16cff1ca53045fe6145e3b60d3b0326337b109b10194daa8d7fba1c3e29
|
7
|
+
data.tar.gz: 5b429455276179d3a3dc96ef5f0158ce9b5ebc70afb606a8a47546f304f74f960b9c3f25819f55b8ed3d9cda5d4fdb1bd5f951bbcfb8ce71094d6ed852513b7e
|
data/lib/froala-editor-sdk/s3.rb
CHANGED
@@ -46,13 +46,15 @@ module FroalaEditorSDK
|
|
46
46
|
options[:region] = 'us-east-1' if options[:region].nil? || options[:region] == 's3'
|
47
47
|
|
48
48
|
{
|
49
|
+
:bucket => options[:bucket], # Upload bucket
|
50
|
+
:region => options[:region] != 'us-east-1' ? "s3-#{options[:region]}" : 's3', # Upload region
|
51
|
+
:keyStart => options[:keyStart], # Start key/folder
|
52
|
+
:params => {
|
49
53
|
:signature => self.signature(options), # Defined signature
|
54
|
+
:AWSAccessKeyId => options[:accessKey], # Your Access key
|
50
55
|
:policy => self.policy(options), # Defined policy
|
51
|
-
:
|
52
|
-
|
53
|
-
:keyStart => options[:keyStart], # Start key/folder
|
54
|
-
:accessKey => options[:accessKey], # Your Access key
|
55
|
-
:region => options[:region] != 'us-east-1' ? "s3-#{options[:region]}" : 's3' # Upload region
|
56
|
+
:acl => options[:acl] # ACL property 'public-read'
|
57
|
+
}
|
56
58
|
}
|
57
59
|
end
|
58
60
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: froala-editor-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Froala Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|