shrine-transloadit 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shrine/plugins/transloadit.rb +6 -6
- data/shrine-transloadit.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c7841572b66b4b1ea3cf627c921fecc854c20dc
|
4
|
+
data.tar.gz: 95df7cb8419e62380e8e042012d95904c5eacf95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f321ee904f0bebee10f1ebef46240b61425ec310a93a1e4bda0179e40fc3e5d74ea9432b1185ab9e1420feee08fcb0b53cdcafea3a9d742f5bdc3c58d41d8bd
|
7
|
+
data.tar.gz: 983186ea6e98fa511bca02f0a9788ab8f552d18e00588bdc9a8dde3e44becfdfd99605a20ca8f623b5f99741c8a8e725c367b66628cd645deada0a66b2497f40
|
@@ -166,10 +166,10 @@ class Shrine
|
|
166
166
|
|
167
167
|
if defined?(Storage::S3) && io.storage.is_a?(Storage::S3)
|
168
168
|
step = transloadit.step(name, "/s3/import",
|
169
|
-
key: io.storage.
|
170
|
-
secret: io.storage.
|
169
|
+
key: io.storage.client.config.access_key_id,
|
170
|
+
secret: io.storage.client.config.secret_access_key,
|
171
171
|
bucket: io.storage.bucket.name,
|
172
|
-
bucket_region: io.storage.
|
172
|
+
bucket_region: io.storage.client.config.region,
|
173
173
|
path: [*io.storage.prefix, io.id].join("/"),
|
174
174
|
)
|
175
175
|
elsif uri.scheme == "http" || uri.scheme == "https"
|
@@ -199,10 +199,10 @@ class Shrine
|
|
199
199
|
path ||= "${unique_prefix}/${file.url_name}" # Transloadit's default path
|
200
200
|
|
201
201
|
step = transloadit.step(name, "/s3/store",
|
202
|
-
key: storage.
|
203
|
-
secret: storage.
|
202
|
+
key: storage.client.config.access_key_id,
|
203
|
+
secret: storage.client.config.secret_access_key,
|
204
204
|
bucket: storage.bucket.name,
|
205
|
-
bucket_region: storage.
|
205
|
+
bucket_region: storage.client.config.region,
|
206
206
|
path: [*storage.prefix, path].join("/"),
|
207
207
|
)
|
208
208
|
else
|
data/shrine-transloadit.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = "shrine-transloadit"
|
3
|
-
gem.version = "0.4.
|
3
|
+
gem.version = "0.4.3"
|
4
4
|
|
5
5
|
gem.required_ruby_version = ">= 2.1"
|
6
6
|
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.files = Dir["README.md", "LICENSE.txt", "lib/**/*.rb", "*.gemspec"]
|
14
14
|
gem.require_path = "lib"
|
15
15
|
|
16
|
-
gem.add_dependency "shrine", "~> 2.
|
16
|
+
gem.add_dependency "shrine", "~> 2.6"
|
17
17
|
gem.add_dependency "transloadit", "~> 2.0"
|
18
18
|
|
19
19
|
gem.add_development_dependency "rake"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shrine-transloadit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janko Marohnić
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shrine
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.6'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
26
|
+
version: '2.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: transloadit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|