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
Binary file
@@ -0,0 +1,162 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>gravaty.gemspec - gravaty 8.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
+ <body id="top" role="document" class="file">
23
+ <nav role="navigation">
24
+ <div id="project-navigation">
25
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
+ <h2>
27
+ <a href="./index.html" rel="home">Home</a>
28
+ </h2>
29
+
30
+ <div id="table-of-contents-navigation">
31
+ <a href="./table_of_contents.html#pages">Pages</a>
32
+ <a href="./table_of_contents.html#classes">Classes</a>
33
+ <a href="./table_of_contents.html#methods">Methods</a>
34
+ </div>
35
+ </div>
36
+
37
+ <div id="search-section" role="search" class="project-section initially-hidden">
38
+ <form action="#" method="get" accept-charset="utf-8">
39
+ <div id="search-field-wrapper">
40
+ <input id="search-field" role="combobox" aria-label="Search"
41
+ aria-autocomplete="list" aria-controls="search-results"
42
+ type="text" name="search" placeholder="Search" spellcheck="false"
43
+ title="Type to search, Up and Down to navigate, Enter to load">
44
+ </div>
45
+
46
+ <ul id="search-results" aria-label="Search Results"
47
+ aria-busy="false" aria-expanded="false"
48
+ aria-atomic="false" class="initially-hidden"></ul>
49
+ </form>
50
+ </div>
51
+
52
+ </div>
53
+
54
+
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="./gravaty_gemspec.html">gravaty.gemspec</a>
81
+
82
+ </ul>
83
+ </div>
84
+
85
+ </div>
86
+ </nav>
87
+
88
+ <main role="main" aria-label="Page gravaty.gemspec">
89
+
90
+ <p># gravaty # Copyright © 2013, 2014, 2015, 2016, 2017, 2018 Marco Bresciani
91
+ # # This file is part of gravaty. # # gravaty is free software: you can
92
+ redistribute it and/or modify it under the terms of the GNU General Public
93
+ License # as published by the Free Software Foundation, either version 3 of
94
+ the License, or (at your option) any later version. # # gravaty is
95
+ distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
96
+ without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A
97
+ PARTICULAR PURPOSE. See the GNU General Public License for more details. #
98
+ # You should have received a copy of the GNU General Public License along
99
+ with gravaty. If not, see # &lt;<a
100
+ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/&gt;.</p>
101
+
102
+ <p>require_relative &#39;lib/gravaty/version&#39;</p>
103
+
104
+ <p>SUMMARY = &#39;This gem automagically prepares complete URIs for Gravatar,
105
+ for both avatars and profiles, with all currently supported options,
106
+ included the XML-RPC API, as of 2014-04-30, starting from a single email
107
+ address!&#39;</p>
108
+
109
+ <p>Gem::Specification.new do |a_gem|</p>
110
+
111
+ <pre class="ruby"><span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">name</span> = <span class="ruby-string">&#39;gravaty&#39;</span>
112
+ <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>
113
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">license</span> = <span class="ruby-string">&#39;GPL-3.0&#39;</span>
114
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">licenses</span> = [<span class="ruby-string">&#39;GPL-3.0&#39;</span>, <span class="ruby-string">&#39;BSD-3-Clause&#39;</span>]
115
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">author</span> = <span class="ruby-string">&#39;Marco Bresciani&#39;</span>
116
+ <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>, <span class="ruby-string">&#39;Jon Maken&#39;</span>, <span class="ruby-string">&#39;Łukasz Niemier&#39;</span>]
117
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">email</span> = <span class="ruby-string">&#39;m.bresciani@email.it&#39;</span>
118
+ <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>
119
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">summary</span> = <span class="ruby-constant">SUMMARY</span>
120
+ <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 it will be useful for someone (let me know if you use it, please!). GNU GPLv3 license; source code available through anonymous checkout: hg clone http://hg.savannah.nongnu.org/hgweb/gravaty/ or write me and I&#39;ll send it. You can even decide to contribute to this little free software project by registering to Savannah and ask to be part of the &#39;gravaty&#39; project! With contributions from: 新部裕, Peter R. Marreck, Jon Maken, Łukasz Niemier.&quot;</span>
121
+
122
+ <span class="ruby-constant">COMMON_FILES</span> = <span class="ruby-node">%w(acknowledgements.md authors.md CHANGELOG COPYING.md copyright.md Gemfile gravaty.gemspec gravaty.odp gravaty.pdf ISSUES.md Rakefile README.md)</span>
123
+
124
+ <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>
125
+ <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>)
126
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">require_path</span> = <span class="ruby-string">&#39;lib&#39;</span>
127
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">require_paths</span> = <span class="ruby-node">%w(lib)</span>
128
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">extra_rdoc_files</span> = <span class="ruby-constant">COMMON_FILES</span>
129
+
130
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">required_ruby_version</span> = <span class="ruby-string">&#39;~&gt; 2.5&#39;</span>
131
+ <span class="ruby-identifier">a_gem</span>.<span class="ruby-identifier">rubygems_version</span> = <span class="ruby-string">&#39;~&gt; 2.7&#39;</span>
132
+
133
+ <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;0.9&#39;</span>
134
+ <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&#39;</span>
135
+
136
+ <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;1.16&#39;</span>
137
+ <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.0&#39;</span>
138
+ <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.0&#39;</span>
139
+ <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>
140
+
141
+ <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>
142
+
143
+ <span class="ruby-keyword">begin</span>
144
+ <span class="ruby-identifier">require</span> <span class="ruby-string">&#39;changelog&#39;</span>
145
+ <span class="ruby-keyword">rescue</span> <span class="ruby-constant">LoadError</span>
146
+ <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>
147
+ <span class="ruby-keyword">else</span>
148
+ <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>
149
+ <span class="ruby-keyword">end</span>
150
+ </pre>
151
+
152
+ <p>end</p>
153
+ </main>
154
+
155
+
156
+
157
+ <footer id="validator-badges" role="contentinfo">
158
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
159
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.4.
160
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
161
+ </footer>
162
+
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
@@ -0,0 +1,467 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>gravaty 8.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
+ <body id="top" role="document" class="file">
23
+ <nav role="navigation">
24
+ <div id="project-navigation">
25
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
+ <h2>
27
+ <a href="./index.html" rel="home">Home</a>
28
+ </h2>
29
+
30
+ <div id="table-of-contents-navigation">
31
+ <a href="./table_of_contents.html#pages">Pages</a>
32
+ <a href="./table_of_contents.html#classes">Classes</a>
33
+ <a href="./table_of_contents.html#methods">Methods</a>
34
+ </div>
35
+ </div>
36
+
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
+ <div id="project-metadata">
56
+ <div id="fileindex-section" class="nav-section">
57
+ <h3>Pages</h3>
58
+
59
+ <ul class="link-list">
60
+
61
+ <li><a href="./CHANGELOG.html">CHANGELOG</a>
62
+
63
+ <li><a href="./COPYING_md.html">COPYING</a>
64
+
65
+ <li><a href="./Gemfile.html">Gemfile</a>
66
+
67
+ <li><a href="./ISSUES_md.html">ISSUES</a>
68
+
69
+ <li><a href="./README_md.html">README</a>
70
+
71
+ <li><a href="./Rakefile.html">Rakefile</a>
72
+
73
+ <li><a href="./acknowledgements_md.html">acknowledgements</a>
74
+
75
+ <li><a href="./authors_md.html">authors</a>
76
+
77
+ <li><a href="./copyright_md.html">copyright</a>
78
+
79
+ <li><a href="./gravaty_gemspec.html">gravaty.gemspec</a>
80
+
81
+ </ul>
82
+ </div>
83
+
84
+ <div id="classindex-section" class="nav-section">
85
+ <h3>Class and Module Index</h3>
86
+
87
+ <ul class="link-list">
88
+
89
+ <li><a href="./Gravaty.html">Gravaty</a>
90
+
91
+ <li><a href="./Gravaty/Gravaty.html">Gravaty::Gravaty</a>
92
+
93
+ <li><a href="./Gravaty/ParsableDuckType.html">Gravaty::ParsableDuckType</a>
94
+
95
+ <li><a href="./Gravaty/Parser.html">Gravaty::Parser</a>
96
+
97
+ <li><a href="./Gravaty/Parsers.html">Gravaty::Parsers</a>
98
+
99
+ <li><a href="./Gravaty/Parsers/Avatar.html">Gravaty::Parsers::Avatar</a>
100
+
101
+ <li><a href="./Gravaty/Parsers/Callback.html">Gravaty::Parsers::Callback</a>
102
+
103
+ <li><a href="./Gravaty/Parsers/Default.html">Gravaty::Parsers::Default</a>
104
+
105
+ <li><a href="./Gravaty/Parsers/Force.html">Gravaty::Parsers::Force</a>
106
+
107
+ <li><a href="./Gravaty/Parsers/Format.html">Gravaty::Parsers::Format</a>
108
+
109
+ <li><a href="./Gravaty/Parsers/Pixelsize.html">Gravaty::Parsers::Pixelsize</a>
110
+
111
+ <li><a href="./Gravaty/Parsers/Rating.html">Gravaty::Parsers::Rating</a>
112
+
113
+ <li><a href="./Gravaty/Parsers/Secure.html">Gravaty::Parsers::Secure</a>
114
+
115
+ <li><a href="./Gravaty/Parsers/Type.html">Gravaty::Parsers::Type</a>
116
+
117
+ <li><a href="./Gravaty/Utils.html">Gravaty::Utils</a>
118
+
119
+ <li><a href="./Gravaty/Utils/Downloader.html">Gravaty::Utils::Downloader</a>
120
+
121
+ <li><a href="./Gravaty/Utils/Downloader/Downloader.html">Gravaty::Utils::Downloader::Downloader</a>
122
+
123
+ <li><a href="./Gravaty/Utils/Raisers.html">Gravaty::Utils::Raisers</a>
124
+
125
+ <li><a href="./Gravaty/Utils/Rfc5322.html">Gravaty::Utils::Rfc5322</a>
126
+
127
+ <li><a href="./Gravaty/Utils/RpcConnector.html">Gravaty::Utils::RpcConnector</a>
128
+
129
+ <li><a href="./Gravaty/Utils/RpcConnector/RpcConnector.html">Gravaty::Utils::RpcConnector::RpcConnector</a>
130
+
131
+ <li><a href="./Object.html">Object</a>
132
+
133
+ </ul>
134
+ </div>
135
+
136
+ </div>
137
+ </nav>
138
+
139
+ <main role="main">
140
+
141
+ <!--
142
+ gravaty
143
+
144
+ Copyright © 2013, 2014, 2015, 2016 Marco Bresciani
145
+
146
+ This file is part of gravaty.
147
+
148
+ 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.
149
+
150
+ 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.
151
+
152
+ You should have received a copy of the GNU General Public License along with gravaty. If not, see <http://www.gnu.org/licenses/>.
153
+ -->
154
+ <h1 id="label-Gravaty"><a href="Gravaty.html">Gravaty</a><span><a href="#label-Gravaty">&para;</a> <a href="#top">&uarr;</a></span></h1>
155
+
156
+ <p><a href="Gravaty.html">Gravaty</a> <a
157
+ href="http://badge.fury.io/rb/gravaty"><img
158
+ src="https://badge.fury.io/rb/gravaty.svg"></a></p>
159
+
160
+ <p>Copyright © 2013, 2014, 2015, 2016 Marco Bresciani</p>
161
+
162
+ <p>This file is part of gravaty.</p>
163
+
164
+ <p>gravaty is free software: you can redistribute it and/or modify it under
165
+ the terms of the GNU General Public License as published by the Free
166
+ Software Foundation, either version 3 of the License, or (at your option)
167
+ any later version.</p>
168
+
169
+ <p>gravaty is distributed in the hope that it will be useful, but WITHOUT ANY
170
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
171
+ FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
172
+ details.</p>
173
+
174
+ <p>You should have received a copy of the GNU General Public License along
175
+ with gravaty. If not, see <a
176
+ 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
181
+ avatars and profiles, with all currently supported options, included the
182
+ XML-RPC API, as of 2014-04-30, starting from a single email address!</p>
183
+
184
+ <p>It&#39;s my first &#39;real&#39; Ruby gem, hoping it will be useful for
185
+ someone (let me know if you use it, please!).</p>
186
+
187
+ <p>GNU GPLv3 license; source code available through anonymous checkout:
188
+ <code>hg clone http://hg.savannah.nongnu.org/hgweb/gravaty/</code> or write
189
+ me and I&#39;ll send it.</p>
190
+
191
+ <p>You can even decide to contribute to this little free software project by
192
+ registering to Savannah and ask to be part of the &#39;gravaty&#39;
193
+ project! With contributions from: 新部裕, Peter R. Marreck, Jon Maken, Łukasz
194
+ Niemier.</p>
195
+
196
+ <h2 id="label-Documentation">Documentation<span><a href="#label-Documentation">&para;</a> <a href="#top">&uarr;</a></span></h2>
197
+
198
+ <p><a href="Gravaty.html">Gravaty</a> tries to follow semantic versioning (see
199
+ <a href="http://semver.org">semver.org</a>/). There may be backward
200
+ incompatible changes each time minor version number changes, but that any
201
+ tiny version number change should be bug fixes and internal changes only.
202
+ Be sure to read the <a href="CHANGELOG.html">CHANGELOG</a> each time we cut
203
+ a new release and lock your gems accordingly.</p>
204
+
205
+ <p>RDoc documentation available in the html folder.</p>
206
+
207
+ <h3 id="label-Installing+Gravaty">Installing <a href="Gravaty.html">Gravaty</a><span><a href="#label-Installing+Gravaty">&para;</a> <a href="#top">&uarr;</a></span></h3>
208
+
209
+ <p>RubyGems is the preferred easy install method for <a
210
+ href="Gravaty.html">Gravaty</a>. <a href="Gravaty.html">Gravaty</a> is
211
+ intended to be installed via the <a
212
+ href="http://rubyforge.org/projects/rubygems/">RubyGems</a> system. To get
213
+ the latest version, simply enter the following into your command prompt:
214
+ <code>gem install gravaty</code>.</p>
215
+
216
+ <p><em>NOTE</em>: for both examples and tests, you may need to set a SSL
217
+ certificate file. In Microsoft Windows environment, the easiest way is as
218
+ described by the downloader gist. You have to download the certificates
219
+ from <a
220
+ href="http://www.cacert.org/certs/root.crt">www.cacert.org/certs/root.crt</a>
221
+ (for example) and, for example, put the root.crt file in the gravaty home
222
+ directory. Then <code>set SSL_CERT_FILE=root.crt</code> and finally try to
223
+ run <code>ruby avatar.rb</code> or <code>ruby profiles.rb</code> from the
224
+ <code>examples</code> directory; both examples should download two files
225
+ each! The same environment variable would be needed to run the tests
226
+ against the XML-RPC API.</p>
227
+
228
+ <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>
229
+
230
+ <p>Because <a href="Gravaty.html">Gravaty</a> is pure Ruby, it should run
231
+ pretty much anywhere, including Rubinius, JRuby, MacRuby, etc. Officially
232
+ the support is for 2.x MRI.</p>
233
+
234
+ <h3 id="label-Support">Support<span><a href="#label-Support">&para;</a> <a href="#top">&uarr;</a></span></h3>
235
+
236
+ <p>The easiest way to get help with <a href="Gravaty.html">Gravaty</a> is to
237
+ post a message to the mailing list:
238
+ <code>http://lists.nongnu.org/mailman/listinfo/gravaty-users</code></p>
239
+
240
+ <p>Feel free to post any question there, developers are responsive and will be
241
+ happy to help you figure out how to use <a href="Gravaty.html">Gravaty</a>,
242
+ or help you determine whether it&#39;s the right tool for the task you are
243
+ working on.</p>
244
+
245
+ <p>Please make your posts to the list as specific as possible, including code
246
+ samples and output where relevant. Do not post any information that should
247
+ not be shared publicly, and be sure to reduce your example code as much as
248
+ possible so that those who are responding to your question can more easily
249
+ see what the issue might be.</p>
250
+
251
+ <h3 id="label-Contributing">Contributing<span><a href="#label-Contributing">&para;</a> <a href="#top">&uarr;</a></span></h3>
252
+
253
+ <p>If you&#39;ve found a bug, want to submit a patch, or have a feature
254
+ request, please enter a ticket into our bug tracker:
255
+ <code>https://savannah.nongnu.org/bugs/?func=additem&group=gravaty</code></p>
256
+
257
+ <p>We strongly encourage bug reports to come with failing tests or at least a
258
+ reduced example that demonstrates the problem.</p>
259
+
260
+ <p>Similarly, patches should include tests, API documentation, and an update
261
+ to the manual where relevant. Feel free to clone early though and
262
+ participate in the project, if you just want some feedback or a code review
263
+ before preparing your code to be merged.</p>
264
+
265
+ <p>If you are unsure about whether or not you&#39;ve found a bug, or want to
266
+ check to see whether we&#39;d be interested in the feature you want to add
267
+ before you start working on it, feel free to post to our mailing list.</p>
268
+
269
+ <h3 id="label-License">License<span><a href="#label-License">&para;</a> <a href="#top">&uarr;</a></span></h3>
270
+
271
+ <p><a href="Gravaty.html">Gravaty</a> is released under GNU GPL v3 license: if
272
+ you wish to contribute to <a href="Gravaty.html">Gravaty</a>, you will
273
+ retain your own <a href="copyright_md.html">copyright</a> but must agree to
274
+ license your code under the same terms as the project itself (or any
275
+ compatible license according to <a
276
+ href="http://www.gnu.org/licenses/license-list.en.html#GPLCompatibleLicenses">www.gnu.org/licenses/license-list.en.html#GPLCompatibleLicenses</a>).</p>
277
+
278
+ <h3 id="label-Links">Links<span><a href="#label-Links">&para;</a> <a href="#top">&uarr;</a></span></h3>
279
+ <p>
280
+ <a href="http://www.jetbrains.com/ruby/features?utm_source=RubyMineUser&utm_medium=Banner&utm_campaign=RubyMine" style="position: relative;display:block; width:120px; height:30px; border:0; margin:0;padding:0;text-decoration:none;text-indent:0;"><span style="margin: 0;padding: 0;position: absolute;top: -2px;left: 33px;font-size: 9px;cursor:pointer; background-image:none;border:0;color: #efcedc; font-family: trebuchet ms,arial,sans-serif;font-weight: normal;text-align:left;">Developed with</span><img src="http://www.jetbrains.com/ruby/features/ruby_banners/ruby1/ruby120x30_rubin.gif" alt="Developed with" border="0"/></a>
281
+ </p>
282
+ <h4 id="label-Savannah">Savannah<span><a href="#label-Savannah">&para;</a> <a href="#top">&uarr;</a></span></h4>
283
+ <ul><li>
284
+ <p>Project page: <a
285
+ href="https://savannah.nongnu.org/projects/gravaty">savannah.nongnu.org/projects/gravaty</a>/</p>
286
+ </li><li>
287
+ <p>Source code (Mercurial) repository: <a
288
+ href="http://hg.savannah.gnu.org/hgweb/gravaty">hg.savannah.gnu.org/hgweb/gravaty</a>/</p>
289
+ </li><li>
290
+ <p>Known Bugs: <a
291
+ href="https://savannah.nongnu.org/bugs/?group=gravaty">savannah.nongnu.org/bugs/?group=gravaty</a></p>
292
+ </li><li>
293
+ <p>Users Mailing List: <a
294
+ href="https://savannah.nongnu.org/mail/?group=gravaty">savannah.nongnu.org/mail/?group=gravaty</a></p>
295
+ </li><li>
296
+ <p>News: <a
297
+ href="https://savannah.nongnu.org/news/?group=gravaty">savannah.nongnu.org/news/?group=gravaty</a></p>
298
+ </li></ul>
299
+
300
+ <h4 id="label-RubyGems">RubyGems<span><a href="#label-RubyGems">&para;</a> <a href="#top">&uarr;</a></span></h4>
301
+ <ul><li>
302
+ <p>Gem page: <a
303
+ href="https://rubygems.org/gems/gravaty">rubygems.org/gems/gravaty</a></p>
304
+ </li><li>
305
+ <p>Online RDoc: <a
306
+ href="http://rubydoc.info/gems/gravaty">rubydoc.info/gems/gravaty</a>/</p>
307
+ </li><li>
308
+ <p>Gem updates Atom Feed: <a
309
+ href="https://rubygems.org/gems/gravaty/versions.atom">rubygems.org/gems/gravaty/versions.atom</a></p>
310
+ </li></ul>
311
+
312
+ <h4 id="label-Other+links">Other links<span><a href="#label-Other+links">&para;</a> <a href="#top">&uarr;</a></span></h4>
313
+ <ul><li>
314
+ <p>Gravatar: <a href="https://www.gravatar.com">www.gravatar.com</a>.</p>
315
+ </li><li>
316
+ <p>FSIJ (フリーソフトウェアイニシアティブ, Free Software Initiative of Japan): <a
317
+ href="http://www.fsij.org">www.fsij.org</a>.</p>
318
+ </li><li>
319
+ <p>“RFC 5322 Email Validation Regex in Ruby Regular Expressions” gist by Peter
320
+ R. Marreck: <a
321
+ href="https://gist.github.com/pmarreck/4626713">gist.github.com/pmarreck/4626713</a>.</p>
322
+ </li><li>
323
+ <p>“An HTTP/HTTPS/FTP file downloader library/CLI based upon MiniPortile&#39;s
324
+ HTTP implementation.” gist by Jon Maken: <a
325
+ href="https://gist.github.com/jonforums/2202048">gist.github.com/jonforums/2202048</a>.</p>
326
+ </li></ul>
327
+
328
+ <h3 id="label-Usage+Examples">Usage Examples<span><a href="#label-Usage+Examples">&para;</a> <a href="#top">&uarr;</a></span></h3>
329
+
330
+ <p>See <code>examples</code> folder. To run the examples just type go into the
331
+ <code>examples</code> directory and run
332
+ <code>ruby</code>{EXAMPLE_NAME}<code>.rb</code>. Running the examples
333
+ you&#39;ll see both the example description and correct code usage to
334
+ perform such action. Here below are listed the currently available
335
+ examples: * The <code>basics.rb</code> example (run <code>ruby
336
+ basics.rb</code>) shows how to initialize and use a <a
337
+ href="Gravaty.html">Gravaty</a> object through the <code>gravatize</code>
338
+ factory method; * The <code>avatar.rb</code> example (run <code>ruby
339
+ avatar.rb</code>) shows how to ask for an avatar image through Gravatar
340
+ (free) service, with all available options and configurations. It will also
341
+ show how to download such images; * The <code>profile.rb</code> example
342
+ (run <code>ruby profile.rb</code>) shows how to ask for profile data
343
+ through Gravatar (free) service, with all available options and
344
+ configurations. It will also show how to download such data. * The
345
+ <code>xmlrpc.rb</code> example (run <code>ruby xmlrpc.rb</code>) shows how
346
+ to use the XML-RPC API through Gravatar (free) service, with all available
347
+ options and configurations. This need a valid username and password to work
348
+ properly.</p>
349
+
350
+ <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>
351
+
352
+ <p><em>Here follows the unmodified 2016-04-29 09.39 CEST version of Gravatar
353
+ site terms of service, titled “Gravatar Terms of Use”. For the most updated
354
+ version, please refer to <a
355
+ href="https://secure.gravatar.com/site/terms-of-service">secure.gravatar.com/site/terms-of-service</a>
356
+ in order to know how to properly use computer gravatars.</em></p>
357
+
358
+ <p>Gravatar Terms of Use</p>
359
+
360
+ <p>PLEASE READ THESE GRAVATAR TERMS OF USE (“GRAVATAR TERMS”) CAREFULLY BEFORE
361
+ ACCESSING OR USING ANY PART OF THE SERVICES OR WEBSITE. BY USING THE
362
+ SERVICES OR WEBSITE IN ANY MANNER, YOU AGREE THAT YOU HAVE READ AND AGREE
363
+ TO BECOME BOUND BY THE GRAVATAR TERMS. IF THE GRAVATAR TERMS ARE CONSIDERED
364
+ AN OFFER, ACCEPTANCE IS EXPRESSLY LIMITED TO SUCH TERMS. IF YOU DO NOT
365
+ UNCONDITIONALLY AGREE TO ALL THE TERMS AND CONDITIONS OF THE GRAVATAR
366
+ TERMS, YOU HAVE NO RIGHT TO USE ANY PORTION OF THE SERVICES OR WEBSITE.</p>
367
+
368
+ <p>The Gravatar Terms govern the terms and conditions under which you may use
369
+ the website located at <a href="www.gravatar.com">www.gravatar.com</a> and
370
+ related services by Automattic, including without limitation, the user
371
+ accounts, profiles, avatars, technology, and other content and materials
372
+ offered on or through that website (collectively, “Services”, and each of
373
+ which shall be deemed a “Website” for purposes of the Terms of Service
374
+ (defined below)). The Gravatar Terms supplement the Terms of Service
375
+ located at <a href="http://wordpress.com/tos">wordpress.com/tos</a>/ (the
376
+ “Terms of Service”), including without limitation, the Responsibilities of
377
+ Website Visitors, all warranty disclaimers, limitations of liability, and
378
+ dispute resolution provisions therein, which shall apply to the subject
379
+ matter of these Gravatar Terms, and which are incorporated herein by this
380
+ reference. If there is any conflict between the Gravatar Terms and the
381
+ Terms of Service, the Gravatar Terms will govern. All capitalized terms
382
+ that are not defined herein have the meaning specified in the Terms of
383
+ Service.&#39;);</p>
384
+
385
+ <p>Automattic may update the Gravatar Terms from time to time. Your continued
386
+ use of the Services following notification of such updates constitutes your
387
+ acceptance of those changes.</p>
388
+ <ol><li>
389
+ <p>User Submissions. The Services may provide you with the ability to create,
390
+ upload, distribute or post (“Submit(ting)”) data, photographs, avatars,
391
+ software, graphics, profile and other information to the Services
392
+ (collectively, the “User Submissions”). By Submitting User Submissions, you
393
+ acknowledge that you are publishing that User Submission, and that you may
394
+ be identified publicly by your avatar and other User Submissions (e.g., in
395
+ connection with your blogs, comments and/or email address) by Automattic,
396
+ third party Gravatar-enabled websites (as that term in defined below), and
397
+ others. More specifically, you hereby do and shall grant to Automattic a
398
+ worldwide, perpetual, irrevocable, royalty-free and fully-paid,
399
+ transferable (including rights to sublicense) right to perform the Services
400
+ (e.g., to use, modify, reproduce, distribute, prepare derivative works of,
401
+ display, perform, and otherwise fully exercise and exploit all intellectual
402
+ property, publicity, and moral rights with respect to any User Submissions,
403
+ and to allow others to do so).</p>
404
+ </li></ol>
405
+
406
+ <p>By Submitting, you agree to be solely responsible for the User Submissions
407
+ and release Automattic from any liability related to your use of the
408
+ Services. You warrant, represent and agree that you will not Submit any
409
+ User Submissions or otherwise use the Services in a manner that (i)
410
+ infringes the intellectual property or proprietary rights, or rights of
411
+ publicity or privacy, of any third party; (ii) violates any law, statute,
412
+ ordinance or regulation; or (iii) is harmful, threatening, abusive,
413
+ harassing, tortuous, defamatory, vulgar, obscene, libelous, or otherwise
414
+ objectionable. You understand that Automattic shall not be responsible or
415
+ liable for controlling or editing any User Submission, for any errors or
416
+ omissions in any User Submission, for any damage or loss caused or alleged
417
+ to be caused by or in connection with the use of or reliance on any User
418
+ Submission; nor can Automattic ensure prompt removal of inappropriate or
419
+ unlawful content or guarantee the identity of any other users or websites
420
+ with whom you may interact in the course of using the Services.</p>
421
+ <ol><li>
422
+ <p>Use of the Services by Third Party Websites. Third party websites may
423
+ enable the use of the Services on their respective websites as expressly
424
+ authorized by Automattic (e.g., API calls into Gravatar: <a
425
+ href="http://en.gravatar.com/site/implement">en.gravatar.com/site/implement</a>);
426
+ provided that they (i) do not copy, store or modify User Submissions; (ii)
427
+ do not distribute, display, perform, use or otherwise exercise or exploit
428
+ any User Submission or other user information for any purpose other than as
429
+ necessary to perform the Services for the applicable user; (iii) have a
430
+ privacy policy in effect and posted on such website that complies with all
431
+ applicable laws and regulations and that notifies such user that it will
432
+ only use personally identifiable information as set forth in (ii) above;
433
+ and (iv) agree to be bound by and comply with all the terms, conditions,
434
+ and limitations set forth in the Terms of Service (“Gravatar-enabled
435
+ website”).</p>
436
+ </li></ol>
437
+ <hr>
438
+
439
+ <p>gravaty</p>
440
+
441
+ <p>Copyright © 2013, 2014, 2015, 2016 Marco Bresciani</p>
442
+
443
+ <p>This file is part of gravaty.</p>
444
+
445
+ <p>gravaty is free software: you can redistribute it and/or modify it under
446
+ the terms of the GNU General Public License as published by the Free
447
+ Software Foundation, either version 3 of the License, or (at your option)
448
+ any later version.</p>
449
+
450
+ <p>gravaty is distributed in the hope that it will be useful, but WITHOUT ANY
451
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
452
+ FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
453
+ details.</p>
454
+
455
+ <p>You should have received a copy of the GNU General Public License along
456
+ with gravaty. If not, see <a
457
+ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
458
+ </main>
459
+
460
+
461
+
462
+ <footer id="validator-badges" role="contentinfo">
463
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
464
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.4.
465
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
466
+ </footer>
467
+