ruby_identicon 0.0.5 → 0.0.6

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
- SHA1:
3
- metadata.gz: a90de8454924cf7a6f3c771e462d891370b7e5a9
4
- data.tar.gz: d96b2735908688e1694121bf624bcb6516159a34
2
+ SHA256:
3
+ metadata.gz: cb0fabb0aa8547bc68ad2295ada31bc45d38e11609fd8bf0f45bde706ba6b6de
4
+ data.tar.gz: 49e1497f2ea0e3ae061adea1a9a0528e673b20896afca0dfb8681d50d98eb5c7
5
5
  SHA512:
6
- metadata.gz: cd7f108d3c58c407fef0f947f709c6cba9b510b7971e9f33cfdd2e547a6a3feacdb98e60af44cacf1064e5dd8470592a5f40fca039f8e1adc8f5a6f81fcfaea5
7
- data.tar.gz: 12b34f2b8a9ee03721add7fe5546f68045ef0f5c90fb9dbf5a715c3c59794d9482bb2f32cf75aa04ed06aae7cb565d4ac0f92792f40e87ee8a6f2a3a3d51f74a
6
+ metadata.gz: 1d5dfaf6300470cfed0ae46bc393623971f4ed7a80f47f27fef29c7b8a817e5e05195588a8c80041422bd172188edf0aeff9f2a6dc478dfdda5787788e6cb1c3
7
+ data.tar.gz: fb8004bd6ac01140ce0aa767b8b71fcb87f2573c0d29ad7cd5031992385bafde9a4ede116b958f09f355523bb570d8dc3cc8d9cddee087411b9c7690554580f8
data/README.md CHANGED
@@ -2,10 +2,9 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/ruby_identicon.png)](http://badge.fury.io/rb/ruby_identicon)
4
4
  [![Build Status](https://api.travis-ci.org/chrisbranson/ruby_identicon.png?branch=master)](http://travis-ci.org/chrisbranson/ruby_identicon)
5
- [![Dependency Status](https://gemnasium.com/chrisbranson/ruby_identicon.png)](https://gemnasium.com/chrisbranson/ruby_identicon)
6
5
  [![Coverage Status](https://coveralls.io/repos/chrisbranson/ruby_identicon/badge.png)](https://coveralls.io/r/chrisbranson/ruby_identicon)
7
6
 
8
- ![Example Identicon](https://dl.dropboxusercontent.com/u/176278/ruby_identicon.png)
7
+ ![Example Identicon](https://raw.githubusercontent.com/chrisbranson/ruby_identicon/master/example/ruby_identicon.png)
9
8
 
10
9
  A Ruby implementation of [go-identicon](https://github.com/dgryski/go-identicon) by Damian Gryski
11
10
 
@@ -30,23 +29,26 @@ Or install it yourself as:
30
29
  ## Usage
31
30
 
32
31
  Creating an identicon and saving to png
33
-
34
- RubyIdenticon.create_and_save("RubyIdenticon", "ruby_identicon.png")
32
+ ```ruby
33
+ RubyIdenticon.create_and_save("RubyIdenticon", "ruby_identicon.png")
34
+ ```
35
35
 
36
36
  Creating an identicon and returning a binary string
37
+ ```ruby
38
+ blob = RubyIdenticon.create("RubyIdenticon")
37
39
 
38
- blob = RubyIdenticon.create("RubyIdenticon")
39
-
40
- # optional, save to a file
41
- File.open("ruby_identicon.png", "wb") do |f| f.write(blob) end
40
+ # optional, save to a file
41
+ File.open("ruby_identicon.png", "wb") do |f| f.write(blob) end
42
+ ```
42
43
 
43
44
  Creating an identicon and returns in base64 format
44
-
45
- base64_identicon = RubyIdenticon.create_base64("RubyIdenticon")
46
-
45
+ ```ruby
46
+ base64_identicon = RubyIdenticon.create_base64("RubyIdenticon")
47
+ ```
47
48
  nb// to render this in html pass the base64 code into your view
48
-
49
- raw "<img src='data:image/png;base64,#{base64_identicon}'>"
49
+ ```ruby
50
+ raw "<img src='data:image/png;base64,#{base64_identicon}'>"
51
+ ```
50
52
 
51
53
  ## Customising the identicon
52
54
 
@@ -62,10 +64,10 @@ The identicon can be customised by passing additional options
62
64
  to use a different key.
63
65
 
64
66
  Example
65
-
66
- blob = RubyIdenticon.create("identicons are great!", grid_size: 5, square_size: 70, background_color: 0xf0f0f0ff, key: "1234567890123456")
67
- File.open("tmp/test_identicon.png", "wb") do |f| f.write(blob) end
68
-
67
+ ```ruby
68
+ blob = RubyIdenticon.create("identicons are great!", grid_size: 5, square_size: 70, background_color: 0xf0f0f0ff, key: "1234567890123456")
69
+ File.open("tmp/test_identicon.png", "wb") do |f| f.write(blob) end
70
+ ```
69
71
  ## Contributing
70
72
 
71
73
  1. Fork it
Binary file
@@ -1,3 +1,3 @@
1
1
  module RubyIdenticon
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = RubyIdenticon::VERSION
9
9
  spec.authors = ["Chris Branson"]
10
10
  spec.email = ["branson.chris@gmail.com"]
11
-
11
+
12
12
  spec.description = <<-EOT
13
13
  A Ruby implementation of go-identicon by Damian Gryski
14
14
 
@@ -31,10 +31,10 @@ Gem::Specification.new do |spec|
31
31
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
32
32
  spec.require_paths = ["lib"]
33
33
 
34
- spec.add_development_dependency "bundler", "~> 1.5"
34
+ spec.add_development_dependency "bundler", ">= 2.2.10"
35
35
  spec.add_development_dependency "rake"
36
- spec.add_development_dependency "rspec", "~> 3.4.0"
37
- spec.add_development_dependency "yard", "~> 0.8.7"
36
+ spec.add_development_dependency "rspec", "~> 3.10.0"
37
+ spec.add_development_dependency "yard", ">= 0.9.20"
38
38
 
39
- spec.add_dependency "chunky_png", "~> 1.3.5"
39
+ spec.add_dependency "chunky_png", "~> 1.4.0"
40
40
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_identicon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Branson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-01 00:00:00.000000000 Z
11
+ date: 2021-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.5'
19
+ version: 2.2.10
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.5'
26
+ version: 2.2.10
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,42 +44,42 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 3.4.0
47
+ version: 3.10.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 3.4.0
54
+ version: 3.10.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: yard
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 0.8.7
61
+ version: 0.9.20
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 0.8.7
68
+ version: 0.9.20
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: chunky_png
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.3.5
75
+ version: 1.4.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.3.5
82
+ version: 1.4.0
83
83
  description: |2
84
84
  A Ruby implementation of go-identicon by Damian Gryski
85
85
 
@@ -103,6 +103,7 @@ files:
103
103
  - LICENSE.txt
104
104
  - README.md
105
105
  - Rakefile
106
+ - example/ruby_identicon.png
106
107
  - lib/ruby_identicon.rb
107
108
  - lib/ruby_identicon/version.rb
108
109
  - lib/siphash.rb
@@ -114,7 +115,7 @@ homepage: ''
114
115
  licenses:
115
116
  - MIT
116
117
  metadata: {}
117
- post_install_message:
118
+ post_install_message:
118
119
  rdoc_options: []
119
120
  require_paths:
120
121
  - lib
@@ -129,12 +130,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
130
  - !ruby/object:Gem::Version
130
131
  version: '0'
131
132
  requirements: []
132
- rubyforge_project:
133
- rubygems_version: 2.5.1
134
- signing_key:
133
+ rubygems_version: 3.2.15
134
+ signing_key:
135
135
  specification_version: 4
136
136
  summary: A Ruby Gem for creating GitHub like identicons
137
137
  test_files:
138
138
  - spec/helper.rb
139
139
  - spec/ruby_identicon_spec.rb
140
- has_rdoc: