gravaty 8.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of gravaty might be problematic. Click here for more details.

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