s3ff 0.9.5 → 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f484d70a13f4f286c5c2359cfb0b2ce008646d9
4
- data.tar.gz: b2ba48eb5a830b8369b70dac313ff6d1c4a239b0
3
+ metadata.gz: 5f8cf4af0dd80c36ccb4cdb699d96018416855cf
4
+ data.tar.gz: a85a0e22a5367e32a0a9bdb8f7655ccfc80e8f73
5
5
  SHA512:
6
- metadata.gz: 6ef9c3c7d3ebe06188c702897b123405eda017cbdd3f358520561ba5e06d0868baad82049777cf91db81fd5d4e2ced7c433305e694fa14c505efeccae303a6ea
7
- data.tar.gz: 954dc7d61321c80d3d9fab2eaa02a4c7dcd22c83cbfca13d11bbc7798d674a9bc1764513737d2ae2c70cf7f2a258e02c12bc339b9f5c498614d0200df6ec12ab
6
+ metadata.gz: b1105ea316002c40c46073e0313446c6256d84910800c5337b65f38b1778e6b4778749535f51e1225524eb73c931a8ebcce5da534c1e3a38828c63441189d805
7
+ data.tar.gz: f52ca4915021c9f0d26dd0fce995daee08c0ace58ee526cad56096bf2ebeeb1a14601891cf9f1c979267a52cb0853a77de9d38b936191bd770708eac814aa7b5
data/README.md CHANGED
@@ -132,7 +132,7 @@ class User < ActiveRecord::Base
132
132
 
133
133
  # s3ff changes
134
134
  # for delayed_job, you MUST add a `avatar_direct_url` database column of string type
135
- # for sidekiq, `avatar_direct_url` is a virtual attribute; adding a database column is optional
135
+ # for sidekiq, a virtual attribute `avatar_direct_url` will be added
136
136
  download_from_direct_url_with_delay :avatar
137
137
  end
138
138
  ```
@@ -3,7 +3,7 @@ module S3FF
3
3
  def download_from_direct_url_with_delay(attr_name)
4
4
  if self.respond_to?(:delay)
5
5
  self.class_eval <<-EOM
6
- attr_accessor :#{attr_name}_direct_url unless self.column_names.include?("#{attr_name}_direct_url")
6
+ attr_accessor :#{attr_name}_direct_url
7
7
  after_save :delay_s3ff_download_direct_url, if: proc { #{attr_name}_direct_url.present? }
8
8
 
9
9
  def delay_s3ff_download_direct_url
@@ -1,3 +1,3 @@
1
1
  module S3FF
2
- VERSION = '0.9.5'
2
+ VERSION = '0.9.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3ff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chew Choon Keat