gravaty 9.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG +835 -0
  3. data/COPYING.md +675 -0
  4. data/Gemfile +21 -0
  5. data/ISSUES.md +62 -0
  6. data/README.md +287 -0
  7. data/Rakefile +52 -0
  8. data/acknowledgements.md +66 -0
  9. data/authors.md +63 -0
  10. data/copyright.md +468 -0
  11. data/examples/avatar.rb +159 -0
  12. data/examples/basics.rb +75 -0
  13. data/examples/cacert.pem +3401 -0
  14. data/examples/profile.rb +187 -0
  15. data/examples/xmlrpc.rb +41 -0
  16. data/gravaty.gemspec +78 -0
  17. data/gravaty.odp +0 -0
  18. data/gravaty.pdf +0 -0
  19. data/html/CHANGELOG.html +1117 -0
  20. data/html/COPYING_md.html +393 -0
  21. data/html/Gemfile.html +108 -0
  22. data/html/Gravaty/Gravaty.html +1002 -0
  23. data/html/Gravaty/ParsableDuckType.html +162 -0
  24. data/html/Gravaty/Parser.html +239 -0
  25. data/html/Gravaty/Parsers/Avatar.html +169 -0
  26. data/html/Gravaty/Parsers/Callback.html +170 -0
  27. data/html/Gravaty/Parsers/Default.html +178 -0
  28. data/html/Gravaty/Parsers/Force.html +170 -0
  29. data/html/Gravaty/Parsers/Format.html +181 -0
  30. data/html/Gravaty/Parsers/Pixelsize.html +181 -0
  31. data/html/Gravaty/Parsers/Rating.html +181 -0
  32. data/html/Gravaty/Parsers/Secure.html +169 -0
  33. data/html/Gravaty/Parsers/Type.html +181 -0
  34. data/html/Gravaty/Parsers.html +96 -0
  35. data/html/Gravaty/Utils/Downloader/Downloader.html +227 -0
  36. data/html/Gravaty/Utils/Downloader.html +108 -0
  37. data/html/Gravaty/Utils/Raisers.html +203 -0
  38. data/html/Gravaty/Utils/Rfc5322.html +139 -0
  39. data/html/Gravaty/Utils/RpcConnector/RpcConnector.html +248 -0
  40. data/html/Gravaty/Utils/RpcConnector.html +111 -0
  41. data/html/Gravaty/Utils.html +111 -0
  42. data/html/Gravaty.html +320 -0
  43. data/html/ISSUES_md.html +165 -0
  44. data/html/Object.html +187 -0
  45. data/html/README_md.html +276 -0
  46. data/html/Rakefile.html +141 -0
  47. data/html/acknowledgements_md.html +160 -0
  48. data/html/authors_md.html +173 -0
  49. data/html/copyright_md.html +481 -0
  50. data/html/created.rid +59 -0
  51. data/html/css/fonts.css +167 -0
  52. data/html/css/rdoc.css +590 -0
  53. data/html/examples/cacert_pem.html +1056 -0
  54. data/html/fonts/Lato-Light.ttf +0 -0
  55. data/html/fonts/Lato-LightItalic.ttf +0 -0
  56. data/html/fonts/Lato-Regular.ttf +0 -0
  57. data/html/fonts/Lato-RegularItalic.ttf +0 -0
  58. data/html/fonts/SourceCodePro-Bold.ttf +0 -0
  59. data/html/fonts/SourceCodePro-Regular.ttf +0 -0
  60. data/html/gravaty_gemspec.html +169 -0
  61. data/html/images/add.png +0 -0
  62. data/html/images/arrow_up.png +0 -0
  63. data/html/images/brick.png +0 -0
  64. data/html/images/brick_link.png +0 -0
  65. data/html/images/bug.png +0 -0
  66. data/html/images/bullet_black.png +0 -0
  67. data/html/images/bullet_toggle_minus.png +0 -0
  68. data/html/images/bullet_toggle_plus.png +0 -0
  69. data/html/images/date.png +0 -0
  70. data/html/images/delete.png +0 -0
  71. data/html/images/find.png +0 -0
  72. data/html/images/loadingAnimation.gif +0 -0
  73. data/html/images/macFFBgHack.png +0 -0
  74. data/html/images/package.png +0 -0
  75. data/html/images/page_green.png +0 -0
  76. data/html/images/page_white_text.png +0 -0
  77. data/html/images/page_white_width.png +0 -0
  78. data/html/images/plugin.png +0 -0
  79. data/html/images/ruby.png +0 -0
  80. data/html/images/tag_blue.png +0 -0
  81. data/html/images/tag_green.png +0 -0
  82. data/html/images/transparent.png +0 -0
  83. data/html/images/wrench.png +0 -0
  84. data/html/images/wrench_orange.png +0 -0
  85. data/html/images/zoom.png +0 -0
  86. data/html/index.html +308 -0
  87. data/html/js/darkfish.js +161 -0
  88. data/html/js/jquery.js +4 -0
  89. data/html/js/navigation.js +141 -0
  90. data/html/js/navigation.js.gz +0 -0
  91. data/html/js/search.js +109 -0
  92. data/html/js/search_index.js +1 -0
  93. data/html/js/search_index.js.gz +0 -0
  94. data/html/js/searcher.js +229 -0
  95. data/html/js/searcher.js.gz +0 -0
  96. data/html/table_of_contents.html +995 -0
  97. data/lib/gravaty/application.rb +354 -0
  98. data/lib/gravaty/constants.rb +65 -0
  99. data/lib/gravaty/locales/en.yml +38 -0
  100. data/lib/gravaty/locales/it.yml +38 -0
  101. data/lib/gravaty/locales/ja.yml +39 -0
  102. data/lib/gravaty/parser.rb +50 -0
  103. data/lib/gravaty/parsers/avatar.rb +40 -0
  104. data/lib/gravaty/parsers/callback.rb +41 -0
  105. data/lib/gravaty/parsers/default.rb +92 -0
  106. data/lib/gravaty/parsers/force.rb +40 -0
  107. data/lib/gravaty/parsers/format.rb +45 -0
  108. data/lib/gravaty/parsers/pixelsize.rb +45 -0
  109. data/lib/gravaty/parsers/rating.rb +45 -0
  110. data/lib/gravaty/parsers/secure.rb +39 -0
  111. data/lib/gravaty/parsers/type.rb +45 -0
  112. data/lib/gravaty/utils/downloader.rb +156 -0
  113. data/lib/gravaty/utils/raisers.rb +63 -0
  114. data/lib/gravaty/utils/rfc5322.rb +110 -0
  115. data/lib/gravaty/utils/rpc_connector.rb +86 -0
  116. data/lib/gravaty/version.rb +24 -0
  117. data/lib/gravaty.rb +75 -0
  118. data/test/gravaty/locales/test_locales.rb +69 -0
  119. data/test/gravaty/parsers/test_avatar.rb +39 -0
  120. data/test/gravaty/parsers/test_callback.rb +42 -0
  121. data/test/gravaty/parsers/test_default.rb +79 -0
  122. data/test/gravaty/parsers/test_force.rb +39 -0
  123. data/test/gravaty/parsers/test_format.rb +54 -0
  124. data/test/gravaty/parsers/test_pixelsize.rb +56 -0
  125. data/test/gravaty/parsers/test_rating.rb +54 -0
  126. data/test/gravaty/parsers/test_secure.rb +39 -0
  127. data/test/gravaty/parsers/test_type.rb +44 -0
  128. data/test/gravaty/test_application.rb +126 -0
  129. data/test/gravaty/test_avatar.rb +122 -0
  130. data/test/gravaty/test_parser.rb +59 -0
  131. data/test/gravaty/test_profile.rb +70 -0
  132. data/test/gravaty/utils/test_downloader.rb +51 -0
  133. data/test/gravaty/utils/test_raisers.rb +62 -0
  134. data/test/gravaty/utils/test_rfc5322.rb +82 -0
  135. data/test/gravaty/utils/test_rpc_connector.rb +82 -0
  136. data/test/test_gravaty.rb +48 -0
  137. data/test/test_helper.rb +105 -0
  138. metadata +348 -0
data/copyright.md ADDED
@@ -0,0 +1,468 @@
1
+ <!--
2
+ gravaty
3
+
4
+ Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
5
+
6
+ This file is part of gravaty.
7
+
8
+ gravaty is free software: you can redistribute it and/or modify it under
9
+ the terms of the GNU General Public License as published by the Free
10
+ Software Foundation, either version 3 of the License, or (at your
11
+ option) any later version.
12
+
13
+ gravaty is distributed in the hope that it will be useful, but WITHOUT
14
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16
+ more details.
17
+
18
+ You should have received a copy of the GNU General Public License along
19
+ with gravaty. If not, see <http://www.gnu.org/licenses/>.
20
+ -->
21
+
22
+ # Copyright Notes
23
+ 2014-04-16 update.
24
+
25
+ gravaty
26
+
27
+ Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
28
+
29
+ This file is part of gravaty.
30
+
31
+ gravaty is free software: you can redistribute it and/or modify it under
32
+ the terms of the GNU General Public License as published by the Free
33
+ Software Foundation, either version 3 of the License, or (at your
34
+ option) any later version.
35
+
36
+ gravaty is distributed in the hope that it will be useful, but WITHOUT
37
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
38
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
39
+ more details.
40
+
41
+ You should have received a copy of the GNU General Public License along
42
+ with gravaty. If not, see <http://www.gnu.org/licenses/>.
43
+
44
+ All project files, except for those listed in whole RDoc section below
45
+ are released according to the above notice. The contributed code by
46
+ Peter R. Marreck and Jon Maken are released according to their own
47
+ licenses, specified inside the source code and checked being compatible
48
+ with GNU GPLv3 license and the free software philosophy.
49
+
50
+
51
+ ## RDoc
52
+ Documents in the html directory are automatically generated by Ruby RDoc
53
+ tool, with Markdown syntax. Automatically included files have the
54
+ following licenses:
55
+
56
+ ### Darkfish (darkfish.js & rdoc.css)
57
+ See <http://www.ruby-doc.org/stdlib-2.0/libdoc/rdoc/rdoc/RDoc/Generator/Darkfish.html>
58
+
59
+ Copyright © 2007, 2008, Michael Granger. All rights reserved.
60
+
61
+ Redistribution and use in source and binary forms, with or without
62
+ modification, are permitted provided that the following conditions are
63
+ met:
64
+
65
+ Redistributions of source code must retain the above copyright
66
+ notice, this list of conditions and the following disclaimer.
67
+
68
+ Redistributions in binary form must reproduce the above copyright
69
+ notice, this list of conditions and the following disclaimer in the
70
+ documentation and/or other materials provided with the distribution.
71
+
72
+ Neither the name of the author/s, nor the names of the project's
73
+ contributors may be used to endorse or promote products derived from
74
+ this software without specific prior written permission.
75
+
76
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
77
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
78
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
79
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
80
+ OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
81
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
82
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
83
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
84
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
85
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
86
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
87
+
88
+ Darkfish uses the Silk Icons set by Mark James.
89
+
90
+ ### Sorce Code Pro Font (& fonts.css)
91
+ Copyright 2010, 2012 Adobe Systems Incorporated
92
+ (<http://www.adobe.com/>), with Reserved Font Name "Source". All Rights
93
+ Reserved. Source is a trademark of Adobe Systems Incorporated in the
94
+ United States and/or other countries.
95
+
96
+ This Font Software is licensed under the SIL Open Font License, Version
97
+ 1.1.
98
+
99
+ This license is copied below, and is also available with a FAQ at:
100
+ <http://scripts.sil.org/OFL>
101
+
102
+ /*
103
+ * -----------------------------------------------------------
104
+ * SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
105
+ * -----------------------------------------------------------
106
+ *
107
+ * PREAMBLE
108
+ * The goals of the Open Font License (OFL) are to stimulate
109
+ * worldwide development of collaborative font projects, to support
110
+ * the font creation efforts of academic and linguistic communities,
111
+ * and to provide a free and open framework in which fonts may be
112
+ * shared and improved in partnership with others.
113
+ *
114
+ * The OFL allows the licensed fonts to be used, studied, modified
115
+ * and redistributed freely as long as they are not sold by
116
+ * themselves. The fonts, including any derivative works, can be
117
+ * bundled, embedded, redistributed and/or sold with any software
118
+ * provided that any reserved names are not used by derivative
119
+ * works. The fonts and derivatives, however, cannot be released
120
+ * under any other type of license. The requirement for fonts to
121
+ * remain under this license does not apply to any document created
122
+ * using the fonts or their derivatives.
123
+ *
124
+ * DEFINITIONS
125
+ * "Font Software" refers to the set of files released by the
126
+ * Copyright Holder(s) under this license and clearly marked as
127
+ * such. This may include source files, build scripts and
128
+ * documentation.
129
+ *
130
+ * "Reserved Font Name" refers to any names specified as such after
131
+ * the copyright statement(s).
132
+ *
133
+ * "Original Version" refers to the collection of Font Software
134
+ * components as distributed by the Copyright Holder(s).
135
+ *
136
+ * "Modified Version" refers to any derivative made by adding to,
137
+ * deleting, or substituting -- in part or in whole -- any of the
138
+ * components of the Original Version, by changing formats or by
139
+ * porting the Font Software to a new environment.
140
+ *
141
+ * "Author" refers to any designer, engineer, programmer, technical
142
+ * writer or other person who contributed to the Font Software.
143
+ *
144
+ * PERMISSION & CONDITIONS
145
+ * Permission is hereby granted, free of charge, to any person
146
+ * obtaining a copy of the Font Software, to use, study, copy,
147
+ * merge, embed, modify, redistribute, and sell modified and
148
+ * unmodified copies of the Font Software, subject to the following
149
+ * conditions:
150
+ *
151
+ * 1) Neither the Font Software nor any of its individual
152
+ * components, in Original or Modified Versions, may be sold by
153
+ * itself.
154
+ *
155
+ * 2) Original or Modified Versions of the Font Software may be
156
+ * bundled, redistributed and/or sold with any software, provided
157
+ * that each copy contains the above copyright notice and this
158
+ * license. These can be included either as stand-alone text files,
159
+ * human-readable headers or in the appropriate machine-readable
160
+ * metadata fields within text or binary files as long as those
161
+ * fields can be easily viewed by the user.
162
+ *
163
+ * 3) No Modified Version of the Font Software may use the Reserved
164
+ * Font Name(s) unless explicit written permission is granted by the
165
+ * corresponding Copyright Holder. This restriction only applies to
166
+ * the primary font name as presented to the users.
167
+ *
168
+ * 4) The name(s) of the Copyright Holder(s) or the Author(s) of the
169
+ * Font Software shall not be used to promote, endorse or advertise
170
+ * any Modified Version, except to acknowledge the contribution(s)
171
+ * of the Copyright Holder(s) and the Author(s) or with their
172
+ * explicit written permission.
173
+ *
174
+ * 5) The Font Software, modified or unmodified, in part or in
175
+ * whole, must be distributed entirely under this license, and must
176
+ * not be distributed under any other license. The requirement for
177
+ * fonts to remain under this license does not apply to any document
178
+ * created using the Font Software.
179
+ *
180
+ * TERMINATION
181
+ * This license becomes null and void if any of the above conditions
182
+ * are not met.
183
+ *
184
+ * DISCLAIMER
185
+ * THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
186
+ * KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY
187
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
188
+ * AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER
189
+ * RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
190
+ * CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL,
191
+ * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER
192
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
193
+ * THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
194
+ * DEALINGS IN THE FONT SOFTWARE.
195
+ */
196
+
197
+ ### Lato Font
198
+ Copyright (c) 2010, Łukasz Dziedzic (<dziedzic@typoland.com>), with
199
+ Reserved Font Name Lato.
200
+
201
+ This Font Software is licensed under the SIL Open Font License, Version
202
+ 1.1.
203
+
204
+ This license is copied below, and is also available with a FAQ at:
205
+ <http://scripts.sil.org/OFL>
206
+
207
+ /*
208
+ * -----------------------------------------------------------
209
+ * SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
210
+ * -----------------------------------------------------------
211
+ *
212
+ * PREAMBLE
213
+ * The goals of the Open Font License (OFL) are to stimulate
214
+ * worldwide development of collaborative font projects, to support
215
+ * the font creation efforts of academic and linguistic communities,
216
+ * and to provide a free and open framework in which fonts may be
217
+ * shared and improved in partnership with others.
218
+ *
219
+ * The OFL allows the licensed fonts to be used, studied, modified
220
+ * and redistributed freely as long as they are not sold by
221
+ * themselves. The fonts, including any derivative works, can be
222
+ * bundled, embedded, redistributed and/or sold with any software
223
+ * provided that any reserved names are not used by derivative
224
+ * works. The fonts and derivatives, however, cannot be released
225
+ * under any other type of license. The requirement for fonts to
226
+ * remain under this license does not apply to any document created
227
+ * using the fonts or their derivatives.
228
+ *
229
+ * DEFINITIONS
230
+ * "Font Software" refers to the set of files released by the
231
+ * Copyright Holder(s) under this license and clearly marked as
232
+ * such. This may include source files, build scripts and
233
+ * documentation.
234
+ *
235
+ * "Reserved Font Name" refers to any names specified as such after
236
+ * the copyright statement(s).
237
+ *
238
+ * "Original Version" refers to the collection of Font Software
239
+ * components as distributed by the Copyright Holder(s).
240
+ *
241
+ * "Modified Version" refers to any derivative made by adding to,
242
+ * deleting, or substituting -- in part or in whole -- any of the
243
+ * components of the Original Version, by changing formats or by
244
+ * porting the Font Software to a new environment.
245
+ *
246
+ * "Author" refers to any designer, engineer, programmer, technical
247
+ * writer or other person who contributed to the Font Software.
248
+ *
249
+ * PERMISSION & CONDITIONS
250
+ * Permission is hereby granted, free of charge, to any person
251
+ * obtaining a copy of the Font Software, to use, study, copy,
252
+ * merge, embed, modify, redistribute, and sell modified and
253
+ * unmodified copies of the Font Software, subject to the following
254
+ * conditions:
255
+ *
256
+ * 1) Neither the Font Software nor any of its individual
257
+ * components, in Original or Modified Versions, may be sold by
258
+ * itself.
259
+ *
260
+ * 2) Original or Modified Versions of the Font Software may be
261
+ * bundled, redistributed and/or sold with any software, provided
262
+ * that each copy contains the above copyright notice and this
263
+ * license. These can be included either as stand-alone text files,
264
+ * human-readable headers or in the appropriate machine-readable
265
+ * metadata fields within text or binary files as long as those
266
+ * fields can be easily viewed by the user.
267
+ *
268
+ * 3) No Modified Version of the Font Software may use the Reserved
269
+ * Font Name(s) unless explicit written permission is granted by the
270
+ * corresponding Copyright Holder. This restriction only applies to
271
+ * the primary font name as presented to the users.
272
+ *
273
+ * 4) The name(s) of the Copyright Holder(s) or the Author(s) of the
274
+ * Font Software shall not be used to promote, endorse or advertise
275
+ * any Modified Version, except to acknowledge the contribution(s)
276
+ * of the Copyright Holder(s) and the Author(s) or with their
277
+ * explicit written permission.
278
+ *
279
+ * 5) The Font Software, modified or unmodified, in part or in
280
+ * whole, must be distributed entirely under this license, and must
281
+ * not be distributed under any other license. The requirement for
282
+ * fonts to remain under this license does not apply to any document
283
+ * created using the Font Software.
284
+ *
285
+ * TERMINATION
286
+ * This license becomes null and void if any of the above conditions
287
+ * are not met.
288
+ *
289
+ * DISCLAIMER
290
+ * THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
291
+ * KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY
292
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
293
+ * AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER
294
+ * RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
295
+ * CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL,
296
+ * SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER
297
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
298
+ * THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
299
+ * DEALINGS IN THE FONT SOFTWARE.
300
+ */
301
+
302
+ ### Silk Icons
303
+ See <http://www.famfamfam.com/lab/icons/silk/>
304
+
305
+ This work is licensed under a Creative Commons Attribution 2.5 License.
306
+ This means you may use it for any purpose, and make any changes you
307
+ like. All I ask is that you include a link back to this page in your
308
+ credits (although a giant link on every page of your website really
309
+ isn't needed, contact me to discuss specifics).
310
+
311
+ The icons can also be used under Creative Commons Attribution 3.0
312
+ License (Hi Debian folks!) with the following requirements: As an
313
+ author, I would appreciate a reference to my authorship of the Silk icon
314
+ set contents within a readme file or equivalent documentation for the
315
+ software which includes the set or a subset of the icons contained
316
+ within.
317
+
318
+ ### jquery.js
319
+ jQuery JavaScript Library v1.6.2. See <http://jquery.com/>
320
+
321
+ Copyright 2011, John Resig
322
+ Dual licensed under the MIT or GPL Version 2 licenses.
323
+ <http://jquery.org/license>
324
+
325
+ #### Sizzle.js
326
+ Includes Sizzle.js
327
+ <http://sizzlejs.com/>
328
+ Copyright 2011, The Dojo Foundation
329
+ Released under the MIT, BSD, and GPL Licenses.
330
+
331
+ ### JsonIndex generator (navigation.js & search.js & search_index.js & searcher.js)
332
+ See
333
+ <http://www.ruby-doc.org/stdlib-2.0/libdoc/rdoc/rdoc/RDoc/Generator/JsonIndex.html>
334
+
335
+ The JsonIndex generator is designed to complement an HTML generator and
336
+ produces a JSON search index. This generator is derived from sdoc by
337
+ Vladimir Kolesnikov and contains verbatim code written by him.
338
+
339
+ Copyright © 2009 Vladimir Kolesnikov
340
+
341
+ Permission is hereby granted, free of charge, to any person obtaining a
342
+ copy of this software and associated documentation files (the
343
+ "Software"), to deal in the Software without restriction, including
344
+ without limitation the rights to use, copy, modify, merge, publish,
345
+ distribute, sublicense, and/or sell copies of the Software, and to
346
+ permit persons to whom the Software is furnished to do so, subject to
347
+ the following conditions:
348
+
349
+ The above copyright notice and this permission notice shall be included
350
+ in all copies or substantial portions of the Software.
351
+
352
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
353
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
354
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
355
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
356
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
357
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
358
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
359
+
360
+ ## root.crt
361
+ The root.crt root certificate by CAcert.org is release under the Root
362
+ Distribution License (see
363
+ <http://www.cacert.org/policy/RootDistributionLicense.php>).
364
+
365
+ * Name: RDL
366
+ [COD14](https://svn.cacert.org/CAcert/Policies/ControlledDocumentList.html)
367
+ * Status: DRAFT
368
+ [p20100710](https://wiki.cacert.org/PolicyDecisions#p20100710)
369
+ * Editor: Mark Lipscombe
370
+
371
+ RDL Status - DRAFT
372
+
373
+ ### Root Distribution License
374
+ #### Terms
375
+ * "CAcert Inc" means CAcert Incorporated, a non-profit association
376
+ incorporated in New South Wales, Australia.
377
+ * "CAcert Community Agreement" means the agreement entered into by each
378
+ person wishing to RELY.
379
+ * "Member" means a natural or legal person who has agreed to the CAcert
380
+ Community Agreement.
381
+ * "Certificate" means any certificate or like device to which CAcert
382
+ Inc's digital signature has been affixed.
383
+ * "CAcert Root Certificates" means any certificate issued by CAcert Inc
384
+ to itself for the purposes of signing further CAcert Roots or for
385
+ signing certificates of Members.
386
+ * "RELY" means the human act in taking on a risk or liability on the
387
+ basis of the claim(s) bound within a certificate issued by CAcert.
388
+ * "Embedded" means a certificate that is contained within a software
389
+ application or hardware system, when and only when, that software
390
+ application or system is distributed in binary form only.
391
+
392
+ #### Copyright
393
+ CAcert Root Certificates are Copyright CAcert Incorporated. All rights
394
+ reserved.
395
+
396
+ #### License
397
+ You may copy and distribute CAcert Root Certificates only in accordance
398
+ with this license.
399
+
400
+ CAcert Inc grants you a free, non-exclusive license to copy and
401
+ distribute CAcert Root Certificates in any medium, with or without
402
+ modification, provided that the following conditions are met:
403
+
404
+ * Redistributions of Embedded CAcert Root Certificates must take
405
+ reasonable steps to inform the recipient of the disclaimer in section
406
+ 4 or reproduce this license and copyright notice in full in the
407
+ documentation provided with the distribution.
408
+ * Redistributions in all other forms must reproduce this license and
409
+ copyright notice in full.
410
+
411
+ #### Disclaimer
412
+ THE CACERT ROOT CERTIFICATES ARE PROVIDED "AS IS" AND ANY EXPRESS OR
413
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
414
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
415
+ DISCLAIMED TO THE MAXIMUM EXTENT PERMITTED BY LAW. IN NO EVENT SHALL
416
+ CACERT INC, ITS MEMBERS, AGENTS, SUBSIDIARIES OR RELATED PARTIES BE
417
+ LIABLE TO THE LICENSEE OR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT,
418
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
419
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
420
+ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
421
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
422
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
423
+ THESE CERTIFICATES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
424
+ IN ANY EVENT, CACERT'S LIABILITY SHALL NOT EXCEED $1,000.00 AUSTRALIAN
425
+ DOLLARS.
426
+
427
+ THIS LICENSE SPECIFICALLY DOES NOT PERMIT YOU TO RELY UPON ANY
428
+ CERTIFICATES ISSUED BY CACERT INC. IF YOU WISH TO RELY ON CERTIFICATES
429
+ ISSUED BY CACERT INC, YOU MUST ENTER INTO A SEPARATE AGREEMENT WITH
430
+ CACERT INC.
431
+
432
+ #### Statutory Rights
433
+ Nothing in this license affects any statutory rights that cannot be
434
+ waived or limited by contract. In the event that any provision of this
435
+ license is held to be invalid or unenforceable, the remaining provisions
436
+ of this license remain in full force and effect.
437
+
438
+ ### Alternatives
439
+ If you find the terms of the above Root Distribution License difficult
440
+ or inadequate for your purposes, you may wish to:
441
+ * Enter into the CAcert Community Agreement by [registering as a
442
+ Member](https://www.cacert.org/index.php?id=1). This is free.
443
+ * Delete CAcert Root Certificates from your software. Your software
444
+ documentation should give directions and assistance for this.
445
+
446
+ These alternatives are outside the above Root Distribution License and
447
+ do not incorporate.
448
+
449
+ ------------------------------------------
450
+
451
+ gravaty
452
+
453
+ Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
454
+
455
+ This file is part of gravaty.
456
+
457
+ gravaty is free software: you can redistribute it and/or modify it under
458
+ the terms of the GNU General Public License as published by the Free
459
+ Software Foundation, either version 3 of the License, or (at your
460
+ option) any later version.
461
+
462
+ gravaty is distributed in the hope that it will be useful, but WITHOUT
463
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
464
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
465
+ more details.
466
+
467
+ You should have received a copy of the GNU General Public License along
468
+ with gravaty. If not, see <http://www.gnu.org/licenses/>.
@@ -0,0 +1,159 @@
1
+ #--
2
+ # gravaty
3
+ # Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
4
+ #
5
+ # This file is part of gravaty.
6
+ #
7
+ # gravaty is free software: you can redistribute it and/or modify it
8
+ # under the terms of the GNU General Public License as published by the
9
+ # Free Software Foundation, either version 3 of the License, or (at your
10
+ # option) any later version.
11
+ #
12
+ # gravaty is distributed in the hope that it will be useful, but WITHOUT
13
+ # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
+ # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15
+ # for more details.
16
+ #
17
+ # You should have received a copy of the GNU General Public License
18
+ # along with gravaty. If not, see <http://www.gnu.org/licenses/>.
19
+ #++
20
+
21
+ require_relative '../lib/gravaty'
22
+
23
+ i = 0
24
+
25
+ # Creates the Gravaty object with an (example) email
26
+ puts "------------------------------------------"
27
+ puts "Avatar: '#{i}'. Creates the Gravaty object with an (example) email."
28
+ puts "------------------------------------------"
29
+ puts "irb(main):001:0> a_gravaty = Gravaty::gravatize 'user@example.com'"
30
+ a_gravaty = Gravaty::gravatize 'user@example.com'
31
+ puts
32
+ i += 1
33
+
34
+ # Prints the secure URL for avatar retrieval, with no frills
35
+ # (https://secure.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af)
36
+ puts "------------------------------------------"
37
+ puts "Avatar: '#{i}'. Prints the secure URL for avatar retrieval, with no frills (https://secure.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af)."
38
+ puts "------------------------------------------"
39
+ puts 'irb(main):001:0> a_gravaty.avatar'
40
+ puts a_gravaty.avatar
41
+ puts
42
+ i += 1
43
+
44
+ # Prints the basic URL for avatar retrieval, with no frills
45
+ # (http://www.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af)
46
+ puts "------------------------------------------"
47
+ puts "Avatar: '#{i}'. Prints the basic URL for avatar retrieval, with no frills (http://www.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af)."
48
+ puts "------------------------------------------"
49
+ puts 'irb(main):001:0> a_gravaty.avatar secure: false'
50
+ puts a_gravaty.avatar secure: false
51
+ puts
52
+ i += 1
53
+
54
+ # Prints the secure URL for avatar retrieval, with specified image file
55
+ # extension
56
+ # (https://secure.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.jpg)
57
+ puts "------------------------------------------"
58
+ puts "Avatar: '#{i}'. Prints the secure URL for avatar retrieval, with specified image file extension (https://secure.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.jpg)."
59
+ puts "------------------------------------------"
60
+ puts "irb(main):001:0> a_gravaty.avatar type: 'JPG'"
61
+ puts a_gravaty.avatar type: 'JPG'
62
+ puts
63
+ i += 1
64
+
65
+ # Retrieves the latest saved operation (email address, if none saved)
66
+ # (user@example.com)
67
+ puts "------------------------------------------"
68
+ puts "Avatar: '#{i}'. Retrieves the latest saved operation (email address, if none saved) (user@example.com)."
69
+ puts "------------------------------------------"
70
+ puts 'irb(main):001:0> puts a_gravaty'
71
+ puts a_gravaty
72
+ puts
73
+ i += 1
74
+
75
+ # Prints and saves the secure URL for avatar and later retrieval, with
76
+ # specified image file extension
77
+ # (https://secure.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.jpg)
78
+ puts "------------------------------------------"
79
+ puts "Avatar: '#{i}'. Prints and saves the secure URL for avatar and later retrieval, with specified image file extension (https://secure.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.jpg)."
80
+ puts "------------------------------------------"
81
+ puts "irb(main):001:0> a_gravaty.avatar! type: 'JPG'"
82
+ puts a_gravaty.avatar! type: 'JPG'
83
+ puts
84
+ i += 1
85
+
86
+ # Prints the basic URL for avatar retrieval, with specified image file
87
+ # extension
88
+ # (http://www.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.gif)
89
+ puts "------------------------------------------"
90
+ puts "Avatar: '#{i}'. Prints the basic URL for avatar retrieval, with specified image file extension (http://www.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.gif)."
91
+ puts "------------------------------------------"
92
+ puts "irb(main):001:0> a_gravaty.avatar type: 'GIF', secure: false"
93
+ puts a_gravaty.avatar type: 'GIF', secure: false
94
+ puts
95
+ i += 1
96
+
97
+ # Retrieves and prints the latest saved operation
98
+ # (https://secure.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.jpg)
99
+ puts "------------------------------------------"
100
+ puts "Avatar: '#{i}'. Retrieves and prints the latest saved operation. (https://secure.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.jpg)"
101
+ puts "------------------------------------------"
102
+ puts 'irb(main):001:0> puts a_gravaty'
103
+ puts a_gravaty
104
+ puts
105
+ i += 1
106
+
107
+ # Prints the basic URL for avatar retrieval, with specified image size
108
+ # (in pixels) and specified image file extension
109
+ # (http://www.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.png?s=42)
110
+ puts "------------------------------------------"
111
+ puts "Avatar: '#{i}'. Prints the basic URL for avatar retrieval, with specified image size (in pixels) and specified image file extension (http://www.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.png?s=42)."
112
+ puts "------------------------------------------"
113
+ puts "irb(main):001:0> a_gravaty.avatar type: 'png', pixelsize: 42, secure: false"
114
+ puts a_gravaty.avatar type: 'png', pixelsize: 42, secure: false
115
+ puts
116
+ i += 1
117
+
118
+ # Prints and saves the basic URL for avatar retrieval, with specified
119
+ # image size (in pixels), specified image file extension and type
120
+ # (http://www.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.png?s=42&d=monsterid)
121
+ puts "------------------------------------------"
122
+ puts "Avatar: '#{i}'. Prints and saves the basic URL for avatar retrieval, with specified image size (in pixels), specified image file extension and type (http://www.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.png?s=42&d=robohash)."
123
+ puts "------------------------------------------"
124
+ puts "irb(main):001:0> a_gravaty.avatar! type: 'png', default: 'robohash', pixelsize: 42, secure: false"
125
+ puts a_gravaty.avatar! type: 'png', default: 'robohash', pixelsize: 42, secure: false
126
+ puts
127
+ i += 1
128
+
129
+ # Downloads the previously saved gravaty configuration with the default
130
+ # name of the file according to saved URI
131
+ # (saves b58996c504c5638798eb6b511e6f49af.png file)
132
+ puts "------------------------------------------"
133
+ puts "Avatar: '#{i}'. Downloads the previously saved gravaty configuration with the default name of the file according to saved URI. (saves b58996c504c5638798eb6b511e6f49af.png file)"
134
+ puts "------------------------------------------"
135
+ puts 'irb(main):001:0> a_gravaty.download'
136
+ a_gravaty.download
137
+ puts
138
+ i += 1
139
+
140
+ # Prints and saves the basic URL for avatar retrieval, with specified
141
+ # image default
142
+ # (https://secure.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.jpg?d=identicon)
143
+ puts "------------------------------------------"
144
+ puts "Avatar: '#{i}'. Prints and saves the basic URL for avatar retrieval, with specified image default (https://secure.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af.jpg?d=identicon)."
145
+ puts "------------------------------------------"
146
+ puts "irb(main):001:0> a_gravaty.avatar default: 'identicon', type: 'jpg'"
147
+ puts a_gravaty.avatar! default: 'identicon', type: 'jpg'
148
+ puts
149
+ i += 1
150
+
151
+ # Downloads the previously saved gravaty configuration with the default
152
+ # name of the file according to saved URI
153
+ # (saves b58996c504c5638798eb6b511e6f49af.jpg file)
154
+ puts "------------------------------------------"
155
+ puts "Avatar: '#{i}'. Downloads the previously saved gravaty configuration with the default name of the file according to saved URI. (saves b58996c504c5638798eb6b511e6f49af.jpg file)"
156
+ puts "------------------------------------------"
157
+ puts 'irb(main):001:0> a_gravaty.download'
158
+ a_gravaty.download
159
+ puts