active_storage-cloud_transformations 0.2.6 → 0.3.0

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
  SHA256:
3
- metadata.gz: db9b26b9f01a6326b23d63d1f9471095129bd334d4e3f3945ef50dbd7feb1630
4
- data.tar.gz: 77afcc45696f31db8a0248942603b4460216375b44e0349cf6eff578b4f8083d
3
+ metadata.gz: d9ffa075ea0830d2c76a32bd0ebe9e86799859e0bc741ce3128b217b7dc25b79
4
+ data.tar.gz: bfcd4614b55c2cba811263826d178d661bcefb91f50d53996721ab8792ee38d6
5
5
  SHA512:
6
- metadata.gz: 56da3d1c6f4da5869431131038a621d2943dbc721997cafbaf4ff22005091fa5c1c2eb6bff0d174d26b1d72386135b3512327e6cdddce83a1e67731dd63162a5
7
- data.tar.gz: c8a38c1dd1b598de5938e2367c7069ce7410d928fc5e8cd1b3c1c9f0dc76a3159826b4bac0cd4f9af1e8d3e212973d00e68e8046eaa3e18c9f149e53c0440063
6
+ metadata.gz: a2fafbe7f41f231d20303261ed9863e56ba33b7de17ba009374934e8d93fbcddd7091a58f572fad3667a1efdd189ffa608e6a68a9b8386f1cc559d635ee7906d
7
+ data.tar.gz: 40b5993c2cc8933c6bae0cd9f61c144aefdc3996b0356889beb882fe387e69c21d339ac5a663e00f4ebe6d4c8f308930b4e9e20c9b5849ade857d85505b72043
@@ -37,12 +37,14 @@ module ActiveStorage
37
37
  def run_crucible_job input_blob, output_blob, ignore_timeouts: false
38
38
  width, height = variation.transformations.fetch(:resize_to_limit)
39
39
  rotation = variation.transformations.fetch(:rotation, 0)
40
- post! "https://huuabwxpqf.execute-api.us-west-2.amazonaws.com/prod/#{path}", {
40
+ params = {
41
41
  blob_url: input_blob.url.split("?").first,
42
42
  dimensions: "#{width}x#{height}",
43
43
  rotation: rotation,
44
44
  variant_url: output_blob.url.split("?").first,
45
- }, ignore_timeouts: ignore_timeouts
45
+ format: format,
46
+ }
47
+ post! "https://huuabwxpqf.execute-api.us-west-2.amazonaws.com/prod/#{path}", params, ignore_timeouts: ignore_timeouts
46
48
  end
47
49
 
48
50
  def path
@@ -1,5 +1,5 @@
1
1
  module ActiveStorage
2
2
  module CloudTransformations
3
- VERSION = "0.2.6"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_storage-cloud_transformations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-09 00:00:00.000000000 Z
11
+ date: 2024-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage