gravaty 10.0.0 → 11.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +7 -0
- data/Gemfile +5 -1
- data/README.md +219 -212
- data/Rakefile +9 -3
- data/copyright.md +33 -136
- data/examples/avatar.rb +70 -43
- data/examples/basics.rb +30 -20
- data/examples/profile.rb +77 -50
- data/examples/xmlrpc.rb +24 -10
- data/gravaty.gemspec +46 -25
- data/html/CHANGELOG.html +13 -20
- data/html/COPYING_md.html +8 -24
- data/html/Gemfile.html +7 -21
- data/html/Gravaty.html +49 -113
- data/html/Gravaty/Gravaty.html +138 -343
- data/html/Gravaty/ParsableDuckType.html +14 -33
- data/html/Gravaty/Parser.html +27 -66
- data/html/Gravaty/Parsers.html +3 -11
- data/html/Gravaty/Parsers/Avatar.html +19 -36
- data/html/Gravaty/Parsers/Callback.html +21 -37
- data/html/Gravaty/Parsers/Default.html +28 -45
- data/html/Gravaty/Parsers/Force.html +21 -37
- data/html/Gravaty/Parsers/Format.html +22 -42
- data/html/Gravaty/Parsers/Pixelsize.html +22 -42
- data/html/Gravaty/Parsers/Rating.html +22 -42
- data/html/Gravaty/Parsers/Secure.html +19 -36
- data/html/Gravaty/Parsers/Type.html +22 -42
- data/html/Gravaty/Utils.html +11 -13
- data/html/Gravaty/Utils/Downloader.html +3 -11
- data/html/Gravaty/Utils/Downloader/Downloader.html +25 -59
- data/html/Gravaty/Utils/Raisers.html +24 -55
- data/html/Gravaty/Utils/Rfc5322.html +12 -19
- data/html/Gravaty/Utils/RpcConnector.html +11 -13
- data/html/Gravaty/Utils/RpcConnector/RpcConnector.html +33 -73
- data/html/Object.html +728 -57
- data/html/README_md.html +105 -100
- data/html/Rakefile.html +9 -23
- data/html/copyright_md.html +17 -119
- data/html/created.rid +48 -55
- data/html/css/rdoc.css +1 -1
- data/html/index.html +97 -114
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search_index.js +1 -1
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js.gz +0 -0
- data/html/table_of_contents.html +219 -651
- data/lib/gravaty.rb +22 -15
- data/lib/gravaty/application.rb +40 -25
- data/lib/gravaty/constants.rb +20 -11
- data/lib/gravaty/locales/en.yml +9 -3
- data/lib/gravaty/locales/it.yml +9 -3
- data/lib/gravaty/locales/ja.yml +7 -4
- data/lib/gravaty/parser.rb +16 -10
- data/lib/gravaty/parsers/avatar.rb +11 -3
- data/lib/gravaty/parsers/callback.rb +13 -4
- data/lib/gravaty/parsers/default.rb +24 -16
- data/lib/gravaty/parsers/force.rb +12 -2
- data/lib/gravaty/parsers/format.rb +11 -2
- data/lib/gravaty/parsers/pixelsize.rb +12 -3
- data/lib/gravaty/parsers/rating.rb +12 -3
- data/lib/gravaty/parsers/secure.rb +11 -2
- data/lib/gravaty/parsers/type.rb +11 -2
- data/lib/gravaty/utils/downloader.rb +98 -96
- data/lib/gravaty/utils/raisers.rb +19 -12
- data/lib/gravaty/utils/rfc5322.rb +54 -41
- data/lib/gravaty/utils/rpc_connector.rb +19 -11
- data/lib/gravaty/version.rb +10 -2
- data/test/gravaty/locales/en.yml +29 -0
- data/test/gravaty/locales/it.yml +29 -0
- data/test/gravaty/locales/ja.yml +27 -0
- data/test/gravaty/locales/test_locales.rb +17 -13
- data/test/gravaty/parsers/test_avatar.rb +9 -1
- data/test/gravaty/parsers/test_callback.rb +12 -4
- data/test/gravaty/parsers/test_default.rb +25 -21
- data/test/gravaty/parsers/test_force.rb +9 -1
- data/test/gravaty/parsers/test_format.rb +18 -11
- data/test/gravaty/parsers/test_pixelsize.rb +19 -12
- data/test/gravaty/parsers/test_rating.rb +18 -11
- data/test/gravaty/parsers/test_secure.rb +9 -1
- data/test/gravaty/parsers/test_type.rb +14 -5
- data/test/gravaty/test_application.rb +14 -6
- data/test/gravaty/test_avatar.rb +94 -59
- data/test/gravaty/test_parser.rb +11 -5
- data/test/gravaty/test_profile.rb +47 -25
- data/test/gravaty/utils/test_downloader.rb +43 -28
- data/test/gravaty/utils/test_raisers.rb +42 -26
- data/test/gravaty/utils/test_rfc5322.rb +35 -13
- data/test/gravaty/utils/test_rpc_connector.rb +83 -39
- data/test/test_gravaty.rb +12 -4
- data/test/test_helper.rb +15 -9
- metadata +54 -40
- data/ISSUES.md +0 -62
- data/acknowledgements.md +0 -66
- data/authors.md +0 -63
- data/examples/cacert.pem +0 -3466
- data/html/ISSUES_md.html +0 -166
- data/html/acknowledgements_md.html +0 -161
- data/html/authors_md.html +0 -174
- data/html/examples/cacert_pem.html +0 -1078
data/html/created.rid
CHANGED
@@ -1,58 +1,51 @@
|
|
1
|
-
|
2
|
-
CHANGELOG
|
1
|
+
Mon, 26 Jul 2021 10:33:53 +0200
|
2
|
+
CHANGELOG Tue, 20 Jul 2021 12:54:16 +0200
|
3
3
|
COPYING.md Thu, 21 Feb 2019 10:06:36 +0100
|
4
|
-
Gemfile
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
examples/
|
12
|
-
examples/basics.rb Mon, 09 Mar 2020 10:21:26 +0100
|
13
|
-
examples/cacert.pem Tue, 10 Mar 2020 09:54:32 +0100
|
14
|
-
examples/profile.rb Mon, 09 Mar 2020 10:21:26 +0100
|
15
|
-
examples/xmlrpc.rb Wed, 11 Mar 2020 09:02:20 +0100
|
4
|
+
Gemfile Thu, 07 Jan 2021 17:56:06 +0100
|
5
|
+
README.md Mon, 26 Jul 2021 10:27:30 +0200
|
6
|
+
Rakefile Thu, 07 Jan 2021 17:56:06 +0100
|
7
|
+
copyright.md Mon, 30 Nov 2020 11:45:38 +0100
|
8
|
+
examples/avatar.rb Fri, 08 Jan 2021 14:14:08 +0100
|
9
|
+
examples/basics.rb Fri, 08 Jan 2021 14:13:32 +0100
|
10
|
+
examples/profile.rb Fri, 08 Jan 2021 14:13:26 +0100
|
11
|
+
examples/xmlrpc.rb Fri, 08 Jan 2021 14:12:33 +0100
|
16
12
|
gravaty.odp Wed, 03 Sep 2014 17:27:18 +0200
|
17
13
|
gravaty.pdf Wed, 03 Sep 2014 17:27:18 +0200
|
18
|
-
lib/gravaty/application.rb
|
19
|
-
lib/gravaty/constants.rb
|
20
|
-
lib/gravaty/
|
21
|
-
lib/gravaty/
|
22
|
-
lib/gravaty/
|
23
|
-
lib/gravaty/
|
24
|
-
lib/gravaty/parsers/
|
25
|
-
lib/gravaty/parsers/
|
26
|
-
lib/gravaty/parsers/
|
27
|
-
lib/gravaty/parsers/
|
28
|
-
lib/gravaty/parsers/
|
29
|
-
lib/gravaty/parsers/
|
30
|
-
lib/gravaty/
|
31
|
-
lib/gravaty/
|
32
|
-
lib/gravaty/
|
33
|
-
lib/gravaty/utils/
|
34
|
-
lib/gravaty/
|
35
|
-
lib/gravaty
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
test/gravaty/
|
40
|
-
test/gravaty/parsers/
|
41
|
-
test/gravaty/parsers/
|
42
|
-
test/gravaty/parsers/
|
43
|
-
test/gravaty/parsers/
|
44
|
-
test/gravaty/parsers/
|
45
|
-
test/gravaty/parsers/
|
46
|
-
test/gravaty/
|
47
|
-
test/gravaty/
|
48
|
-
test/gravaty/
|
49
|
-
test/gravaty/
|
50
|
-
test/gravaty/
|
51
|
-
test/gravaty/
|
52
|
-
test/gravaty/
|
53
|
-
test/gravaty/utils/
|
54
|
-
test/
|
55
|
-
test/
|
56
|
-
test/gravaty/utils/test_rpc_connector.rb Wed, 11 Mar 2020 09:18:12 +0100
|
57
|
-
test/test_gravaty.rb Tue, 10 Mar 2020 09:39:25 +0100
|
58
|
-
test/test_helper.rb Mon, 09 Mar 2020 09:02:54 +0100
|
14
|
+
lib/gravaty/application.rb Mon, 11 Jan 2021 11:33:10 +0100
|
15
|
+
lib/gravaty/constants.rb Thu, 07 Jan 2021 17:56:07 +0100
|
16
|
+
lib/gravaty/parser.rb Mon, 11 Jan 2021 11:03:10 +0100
|
17
|
+
lib/gravaty/parsers/avatar.rb Mon, 11 Jan 2021 11:04:00 +0100
|
18
|
+
lib/gravaty/parsers/callback.rb Fri, 08 Jan 2021 17:40:50 +0100
|
19
|
+
lib/gravaty/parsers/default.rb Mon, 11 Jan 2021 11:33:10 +0100
|
20
|
+
lib/gravaty/parsers/force.rb Fri, 08 Jan 2021 17:40:41 +0100
|
21
|
+
lib/gravaty/parsers/format.rb Fri, 08 Jan 2021 17:40:37 +0100
|
22
|
+
lib/gravaty/parsers/pixelsize.rb Fri, 08 Jan 2021 17:40:33 +0100
|
23
|
+
lib/gravaty/parsers/rating.rb Fri, 08 Jan 2021 17:40:30 +0100
|
24
|
+
lib/gravaty/parsers/secure.rb Mon, 11 Jan 2021 10:18:16 +0100
|
25
|
+
lib/gravaty/parsers/type.rb Fri, 08 Jan 2021 17:40:24 +0100
|
26
|
+
lib/gravaty/utils/downloader.rb Tue, 20 Jul 2021 13:37:58 +0200
|
27
|
+
lib/gravaty/utils/raisers.rb Mon, 11 Jan 2021 11:33:10 +0100
|
28
|
+
lib/gravaty/utils/rfc5322.rb Tue, 20 Jul 2021 13:36:47 +0200
|
29
|
+
lib/gravaty/utils/rpc_connector.rb Fri, 08 Jan 2021 15:03:20 +0100
|
30
|
+
lib/gravaty/version.rb Mon, 26 Jul 2021 10:33:01 +0200
|
31
|
+
lib/gravaty.rb Thu, 07 Jan 2021 17:56:07 +0100
|
32
|
+
test/gravaty/locales/test_locales.rb Fri, 08 Jan 2021 14:33:07 +0100
|
33
|
+
test/gravaty/parsers/test_avatar.rb Thu, 07 Jan 2021 17:56:09 +0100
|
34
|
+
test/gravaty/parsers/test_callback.rb Thu, 07 Jan 2021 17:56:09 +0100
|
35
|
+
test/gravaty/parsers/test_default.rb Thu, 07 Jan 2021 17:56:09 +0100
|
36
|
+
test/gravaty/parsers/test_force.rb Thu, 07 Jan 2021 17:56:09 +0100
|
37
|
+
test/gravaty/parsers/test_format.rb Thu, 07 Jan 2021 17:56:09 +0100
|
38
|
+
test/gravaty/parsers/test_pixelsize.rb Thu, 07 Jan 2021 17:56:09 +0100
|
39
|
+
test/gravaty/parsers/test_rating.rb Thu, 07 Jan 2021 17:56:09 +0100
|
40
|
+
test/gravaty/parsers/test_secure.rb Thu, 07 Jan 2021 17:56:09 +0100
|
41
|
+
test/gravaty/parsers/test_type.rb Thu, 07 Jan 2021 17:56:09 +0100
|
42
|
+
test/gravaty/test_application.rb Thu, 07 Jan 2021 17:56:09 +0100
|
43
|
+
test/gravaty/test_avatar.rb Mon, 11 Jan 2021 11:31:34 +0100
|
44
|
+
test/gravaty/test_parser.rb Mon, 11 Jan 2021 11:10:31 +0100
|
45
|
+
test/gravaty/test_profile.rb Mon, 11 Jan 2021 10:35:46 +0100
|
46
|
+
test/gravaty/utils/test_downloader.rb Mon, 11 Jan 2021 11:14:27 +0100
|
47
|
+
test/gravaty/utils/test_raisers.rb Mon, 11 Jan 2021 11:46:35 +0100
|
48
|
+
test/gravaty/utils/test_rfc5322.rb Mon, 11 Jan 2021 11:40:21 +0100
|
49
|
+
test/gravaty/utils/test_rpc_connector.rb Fri, 08 Jan 2021 14:18:46 +0100
|
50
|
+
test/test_gravaty.rb Thu, 07 Jan 2021 17:56:10 +0100
|
51
|
+
test/test_helper.rb Fri, 08 Jan 2021 12:42:56 +0100
|
data/html/css/rdoc.css
CHANGED
data/html/index.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>gravaty
|
7
|
+
<title>gravaty 11.0.1</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "./";
|
@@ -21,8 +21,6 @@
|
|
21
21
|
<link href="./css/rdoc.css" rel="stylesheet">
|
22
22
|
|
23
23
|
|
24
|
-
|
25
|
-
|
26
24
|
<body id="top" role="document" class="file">
|
27
25
|
<nav role="navigation">
|
28
26
|
<div id="project-navigation">
|
@@ -57,31 +55,17 @@
|
|
57
55
|
</div>
|
58
56
|
|
59
57
|
<div id="project-metadata">
|
60
|
-
|
58
|
+
|
59
|
+
<div id="fileindex-section" class="nav-section">
|
61
60
|
<h3>Pages</h3>
|
62
61
|
|
63
62
|
<ul class="link-list">
|
64
|
-
|
65
63
|
<li><a href="./CHANGELOG.html">CHANGELOG</a>
|
66
|
-
|
67
64
|
<li><a href="./COPYING_md.html">COPYING</a>
|
68
|
-
|
69
65
|
<li><a href="./Gemfile.html">Gemfile</a>
|
70
|
-
|
71
|
-
<li><a href="./ISSUES_md.html">ISSUES</a>
|
72
|
-
|
73
66
|
<li><a href="./README_md.html">README</a>
|
74
|
-
|
75
67
|
<li><a href="./Rakefile.html">Rakefile</a>
|
76
|
-
|
77
|
-
<li><a href="./acknowledgements_md.html">acknowledgements</a>
|
78
|
-
|
79
|
-
<li><a href="./authors_md.html">authors</a>
|
80
|
-
|
81
68
|
<li><a href="./copyright_md.html">copyright</a>
|
82
|
-
|
83
|
-
<li><a href="./examples/cacert_pem.html">cacert.pem</a>
|
84
|
-
|
85
69
|
</ul>
|
86
70
|
</div>
|
87
71
|
|
@@ -89,51 +73,28 @@
|
|
89
73
|
<h3>Class and Module Index</h3>
|
90
74
|
|
91
75
|
<ul class="link-list">
|
92
|
-
|
93
76
|
<li><a href="./Gravaty.html">Gravaty</a>
|
94
|
-
|
95
77
|
<li><a href="./Gravaty/Gravaty.html">Gravaty::Gravaty</a>
|
96
|
-
|
97
78
|
<li><a href="./Gravaty/ParsableDuckType.html">Gravaty::ParsableDuckType</a>
|
98
|
-
|
99
79
|
<li><a href="./Gravaty/Parser.html">Gravaty::Parser</a>
|
100
|
-
|
101
80
|
<li><a href="./Gravaty/Parsers.html">Gravaty::Parsers</a>
|
102
|
-
|
103
81
|
<li><a href="./Gravaty/Parsers/Avatar.html">Gravaty::Parsers::Avatar</a>
|
104
|
-
|
105
82
|
<li><a href="./Gravaty/Parsers/Callback.html">Gravaty::Parsers::Callback</a>
|
106
|
-
|
107
83
|
<li><a href="./Gravaty/Parsers/Default.html">Gravaty::Parsers::Default</a>
|
108
|
-
|
109
84
|
<li><a href="./Gravaty/Parsers/Force.html">Gravaty::Parsers::Force</a>
|
110
|
-
|
111
85
|
<li><a href="./Gravaty/Parsers/Format.html">Gravaty::Parsers::Format</a>
|
112
|
-
|
113
86
|
<li><a href="./Gravaty/Parsers/Pixelsize.html">Gravaty::Parsers::Pixelsize</a>
|
114
|
-
|
115
87
|
<li><a href="./Gravaty/Parsers/Rating.html">Gravaty::Parsers::Rating</a>
|
116
|
-
|
117
88
|
<li><a href="./Gravaty/Parsers/Secure.html">Gravaty::Parsers::Secure</a>
|
118
|
-
|
119
89
|
<li><a href="./Gravaty/Parsers/Type.html">Gravaty::Parsers::Type</a>
|
120
|
-
|
121
90
|
<li><a href="./Gravaty/Utils.html">Gravaty::Utils</a>
|
122
|
-
|
123
91
|
<li><a href="./Gravaty/Utils/Downloader.html">Gravaty::Utils::Downloader</a>
|
124
|
-
|
125
92
|
<li><a href="./Gravaty/Utils/Downloader/Downloader.html">Gravaty::Utils::Downloader::Downloader</a>
|
126
|
-
|
127
93
|
<li><a href="./Gravaty/Utils/Raisers.html">Gravaty::Utils::Raisers</a>
|
128
|
-
|
129
94
|
<li><a href="./Gravaty/Utils/Rfc5322.html">Gravaty::Utils::Rfc5322</a>
|
130
|
-
|
131
95
|
<li><a href="./Gravaty/Utils/RpcConnector.html">Gravaty::Utils::RpcConnector</a>
|
132
|
-
|
133
96
|
<li><a href="./Gravaty/Utils/RpcConnector/RpcConnector.html">Gravaty::Utils::RpcConnector::RpcConnector</a>
|
134
|
-
|
135
97
|
<li><a href="./Object.html">Object</a>
|
136
|
-
|
137
98
|
</ul>
|
138
99
|
</div>
|
139
100
|
|
@@ -145,7 +106,7 @@
|
|
145
106
|
<!--
|
146
107
|
gravaty
|
147
108
|
|
148
|
-
Copyright © 2013
|
109
|
+
Copyright © 2013-2021 Marco Bresciani
|
149
110
|
|
150
111
|
This file is part of gravaty.
|
151
112
|
|
@@ -161,78 +122,69 @@ more details.
|
|
161
122
|
|
162
123
|
You should have received a copy of the GNU General Public License along
|
163
124
|
with gravaty. If not, see <http://www.gnu.org/licenses/>.
|
125
|
+
|
126
|
+
SPDX-FileCopyrightText: 2013 Marco Bresciani
|
127
|
+
|
128
|
+
SPDX-License-Identifier: GFDL-1.3-or-later
|
164
129
|
-->
|
165
130
|
<h1 id="label-Gravaty"><a href="Gravaty.html"><code>Gravaty</code></a><span><a href="#label-Gravaty">¶</a> <a href="#top">↑</a></span></h1>
|
166
131
|
|
167
|
-
<p><img src="https://
|
132
|
+
<p><img src="https://badgen.net/rubygems/n/gravaty"> <img src="https://badgen.net/rubygems/p/gravaty"> <img src="https://badgen.net/rubygems/v/gravaty"> <img src="https://badgen.net/rubygems/v/gravaty/latest"> <img src="https://badgen.net/rubygems/dt/gravaty"> <img src="https://badgen.net/rubygems/dv/gravaty"></p>
|
168
133
|
|
169
|
-
<p>
|
134
|
+
<p><img src="https://img.shields.io/gem/rt/gravaty.svg?style=plastic"> <img src="https://img.shields.io/gem/rd/gravaty.svg?style=plastic"> <img src="https://img.shields.io/librariesio/dependent-repos/rubygems/gravaty.svg?style=plastic"> <img src="https://img.shields.io/gem/u/MarcoBresciani?style=plastic"> <img src="https://img.shields.io/security-headers?style=plastic&url=https%3A%2F%2Fsavannah.nongnu.org%2Fprojects%2Faamfp"> <img src="https://img.shields.io/hsts/preload/savannah.nongnu.org?style=plastic"> <img src="https://img.shields.io/mozilla-observatory/grade/savannah.nongnu.org?publish&style=plastic"> <img src="https://img.shields.io/website?style=plastic&url=https%3A%2F%2Fsavannah.nongnu.org%2Fprojects%2Faamfp"></p>
|
170
135
|
|
171
|
-
<p>
|
136
|
+
<p><img src="https://img.shields.io/security-headers?style=plastic&url=https%3A%2F%2Fsavannah.nongnu.org%2Fprojects%2Faamfp"> <img src="https://img.shields.io/hsts/preload/savannah.nongnu.org?style=plastic"> <img src="https://img.shields.io/mozilla-observatory/grade/savannah.nongnu.org?publish&style=plastic"> <img src="https://img.shields.io/website?style=plastic&url=https%3A%2F%2Fsavannah.nongnu.org%2Fprojects%2Faamfp"></p>
|
172
137
|
|
173
|
-
<p
|
174
|
-
|
175
|
-
<p>gravaty is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
|
176
|
-
|
177
|
-
<p>You should have received a copy of the GNU General Public License along with gravaty. If not, see <a href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
178
|
-
|
179
|
-
<h2 id="label-Description">Description<span><a href="#label-Description">¶</a> <a href="#top">↑</a></span></h2>
|
138
|
+
<p><a href="https://github.com/RichardLitt/standard-readme"><img src="https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=plastic"></a> <a href="https://github.com/rubocop-hq/rubocop"><img src="https://img.shields.io/badge/code_style-rubocop-brightgreen.svg"></a> <a href="https://rubystyle.guide"><img src="https://img.shields.io/badge/code_style-community-brightgreen.svg"></a> <a href="https://api.reuse.software/info/git.fsfe.org/reuse/api"><img src="https://api.reuse.software/badge/git.fsfe.org/reuse/api"></a></p>
|
180
139
|
|
181
140
|
<p>This gem automagically prepares complete URIs for Gravatar, for both avatars and profiles, with all currently supported options, included the XML-RPC API, as of 2019-04-23, starting from a single email address!</p>
|
182
141
|
|
183
|
-
<p>It's my first
|
142
|
+
<p>It's my first Ruby gem, hoping it will be useful for someone (let me know if you use it, please!). GNU GPLv3 license; source code available through anonymous checkout: <code>hg clone http://hg.savannah.nongnu.org/hgweb/gravaty/</code> or write me, and I'll send it. You can even decide to contribute to this little free software project by registering to Savannah and ask to be part of the <code>gravaty</code> project!</p>
|
184
143
|
|
185
|
-
<
|
186
|
-
|
187
|
-
<p>
|
144
|
+
<h2 id="label-Table+of+Contents">Table of Contents<span><a href="#label-Table+of+Contents">¶</a> <a href="#top">↑</a></span></h2>
|
145
|
+
<ul><li>
|
146
|
+
<p><a href="#background">Background</a></p>
|
147
|
+
</li><li>
|
148
|
+
<p><a href="#install">Install</a></p>
|
149
|
+
</li><li>
|
150
|
+
<p><a href="#savannah">Savannah</a></p>
|
151
|
+
</li><li>
|
152
|
+
<p><a href="#rubygems">RubyGems</a></p>
|
153
|
+
</li><li>
|
154
|
+
<p><a href="#usage">Usage</a></p>
|
155
|
+
</li><li>
|
156
|
+
<p><a href="#maintainers">Maintainers</a></p>
|
157
|
+
</li><li>
|
158
|
+
<p><a href="#thanks">Thanks</a></p>
|
159
|
+
</li><li>
|
160
|
+
<p><a href="#contributing">Contributing</a></p>
|
161
|
+
</li><li>
|
162
|
+
<p><a href="#license">License</a></p>
|
163
|
+
</li></ul>
|
188
164
|
|
189
|
-
<
|
165
|
+
<h2 id="label-Background">Background<span><a href="#label-Background">¶</a> <a href="#top">↑</a></span></h2>
|
190
166
|
|
191
|
-
<
|
167
|
+
<p>This gem automagically prepares complete URIs for Gravatar, for both avatars and profiles, with all currently supported options, included the XML-RPC API, as of 2019-04-23, starting from a single email address!</p>
|
192
168
|
|
193
|
-
<p
|
169
|
+
<p>It's my first Ruby gem, hoping it will be useful for someone (let me know if you use it, please!).</p>
|
194
170
|
|
195
|
-
<p>
|
171
|
+
<p>GNU GPLv3 license; source code available through anonymous checkout: <code>hg clone http://hg.savannah.nongnu.org/hgweb/gravaty/</code> or write me, and I'll send it.</p>
|
196
172
|
|
197
|
-
<
|
173
|
+
<p>You can even decide to contribute to this little free software project by registering to Savannah and ask to be part of the <code>gravaty</code> project!</p>
|
198
174
|
|
199
|
-
<p>
|
175
|
+
<p>With great contributions from: 新部裕, Peter R. Marreck, Jon Maken, Łukasz Niemier.</p>
|
200
176
|
|
201
|
-
<
|
177
|
+
<h2 id="label-Install">Install<span><a href="#label-Install">¶</a> <a href="#top">↑</a></span></h2>
|
202
178
|
|
203
|
-
<
|
179
|
+
<p>RubyGems is the preferred easy install method for <a href="Gravaty.html"><code>Gravaty</code></a>. <a href="Gravaty.html"><code>Gravaty</code></a> should be installed via the <a href="http://rubyforge.org/projects/rubygems/">RubyGems</a> system. To get the latest version, simply enter the following into your command prompt: <code>gem install gravaty</code>.</p>
|
204
180
|
|
205
181
|
<p>Because <a href="Gravaty.html"><code>Gravaty</code></a> is pure Ruby, it should run pretty much anywhere, including Rubinius, JRuby, MacRuby, etc. Officially the support is for >= 2.7 YARV/KRI.</p>
|
206
182
|
|
207
|
-
<h3 id="label-Support">Support<span><a href="#label-Support">¶</a> <a href="#top">↑</a></span></h3>
|
208
|
-
|
209
|
-
<p>The easiest way to get help with <a href="Gravaty.html"><code>Gravaty</code></a> is to post a message to the mailing list: <code>http://lists.nongnu.org/mailman/listinfo/gravaty-users</code>.</p>
|
210
|
-
|
211
|
-
<p>Feel free to post any question there, developers are responsive and will be happy to help you figure out how to use <a href="Gravaty.html"><code>Gravaty</code></a>, or help you determine whether it's the right tool for the task you are working on.</p>
|
212
|
-
|
213
|
-
<p>Please make your posts to the list as specific as possible, including code samples and output where relevant. Do not post any information that should not be shared publicly, and be sure to reduce your example code as much as possible so that those who are responding to your question can more easily see what the issue might be.</p>
|
214
|
-
|
215
|
-
<h3 id="label-Contributing">Contributing<span><a href="#label-Contributing">¶</a> <a href="#top">↑</a></span></h3>
|
216
|
-
|
217
|
-
<p>If you've found a bug, want to submit a patch, or have a feature request, please enter a ticket into our bug tracker: <code>https://savannah.nongnu.org/bugs/?func=additem&group=gravaty</code>.</p>
|
218
|
-
|
219
|
-
<p>We strongly encourage bug reports to come with failing tests or at least a reduced example that demonstrates the problem.</p>
|
220
|
-
|
221
|
-
<p>Similarly, patches should include tests, API documentation, and an update to the manual where relevant. Feel free to clone early though and participate in the project, if you just want some feedback or a code review before preparing your code to be merged.</p>
|
222
|
-
|
223
|
-
<p>If you are unsure about whether or not you've found a bug, or want to check to see whether we'd be interested in the feature you want to add before you start working on it, feel free to post to our mailing list.</p>
|
224
|
-
|
225
|
-
<h3 id="label-License">License<span><a href="#label-License">¶</a> <a href="#top">↑</a></span></h3>
|
226
|
-
|
227
|
-
<p><a href="Gravaty.html"><code>Gravaty</code></a> is released under GNU GPL v3 license: if you wish to contribute to <a href="Gravaty.html"><code>Gravaty</code></a>, you will retain your own <a href="copyright_md.html">copyright</a> but must agree to license your code under the same terms as the project itself (or any compatible license according to <a href="http://www.gnu.org/licenses/license-list.en.html#GPLCompatibleLicenses">GPL-Compatible Free Software Licenses</a>).</p>
|
228
|
-
|
229
|
-
<h3 id="label-Links">Links<span><a href="#label-Links">¶</a> <a href="#top">↑</a></span></h3>
|
230
|
-
|
231
183
|
<h4 id="label-Savannah">Savannah<span><a href="#label-Savannah">¶</a> <a href="#top">↑</a></span></h4>
|
232
184
|
<ul><li>
|
233
185
|
<p>Project page: <a href="https://savannah.nongnu.org/projects/gravaty">savannah.nongnu.org/projects/gravaty</a>/</p>
|
234
186
|
</li><li>
|
235
|
-
<p>Source code (Mercurial) repository:
|
187
|
+
<p>Source code (Mercurial) repository: <a href="http://hg.savannah.gnu.org/hgweb/gravaty">hg.savannah.gnu.org/hgweb/gravaty</a>/</p>
|
236
188
|
</li><li>
|
237
189
|
<p>Known Bugs: <a href="https://savannah.nongnu.org/bugs/?group=gravaty">savannah.nongnu.org/bugs/?group=gravaty</a></p>
|
238
190
|
</li><li>
|
@@ -250,42 +202,75 @@ with gravaty. If not, see <http://www.gnu.org/licenses/>.
|
|
250
202
|
<p>Gem updates Atom Feed: <a href="https://rubygems.org/gems/gravaty/versions.atom">rubygems.org/gems/gravaty/versions.atom</a></p>
|
251
203
|
</li></ul>
|
252
204
|
|
253
|
-
<
|
205
|
+
<h2 id="label-Usage">Usage<span><a href="#label-Usage">¶</a> <a href="#top">↑</a></span></h2>
|
206
|
+
|
207
|
+
<p>See <code>examples</code> folder. To run the examples just run <code>ruby</code>{EXAMPLE_NAME}<code>.rb</code>.</p>
|
208
|
+
|
209
|
+
<blockquote>
|
210
|
+
<p><strong>NOTE</strong>: for both examples and tests, you need to set a SSL certificate file. In Microsoft Windows environment, the easiest way is the one described by the downloader gist I'm using: you can download valid certificates from <a href="http://curl.haxx.se/ca/cacert.pem">curl.haxx.se/ca/cacert.pem</a> and put the downloaded file in the gravaty home directory. Then <code>set SSL_CERT_FILE=</code>{FULL FILE PATH HERE}<code>cacert.pem</code> and finally run <code>ruby avatar.rb</code> or <code>ruby profiles.rb</code> from the <code>examples</code> directory; both examples should download two files each! The same environment variable would be needed to run the tests against the XML-RPC API. Running the examples you'll see both the example description and correct code usage to perform such action.</p>
|
211
|
+
</blockquote>
|
212
|
+
|
213
|
+
<p>Using this API is pretty simple. First, remember that this API maintains a context, so you can save your preferred configuration of server, dictionary, output formats, … by assigning those value to your object. Get a reference to the <a href="Gravaty.html"><code>Gravaty</code></a> object, through its factory method, with <code>my_gravaty = Gravaty::gravatize your_em@il.address</code> using your email address as parameter. This will save a <a href="Gravaty.html"><code>Gravaty</code></a> instance in your <code>my_gravaty</code> object. At this point the object does contain a default configuration in terms of avatar, profile, …</p>
|
214
|
+
|
215
|
+
<p>You can take a look at the current status/configuration of your <code>my_gravaty</code> object using the <code>email</code> method <code>my_gravaty.email</code> that shows the email currently in use, or using the <code>digest</code> method <code>my_gravaty.digest</code> that shows the MD5 digest of the downcased email address in use. Also, <code>to_s</code> method is also available to print the current status of the <code>my_gravaty</code> object and each <code>Gravaty</code> is a Comparable object, based on <code>my_gravaty.email</code> data, your email address in small capital letters.</p>
|
216
|
+
|
217
|
+
<p>The <code>avatar</code> method provides the configuration-specific URI for your avatar: <code>my_gravaty.avatar</code> returns <code>https://secure.avatar.com/avatar/HASH</code> (where <code>HASH</code> is your <code>my_gravaty.digest</code> email address MD5 digest) ● The method allows an Hash, with avatar configuration parameters: type, pixel_size, force, secure, rating, default. (see <a href="https://en.gravatar.com/site/implement/images">en.gravatar.com/site/implement/images</a>/ for details) ● The avatar! method saves the provided configuration for your <a href="Gravaty.html"><code>Gravaty</code></a> object's to_s output.</p>
|
218
|
+
|
219
|
+
<p>The profile content feature ● With your <a href="Gravaty.html"><code>Gravaty</code></a> object available, the profile method provides the configuration-specific URI for your ( registered) user: – a_gravaty.profile returns <a href="https://secure.avatar.com/HASH">secure.avatar.com/HASH</a> (where HASH is your a_gravaty.digest email address MD5 digest) ● The method allows an Hash, with profile configuration parameters: format, secure. (see <a href="https://en.gravatar.com/site/implement/profiles">en.gravatar.com/site/implement/profiles</a>/ for details) ● The profile! method saves the provided configuration for your <a href="Gravaty.html"><code>Gravaty</code></a> object's to_s output.</p>
|
220
|
+
|
221
|
+
<p>The XML-RPC API content feature ● With your <a href="Gravaty.html"><code>Gravaty</code></a> object available, the xmlrpc method provides a reference to the remote Gravatar XML-RPC AP, for your (registered) user: – a_gravaty.xmlrpc requires the method name (grav.test, by default), your password and possible method parameters (whether needed) via a Hash. ● In order to increase security, the password is not saved inside the <a href="Gravaty.html"><code>Gravaty</code></a> object but has to be provided for each call; (see <a href="https://en.gravatar.com/site/implement/xmlrpc">en.gravatar.com/site/implement/xmlrpc</a>/ for details) ● Communication happens through SSL: certificate might be required (see gravaty <a href="README_md.html">README.md</a> file).</p>
|
222
|
+
|
223
|
+
<p>Additional features (1/2) ● Since QRCode and JSON are becoming popular formats, qr and json methods (together with qr! and json!) allows to directly retrieve the user's profile data URI, in QRCode or JSON format, with format-specific parameters. Examples: – a_gravaty.qr pixel_size: 42 – a_gravaty.json! callback: 'my_method' ● The qr! and json! methods save the provided configuration for your <a href="Gravaty.html"><code>Gravaty</code></a> object's to_s output. ● a_gravaty.qr corresponds to a_gravaty.profile format: 'qr' while a_gravaty.json corresponds to a_gravaty.profile format: ' json' and they both filtered the allowed parameters according to the output type.</p>
|
224
|
+
|
225
|
+
<p>Additional features (2/2) ● When using the 'banged' (!) methods (avatar! or profile!, same for qr! and json!), the built URI is saved inside the <a href="Gravaty.html"><code>Gravaty</code></a> object and is read-only available through to_s. ● The download method, simply specifying a filename as parameter, retrieves whatever resource is indicate by such internal status and saves its content in the specified file. Example: – a_gravaty.qr! – a_gravaty.download 'myQr.png' ● The reset method clears the internal status restoring the email address output of to_s.</p>
|
226
|
+
|
227
|
+
<h2 id="label-Maintainers">Maintainers<span><a href="#label-Maintainers">¶</a> <a href="#top">↑</a></span></h2>
|
254
228
|
<ul><li>
|
255
|
-
<p
|
256
|
-
</li
|
257
|
-
|
229
|
+
<p><a href="https://savannah.nongnu.org/users/marcobresciani">Marco Bresciani</a></p>
|
230
|
+
</li></ul>
|
231
|
+
|
232
|
+
<h2 id="label-Thanks">Thanks<span><a href="#label-Thanks">¶</a> <a href="#top">↑</a></span></h2>
|
233
|
+
<ul><li>
|
234
|
+
<p>* Contributor*: <a href="http://www.csse.monash.edu.au/~jwb/index.html">Jim Breen</a></p>
|
258
235
|
</li><li>
|
259
|
-
<p
|
236
|
+
<p><em>Author</em>: <a href="lumbergh@gmail.com">Peter R. Marreck</a>, <a href="https://gist.github.com/pmarreck/4626713">RFC 5322 Email Validation Regex in Ruby Regular Expressions</a>. About <em>RFC 5322 Email Validation Regex in Ruby Regular Expressions</em>, please note that “This work is released under the BSD 3-Clause License”. This license is GNU GPLv3 compatible according to <a href="http://www.gnu.org/licenses/license-list.en.html#ModifiedBSD">www.gnu.org/licenses/license-list.en.html#ModifiedBSD</a>.</p>
|
260
237
|
</li><li>
|
261
|
-
<p
|
238
|
+
<p><em>Author</em>: <a href="mailto:jon.forums@gmail.com">Jon Maken</a>, <a href="https://gist.github.com/jonforums/2202048">An HTTP/HTTPS/FTP file downloader library/CLI based upon MiniPortile’s HTTP implementation.</a>. About <em>An HTTP/HTTPS/FTP file downloader library/CLI based upon MiniPortile's HTTP implementation</em>, please note that “License: 3-clause BSD”. This license is GNU GPLv3 compatible according to <a href="http://www.gnu.org/licenses/license-list.en.html#ModifiedBSD">www.gnu.org/licenses/license-list.en.html#ModifiedBSD</a>.</p>
|
262
239
|
</li></ul>
|
263
240
|
|
264
|
-
<
|
241
|
+
<p>FSIJ理事会の理事長、<a href="mailto:gniibe@fsij.org">新部裕</a>さんの日本語の翻訳。 Japanese translation by <a href="mailto:gniibe@fsij.org">Yutaka Niibe</a>, President of Free Software Initiative of Japan.</p>
|
242
|
+
|
243
|
+
<p>Thanks to <a href="https://za.linkedin.com/in/marcheiligers/">Marc Heiligers</a> for the note about Peter R. Marreck's gist.</p>
|
244
|
+
|
245
|
+
<p>Thanks to <a href="http://lukasz.niemier.pl/">Łukasz Niemier</a> for his suggestions on possible improvements.</p>
|
246
|
+
|
247
|
+
<h2 id="label-Contributing">Contributing<span><a href="#label-Contributing">¶</a> <a href="#top">↑</a></span></h2>
|
248
|
+
|
249
|
+
<p><a href="Gravaty.html"><code>Gravaty</code></a> tries to follow semantic versioning (see <a href="http://semver.org">semver.org</a>/). There may be backward incompatible changes each time minor version number changes, but that any tiny version number change should be bug fixes and internal changes only. Be sure to read the <code>CHANGELOG</code> each time we cut a new release and lock your gems accordingly.</p>
|
265
250
|
|
266
|
-
<p>
|
251
|
+
<p>RDoc documentation available in the <code>html</code> folder.</p>
|
267
252
|
|
268
|
-
<
|
253
|
+
<p>The easiest way to get help with <a href="Gravaty.html"><code>Gravaty</code></a> is to post a message to the mailing list: <code>http://lists.nongnu.org/mailman/listinfo/gravaty-users</code>.</p>
|
254
|
+
|
255
|
+
<p>Feel free to post any question there, developers are responsive and will be happy to help you figure out how to use <a href="Gravaty.html"><code>Gravaty</code></a>, or help you determine whether it's the right tool for the task you are working on.</p>
|
256
|
+
|
257
|
+
<p>Please make your posts to the list as specific as possible, including code samples and output where relevant. Do not post any information that should not be shared publicly, and be sure to reduce your example code as much as possible so that those who are responding to your question can more easily see what the issue might be.</p>
|
269
258
|
|
270
|
-
<p
|
259
|
+
<p>If you've found a bug, want to submit a patch, or have a feature request, please enter a ticket into our bug tracker: <code>https://savannah.nongnu.org/bugs/?func=additem&group=gravaty</code>.</p>
|
271
260
|
|
272
|
-
<p>
|
261
|
+
<p>We strongly encourage adding bug reports with failing tests or at least a reduced example that demonstrates the problem.</p>
|
273
262
|
|
274
|
-
<p>
|
263
|
+
<p>Similarly, patches should include tests, API documentation, and an update to the manual where relevant. Feel free to clone early though and participate in the project, if you just want some feedback, or a code review before preparing your code to be merged.</p>
|
275
264
|
|
276
|
-
<p>
|
265
|
+
<p>If you are unsure about whether you've found a bug, or want to check to see whether we'd be interested in the feature you want to add before you start working on it, feel free to post to our mailing list.</p>
|
277
266
|
|
278
|
-
<
|
279
|
-
<ol><li>
|
280
|
-
<p>User Submissions. The Services may provide you with the ability to create, upload, distribute or post (“Submit(ting)”) data, photographs, avatars, software, graphics, profile and other information to the Services (collectively, the “User Submissions”). By Submitting User Submissions, you acknowledge that you are publishing that User Submission, and that you may be identified publicly by your avatar and other User Submissions (e.g., in connection with your blogs, comments and/or email address) by Automattic, third party Gravatar-enabled websites (as that term in defined below), and others. More specifically, you hereby do and shall grant to Automattic a worldwide, perpetual, irrevocable, royalty-free and fully-paid, transferable (including rights to sublicense) right to perform the Services (e.g., to use, modify, reproduce, distribute, prepare derivative works of, display, perform, and otherwise fully exercise and exploit all intellectual property, publicity, and moral rights with respect to any User Submissions, and to allow others to do so).</p>
|
281
|
-
</li></ol>
|
267
|
+
<h2 id="label-License">License<span><a href="#label-License">¶</a> <a href="#top">↑</a></span></h2>
|
282
268
|
|
283
|
-
<p>
|
284
|
-
<hr>
|
269
|
+
<p>SPDX-FileCopyrightText: 2013 Marco Bresciani</p>
|
285
270
|
|
286
|
-
<p>
|
271
|
+
<p>SPDX-License-Identifier: GFDL-1.3-or-later</p>
|
287
272
|
|
288
|
-
<p>Copyright © 2013
|
273
|
+
<p>Copyright © 2013-2021 Marco Bresciani</p>
|
289
274
|
|
290
275
|
<p>This file is part of gravaty.</p>
|
291
276
|
|
@@ -295,14 +280,12 @@ with gravaty. If not, see <http://www.gnu.org/licenses/>.
|
|
295
280
|
|
296
281
|
<p>You should have received a copy of the GNU General Public License along with gravaty. If not, see <a href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
297
282
|
|
298
|
-
|
299
283
|
</main>
|
300
284
|
|
301
285
|
|
302
|
-
|
303
286
|
<footer id="validator-badges" role="contentinfo">
|
304
287
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
305
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
288
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
|
306
289
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
307
290
|
</footer>
|
308
291
|
|