avatari 2.0.0 → 2.0.1

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: ac5e9557a3f84fe6a8a4fc9db838efe98f4a596c971f60225264bc6cfb3217d0
4
- data.tar.gz: d1ca7db7614794fcae4be3c3d4e7c3e8763ef9d771a6cc38abc0c1fc366e99a6
3
+ metadata.gz: 0c35266fc190c96a50c36837d58e41037371413f9c53d1f3df99adec24277805
4
+ data.tar.gz: 515e6016dde68625e533a6e53c3cc114edb40eddc30f52eb2133dda1216d672f
5
5
  SHA512:
6
- metadata.gz: bb91bb0abd69bf78b6d7ab1aaaa627982793fb8a68cb1b91ae8045575258cf6038235cd8b4a8e5b2a78b2e71e7e9499149eaa390d91fe77d6b23c7bda2c5be30
7
- data.tar.gz: 50fbc9e0f7a822b08ef104f30852baf709aacea1d92d5b01cd8be88ab48ef11ca40a4e6a4b269d1c7b1a119e3bceaffa631ec84aba7a14a19947d4191d31747f
6
+ metadata.gz: 7742aeac152cec030c7195cb30224b0a94b94410d4ffed691286c47e0dcb7dc830bba1c5c28d17fe1eb8f869845798edd4d5eec3b9e941846e78041c84b1fd1b
7
+ data.tar.gz: 2d46ab185fd2bfc1939b22f74ec0f0d03e9885d4b7e288c43d7295ab30bf189b55b00587a3880762073d8d8537e6a24a6d31d3d43db98641b1944c7519b15fcd
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 2.0.1 - 2018/01/12
8
+
9
+ * bugfixes
10
+ * fixed `avatari?` view helper
11
+
7
12
  ### 2.0.0 - 2018/01/12
8
13
 
9
14
  * features
data/README.md CHANGED
@@ -156,7 +156,7 @@ You can also specify a size:
156
156
  You are able to check whether or not an avatar can be rendered:
157
157
 
158
158
  ```haml
159
- - if avatari?
159
+ - if avatari? current_user
160
160
  = component 'avatari/avatar', object: current_user
161
161
  ```
162
162
 
@@ -1,7 +1,7 @@
1
1
  module Avatari
2
2
  module AvatarHelper
3
3
 
4
- def avatari?
4
+ def avatari? object
5
5
  object.avatar? || !object.class.avatari_instance.initials(object).nil?
6
6
  end
7
7
 
@@ -1,5 +1,5 @@
1
1
  module Avatari
2
2
 
3
- VERSION = '2.0.0'
3
+ VERSION = '2.0.1'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avatari
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter