idcon 0.1.0 → 0.1.1

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: c416c9cc38048c0c122768f0d162b61539cce660
4
- data.tar.gz: f80b0f0a29cc2d61b0518cdf98ed00549dedc702
3
+ metadata.gz: 4cd9824d1b36c0661c319536c4fdbbcdefba6071
4
+ data.tar.gz: fa1cb3a76dd78d920748eaa9bcc6e7677b032c5f
5
5
  SHA512:
6
- metadata.gz: 0f71264b9d9ea2a7275e495585c399ef815884559a768cae63c45ecf686789062810a6ee522b9c23ef0d3efaf4b2935251fb7dc5fb7fcf0899c5d2b8826818a1
7
- data.tar.gz: bf05ff4a22098dd164be0f505cbdab4944f531cdf944e6f4e6678b528c9e58d8551df7ca9fa36a4f1064dcf450ee900f5aab31ec887f0e6a15b92193bbf8712d
6
+ metadata.gz: c458357ee80db7e808fd6a94602cae64751ddf9c7e1f84db73e0900ab1719ce1905010951ea8003feb38166ff92120b65ba95aa704253ffa406b5b9634a2bd47
7
+ data.tar.gz: b3c76a02d481834c1e8a287613ef07076691497e8320a83215f2e7d51b1f649f8b5ac43ef54e58445e3e57dcf9c583f6c1e883c69f0b9b445eb9de02568e2a29
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.gem
data/README.md CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  svg Identicon Generator
4
4
 
5
- ![example](examples/idcon.svg)
6
- ![example](examples/hodor.svg)
7
- ![example](examples/foobar.svg)
8
- ![example](examples/yolo.svg)
9
- ![example](examples/swag.svg)
5
+ ![example](https://cdn.rawgit.com/l3kn/idcon/master/examples/idcon.svg)
6
+ ![example](https://cdn.rawgit.com/l3kn/idcon/master/examples/hodor.svg)
7
+ ![example](https://cdn.rawgit.com/l3kn/idcon/master/examples/foobar.svg)
8
+ ![example](https://cdn.rawgit.com/l3kn/idcon/master/examples/yolo.svg)
9
+ ![example](https://cdn.rawgit.com/l3kn/idcon/master/examples/swag.svg)
10
10
 
11
11
  ## Installation
12
12
 
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect x="0" y="0" width="20" height="20" style="fill:rgb(63,198,18);"/><rect x="0" y="20" width="20" height="20" style="fill:rgb(63,198,18);"/><rect x="20" y="20" width="20" height="20" style="fill:rgb(63,198,18);"/><rect x="20" y="80" width="20" height="20" style="fill:rgb(63,198,18);"/><rect x="40" y="0" width="20" height="20" style="fill:rgb(63,198,18);"/><rect x="40" y="60" width="20" height="20" style="fill:rgb(63,198,18);"/><rect x="40" y="80" width="20" height="20" style="fill:rgb(63,198,18);"/><rect x="60" y="20" width="20" height="20" style="fill:rgb(63,198,18);"/><rect x="60" y="80" width="20" height="20" style="fill:rgb(63,198,18);"/><rect x="80" y="0" width="20" height="20" style="fill:rgb(63,198,18);"/><rect x="80" y="20" width="20" height="20" style="fill:rgb(63,198,18);"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect x="0" y="0" width="20" height="20" style="fill:rgb(62,201,50);"/><rect x="20" y="60" width="20" height="20" style="fill:rgb(62,201,50);"/><rect x="40" y="40" width="20" height="20" style="fill:rgb(62,201,50);"/><rect x="40" y="80" width="20" height="20" style="fill:rgb(62,201,50);"/><rect x="60" y="60" width="20" height="20" style="fill:rgb(62,201,50);"/><rect x="80" y="0" width="20" height="20" style="fill:rgb(62,201,50);"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect x="0" y="20" width="20" height="20" style="fill:rgb(100,252,249);"/><rect x="0" y="60" width="20" height="20" style="fill:rgb(100,252,249);"/><rect x="0" y="80" width="20" height="20" style="fill:rgb(100,252,249);"/><rect x="20" y="20" width="20" height="20" style="fill:rgb(100,252,249);"/><rect x="20" y="40" width="20" height="20" style="fill:rgb(100,252,249);"/><rect x="40" y="40" width="20" height="20" style="fill:rgb(100,252,249);"/><rect x="40" y="60" width="20" height="20" style="fill:rgb(100,252,249);"/><rect x="40" y="80" width="20" height="20" style="fill:rgb(100,252,249);"/><rect x="60" y="20" width="20" height="20" style="fill:rgb(100,252,249);"/><rect x="60" y="40" width="20" height="20" style="fill:rgb(100,252,249);"/><rect x="80" y="20" width="20" height="20" style="fill:rgb(100,252,249);"/><rect x="80" y="60" width="20" height="20" style="fill:rgb(100,252,249);"/><rect x="80" y="80" width="20" height="20" style="fill:rgb(100,252,249);"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect x="0" y="0" width="20" height="20" style="fill:rgb(104,60,152);"/><rect x="0" y="80" width="20" height="20" style="fill:rgb(104,60,152);"/><rect x="20" y="20" width="20" height="20" style="fill:rgb(104,60,152);"/><rect x="40" y="20" width="20" height="20" style="fill:rgb(104,60,152);"/><rect x="40" y="40" width="20" height="20" style="fill:rgb(104,60,152);"/><rect x="40" y="80" width="20" height="20" style="fill:rgb(104,60,152);"/><rect x="60" y="20" width="20" height="20" style="fill:rgb(104,60,152);"/><rect x="80" y="0" width="20" height="20" style="fill:rgb(104,60,152);"/><rect x="80" y="80" width="20" height="20" style="fill:rgb(104,60,152);"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect x="0" y="40" width="20" height="20" style="fill:rgb(25,205,180);"/><rect x="0" y="60" width="20" height="20" style="fill:rgb(25,205,180);"/><rect x="0" y="80" width="20" height="20" style="fill:rgb(25,205,180);"/><rect x="20" y="0" width="20" height="20" style="fill:rgb(25,205,180);"/><rect x="20" y="40" width="20" height="20" style="fill:rgb(25,205,180);"/><rect x="40" y="0" width="20" height="20" style="fill:rgb(25,205,180);"/><rect x="40" y="20" width="20" height="20" style="fill:rgb(25,205,180);"/><rect x="40" y="60" width="20" height="20" style="fill:rgb(25,205,180);"/><rect x="60" y="0" width="20" height="20" style="fill:rgb(25,205,180);"/><rect x="60" y="40" width="20" height="20" style="fill:rgb(25,205,180);"/><rect x="80" y="40" width="20" height="20" style="fill:rgb(25,205,180);"/><rect x="80" y="60" width="20" height="20" style="fill:rgb(25,205,180);"/><rect x="80" y="80" width="20" height="20" style="fill:rgb(25,205,180);"/></svg>
@@ -1,9 +1,8 @@
1
1
  require "idcon/version"
2
- require "idcon/hash"
3
2
 
4
3
  module Idcon
5
4
  def self.svg(string, dimension: 5, size: 10)
6
- hash = Idcon::Hash::MD5.hash(string)
5
+ hash = Digest::MD5.hexdigest(string).to_i(16)
7
6
 
8
7
  color = []
9
8
 
@@ -1,3 +1,3 @@
1
1
  module Idcon
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idcon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - l3kn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-09 00:00:00.000000000 Z
11
+ date: 2015-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -55,6 +55,11 @@ files:
55
55
  - Rakefile
56
56
  - bin/console
57
57
  - bin/setup
58
+ - examples/foobar.svg
59
+ - examples/hodor.svg
60
+ - examples/idcon.svg
61
+ - examples/swag.svg
62
+ - examples/yolo.svg
58
63
  - idcon.gemspec
59
64
  - lib/idcon.rb
60
65
  - lib/idcon/version.rb