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