gravaty 10.0.0 → 11.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +7 -0
  3. data/Gemfile +5 -1
  4. data/README.md +219 -212
  5. data/Rakefile +9 -3
  6. data/copyright.md +33 -136
  7. data/examples/avatar.rb +70 -43
  8. data/examples/basics.rb +30 -20
  9. data/examples/profile.rb +77 -50
  10. data/examples/xmlrpc.rb +24 -10
  11. data/gravaty.gemspec +46 -25
  12. data/html/CHANGELOG.html +13 -20
  13. data/html/COPYING_md.html +8 -24
  14. data/html/Gemfile.html +7 -21
  15. data/html/Gravaty.html +49 -113
  16. data/html/Gravaty/Gravaty.html +138 -343
  17. data/html/Gravaty/ParsableDuckType.html +14 -33
  18. data/html/Gravaty/Parser.html +27 -66
  19. data/html/Gravaty/Parsers.html +3 -11
  20. data/html/Gravaty/Parsers/Avatar.html +19 -36
  21. data/html/Gravaty/Parsers/Callback.html +21 -37
  22. data/html/Gravaty/Parsers/Default.html +28 -45
  23. data/html/Gravaty/Parsers/Force.html +21 -37
  24. data/html/Gravaty/Parsers/Format.html +22 -42
  25. data/html/Gravaty/Parsers/Pixelsize.html +22 -42
  26. data/html/Gravaty/Parsers/Rating.html +22 -42
  27. data/html/Gravaty/Parsers/Secure.html +19 -36
  28. data/html/Gravaty/Parsers/Type.html +22 -42
  29. data/html/Gravaty/Utils.html +11 -13
  30. data/html/Gravaty/Utils/Downloader.html +3 -11
  31. data/html/Gravaty/Utils/Downloader/Downloader.html +25 -59
  32. data/html/Gravaty/Utils/Raisers.html +24 -55
  33. data/html/Gravaty/Utils/Rfc5322.html +12 -19
  34. data/html/Gravaty/Utils/RpcConnector.html +11 -13
  35. data/html/Gravaty/Utils/RpcConnector/RpcConnector.html +33 -73
  36. data/html/Object.html +728 -57
  37. data/html/README_md.html +105 -100
  38. data/html/Rakefile.html +9 -23
  39. data/html/copyright_md.html +17 -119
  40. data/html/created.rid +48 -55
  41. data/html/css/rdoc.css +1 -1
  42. data/html/index.html +97 -114
  43. data/html/js/navigation.js.gz +0 -0
  44. data/html/js/search_index.js +1 -1
  45. data/html/js/search_index.js.gz +0 -0
  46. data/html/js/searcher.js.gz +0 -0
  47. data/html/table_of_contents.html +219 -651
  48. data/lib/gravaty.rb +22 -15
  49. data/lib/gravaty/application.rb +40 -25
  50. data/lib/gravaty/constants.rb +20 -11
  51. data/lib/gravaty/locales/en.yml +9 -3
  52. data/lib/gravaty/locales/it.yml +9 -3
  53. data/lib/gravaty/locales/ja.yml +7 -4
  54. data/lib/gravaty/parser.rb +16 -10
  55. data/lib/gravaty/parsers/avatar.rb +11 -3
  56. data/lib/gravaty/parsers/callback.rb +13 -4
  57. data/lib/gravaty/parsers/default.rb +24 -16
  58. data/lib/gravaty/parsers/force.rb +12 -2
  59. data/lib/gravaty/parsers/format.rb +11 -2
  60. data/lib/gravaty/parsers/pixelsize.rb +12 -3
  61. data/lib/gravaty/parsers/rating.rb +12 -3
  62. data/lib/gravaty/parsers/secure.rb +11 -2
  63. data/lib/gravaty/parsers/type.rb +11 -2
  64. data/lib/gravaty/utils/downloader.rb +98 -96
  65. data/lib/gravaty/utils/raisers.rb +19 -12
  66. data/lib/gravaty/utils/rfc5322.rb +54 -41
  67. data/lib/gravaty/utils/rpc_connector.rb +19 -11
  68. data/lib/gravaty/version.rb +10 -2
  69. data/test/gravaty/locales/en.yml +29 -0
  70. data/test/gravaty/locales/it.yml +29 -0
  71. data/test/gravaty/locales/ja.yml +27 -0
  72. data/test/gravaty/locales/test_locales.rb +17 -13
  73. data/test/gravaty/parsers/test_avatar.rb +9 -1
  74. data/test/gravaty/parsers/test_callback.rb +12 -4
  75. data/test/gravaty/parsers/test_default.rb +25 -21
  76. data/test/gravaty/parsers/test_force.rb +9 -1
  77. data/test/gravaty/parsers/test_format.rb +18 -11
  78. data/test/gravaty/parsers/test_pixelsize.rb +19 -12
  79. data/test/gravaty/parsers/test_rating.rb +18 -11
  80. data/test/gravaty/parsers/test_secure.rb +9 -1
  81. data/test/gravaty/parsers/test_type.rb +14 -5
  82. data/test/gravaty/test_application.rb +14 -6
  83. data/test/gravaty/test_avatar.rb +94 -59
  84. data/test/gravaty/test_parser.rb +11 -5
  85. data/test/gravaty/test_profile.rb +47 -25
  86. data/test/gravaty/utils/test_downloader.rb +43 -28
  87. data/test/gravaty/utils/test_raisers.rb +42 -26
  88. data/test/gravaty/utils/test_rfc5322.rb +35 -13
  89. data/test/gravaty/utils/test_rpc_connector.rb +83 -39
  90. data/test/test_gravaty.rb +12 -4
  91. data/test/test_helper.rb +15 -9
  92. metadata +54 -40
  93. data/ISSUES.md +0 -62
  94. data/acknowledgements.md +0 -66
  95. data/authors.md +0 -63
  96. data/examples/cacert.pem +0 -3466
  97. data/html/ISSUES_md.html +0 -166
  98. data/html/acknowledgements_md.html +0 -161
  99. data/html/authors_md.html +0 -174
  100. data/html/examples/cacert_pem.html +0 -1078
data/html/CHANGELOG.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>CHANGELOG - gravaty 10.0.0</title>
7
+ <title>CHANGELOG - 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">
@@ -60,6 +58,7 @@
60
58
  <h3>Table of Contents</h3>
61
59
 
62
60
  <ul class="link-list" role="directory">
61
+ <li><a href="#label-Version+11.0.0">Version 11.0.0</a>
63
62
  <li><a href="#label-Version+10.0.0">Version 10.0.0</a>
64
63
  <li><a href="#label-Version+9.0.1">Version 9.0.1</a>
65
64
  <li><a href="#label-Version+9.0.0">Version 9.0.0</a>
@@ -157,31 +156,17 @@
157
156
 
158
157
 
159
158
  <div id="project-metadata">
160
- <div id="fileindex-section" class="nav-section">
159
+
160
+ <div id="fileindex-section" class="nav-section">
161
161
  <h3>Pages</h3>
162
162
 
163
163
  <ul class="link-list">
164
-
165
164
  <li><a href="./CHANGELOG.html">CHANGELOG</a>
166
-
167
165
  <li><a href="./COPYING_md.html">COPYING</a>
168
-
169
166
  <li><a href="./Gemfile.html">Gemfile</a>
170
-
171
- <li><a href="./ISSUES_md.html">ISSUES</a>
172
-
173
167
  <li><a href="./README_md.html">README</a>
174
-
175
168
  <li><a href="./Rakefile.html">Rakefile</a>
176
-
177
- <li><a href="./acknowledgements_md.html">acknowledgements</a>
178
-
179
- <li><a href="./authors_md.html">authors</a>
180
-
181
169
  <li><a href="./copyright_md.html">copyright</a>
182
-
183
- <li><a href="./examples/cacert_pem.html">cacert.pem</a>
184
-
185
170
  </ul>
186
171
  </div>
187
172
 
@@ -190,6 +175,14 @@
190
175
 
191
176
  <main role="main" aria-label="Page CHANGELOG">
192
177
 
178
+ <h1 id="label-Version+11.0.0">Version 11.0.0<span><a href="#label-Version+11.0.0">&para;</a> <a href="#top">&uarr;</a></span></h1>
179
+
180
+ <pre>* MAJOR update from Ruby &#39;~&gt; 2.7&#39; to Ruby &#39;~&gt; 3.0&#39;.
181
+ * PATCH update IntelliJ IDEA (RubyGem) project configuration.
182
+ * PATCH updating gem dependencies.
183
+ * PATCH introduce REUSE compliance
184
+ * KNOWN BUG: https://savannah.nongnu.org/bugs/?39928</pre>
185
+
193
186
  <h1 id="label-Version+10.0.0">Version 10.0.0<span><a href="#label-Version+10.0.0">&para;</a> <a href="#top">&uarr;</a></span></h1>
194
187
 
195
188
  <pre>* MAJOR update from Ruby &#39;~&gt; 2.6&#39; to Ruby &#39;~&gt; 2.7&#39;.
@@ -1130,7 +1123,7 @@
1130
1123
 
1131
1124
  <footer id="validator-badges" role="contentinfo">
1132
1125
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
1133
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
1126
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
1134
1127
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
1135
1128
  </footer>
1136
1129
 
data/html/COPYING_md.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>COPYING - gravaty 10.0.0</title>
7
+ <title>COPYING - 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">
@@ -87,31 +85,17 @@
87
85
 
88
86
 
89
87
  <div id="project-metadata">
90
- <div id="fileindex-section" class="nav-section">
88
+
89
+ <div id="fileindex-section" class="nav-section">
91
90
  <h3>Pages</h3>
92
91
 
93
92
  <ul class="link-list">
94
-
95
93
  <li><a href="./CHANGELOG.html">CHANGELOG</a>
96
-
97
94
  <li><a href="./COPYING_md.html">COPYING</a>
98
-
99
95
  <li><a href="./Gemfile.html">Gemfile</a>
100
-
101
- <li><a href="./ISSUES_md.html">ISSUES</a>
102
-
103
96
  <li><a href="./README_md.html">README</a>
104
-
105
97
  <li><a href="./Rakefile.html">Rakefile</a>
106
-
107
- <li><a href="./acknowledgements_md.html">acknowledgements</a>
108
-
109
- <li><a href="./authors_md.html">authors</a>
110
-
111
98
  <li><a href="./copyright_md.html">copyright</a>
112
-
113
- <li><a href="./examples/cacert_pem.html">cacert.pem</a>
114
-
115
99
  </ul>
116
100
  </div>
117
101
 
@@ -132,7 +116,7 @@
132
116
 
133
117
  <p>The GNU General Public License is a free, copyleft license for software and other kinds of works.</p>
134
118
 
135
- <p>The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program–to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its <a href="authors_md.html">authors</a>. You can apply it to your programs, too.</p>
119
+ <p>The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program–to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.</p>
136
120
 
137
121
  <p>When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.</p>
138
122
 
@@ -142,7 +126,7 @@
142
126
 
143
127
  <p>Developers that use the GNU GPL protect your rights with two steps: (1) assert <a href="copyright_md.html">copyright</a> on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.</p>
144
128
 
145
- <p>For the developers&#39; and <a href="authors_md.html">authors</a>&#39; protection, the GPL clearly explains that there is no warranty for this free software. For both users&#39; and <a href="authors_md.html">authors</a>&#39; sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to <a href="authors_md.html">authors</a> of previous versions.</p>
129
+ <p>For the developers&#39; and authors&#39; protection, the GPL clearly explains that there is no warranty for this free software. For both users&#39; and authors&#39; sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.</p>
146
130
 
147
131
  <p>Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users&#39; freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.</p>
148
132
 
@@ -260,11 +244,11 @@
260
244
  </li><li>
261
245
  <p>c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or</p>
262
246
  </li><li>
263
- <p>d) Limiting the use for publicity purposes of names of licensors or <a href="authors_md.html">authors</a> of the material; or</p>
247
+ <p>d) Limiting the use for publicity purposes of names of licensors or authors of the material; or</p>
264
248
  </li><li>
265
249
  <p>e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or</p>
266
250
  </li><li>
267
- <p>f) Requiring indemnification of licensors and <a href="authors_md.html">authors</a> of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and <a href="authors_md.html">authors</a>.</p>
251
+ <p>f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.</p>
268
252
  </li></ul>
269
253
 
270
254
  <p>All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.</p>
@@ -388,7 +372,7 @@
388
372
 
389
373
  <footer id="validator-badges" role="contentinfo">
390
374
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
391
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
375
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
392
376
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
393
377
  </footer>
394
378
 
data/html/Gemfile.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>Gemfile - gravaty 10.0.0</title>
7
+ <title>Gemfile - 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">
@@ -58,31 +56,17 @@
58
56
 
59
57
 
60
58
  <div id="project-metadata">
61
- <div id="fileindex-section" class="nav-section">
59
+
60
+ <div id="fileindex-section" class="nav-section">
62
61
  <h3>Pages</h3>
63
62
 
64
63
  <ul class="link-list">
65
-
66
64
  <li><a href="./CHANGELOG.html">CHANGELOG</a>
67
-
68
65
  <li><a href="./COPYING_md.html">COPYING</a>
69
-
70
66
  <li><a href="./Gemfile.html">Gemfile</a>
71
-
72
- <li><a href="./ISSUES_md.html">ISSUES</a>
73
-
74
67
  <li><a href="./README_md.html">README</a>
75
-
76
68
  <li><a href="./Rakefile.html">Rakefile</a>
77
-
78
- <li><a href="./acknowledgements_md.html">acknowledgements</a>
79
-
80
- <li><a href="./authors_md.html">authors</a>
81
-
82
69
  <li><a href="./copyright_md.html">copyright</a>
83
-
84
- <li><a href="./examples/cacert_pem.html">cacert.pem</a>
85
-
86
70
  </ul>
87
71
  </div>
88
72
 
@@ -91,7 +75,9 @@
91
75
 
92
76
  <main role="main" aria-label="Page Gemfile">
93
77
 
94
- <p># gravaty # Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani # # This file is part of gravaty. # # gravaty is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation, either version 3 of the License, or (at your # option) any later version. # # 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. # # You should have received a copy of the GNU General Public License # along with gravaty. If not, see &lt;<a href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/&gt;.</p>
78
+ <p># frozen_string_literal: true</p>
79
+
80
+ <p>#– # gravaty # (C) 2013 Marco Bresciani # # This file is part of gravaty. # # gravaty is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation, either version 3 of the License, or (at your # option) any later version. # # 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. # # You should have received a copy of the GNU General Public License # along with gravaty. If not, see &lt;<a href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/&gt;. #++</p>
95
81
 
96
82
  <p>source &#39;<a href="https://rubygems.org">rubygems.org</a>&#39;</p>
97
83
 
@@ -103,7 +89,7 @@
103
89
 
104
90
  <footer id="validator-badges" role="contentinfo">
105
91
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
106
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
92
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
107
93
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
108
94
  </footer>
109
95
 
data/html/Gravaty.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module Gravaty - gravaty 10.0.0</title>
7
+ <title>module Gravaty - 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="module">
27
25
  <nav role="navigation">
28
26
  <div id="project-navigation">
@@ -62,14 +60,14 @@
62
60
 
63
61
 
64
62
 
65
- <!-- Method Quickref -->
63
+
64
+ <!-- Method Quickref -->
66
65
  <div id="method-list-section" class="nav-section">
67
66
  <h3>Methods</h3>
68
67
 
69
68
  <ul class="link-list" role="directory">
70
-
71
69
  <li ><a href="#method-c-gravatize">::gravatize</a>
72
-
70
+ <li ><a href="#method-c-parser">::parser</a>
73
71
  </ul>
74
72
  </div>
75
73
 
@@ -85,185 +83,100 @@
85
83
  <dl class="rdoc-list note-list"><dt>Author
86
84
  <dd>
87
85
  <p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
88
- </dd><dt>Copyright
86
+ </dd></dl>
87
+
88
+ <p>rubocop:disable Style/AsciiComments</p>
89
+ <dl class="rdoc-list note-list"><dt>Copyright
89
90
  <dd>
90
91
  <p>Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani</p>
91
- </dd><dt>License
92
+ </dd></dl>
93
+
94
+ <p>rubocop:enable Style/AsciiComments</p>
95
+ <dl class="rdoc-list note-list"><dt>License
92
96
  <dd>
93
97
  <p>GNU General Public License version 3</p>
94
98
  </dd></dl>
95
99
 
96
100
  </section>
97
101
 
98
-
99
102
  <section id="5Buntitled-5D" class="documentation-section">
100
-
101
103
 
102
-
103
104
 
104
-
105
105
  <section class="constants-list">
106
106
  <header>
107
107
  <h3>Constants</h3>
108
108
  </header>
109
109
  <dl>
110
-
111
110
  <dt id="ALLOWED_PARAMS">ALLOWED_PARAMS
112
-
113
111
  <dd><p>Allowed parameters names. Currently: avatar, callback, default, force, format, pixelsize, rating, secure and type.</p>
114
-
115
-
116
112
  <dt id="ALLOWED_SIZES">ALLOWED_SIZES
117
-
118
113
  <dd><p>Allowed sizes (in pixels) for images requests. Currently a range from 1 to 2048 (included).</p>
119
-
120
-
121
114
  <dt id="AVATAR_FORMATS">AVATAR_FORMATS
122
-
123
115
  <dd><p>Allowed formats (extensions) for avatar requests. Currently: jp(e)g, png and gif.</p>
124
-
125
-
126
116
  <dt id="DEFAULT_OPTIONS">DEFAULT_OPTIONS
127
-
128
117
  <dd><p>Currently allowed default builtin options. Currently: 404, mp, identicon, monsterid,wavatar, retro, robohash and blank.</p>
129
-
130
-
131
118
  <dt id="IMAGES_FORMATS">IMAGES_FORMATS
132
-
133
119
  <dd><p>Allowed formats (extensions) for default own images. Currently: jp(e)g, png and gif.</p>
134
-
135
-
136
120
  <dt id="PROFILES">PROFILES
137
-
138
121
  <dd><p>Formats allowing supplemental options for profile requests. Currently json and qr.</p>
139
-
140
-
141
122
  <dt id="PROFILE_FORMATS">PROFILE_FORMATS
142
-
143
123
  <dd><p>Allowed formats (extensions) for profile requests. Currently: json, xml, php, vcf and qr.</p>
144
-
145
-
146
124
  <dt id="RATING_OPTIONS">RATING_OPTIONS
147
-
148
125
  <dd><p>Allowed rating options. Currently: g, pg, r and x.</p>
149
-
150
-
151
126
  <dt id="RPC_ERRORS">RPC_ERRORS
152
-
153
127
  <dd><p>Possible XML-RPC API errors.</p>
154
-
155
-
156
128
  <dt id="RPC_METHODS">RPC_METHODS
157
-
158
129
  <dd><p>Allowed XML-RPC API methods.</p>
159
-
160
-
161
130
  <dt id="RPC_TEST_METHOD">RPC_TEST_METHOD
162
-
163
131
  <dd><p>Default test method for XML-RPC API.</p>
164
-
165
-
166
132
  <dt id="RPC_URI">RPC_URI
167
-
168
133
  <dd><p>Reference URI for XML-RPC API.</p>
169
-
170
-
171
134
  <dt id="TEST_BASIC_AVATAR">TEST_BASIC_AVATAR
172
-
173
135
  <dd><p>Example basic URI (avatar part) for testing purposes.</p>
174
-
175
-
176
136
  <dt id="TEST_BASIC_PROFILE">TEST_BASIC_PROFILE
177
-
178
137
  <dd><p>Example basic URI (profile part) for testing purposes.</p>
179
-
180
-
181
138
  <dt id="TEST_CALLBACK">TEST_CALLBACK
182
-
183
139
  <dd><p>Example generic callback string for testing purposes.</p>
184
-
185
-
186
140
  <dt id="TEST_FORCED">TEST_FORCED
187
-
188
141
  <dd><p>Example resulting query string when forced default for testing purposes.</p>
189
-
190
-
191
142
  <dt id="TEST_JSON_REGEXP">TEST_JSON_REGEXP
192
-
193
143
  <dd><p>Example json file extension regular expression for testing purposes.</p>
194
-
195
-
196
144
  <dt id="TEST_MY_ADDRESS">TEST_MY_ADDRESS
197
-
198
145
  <dd><p>Example mail address for testing purposes.</p>
199
-
200
-
201
146
  <dt id="TEST_MY_MD5">TEST_MY_MD5
202
-
203
147
  <dd><p>Example MD5&#39;ed mail address for testing purposes.</p>
204
-
205
-
206
148
  <dt id="TEST_QR_REGEXP">TEST_QR_REGEXP
207
-
208
149
  <dd><p>Example QRCode file extension regular expression for testing purposes.</p>
209
-
210
-
211
150
  <dt id="TEST_SECURE_URI_REGEXP">TEST_SECURE_URI_REGEXP
212
-
213
151
  <dd><p>Example secure (HTTPS) URI header regular expression for testing purposes.</p>
214
-
215
-
216
152
  <dt id="TEST_SIMPLE_URI_REGEXP">TEST_SIMPLE_URI_REGEXP
217
-
218
153
  <dd><p>Example simple (HTTP) URI header regular expression for testing purposes.</p>
219
-
220
-
221
154
  <dt id="TEST_SIZE_REGEXP">TEST_SIZE_REGEXP
222
-
223
155
  <dd><p>Example size string regular expression for testing purposes.</p>
224
-
225
-
226
156
  <dt id="TEST_STRING">TEST_STRING
227
-
228
157
  <dd><p>Example hash with basic URI parts for testing purposes.</p>
229
-
230
-
231
158
  <dt id="TEST_UNSECURE_URI_REGEXP">TEST_UNSECURE_URI_REGEXP
232
-
233
159
  <dd><p>Example unsecure (HTTP) URI header regular expression for testing purposes.</p>
234
-
235
-
236
160
  <dt id="VERSION">VERSION
237
-
238
161
  <dd><p>Current version number for <a href="Gravaty/Gravaty.html"><code>Gravaty</code></a> gem.</p>
239
-
240
-
241
162
  </dl>
242
163
  </section>
243
-
244
164
 
245
-
246
165
 
247
-
166
+
248
167
  <section id="public-class-5Buntitled-5D-method-details" class="method-section">
249
168
  <header>
250
169
  <h3>Public Class Methods</h3>
251
170
  </header>
252
171
 
253
-
254
172
  <div id="method-c-gravatize" class="method-detail ">
255
-
256
173
  <div class="method-heading">
257
174
  <span class="method-name">gravatize</span><span
258
175
  class="method-args">(email_address)</span>
259
-
260
176
  <span class="method-click-advice">click to toggle source</span>
261
-
262
177
  </div>
263
-
264
178
 
265
179
  <div class="method-description">
266
-
267
180
  <p>Creates a new <a href="Gravaty/Gravaty.html"><code>Gravaty</code></a> described by the user&#39;s <code>email</code>. Throws a <code>ArgumentError</code> exception if the supplied <code>email</code> address is nil or not valid according to RFC5322.</p>
268
181
  <dl class="rdoc-list note-list"><dt>Usage
269
182
  <dd><ul><li>
@@ -286,35 +199,58 @@
286
199
  </dd></dl>
287
200
 
288
201
  <p>or not valid according to RFC 5322.</p>
289
-
290
-
291
202
 
292
-
293
203
  <div class="method-source-code" id="gravatize-source">
294
204
  <pre> <span class="ruby-comment"># File lib/gravaty.rb</span>
295
- <span class="line-num">54</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">gravatize</span>(<span class="ruby-identifier">email_address</span>)
296
- <span class="line-num">55</span> <span class="ruby-constant">Gravaty</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">email_address</span>, <span class="ruby-identifier">parser</span>
297
- <span class="line-num">56</span> <span class="ruby-keyword">end</span></pre>
205
+ <span class="line-num">63</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">gravatize</span>(<span class="ruby-identifier">email_address</span>)
206
+ <span class="line-num">64</span> <span class="ruby-constant">Gravaty</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">email_address</span>, <span class="ruby-identifier">parser</span>
207
+ <span class="line-num">65</span> <span class="ruby-keyword">end</span></pre>
208
+ </div>
209
+ </div>
210
+
211
+
212
+ </div>
213
+
214
+ <div id="method-c-parser" class="method-detail ">
215
+ <div class="method-heading">
216
+ <span class="method-name">parser</span><span
217
+ class="method-args">()</span>
218
+ <span class="method-click-advice">click to toggle source</span>
219
+ </div>
220
+
221
+ <div class="method-description">
222
+ <p>Provides the parameters&#39; parsers object.</p>
223
+
224
+ <div class="method-source-code" id="parser-source">
225
+ <pre> <span class="ruby-comment"># File lib/gravaty.rb</span>
226
+ <span class="line-num">70</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">parser</span>
227
+ <span class="line-num">71</span> <span class="ruby-identifier">parsers</span> = { <span class="ruby-value">avatar:</span> <span class="ruby-constant">Parsers</span><span class="ruby-operator">::</span><span class="ruby-constant">Avatar</span>.<span class="ruby-identifier">new</span>,
228
+ <span class="line-num">72</span> <span class="ruby-value">callback:</span> <span class="ruby-constant">Parsers</span><span class="ruby-operator">::</span><span class="ruby-constant">Callback</span>.<span class="ruby-identifier">new</span>,
229
+ <span class="line-num">73</span> <span class="ruby-value">default:</span> <span class="ruby-constant">Parsers</span><span class="ruby-operator">::</span><span class="ruby-constant">Default</span>.<span class="ruby-identifier">new</span>,
230
+ <span class="line-num">74</span> <span class="ruby-value">force:</span> <span class="ruby-constant">Parsers</span><span class="ruby-operator">::</span><span class="ruby-constant">Force</span>.<span class="ruby-identifier">new</span>,
231
+ <span class="line-num">75</span> <span class="ruby-value">format:</span> <span class="ruby-constant">Parsers</span><span class="ruby-operator">::</span><span class="ruby-constant">Format</span>.<span class="ruby-identifier">new</span>,
232
+ <span class="line-num">76</span> <span class="ruby-value">pixelsize:</span> <span class="ruby-constant">Parsers</span><span class="ruby-operator">::</span><span class="ruby-constant">Pixelsize</span>.<span class="ruby-identifier">new</span>,
233
+ <span class="line-num">77</span> <span class="ruby-value">rating:</span> <span class="ruby-constant">Parsers</span><span class="ruby-operator">::</span><span class="ruby-constant">Rating</span>.<span class="ruby-identifier">new</span>,
234
+ <span class="line-num">78</span> <span class="ruby-value">secure:</span> <span class="ruby-constant">Parsers</span><span class="ruby-operator">::</span><span class="ruby-constant">Secure</span>.<span class="ruby-identifier">new</span>,
235
+ <span class="line-num">79</span> <span class="ruby-value">type:</span> <span class="ruby-constant">Parsers</span><span class="ruby-operator">::</span><span class="ruby-constant">Type</span>.<span class="ruby-identifier">new</span> }
236
+ <span class="line-num">80</span>
237
+ <span class="line-num">81</span> <span class="ruby-constant">Parser</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">parsers</span>
238
+ <span class="line-num">82</span> <span class="ruby-keyword">end</span></pre>
298
239
  </div>
299
-
300
240
  </div>
301
241
 
302
-
303
242
 
304
-
305
243
  </div>
306
244
 
307
-
308
245
  </section>
309
-
310
- </section>
311
246
 
247
+ </section>
312
248
  </main>
313
249
 
314
250
 
315
251
  <footer id="validator-badges" role="contentinfo">
316
252
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
317
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
253
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
318
254
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
319
255
  </footer>
320
256