avatars_for_rails 1.0.1 → 1.0.2

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: e76027c84a8f47d8dcca9b180634c91d0c2b06f6
4
- data.tar.gz: 86fa6b3be700c8c9a83dc1d959133c5c98951eaa
3
+ metadata.gz: 121c97a3a4aafa171f7ad2d22e4ce00a341f737e
4
+ data.tar.gz: ee12a07c8c781423f251177f0f2da36ee7818c2b
5
5
  SHA512:
6
- metadata.gz: 6b72e945aeed0225e48d79d57a81c544377f5bd344796be8e328c929e1dfbadbd089d07d04fa97a2cd9a167c2623a3baefe06d7600e4c17afde2c92e55467c63
7
- data.tar.gz: 5d246bc83b71f280e4abb3f1befa935ca1d73e906ac98e90512f4d1ddab582eff1fd193621c79876a1f8fdafac0c949361c9b74484c24edc079ba37b7b250a5e
6
+ metadata.gz: 439b6b2ad2fb492fe6e1782ec1f20bcf43e929e34a01311c8702660aa2ee2beef5a9b04d40525e3c8554280b9e6a292d95c29483b28ff8df473f26361c4aa9dd
7
+ data.tar.gz: 3eb1eaea45eed02d4f6ebc955edf133a9ef55117ebe8b6dd384ac35bf2b2a0f4fc6c49b00a270a1db509d2e4f8c4bbf3b9b93172c1c4c8431a06cfb25e5757f8
@@ -27,6 +27,8 @@ module AvatarsForRails
27
27
 
28
28
 
29
29
  def check_avatar_aspect_ratio
30
+ return if logo.queued_for_write[:original].blank?
31
+
30
32
  FileUtils.cp logo.queued_for_write[:original].path, AvatarsForRails.tmp_path
31
33
 
32
34
  @avatar_tmp_basename = File.basename(logo.queued_for_write[:original].path)
@@ -1,3 +1,3 @@
1
1
  module AvatarsForRails
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avatars_for_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaime Castro Montero