rails_gravatar 1.0.3 → 1.0.4

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: 6336420d5187880e651678a34531ea55bcdf1b480d445c1679faaa1689cf4ff7
4
- data.tar.gz: 6c4144f2363a56be5a8679c27f92b20f759bb0e4a772e5d39bd6a0241229e67c
3
+ metadata.gz: 9bdc440006fcc9a15dab2735a61ddbe3d4c649ae2ef1f8dd6d6c83ff1403b490
4
+ data.tar.gz: 8969c005f8ccd1d1899ed02c7a533d37036890d199d0bfbf34e8681df7147bf9
5
5
  SHA512:
6
- metadata.gz: f50d44578bd25aa5414dca140eea3a665a59b6b638eabcb114fc93eb850b073bdc95dfe1a81b4245b4ed12f3955f6bc346a129ab70f68a8c9a024bf203f21686
7
- data.tar.gz: 9eb2ee3657f465833e90ae1f70005f7b9a3e3e5c33b6081680def4d629c23d8126fe0e076b4f4e40dd263b417c21e70077ff65383fb6144e8e5396e330cdeb36
6
+ metadata.gz: 27a166e185ef4b8058b7d888c43070ddce4562d857e32c0f83f276d8f9a528af1e9e2c4f9a287c61e2aab659fbf25edb541a0d406d5d120cad470afab4808599
7
+ data.tar.gz: 16f8187ae88701eb6e8e575ba4dc821a3454e7235ef69c038f474b788f7920f378b975dd411e4d2204975b1e87e14c9ab1fc7b91786e50cbf73c8ece6bdc4dc2
@@ -52,7 +52,13 @@ class RailsGravatar
52
52
  end
53
53
 
54
54
  def size
55
- @size.clamp(1, 2048)
55
+ if @size < 1
56
+ 1
57
+ elsif @size > 2048
58
+ 2048
59
+ else
60
+ @size
61
+ end
56
62
  end
57
63
 
58
64
  def fallback_image_url_param
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class RailsGravatar
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_gravatar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricky Chilcott