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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18fd0d46656fbf432fae2922e916d1e77cd3d9ba
4
- data.tar.gz: 34a4619f1dc4b5672a00942a29917c73b5cb0171
3
+ metadata.gz: 0c7841572b66b4b1ea3cf627c921fecc854c20dc
4
+ data.tar.gz: 95df7cb8419e62380e8e042012d95904c5eacf95
5
5
  SHA512:
6
- metadata.gz: c4bf1ba126d1b27db9fd2141b646f4189b6be7d2282179f0dae469f79001fc41d48ab6370a8b1e3807dc906099fb5d3d27e59da2a80f6071eb71d97d83d0538f
7
- data.tar.gz: a1a579e0ea60d5b19920ad4216c1f94a73ad3d5effffa9fb27bb0c8dbf98acf91534905287353de8ef37475435d9521fc3aa57164494c3cc051112ca76581333
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.s3.client.config.access_key_id,
170
- secret: io.storage.s3.client.config.secret_access_key,
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.s3.client.config.region,
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.s3.client.config.access_key_id,
203
- secret: storage.s3.client.config.secret_access_key,
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.s3.client.config.region,
205
+ bucket_region: storage.client.config.region,
206
206
  path: [*storage.prefix, path].join("/"),
207
207
  )
208
208
  else
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "shrine-transloadit"
3
- gem.version = "0.4.2"
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.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.2
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-01-14 00:00:00.000000000 Z
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.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.2'
26
+ version: '2.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: transloadit
29
29
  requirement: !ruby/object:Gem::Requirement