avatarly 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/avatarly.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc497b678e5b90686b4e3adccfb0dc88329e14cd
|
4
|
+
data.tar.gz: f6fe41a4e383526c956d90a8c5570dd2edb57fed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/lib/avatarly.rb
CHANGED
@@ -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(
|
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.
|
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-
|
11
|
+
date: 2015-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rmagick
|