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
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,169 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>gravaty.gemspec - gravaty 9.0.0</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/jquery.js"></script>
15
+ <script src="./js/darkfish.js"></script>
16
+
17
+ <link href="./css/fonts.css" rel="stylesheet">
18
+ <link href="./css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+
23
+ <body id="top" role="document" class="file">
24
+ <nav role="navigation">
25
+ <div id="project-navigation">
26
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
27
+ <h2>
28
+ <a href="./index.html" rel="home">Home</a>
29
+ </h2>
30
+
31
+ <div id="table-of-contents-navigation">
32
+ <a href="./table_of_contents.html#pages">Pages</a>
33
+ <a href="./table_of_contents.html#classes">Classes</a>
34
+ <a href="./table_of_contents.html#methods">Methods</a>
35
+ </div>
36
+ </div>
37
+
38
+ <div id="search-section" role="search" class="project-section initially-hidden">
39
+ <form action="#" method="get" accept-charset="utf-8">
40
+ <div id="search-field-wrapper">
41
+ <input id="search-field" role="combobox" aria-label="Search"
42
+ aria-autocomplete="list" aria-controls="search-results"
43
+ type="text" name="search" placeholder="Search" spellcheck="false"
44
+ title="Type to search, Up and Down to navigate, Enter to load">
45
+ </div>
46
+
47
+ <ul id="search-results" aria-label="Search Results"
48
+ aria-busy="false" aria-expanded="false"
49
+ aria-atomic="false" class="initially-hidden"></ul>
50
+ </form>
51
+ </div>
52
+
53
+ </div>
54
+
55
+
56
+
57
+ <div id="project-metadata">
58
+ <div id="fileindex-section" class="nav-section">
59
+ <h3>Pages</h3>
60
+
61
+ <ul class="link-list">
62
+
63
+ <li><a href="./CHANGELOG.html">CHANGELOG</a>
64
+
65
+ <li><a href="./COPYING_md.html">COPYING</a>
66
+
67
+ <li><a href="./Gemfile.html">Gemfile</a>
68
+
69
+ <li><a href="./ISSUES_md.html">ISSUES</a>
70
+
71
+ <li><a href="./README_md.html">README</a>
72
+
73
+ <li><a href="./Rakefile.html">Rakefile</a>
74
+
75
+ <li><a href="./acknowledgements_md.html">acknowledgements</a>
76
+
77
+ <li><a href="./authors_md.html">authors</a>
78
+
79
+ <li><a href="./copyright_md.html">copyright</a>
80
+
81
+ <li><a href="./examples/cacert_pem.html">cacert.pem</a>
82
+
83
+ <li><a href="./gravaty_gemspec.html">gravaty.gemspec</a>
84
+
85
+ </ul>
86
+ </div>
87
+
88
+ </div>
89
+ </nav>
90
+
91
+ <main role="main" aria-label="Page gravaty.gemspec">
92
+
93
+ <p># gravaty # Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 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>
94
+
95
+ <p>require_relative &#39;lib/gravaty/version&#39;</p>
96
+
97
+ <p>SUMMARY = &#39;This gem automagically prepares complete URIs for Gravatar,</p>
98
+
99
+ <pre>for both avatars and profiles, with all currently supported options,
100
+ included the XML-RPC API, as of 2014-04-30, starting from a single
101
+ email address!&#39;</pre>
102
+
103
+ <p>Gem::Specification.new do |a_gem|</p>
104
+
105
+ <pre class="ruby"> <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">name</span> = <span class="ruby-string">&#39;gravaty&#39;</span>
106
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">version</span> = <span class="ruby-constant">Gravaty</span><span class="ruby-operator">::</span><span class="ruby-constant">VERSION</span>
107
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">license</span> = <span class="ruby-string">&#39;GPL-3.0&#39;</span>
108
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">licenses</span> = <span class="ruby-node">%w(GPL-3.0 BSD-3-Clause)</span>
109
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">author</span> = <span class="ruby-string">&#39;Marco Bresciani&#39;</span>
110
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">authors</span> = [<span class="ruby-string">&#39;Marco Bresciani&#39;</span>, <span class="ruby-string">&#39;新部裕&#39;</span>, <span class="ruby-string">&#39;Peter R. Marreck&#39;</span>,
111
+ <span class="ruby-string">&#39;Jon Maken&#39;</span>, <span class="ruby-string">&#39;Łukasz Niemier&#39;</span>]
112
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">email</span> = <span class="ruby-string">&#39;marcobresciani_1974@libero.it&#39;</span>
113
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">homepage</span> = <span class="ruby-string">&#39;https://savannah.nongnu.org/projects/gravaty/&#39;</span>
114
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">summary</span> = <span class="ruby-constant">SUMMARY</span>
115
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">description</span> = <span class="ruby-node">&quot;#{SUMMARY} It&#39;s my first &#39;real&#39; Ruby gem, hoping
116
+ it will be useful for someone (let me know if you use it, please!).
117
+ GNU GPLv3 license; source code available through anonymous checkout:
118
+ hg clone http://hg.savannah.nongnu.org/hgweb/gravaty/ or write me and
119
+ I&#39;ll send it. You can even decide to contribute to this little free
120
+ software project by registering to Savannah and ask to be part of the
121
+ &#39;gravaty&#39; project! With contributions from: 新部裕, Peter R. Marreck,
122
+ Jon Maken, Łukasz Niemier.&quot;</span>
123
+
124
+ <span class="ruby-constant">COMMON_FILES</span> = <span class="ruby-node">%w(acknowledgements.md authors.md CHANGELOG COPYING.md
125
+ copyright.md Gemfile gravaty.gemspec gravaty.odp gravaty.pdf ISSUES.md
126
+ Rakefile README.md)</span>
127
+
128
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">files</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-string">&#39;{examples,html,lib,test} /*&#39;</span>) <span class="ruby-operator">+</span> <span class="ruby-constant">COMMON_FILES</span>
129
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">test_files</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-string">&#39;test/ test_*.rb&#39;</span>)
130
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">require_path</span> = <span class="ruby-string">&#39;lib&#39;</span>
131
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">require_paths</span> = <span class="ruby-node">%w(lib)</span>
132
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">extra_rdoc_files</span> = <span class="ruby-constant">COMMON_FILES</span>
133
+
134
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">required_ruby_version</span> = <span class="ruby-string">&#39;~&gt; 2.6&#39;</span>
135
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">rubygems_version</span> = <span class="ruby-string">&#39;~&gt; 3.0&#39;</span>
136
+
137
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">add_runtime_dependency</span> <span class="ruby-string">&#39;i18n&#39;</span>, <span class="ruby-string">&#39;~&gt;1.6&#39;</span>
138
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">add_runtime_dependency</span> <span class="ruby-string">&#39;json&#39;</span>, <span class="ruby-string">&#39;~&gt;2.2&#39;</span>
139
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">add_runtime_dependency</span> <span class="ruby-string">&#39;xmlrpc&#39;</span>, <span class="ruby-string">&#39;~&gt;0.3.0&#39;</span>
140
+
141
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">&#39;bundler&#39;</span>, <span class="ruby-string">&#39;~&gt;2.0&#39;</span>
142
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">&#39;minitest&#39;</span>, <span class="ruby-string">&#39;~&gt;5.11&#39;</span>
143
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">&#39;rake&#39;</span>, <span class="ruby-string">&#39;~&gt;12.3&#39;</span>
144
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">&#39;rdoc&#39;</span>, <span class="ruby-string">&#39;~&gt;6.1&#39;</span>
145
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">&#39;simplecov&#39;</span>, <span class="ruby-string">&#39;~&gt;0.16&#39;</span>
146
+
147
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">requirements</span> = <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">required_ruby_version</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">dependencies</span>.<span class="ruby-identifier">to_s</span>
148
+
149
+ <span class="ruby-keyword">begin</span>
150
+ <span class="ruby-identifier">require</span> <span class="ruby-string">&#39;changelog&#39;</span>
151
+ <span class="ruby-keyword">rescue</span> <span class="ruby-constant">LoadError</span>
152
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">post_install_message</span> = <span class="ruby-node">&quot;Thank you for using #{a_gem.name} version #{a_gem.version}.&quot;</span>
153
+ <span class="ruby-keyword">else</span>
154
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">post_install_message</span> = <span class="ruby-constant">CHANGELOG</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">version_changes</span>
155
+ <span class="ruby-keyword">end</span>
156
+ </pre>
157
+
158
+ <p>end</p>
159
+
160
+ </main>
161
+
162
+
163
+
164
+ <footer id="validator-badges" role="contentinfo">
165
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
166
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
167
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
168
+ </footer>
169
+
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/html/index.html ADDED
@@ -0,0 +1,308 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>gravaty 9.0.0</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/jquery.js"></script>
15
+ <script src="./js/darkfish.js"></script>
16
+
17
+ <link href="./css/fonts.css" rel="stylesheet">
18
+ <link href="./css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+
23
+ <body id="top" role="document" class="file">
24
+ <nav role="navigation">
25
+ <div id="project-navigation">
26
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
27
+ <h2>
28
+ <a href="./index.html" rel="home">Home</a>
29
+ </h2>
30
+
31
+ <div id="table-of-contents-navigation">
32
+ <a href="./table_of_contents.html#pages">Pages</a>
33
+ <a href="./table_of_contents.html#classes">Classes</a>
34
+ <a href="./table_of_contents.html#methods">Methods</a>
35
+ </div>
36
+ </div>
37
+
38
+
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+ <div id="project-metadata">
57
+ <div id="fileindex-section" class="nav-section">
58
+ <h3>Pages</h3>
59
+
60
+ <ul class="link-list">
61
+
62
+ <li><a href="./CHANGELOG.html">CHANGELOG</a>
63
+
64
+ <li><a href="./COPYING_md.html">COPYING</a>
65
+
66
+ <li><a href="./Gemfile.html">Gemfile</a>
67
+
68
+ <li><a href="./ISSUES_md.html">ISSUES</a>
69
+
70
+ <li><a href="./README_md.html">README</a>
71
+
72
+ <li><a href="./Rakefile.html">Rakefile</a>
73
+
74
+ <li><a href="./acknowledgements_md.html">acknowledgements</a>
75
+
76
+ <li><a href="./authors_md.html">authors</a>
77
+
78
+ <li><a href="./copyright_md.html">copyright</a>
79
+
80
+ <li><a href="./examples/cacert_pem.html">cacert.pem</a>
81
+
82
+ <li><a href="./gravaty_gemspec.html">gravaty.gemspec</a>
83
+
84
+ </ul>
85
+ </div>
86
+
87
+ <div id="classindex-section" class="nav-section">
88
+ <h3>Class and Module Index</h3>
89
+
90
+ <ul class="link-list">
91
+
92
+ <li><a href="./Gravaty.html">Gravaty</a>
93
+
94
+ <li><a href="./Gravaty/Gravaty.html">Gravaty::Gravaty</a>
95
+
96
+ <li><a href="./Gravaty/ParsableDuckType.html">Gravaty::ParsableDuckType</a>
97
+
98
+ <li><a href="./Gravaty/Parser.html">Gravaty::Parser</a>
99
+
100
+ <li><a href="./Gravaty/Parsers.html">Gravaty::Parsers</a>
101
+
102
+ <li><a href="./Gravaty/Parsers/Avatar.html">Gravaty::Parsers::Avatar</a>
103
+
104
+ <li><a href="./Gravaty/Parsers/Callback.html">Gravaty::Parsers::Callback</a>
105
+
106
+ <li><a href="./Gravaty/Parsers/Default.html">Gravaty::Parsers::Default</a>
107
+
108
+ <li><a href="./Gravaty/Parsers/Force.html">Gravaty::Parsers::Force</a>
109
+
110
+ <li><a href="./Gravaty/Parsers/Format.html">Gravaty::Parsers::Format</a>
111
+
112
+ <li><a href="./Gravaty/Parsers/Pixelsize.html">Gravaty::Parsers::Pixelsize</a>
113
+
114
+ <li><a href="./Gravaty/Parsers/Rating.html">Gravaty::Parsers::Rating</a>
115
+
116
+ <li><a href="./Gravaty/Parsers/Secure.html">Gravaty::Parsers::Secure</a>
117
+
118
+ <li><a href="./Gravaty/Parsers/Type.html">Gravaty::Parsers::Type</a>
119
+
120
+ <li><a href="./Gravaty/Utils.html">Gravaty::Utils</a>
121
+
122
+ <li><a href="./Gravaty/Utils/Downloader.html">Gravaty::Utils::Downloader</a>
123
+
124
+ <li><a href="./Gravaty/Utils/Downloader/Downloader.html">Gravaty::Utils::Downloader::Downloader</a>
125
+
126
+ <li><a href="./Gravaty/Utils/Raisers.html">Gravaty::Utils::Raisers</a>
127
+
128
+ <li><a href="./Gravaty/Utils/Rfc5322.html">Gravaty::Utils::Rfc5322</a>
129
+
130
+ <li><a href="./Gravaty/Utils/RpcConnector.html">Gravaty::Utils::RpcConnector</a>
131
+
132
+ <li><a href="./Gravaty/Utils/RpcConnector/RpcConnector.html">Gravaty::Utils::RpcConnector::RpcConnector</a>
133
+
134
+ <li><a href="./Object.html">Object</a>
135
+
136
+ </ul>
137
+ </div>
138
+
139
+ </div>
140
+ </nav>
141
+
142
+ <main role="main">
143
+
144
+ <!--
145
+ gravaty
146
+
147
+ Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
148
+
149
+ This file is part of gravaty.
150
+
151
+ gravaty is free software: you can redistribute it and/or modify it under
152
+ the terms of the GNU General Public License as published by the Free
153
+ Software Foundation, either version 3 of the License, or (at your
154
+ option) any later version.
155
+
156
+ gravaty is distributed in the hope that it will be useful, but WITHOUT
157
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
158
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
159
+ more details.
160
+
161
+ You should have received a copy of the GNU General Public License along
162
+ with gravaty. If not, see <http://www.gnu.org/licenses/>.
163
+ -->
164
+ <h1 id="label-Gravaty"><a href="Gravaty.html"><code>Gravaty</code></a><span><a href="#label-Gravaty">&para;</a> <a href="#top">&uarr;</a></span></h1>
165
+
166
+ <p><img src="https://img.shields.io/gem/v/gravaty.svg?style=plastic"> <img src="https://img.shields.io/gem/dt/gravaty.svg?style=plastic"> <img src="https://img.shields.io/gem/dtv/gravaty.svg?style=plastic"> <img src="https://img.shields.io/gem/rt/gravaty.svg?style=plastic"> <img src="https://img.shields.io/gem/rd/gravaty.svg?style=plastic"> <img src="https://img.shields.io/librariesio/dependent-repos/rubygems/gravaty.svg?style=plastic"></p>
167
+
168
+ <p>Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani</p>
169
+
170
+ <p>This file is part of gravaty.</p>
171
+
172
+ <p>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.</p>
173
+
174
+ <p>gravaty is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
175
+
176
+ <p>You should have received a copy of the GNU General Public License along with gravaty. If not, see <a href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
177
+
178
+ <h2 id="label-Description">Description<span><a href="#label-Description">&para;</a> <a href="#top">&uarr;</a></span></h2>
179
+
180
+ <p>This gem automagically prepares complete URIs for Gravatar, for both avatars and profiles, with all currently supported options, included the XML-RPC API, as of 2019-04-23, starting from a single email address!</p>
181
+
182
+ <p>It&#39;s my first &#39;real&#39; Ruby gem, hoping it will be useful for someone (let me know if you use it, please!).</p>
183
+
184
+ <p>GNU GPLv3 license; source code available through anonymous checkout: <code>hg clone http://hg.savannah.nongnu.org/hgweb/gravaty/</code> or write me and I&#39;ll send it.</p>
185
+
186
+ <p>You can even decide to contribute to this little free software project by registering to Savannah and ask to be part of the &#39;gravaty&#39; project! With contributions from: 新部裕, Peter R. Marreck, Jon Maken, Łukasz Niemier.</p>
187
+
188
+ <h2 id="label-Documentation">Documentation<span><a href="#label-Documentation">&para;</a> <a href="#top">&uarr;</a></span></h2>
189
+
190
+ <p><a href="Gravaty.html"><code>Gravaty</code></a> tries to follow semantic versioning (see <a href="http://semver.org">semver.org</a>/). There may be backward incompatible changes each time minor version number changes, but that any tiny version number change should be bug fixes and internal changes only. Be sure to read the <a href="CHANGELOG.html">CHANGELOG</a> each time we cut a new release and lock your gems accordingly.</p>
191
+
192
+ <p>RDoc documentation available in the html folder.</p>
193
+
194
+ <h3 id="label-Installing+Gravaty">Installing <a href="Gravaty.html"><code>Gravaty</code></a><span><a href="#label-Installing+Gravaty">&para;</a> <a href="#top">&uarr;</a></span></h3>
195
+
196
+ <p>RubyGems is the preferred easy install method for <a href="Gravaty.html"><code>Gravaty</code></a>. <a href="Gravaty.html"><code>Gravaty</code></a> is intended to be installed via the <a href="http://rubyforge.org/projects/rubygems/">RubyGems</a> system. To get the latest version, simply enter the following into your command prompt: <code>gem install gravaty</code>.</p>
197
+
198
+ <p><em>NOTE</em>: for both examples and tests, you may need to set a SSL certificate file. In Microsoft Windows environment, the easiest way is as described by the downloader gist. You have to download the certificates from <a href="http://curl.haxx.se/ca/cacert.pem">curl.haxx.se/ca/cacert.pem</a> (for example) and, for example, put the cacert.pem file in the gravaty home directory. Then <code>set SSL_CERT_FILE=</code>{FULL_PATH}<code>\cacert.pem</code> and finally try to run <code>ruby avatar.rb</code> or <code>ruby profiles.rb</code> from the <code>examples</code> directory; both examples should download two files each! The same environment variable would be needed to run the tests against the XML-RPC API.</p>
199
+
200
+ <h3 id="label-Supported+Ruby+Versions+and+Implementations">Supported Ruby Versions and Implementations<span><a href="#label-Supported+Ruby+Versions+and+Implementations">&para;</a> <a href="#top">&uarr;</a></span></h3>
201
+
202
+ <p>Because <a href="Gravaty.html"><code>Gravaty</code></a> is pure Ruby, it should run pretty much anywhere, including Rubinius, JRuby, MacRuby, etc. Officially the support is for &gt;= 2.6 YARV/KRI.</p>
203
+
204
+ <h3 id="label-Support">Support<span><a href="#label-Support">&para;</a> <a href="#top">&uarr;</a></span></h3>
205
+
206
+ <p>The easiest way to get help with <a href="Gravaty.html"><code>Gravaty</code></a> is to post a message to the mailing list: <code>http://lists.nongnu.org/mailman/listinfo/gravaty-users</code>.</p>
207
+
208
+ <p>Feel free to post any question there, developers are responsive and will be happy to help you figure out how to use <a href="Gravaty.html"><code>Gravaty</code></a>, or help you determine whether it&#39;s the right tool for the task you are working on.</p>
209
+
210
+ <p>Please make your posts to the list as specific as possible, including code samples and output where relevant. Do not post any information that should not be shared publicly, and be sure to reduce your example code as much as possible so that those who are responding to your question can more easily see what the issue might be.</p>
211
+
212
+ <h3 id="label-Contributing">Contributing<span><a href="#label-Contributing">&para;</a> <a href="#top">&uarr;</a></span></h3>
213
+
214
+ <p>If you&#39;ve found a bug, want to submit a patch, or have a feature request, please enter a ticket into our bug tracker: <code>https://savannah.nongnu.org/bugs/?func=additem&group=gravaty</code>.</p>
215
+
216
+ <p>We strongly encourage bug reports to come with failing tests or at least a reduced example that demonstrates the problem.</p>
217
+
218
+ <p>Similarly, patches should include tests, API documentation, and an update to the manual where relevant. Feel free to clone early though and participate in the project, if you just want some feedback or a code review before preparing your code to be merged.</p>
219
+
220
+ <p>If you are unsure about whether or not you&#39;ve found a bug, or want to check to see whether we&#39;d be interested in the feature you want to add before you start working on it, feel free to post to our mailing list.</p>
221
+
222
+ <h3 id="label-License">License<span><a href="#label-License">&para;</a> <a href="#top">&uarr;</a></span></h3>
223
+
224
+ <p><a href="Gravaty.html"><code>Gravaty</code></a> is released under GNU GPL v3 license: if you wish to contribute to <a href="Gravaty.html"><code>Gravaty</code></a>, you will retain your own <a href="copyright_md.html">copyright</a> but must agree to license your code under the same terms as the project itself (or any compatible license according to <a href="http://www.gnu.org/licenses/license-list.en.html#GPLCompatibleLicenses">GPL-Compatible Free Software Licenses</a>).</p>
225
+
226
+ <h3 id="label-Links">Links<span><a href="#label-Links">&para;</a> <a href="#top">&uarr;</a></span></h3>
227
+
228
+ <h4 id="label-Savannah">Savannah<span><a href="#label-Savannah">&para;</a> <a href="#top">&uarr;</a></span></h4>
229
+ <ul><li>
230
+ <p>Project page: <a href="https://savannah.nongnu.org/projects/gravaty">savannah.nongnu.org/projects/gravaty</a>/</p>
231
+ </li><li>
232
+ <p>Source code (Mercurial) repository: <a href="http://hg.savannah.gnu.org/hgweb/gravaty">hg.savannah.gnu.org/hgweb/gravaty</a>/</p>
233
+ </li><li>
234
+ <p>Known Bugs: <a href="https://savannah.nongnu.org/bugs/?group=gravaty">savannah.nongnu.org/bugs/?group=gravaty</a></p>
235
+ </li><li>
236
+ <p>Users Mailing List: <a href="https://savannah.nongnu.org/mail/?group=gravaty">savannah.nongnu.org/mail/?group=gravaty</a></p>
237
+ </li><li>
238
+ <p>News: <a href="https://savannah.nongnu.org/news/?group=gravaty">savannah.nongnu.org/news/?group=gravaty</a></p>
239
+ </li></ul>
240
+
241
+ <h4 id="label-RubyGems">RubyGems<span><a href="#label-RubyGems">&para;</a> <a href="#top">&uarr;</a></span></h4>
242
+ <ul><li>
243
+ <p>Gem page: <a href="https://rubygems.org/gems/gravaty">rubygems.org/gems/gravaty</a></p>
244
+ </li><li>
245
+ <p>Online RDoc: <a href="http://rubydoc.info/gems/gravaty">rubydoc.info/gems/gravaty</a>/</p>
246
+ </li><li>
247
+ <p>Gem updates Atom Feed: <a href="https://rubygems.org/gems/gravaty/versions.atom">rubygems.org/gems/gravaty/versions.atom</a></p>
248
+ </li></ul>
249
+
250
+ <h4 id="label-Other+links">Other links<span><a href="#label-Other+links">&para;</a> <a href="#top">&uarr;</a></span></h4>
251
+ <ul><li>
252
+ <p>Gravatar: <a href="https://www.gravatar.com">www.gravatar.com</a>.</p>
253
+ </li><li>
254
+ <p>FSIJ (フリーソフトウェアイニシアティブ, Free Software Initiative of Japan): <a href="http://www.fsij.org">www.fsij.org</a>.</p>
255
+ </li><li>
256
+ <p>“RFC 5322 Email Validation Regex in Ruby Regular Expressions” gist by Peter R. Marreck: <a href="https://gist.github.com/pmarreck/4626713">gist.github.com/pmarreck/4626713</a>.</p>
257
+ </li><li>
258
+ <p>“An HTTP/HTTPS/FTP file downloader library/CLI based upon MiniPortile&#39;s HTTP implementation.” gist by Jon Maken: <a href="https://gist.github.com/jonforums/2202048">gist.github.com/jonforums/2202048</a>.</p>
259
+ </li></ul>
260
+
261
+ <h3 id="label-Usage+Examples">Usage Examples<span><a href="#label-Usage+Examples">&para;</a> <a href="#top">&uarr;</a></span></h3>
262
+
263
+ <p>See <code>examples</code> folder. To run the examples just type go into the <code>examples</code> directory and run <code>ruby</code>{EXAMPLE_NAME}<code>.rb</code>. Running the examples you&#39;ll see both the example description and correct code usage to perform such action. Here below are listed the currently available examples: * The <code>basics.rb</code> example (run <code>ruby basics.rb</code>) shows how to initialize and use a <a href="Gravaty.html"><code>Gravaty</code></a> object through the <code>gravatize</code> factory method; * The <code>avatar.rb</code> example (run <code>ruby avatar.rb</code>) shows how to ask for an avatar image through Gravatar (free) service, with all available options and configurations. It will also show how to download such images; * The <code>profile.rb</code> example (run <code>ruby profile.rb</code>) shows how to ask for profile data through Gravatar (free) service, with all available options and configurations. It will also show how to download such data. * The <code>xmlrpc.rb</code> example (run <code>ruby xmlrpc.rb</code>) shows how to use the XML-RPC API through Gravatar (free) service, with all available options and configurations. This need a valid username and password to type x work properly.</p>
264
+
265
+ <h2 id="label-Gravatar+Terms+of+Service">Gravatar Terms of Service<span><a href="#label-Gravatar+Terms+of+Service">&para;</a> <a href="#top">&uarr;</a></span></h2>
266
+
267
+ <p><em>Here follows the unmodified 2019-02-21 11.07 CET version of Gravatar site terms of service, titled “Gravatar Terms of Use”. For the most updated version, please refer to <a href="https://secure.gravatar.com/site/terms-of-service">secure.gravatar.com/site/terms-of-service</a> in order to know how to properly use computer gravatars.</em></p>
268
+
269
+ <p>Gravatar Terms of Use</p>
270
+
271
+ <p>PLEASE READ THESE GRAVATAR TERMS OF USE (“GRAVATAR TERMS”) CAREFULLY BEFORE ACCESSING OR USING ANY PART OF THE SERVICES OR WEBSITE. BY USING THE SERVICES OR WEBSITE IN ANY MANNER, YOU AGREE THAT YOU HAVE READ AND AGREE TO BECOME BOUND BY THE GRAVATAR TERMS. IF THE GRAVATAR TERMS ARE CONSIDERED AN OFFER, ACCEPTANCE IS EXPRESSLY LIMITED TO SUCH TERMS. IF YOU DO NOT UNCONDITIONALLY AGREE TO ALL THE TERMS AND CONDITIONS OF THE GRAVATAR TERMS, YOU HAVE NO RIGHT TO USE ANY PORTION OF THE SERVICES OR WEBSITE.</p>
272
+
273
+ <p>The Gravatar Terms govern the terms and conditions under which you may use the website located at <a href="www.gravatar.com">www.gravatar.com</a> and related services by Automattic, including without limitation, the user accounts, profiles, avatars, technology, and other content and materials offered on or through that website (collectively, “Services”, and each of which shall be deemed a “Website” for purposes of the Terms of Service (defined below)). The Gravatar Terms supplement the Terms of Service located at <a href="http://wordpress.com/tos">wordpress.com/tos</a>/ (the “Terms of Service”), including without limitation, the Responsibilities of Website Visitors, all warranty disclaimers, limitations of liability, and dispute resolution provisions therein, which shall apply to the subject matter of these Gravatar Terms, and which are incorporated herein by this reference. If there is any conflict between the Gravatar Terms and the Terms of Service, the Gravatar Terms will govern. All capitalized terms that are not defined herein have the meaning specified in the Terms of Service.&#39;);</p>
274
+
275
+ <p>Automattic may update the Gravatar Terms from time to time. Your continued use of the Services following notification of such updates constitutes your acceptance of those changes.</p>
276
+ <ol><li>
277
+ <p>User Submissions. The Services may provide you with the ability to create, upload, distribute or post (“Submit(ting)”) data, photographs, avatars, software, graphics, profile and other information to the Services (collectively, the “User Submissions”). By Submitting User Submissions, you acknowledge that you are publishing that User Submission, and that you may be identified publicly by your avatar and other User Submissions (e.g., in connection with your blogs, comments and/or email address) by Automattic, third party Gravatar-enabled websites (as that term in defined below), and others. More specifically, you hereby do and shall grant to Automattic a worldwide, perpetual, irrevocable, royalty-free and fully-paid, transferable (including rights to sublicense) right to perform the Services (e.g., to use, modify, reproduce, distribute, prepare derivative works of, display, perform, and otherwise fully exercise and exploit all intellectual property, publicity, and moral rights with respect to any User Submissions, and to allow others to do so).</p>
278
+ </li></ol>
279
+
280
+ <p>By Submitting, you agree to be solely responsible for the User Submissions and release Automattic from any liability related to your use of the Services. You warrant, represent and agree that you will not Submit any User Submissions or otherwise use the Services in a manner that (i) infringes the intellectual property or proprietary rights, or rights of publicity or privacy, of any third party; (ii) violates any law, statute, ordinance or regulation; or (iii) is harmful, threatening, abusive, harassing, tortuous, defamatory, vulgar, obscene, libelous, or otherwise objectionable. You understand that Automattic shall not be responsible or liable for controlling or editing any User Submission, for any errors or omissions in any User Submission, for any damage or loss caused or alleged to be caused by or in connection with the use of or reliance on any User Submission; nor can Automattic ensure prompt removal of inappropriate or unlawful content or guarantee the identity of any other users or websites with whom you may interact in the course of using the Services.</p>
281
+ <ol><li>
282
+ <p>Use of the Services by Third Party Websites. Third party websites may enable the use of the Services on their respective websites as expressly authorized by Automattic (e.g., API calls into Gravatar: <a href="http://en.gravatar.com/site/implement">en.gravatar.com/site/implement</a>); provided that they (i) do not copy, store or modify User Submissions; (ii) do not distribute, display, perform, use or otherwise exercise or exploit any User Submission or other user information for any purpose other than as necessary to perform the Services for the applicable user; (iii) have a privacy policy in effect and posted on such website that complies with all applicable laws and regulations and that notifies such user that it will only use personally identifiable information as set forth in (ii) above; and (iv) agree to be bound by and comply with all the terms, conditions, and limitations set forth in the Terms of Service (“Gravatar-enabled website”).</p>
283
+ </li></ol>
284
+ <hr>
285
+
286
+ <p>gravaty</p>
287
+
288
+ <p>Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani</p>
289
+
290
+ <p>This file is part of gravaty.</p>
291
+
292
+ <p>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.</p>
293
+
294
+ <p>gravaty is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
295
+
296
+ <p>You should have received a copy of the GNU General Public License along with gravaty. If not, see <a href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
297
+
298
+
299
+ </main>
300
+
301
+
302
+
303
+ <footer id="validator-badges" role="contentinfo">
304
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
305
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
306
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
307
+ </footer>
308
+