letter_avatar 0.3.1 → 0.3.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: 86eeb1acd3d42ef513e6f593a81f86106de3e6a2
4
- data.tar.gz: 8744c5afa9950021d1a9b6b73841af1ed67495d0
3
+ metadata.gz: 984eff6bf1e6e42f1db74a60e11b8d1c688522ea
4
+ data.tar.gz: f80701625862439e08ba66780067a1f686b22243
5
5
  SHA512:
6
- metadata.gz: f1802b86e0623cdf3a74c3d3d860cbfad4ea266efdb32c8f1ee224c8f60009f1ff471bce75fcadfe4ff27793ce10e63c7764ec92bb70266b39f5fc1cd1923ce7
7
- data.tar.gz: 5ab055f302bc30c0238fb769c9df2e5696a482540c38afaa1a00452893607821193e74188ea5c3f21d7cd5d8f678510b15a70242b4d7efba0e1c53cb95327e3b
6
+ metadata.gz: bf17bd75599a279496d13b56830bfa2c4fb22ebbf2d79fd9e6992ce2c7b6355d1177d71aeef2ddfe5471775318ad1ebae60391869b9b6a95be9f79a4e17335ed
7
+ data.tar.gz: 1f527d51bd5b001e4564b189a6c1ddc706c3eba8b6076611c8653fb6a2f5b28755e32c278d3ca5fe2bb6daacbad556b5d3b1c9ceb310f51da03192fc2a9f0b4c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.3.2
2
+ -----
3
+
4
+ - extend objects with `ActionView::Helpers::AssetTagHelper`
5
+
1
6
  0.3.1
2
7
  -----
3
8
 
@@ -14,7 +14,7 @@ module LetterAvatar
14
14
 
15
15
  def letter_avatar_tag(name, size = 64, options = {})
16
16
  if defined?(ActionView::Helpers::AssetTagHelper)
17
- include ActionView::Helpers::AssetTagHelper
17
+ extend ActionView::Helpers::AssetTagHelper
18
18
  image_tag(letter_avatar_url(name, size), options.merge(alt: name))
19
19
  else
20
20
  "<img alt=\"#{name}\" class\"#{options.fetch(:class)}\" src=\"#{letter_avatar_url(name, size)}\" />"
@@ -1,3 +1,3 @@
1
1
  module LetterAvatar
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: letter_avatar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Discourse Developers
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-07-20 00:00:00.000000000 Z
14
+ date: 2016-09-30 00:00:00.000000000 Z
15
15
  dependencies: []
16
16
  description: Gem for creating letter avatar from user's name
17
17
  email: