letter_avatar 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +15 -2
- data/lib/letter_avatar.rb +4 -0
- data/lib/letter_avatar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODAxYzc0MjljZjRkMWNlNDBmOWUzODQ3YWFjZTAzMjI5ZDA5Yjc4OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmFiY2ZlNjVhZjg3ZWIyZjU4YTdiYWQyNGEyNGI2NmFmY2U0Y2M4Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDQ0NzcxNmI2ZTVhNThiN2NlYzYwYjMyNjMwNzAxYjQ4ZmIwNWIzMWI4MGQw
|
10
|
+
YWQ0NGZlZTVkODhhODlmYjFiYTlmZGFmOGYwZDVhMDE2Y2Y1MDVhZWQxMjIy
|
11
|
+
NTliNjYxYjUwYWFkMjlkMTgxOGM4Njc5NjlhOGYxZDU0ZWY3MzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzcxY2Q0N2MwYWVkZjQ4ZjYwMGVkNGRiNjVjOGRkYTJjMzExMmFiYzZhZjg5
|
14
|
+
ZTkxN2RkMmI1ODQ5ZmMyNDQyODYwMTg1NGU3MmZiYzdiNDFkNWJjYmZjNzI4
|
15
|
+
NjM5NTU5YTZhYTAyZWM5ODNmYjg3ZGE3MGRmOGU2Y2U4NjhjMzU=
|
data/README.md
CHANGED
@@ -13,7 +13,9 @@ System requirements
|
|
13
13
|
|
14
14
|
Add this line to your application's Gemfile:
|
15
15
|
|
16
|
-
|
16
|
+
```ruby
|
17
|
+
gem 'letter_avatar'
|
18
|
+
```
|
17
19
|
|
18
20
|
And then execute:
|
19
21
|
|
@@ -22,10 +24,21 @@ And then execute:
|
|
22
24
|
Or install it yourself as:
|
23
25
|
|
24
26
|
$ gem install letter_avatar
|
27
|
+
|
28
|
+
## Configuration
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
LetterAvatar.setup do |config|
|
32
|
+
config.cache_base_path='public/system/lets' # default is 'public/system'
|
33
|
+
end
|
34
|
+
```
|
25
35
|
|
26
36
|
## Usage
|
27
37
|
|
28
|
-
|
38
|
+
```ruby
|
39
|
+
LetterAvatar.generate 'ksz2k', 200
|
40
|
+
=> "public/system/letter_avatars/2/K/87_178_230/200.png"
|
41
|
+
```
|
29
42
|
|
30
43
|
## Contributing
|
31
44
|
|
data/lib/letter_avatar.rb
CHANGED