activestorage-delayed 0.1.2 → 0.1.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
  SHA256:
3
- metadata.gz: 153ae98174a2430ab5b0ddfb3a2bb17ffc6b0d568306ba9b2ee55886d4b16581
4
- data.tar.gz: a75a0db4f5a200a84a627bdf74771ee63d39260b2df769a94ecc1a93a8f75546
3
+ metadata.gz: 21cd7652c2fbe15057bf6f36a36c7ec510ed1e622f5adb0e0f566f5a2e30c111
4
+ data.tar.gz: e16a8f72a0cc7049dfccb958499ba112659abcf0afbf03e9961fdcaea6cd76cd
5
5
  SHA512:
6
- metadata.gz: 76a311ff87cc7ecf0046443834e1940563d2ed69bafc50f8d5cabbd0d7643c72f1827fb8ab89a86adf60f3e20856192d3412d9cfc8704aed3e8204f8b5379a21
7
- data.tar.gz: 87dc98a976a1c8cbcc0a64bbda6acd3d04e3bbd42d388640ad168627e1a89e1719a17ba07735292a715ed733000e8f11b08570a5415e9bd3ca24560f311e6342
6
+ metadata.gz: 1c69f49fc4c77684d71a9ccc9b6fdf09bdea824a0f6588974024dce997ebfe7bac49bfa0c257a8c4610437a133837d00a3040e812b8d1014f9efb5c078104079
7
+ data.tar.gz: '0802bc892fa31b38e35042860919944b7eeee09811057eb082d0a4eaf426d880a624aa306835e75acbf54cc9cf0e631c3ab5a07e18307a0f9c70ef9b99492160'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activestorage-delayed (0.1.2)
4
+ activestorage-delayed (0.1.3)
5
5
  activestorage
6
6
  rails
7
7
 
data/README.md CHANGED
@@ -13,7 +13,7 @@ Note: This gem assumes that the app has already configured activestorage.
13
13
  ## Installation
14
14
  - Add this line to your application's Gemfile:
15
15
  ```ruby
16
- gem 'activestorage-delayed', '>= 0.1.1'
16
+ gem 'activestorage-delayed', '>= 0.1.3'
17
17
  ```
18
18
  - And then execute: `bundle install`
19
19
  - Generate the migration: `rails g migration add_activestorage_delayed`
@@ -6,12 +6,13 @@ module ActivetoragePreprocessDefaultVariation
6
6
  base.extend(ClassMethods)
7
7
  end
8
8
 
9
- def upload_without_unfurling(io)
9
+ def upload_without_unfurling(io) # rubocop:disable Metrics/MethodLength
10
10
  variant = attachments.first.try(:send, :variants)
11
11
  default_variant = variant ? variant[:default] : nil
12
12
  if default_variant && self.class.enabled_default_variant?
13
13
  ActiveStorage::Variation.wrap(default_variant).transform(io) do |output|
14
14
  unfurl output, identify: identify
15
+ save! if id.present? # update new unfurl information
15
16
  super(output)
16
17
  end
17
18
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActivestorageDelayed
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activestorage-delayed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owen Peredo Diaz