avatarly 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -1
  3. data/lib/avatarly.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d229c78d18e36061ec7628d50d786713f306cf3e
4
- data.tar.gz: 54668761e1d7e58142d7f240050dd02fef727552
3
+ metadata.gz: cc497b678e5b90686b4e3adccfb0dc88329e14cd
4
+ data.tar.gz: f6fe41a4e383526c956d90a8c5570dd2edb57fed
5
5
  SHA512:
6
- metadata.gz: 12c846630066cc8f7f6b6f627e57e40bf22fef0095fbea99e99ac87bc38db4cdef453ac4c817420ae0c99b20f2b554f382c37c9a78fd94a943b6ad15b126e0f0
7
- data.tar.gz: c2bea1a8b5aaeb50eeb4891420dab87d93974510398a17c98a5c014d1bc09dc1bb86b8851e1dd81e8fad0b193aeb8b4c4f116b93f5c82803656bf825b2d8d4d7
6
+ metadata.gz: fcccb0d355e161442f2df81cb7586bed2fb09d968dbd8cfac733d73201b28397ee071ea0a99ce48d9a11b332d3d105222d74d19c699f2fdbef791fb0218dafeb
7
+ data.tar.gz: 2e5c3bfef57a1bf975eb525e6f4ba333f7e939dcbbb4605ed64b056bd83ac5d93fcd56a11f3ae7a081e7916890d9f8f7049941c3c63628238bde0e28982af921
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![](http://f.cl.ly/items/0M3L273P2r2l0A3L052M/avatars.png)
1
+ [![Demo](http://f.cl.ly/items/0M3L273P2r2l0A3L052M/avatars.png)](http://avatarly.herokuapp.com)
2
2
 
3
3
  # avatarly
4
4
 
@@ -9,6 +9,10 @@ avatarly is a simple gem for creating gmail-like user avatars based on user emai
9
9
 
10
10
  inspired and influenced by https://github.com/johnnyhalife/avatar-generator.rb
11
11
 
12
+ # Demo
13
+
14
+ http://avatarly.herokuapp.com
15
+
12
16
  ## Installation
13
17
 
14
18
  Avatarly requires ImageMagick to be installed.
@@ -15,7 +15,7 @@ class Avatarly
15
15
 
16
16
  class << self
17
17
  def generate_avatar(text, opts={})
18
- generate_image(initials(text.to_s.gsub(/\W/,'')).upcase, parse_options(opts)).to_blob
18
+ generate_image(initials(text.to_s.strip.gsub(/[^\w ]/,'')).upcase, parse_options(opts)).to_blob
19
19
  end
20
20
 
21
21
  def root
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avatarly
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukasz Odziewa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-25 00:00:00.000000000 Z
11
+ date: 2015-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rmagick