identicon 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/identicon.gemspec +1 -1
- data/lib/identicon.rb +16 -16
- 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: 8cf33651b6497301461644c6b88c2f1fa546f704
|
4
|
+
data.tar.gz: e1c19284622ca48cfe866f8ba025d177adaa99e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adca3a1425a220e9ecd71c6c70b51f3363406d7e2232562c72d3a3e9f6133e86b9a29406d864049c745378ad93583aeb8ed8031b3419329a3218e5a697aa0656
|
7
|
+
data.tar.gz: f5c1c7f38ed43c245a72c6036a72c43330777ef4045228dec4904a8bde33821f7a6a5a84dd2b451264cb6d065a493ce1e99950f947b48a689da694f26b564908
|
data/identicon.gemspec
CHANGED
data/lib/identicon.rb
CHANGED
@@ -8,22 +8,22 @@ class Identicon
|
|
8
8
|
CHARS_REGEX = /(\w)(\w)/
|
9
9
|
|
10
10
|
COLORS = {
|
11
|
-
a
|
12
|
-
b
|
13
|
-
c
|
14
|
-
d
|
15
|
-
e
|
16
|
-
f
|
17
|
-
"0"
|
18
|
-
"1"
|
19
|
-
"2"
|
20
|
-
"3"
|
21
|
-
"4"
|
22
|
-
"5"
|
23
|
-
"6"
|
24
|
-
"7"
|
25
|
-
"8"
|
26
|
-
"9"
|
11
|
+
:"a" => [196, 108, 168],
|
12
|
+
:"b" => [127, 219, 107],
|
13
|
+
:"c" => [83, 89, 215],
|
14
|
+
:"d" => [111, 198, 148],
|
15
|
+
:"e" => [186, 130, 82],
|
16
|
+
:"f" => [113, 66, 197],
|
17
|
+
:"0" => [201, 186, 84],
|
18
|
+
:"1" => [114, 153, 205],
|
19
|
+
:"2" => [141, 108, 204],
|
20
|
+
:"3" => [75, 183, 114],
|
21
|
+
:"4" => [192, 86, 82],
|
22
|
+
:"5" => [199, 115, 209],
|
23
|
+
:"6" => [206, 77, 94],
|
24
|
+
:"7" => [211, 135, 162],
|
25
|
+
:"8" => [71, 194, 197],
|
26
|
+
:"9" => [188, 110, 93],
|
27
27
|
}
|
28
28
|
|
29
29
|
class << self
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: identicon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Gama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chunky_png
|