gravaty 10.0.0 → 11.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +7 -0
  3. data/Gemfile +5 -1
  4. data/README.md +219 -212
  5. data/Rakefile +9 -3
  6. data/copyright.md +33 -136
  7. data/examples/avatar.rb +70 -43
  8. data/examples/basics.rb +30 -20
  9. data/examples/profile.rb +77 -50
  10. data/examples/xmlrpc.rb +24 -10
  11. data/gravaty.gemspec +46 -25
  12. data/html/CHANGELOG.html +13 -20
  13. data/html/COPYING_md.html +8 -24
  14. data/html/Gemfile.html +7 -21
  15. data/html/Gravaty.html +49 -113
  16. data/html/Gravaty/Gravaty.html +138 -343
  17. data/html/Gravaty/ParsableDuckType.html +14 -33
  18. data/html/Gravaty/Parser.html +27 -66
  19. data/html/Gravaty/Parsers.html +3 -11
  20. data/html/Gravaty/Parsers/Avatar.html +19 -36
  21. data/html/Gravaty/Parsers/Callback.html +21 -37
  22. data/html/Gravaty/Parsers/Default.html +28 -45
  23. data/html/Gravaty/Parsers/Force.html +21 -37
  24. data/html/Gravaty/Parsers/Format.html +22 -42
  25. data/html/Gravaty/Parsers/Pixelsize.html +22 -42
  26. data/html/Gravaty/Parsers/Rating.html +22 -42
  27. data/html/Gravaty/Parsers/Secure.html +19 -36
  28. data/html/Gravaty/Parsers/Type.html +22 -42
  29. data/html/Gravaty/Utils.html +11 -13
  30. data/html/Gravaty/Utils/Downloader.html +3 -11
  31. data/html/Gravaty/Utils/Downloader/Downloader.html +25 -59
  32. data/html/Gravaty/Utils/Raisers.html +24 -55
  33. data/html/Gravaty/Utils/Rfc5322.html +12 -19
  34. data/html/Gravaty/Utils/RpcConnector.html +11 -13
  35. data/html/Gravaty/Utils/RpcConnector/RpcConnector.html +33 -73
  36. data/html/Object.html +728 -57
  37. data/html/README_md.html +105 -100
  38. data/html/Rakefile.html +9 -23
  39. data/html/copyright_md.html +17 -119
  40. data/html/created.rid +48 -55
  41. data/html/css/rdoc.css +1 -1
  42. data/html/index.html +97 -114
  43. data/html/js/navigation.js.gz +0 -0
  44. data/html/js/search_index.js +1 -1
  45. data/html/js/search_index.js.gz +0 -0
  46. data/html/js/searcher.js.gz +0 -0
  47. data/html/table_of_contents.html +219 -651
  48. data/lib/gravaty.rb +22 -15
  49. data/lib/gravaty/application.rb +40 -25
  50. data/lib/gravaty/constants.rb +20 -11
  51. data/lib/gravaty/locales/en.yml +9 -3
  52. data/lib/gravaty/locales/it.yml +9 -3
  53. data/lib/gravaty/locales/ja.yml +7 -4
  54. data/lib/gravaty/parser.rb +16 -10
  55. data/lib/gravaty/parsers/avatar.rb +11 -3
  56. data/lib/gravaty/parsers/callback.rb +13 -4
  57. data/lib/gravaty/parsers/default.rb +24 -16
  58. data/lib/gravaty/parsers/force.rb +12 -2
  59. data/lib/gravaty/parsers/format.rb +11 -2
  60. data/lib/gravaty/parsers/pixelsize.rb +12 -3
  61. data/lib/gravaty/parsers/rating.rb +12 -3
  62. data/lib/gravaty/parsers/secure.rb +11 -2
  63. data/lib/gravaty/parsers/type.rb +11 -2
  64. data/lib/gravaty/utils/downloader.rb +98 -96
  65. data/lib/gravaty/utils/raisers.rb +19 -12
  66. data/lib/gravaty/utils/rfc5322.rb +54 -41
  67. data/lib/gravaty/utils/rpc_connector.rb +19 -11
  68. data/lib/gravaty/version.rb +10 -2
  69. data/test/gravaty/locales/en.yml +29 -0
  70. data/test/gravaty/locales/it.yml +29 -0
  71. data/test/gravaty/locales/ja.yml +27 -0
  72. data/test/gravaty/locales/test_locales.rb +17 -13
  73. data/test/gravaty/parsers/test_avatar.rb +9 -1
  74. data/test/gravaty/parsers/test_callback.rb +12 -4
  75. data/test/gravaty/parsers/test_default.rb +25 -21
  76. data/test/gravaty/parsers/test_force.rb +9 -1
  77. data/test/gravaty/parsers/test_format.rb +18 -11
  78. data/test/gravaty/parsers/test_pixelsize.rb +19 -12
  79. data/test/gravaty/parsers/test_rating.rb +18 -11
  80. data/test/gravaty/parsers/test_secure.rb +9 -1
  81. data/test/gravaty/parsers/test_type.rb +14 -5
  82. data/test/gravaty/test_application.rb +14 -6
  83. data/test/gravaty/test_avatar.rb +94 -59
  84. data/test/gravaty/test_parser.rb +11 -5
  85. data/test/gravaty/test_profile.rb +47 -25
  86. data/test/gravaty/utils/test_downloader.rb +43 -28
  87. data/test/gravaty/utils/test_raisers.rb +42 -26
  88. data/test/gravaty/utils/test_rfc5322.rb +35 -13
  89. data/test/gravaty/utils/test_rpc_connector.rb +83 -39
  90. data/test/test_gravaty.rb +12 -4
  91. data/test/test_helper.rb +15 -9
  92. metadata +54 -40
  93. data/ISSUES.md +0 -62
  94. data/acknowledgements.md +0 -66
  95. data/authors.md +0 -63
  96. data/examples/cacert.pem +0 -3466
  97. data/html/ISSUES_md.html +0 -166
  98. data/html/acknowledgements_md.html +0 -161
  99. data/html/authors_md.html +0 -174
  100. data/html/examples/cacert_pem.html +0 -1078
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module Gravaty::ParsableDuckType - gravaty 10.0.0</title>
7
+ <title>module Gravaty::ParsableDuckType - gravaty 11.0.1</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -21,8 +21,6 @@
21
21
  <link href="../css/rdoc.css" rel="stylesheet">
22
22
 
23
23
 
24
-
25
-
26
24
  <body id="top" role="document" class="module">
27
25
  <nav role="navigation">
28
26
  <div id="project-navigation">
@@ -62,14 +60,13 @@
62
60
 
63
61
 
64
62
 
65
- <!-- Method Quickref -->
63
+
64
+ <!-- Method Quickref -->
66
65
  <div id="method-list-section" class="nav-section">
67
66
  <h3>Methods</h3>
68
67
 
69
68
  <ul class="link-list" role="directory">
70
-
71
69
  <li ><a href="#method-i-test_parsable_duck_type">#test_parsable_duck_type</a>
72
-
73
70
  </ul>
74
71
  </div>
75
72
 
@@ -87,12 +84,15 @@
87
84
  <dl class="rdoc-list note-list"><dt>Author
88
85
  <dd>
89
86
  <p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
90
- </dd><dt>Copyright
87
+ </dd></dl>
88
+
89
+ <p>rubocop:disable Style/AsciiComments</p>
90
+ <dl class="rdoc-list note-list"><dt>Copyright
91
91
  <dd>
92
92
  <p>Copyright © 2013, 2014, 2015, 2016, 2017, 2018,</p>
93
93
  </dd></dl>
94
94
 
95
- <p>2019 Marco Bresciani</p>
95
+ <p>2019 Marco Bresciani rubocop:enable Style/AsciiComments</p>
96
96
  <dl class="rdoc-list note-list"><dt>License
97
97
  <dd>
98
98
  <p>GNU General Public License version 3</p>
@@ -100,66 +100,47 @@
100
100
 
101
101
  </section>
102
102
 
103
-
104
103
  <section id="5Buntitled-5D" class="documentation-section">
105
-
106
104
 
107
-
108
105
 
109
-
110
106
 
111
-
112
107
 
113
-
108
+
114
109
  <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
115
110
  <header>
116
111
  <h3>Public Instance Methods</h3>
117
112
  </header>
118
113
 
119
-
120
114
  <div id="method-i-test_parsable_duck_type" class="method-detail ">
121
-
122
115
  <div class="method-heading">
123
116
  <span class="method-name">test_parsable_duck_type</span><span
124
117
  class="method-args">()</span>
125
-
126
118
  <span class="method-click-advice">click to toggle source</span>
127
-
128
119
  </div>
129
-
130
120
 
131
121
  <div class="method-description">
132
-
133
122
  <p>The method that tests the parsable duck type interface and its <code>parse</code> method.</p>
134
-
135
-
136
123
 
137
-
138
124
  <div class="method-source-code" id="test_parsable_duck_type-source">
139
125
  <pre> <span class="ruby-comment"># File test/test_helper.rb</span>
140
- <span class="line-num">101</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_parsable_duck_type</span>
141
- <span class="line-num">102</span> <span class="ruby-identifier">_</span>(<span class="ruby-identifier">subject</span>).<span class="ruby-identifier">must_respond_to</span> <span class="ruby-value">:parse</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">subject</span>.<span class="ruby-identifier">nil?</span>
142
- <span class="line-num">103</span> <span class="ruby-keyword">end</span></pre>
126
+ <span class="line-num">107</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">test_parsable_duck_type</span>
127
+ <span class="line-num">108</span> <span class="ruby-identifier">_</span>(<span class="ruby-identifier">subject</span>).<span class="ruby-identifier">must_respond_to</span> <span class="ruby-value">:parse</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">subject</span>.<span class="ruby-identifier">nil?</span>
128
+ <span class="line-num">109</span> <span class="ruby-keyword">end</span></pre>
143
129
  </div>
144
-
145
130
  </div>
146
131
 
147
-
148
132
 
149
-
150
133
  </div>
151
134
 
152
-
153
135
  </section>
154
-
155
- </section>
156
136
 
137
+ </section>
157
138
  </main>
158
139
 
159
140
 
160
141
  <footer id="validator-badges" role="contentinfo">
161
142
  <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.2.1.
143
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
163
144
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
164
145
  </footer>
165
146
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class Gravaty::Parser - gravaty 10.0.0</title>
7
+ <title>class Gravaty::Parser - gravaty 11.0.1</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -21,8 +21,6 @@
21
21
  <link href="../css/rdoc.css" rel="stylesheet">
22
22
 
23
23
 
24
-
25
-
26
24
  <body id="top" role="document" class="class">
27
25
  <nav role="navigation">
28
26
  <div id="project-navigation">
@@ -59,26 +57,23 @@
59
57
 
60
58
  <div id="class-metadata">
61
59
 
62
- <div id="parent-class-section" class="nav-section">
60
+
61
+ <div id="parent-class-section" class="nav-section">
63
62
  <h3>Parent</h3>
64
63
 
65
-
66
64
  <p class="link"><a href="../Object.html">Object</a>
67
-
68
65
  </div>
69
66
 
70
67
 
71
68
 
72
- <!-- Method Quickref -->
69
+
70
+ <!-- Method Quickref -->
73
71
  <div id="method-list-section" class="nav-section">
74
72
  <h3>Methods</h3>
75
73
 
76
74
  <ul class="link-list" role="directory">
77
-
78
75
  <li ><a href="#method-c-new">::new</a>
79
-
80
76
  <li ><a href="#method-i-parse">#parse</a>
81
-
82
77
  </ul>
83
78
  </div>
84
79
 
@@ -96,31 +91,31 @@
96
91
  <dl class="rdoc-list note-list"><dt>Author
97
92
  <dd>
98
93
  <p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
99
- </dd><dt>Copyright
94
+ </dd></dl>
95
+
96
+ <p>rubocop:disable Style/AsciiComments</p>
97
+ <dl class="rdoc-list note-list"><dt>Copyright
100
98
  <dd>
101
99
  <p>Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani</p>
102
- </dd><dt>License
100
+ </dd></dl>
101
+
102
+ <p>rubocop:enable Style/AsciiComments</p>
103
+ <dl class="rdoc-list note-list"><dt>License
103
104
  <dd>
104
105
  <p>GNU General Public License version 3</p>
105
106
  </dd></dl>
106
107
 
107
108
  </section>
108
109
 
109
-
110
110
  <section id="5Buntitled-5D" class="documentation-section">
111
-
112
111
 
113
-
114
112
 
115
-
116
113
 
117
-
118
114
  <section class="attribute-method-details" class="method-section">
119
115
  <header>
120
116
  <h3>Attributes</h3>
121
117
  </header>
122
118
 
123
-
124
119
  <div id="attribute-i-parsers" class="method-detail">
125
120
  <div class="method-heading attribute-method-heading">
126
121
  <span class="method-name">parsers</span><span
@@ -129,111 +124,77 @@
129
124
 
130
125
  <div class="method-description">
131
126
 
132
-
133
-
134
127
  </div>
135
128
  </div>
136
-
137
129
  </section>
138
-
139
130
 
140
-
131
+
141
132
  <section id="public-class-5Buntitled-5D-method-details" class="method-section">
142
133
  <header>
143
134
  <h3>Public Class Methods</h3>
144
135
  </header>
145
136
 
146
-
147
137
  <div id="method-c-new" class="method-detail ">
148
-
149
138
  <div class="method-heading">
150
139
  <span class="method-name">new</span><span
151
140
  class="method-args">(args = {})</span>
152
-
153
141
  <span class="method-click-advice">click to toggle source</span>
154
-
155
142
  </div>
156
-
157
143
 
158
144
  <div class="method-description">
159
145
 
160
-
161
-
162
-
163
146
 
164
-
165
147
  <div class="method-source-code" id="new-source">
166
148
  <pre> <span class="ruby-comment"># File lib/gravaty/parser.rb</span>
167
- <span class="line-num">34</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">args</span> = {})
168
- <span class="line-num">35</span> <span class="ruby-ivar">@parsers</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
169
- <span class="line-num">36</span> <span class="ruby-constant">ALLOWED_PARAMS</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">param</span><span class="ruby-operator">|</span>
170
- <span class="line-num">37</span> <span class="ruby-identifier">parsers</span>[<span class="ruby-identifier">param</span>] = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">param</span>]
171
- <span class="line-num">38</span> <span class="ruby-keyword">end</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">nil?</span>
172
- <span class="line-num">39</span> <span class="ruby-keyword">end</span></pre>
149
+ <span class="line-num">43</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">args</span> = {})
150
+ <span class="line-num">44</span> <span class="ruby-ivar">@parsers</span> = {}
151
+ <span class="line-num">45</span> <span class="ruby-constant">ALLOWED_PARAMS</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">param</span><span class="ruby-operator">|</span> <span class="ruby-identifier">parsers</span>[<span class="ruby-identifier">param</span>] = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">param</span>] } <span class="ruby-keyword">unless</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">nil?</span>
152
+ <span class="line-num">46</span> <span class="ruby-keyword">end</span></pre>
173
153
  </div>
174
-
175
154
  </div>
176
155
 
177
-
178
156
 
179
-
180
157
  </div>
181
158
 
182
-
183
159
  </section>
184
-
160
+
185
161
  <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
186
162
  <header>
187
163
  <h3>Public Instance Methods</h3>
188
164
  </header>
189
165
 
190
-
191
166
  <div id="method-i-parse" class="method-detail ">
192
-
193
167
  <div class="method-heading">
194
168
  <span class="method-name">parse</span><span
195
- class="method-args">(method = nil, value = nil)</span>
196
-
169
+ class="method-args">(method = nil, params = nil)</span>
197
170
  <span class="method-click-advice">click to toggle source</span>
198
-
199
171
  </div>
200
-
201
172
 
202
173
  <div class="method-description">
203
-
204
174
  <p>Provides the duck type for a generic parsing object.</p>
205
-
206
-
207
175
 
208
-
209
176
  <div class="method-source-code" id="parse-source">
210
177
  <pre> <span class="ruby-comment"># File lib/gravaty/parser.rb</span>
211
- <span class="line-num">42</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">method</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">value</span> = <span class="ruby-keyword">nil</span>)
212
- <span class="line-num">43</span> <span class="ruby-identifier">a_parser</span> = <span class="ruby-keyword">nil</span>
213
- <span class="line-num">44</span> <span class="ruby-identifier">a_parser</span> = <span class="ruby-identifier">parsers</span>[<span class="ruby-identifier">method</span>.<span class="ruby-identifier">to_sym</span>] <span class="ruby-keyword">unless</span> <span class="ruby-identifier">method</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">or</span>
214
- <span class="line-num">45</span> <span class="ruby-identifier">parsers</span>.<span class="ruby-identifier">nil?</span>
215
- <span class="line-num">46</span> <span class="ruby-identifier">a_parser</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">value</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">a_parser</span>.<span class="ruby-identifier">nil?</span>
216
- <span class="line-num">47</span> <span class="ruby-keyword">end</span></pre>
178
+ <span class="line-num">49</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">method</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">params</span> = <span class="ruby-keyword">nil</span>)
179
+ <span class="line-num">50</span> <span class="ruby-identifier">a_parser</span> = <span class="ruby-keyword">nil</span>
180
+ <span class="line-num">51</span> <span class="ruby-identifier">a_parser</span> = <span class="ruby-identifier">parsers</span>[<span class="ruby-identifier">method</span>.<span class="ruby-identifier">to_sym</span>] <span class="ruby-keyword">unless</span> <span class="ruby-identifier">method</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">parsers</span>.<span class="ruby-identifier">nil?</span>
181
+ <span class="line-num">52</span> <span class="ruby-identifier">a_parser</span>&amp;.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">params</span>
182
+ <span class="line-num">53</span> <span class="ruby-keyword">end</span></pre>
217
183
  </div>
218
-
219
184
  </div>
220
185
 
221
-
222
186
 
223
-
224
187
  </div>
225
188
 
226
-
227
189
  </section>
228
-
229
- </section>
230
190
 
191
+ </section>
231
192
  </main>
232
193
 
233
194
 
234
195
  <footer id="validator-badges" role="contentinfo">
235
196
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
236
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
197
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
237
198
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
238
199
  </footer>
239
200
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module Gravaty::Parsers - gravaty 10.0.0</title>
7
+ <title>module Gravaty::Parsers - gravaty 11.0.1</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -21,8 +21,6 @@
21
21
  <link href="../css/rdoc.css" rel="stylesheet">
22
22
 
23
23
 
24
-
25
-
26
24
  <body id="top" role="document" class="module">
27
25
  <nav role="navigation">
28
26
  <div id="project-navigation">
@@ -75,25 +73,19 @@
75
73
 
76
74
  </section>
77
75
 
78
-
79
76
  <section id="5Buntitled-5D" class="documentation-section">
80
-
81
77
 
82
-
83
78
 
84
-
85
79
 
86
-
87
80
 
88
-
89
- </section>
90
81
 
82
+ </section>
91
83
  </main>
92
84
 
93
85
 
94
86
  <footer id="validator-badges" role="contentinfo">
95
87
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
96
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
88
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
97
89
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
98
90
  </footer>
99
91
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class Gravaty::Parsers::Avatar - gravaty 10.0.0</title>
7
+ <title>class Gravaty::Parsers::Avatar - gravaty 11.0.1</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../../";
@@ -21,8 +21,6 @@
21
21
  <link href="../../css/rdoc.css" rel="stylesheet">
22
22
 
23
23
 
24
-
25
-
26
24
  <body id="top" role="document" class="class">
27
25
  <nav role="navigation">
28
26
  <div id="project-navigation">
@@ -59,24 +57,22 @@
59
57
 
60
58
  <div id="class-metadata">
61
59
 
62
- <div id="parent-class-section" class="nav-section">
60
+
61
+ <div id="parent-class-section" class="nav-section">
63
62
  <h3>Parent</h3>
64
63
 
65
-
66
64
  <p class="link"><a href="../../Object.html">Object</a>
67
-
68
65
  </div>
69
66
 
70
67
 
71
68
 
72
- <!-- Method Quickref -->
69
+
70
+ <!-- Method Quickref -->
73
71
  <div id="method-list-section" class="nav-section">
74
72
  <h3>Methods</h3>
75
73
 
76
74
  <ul class="link-list" role="directory">
77
-
78
75
  <li ><a href="#method-i-parse">#parse</a>
79
-
80
76
  </ul>
81
77
  </div>
82
78
 
@@ -94,76 +90,63 @@
94
90
  <dl class="rdoc-list note-list"><dt>Author
95
91
  <dd>
96
92
  <p><a href="mailto:marcobresciani_1974@libero.it">Marco Bresciani</a></p>
97
- </dd><dt>Copyright
93
+ </dd></dl>
94
+
95
+ <p>rubocop:disable Style/AsciiComments</p>
96
+ <dl class="rdoc-list note-list"><dt>Copyright
98
97
  <dd>
99
98
  <p>Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Marco Bresciani</p>
100
- </dd><dt>License
99
+ </dd></dl>
100
+
101
+ <p>rubocop:enable Style/AsciiComments</p>
102
+ <dl class="rdoc-list note-list"><dt>License
101
103
  <dd>
102
104
  <p>GNU General Public License version 3</p>
103
105
  </dd></dl>
104
106
 
105
107
  </section>
106
108
 
107
-
108
109
  <section id="5Buntitled-5D" class="documentation-section">
109
-
110
110
 
111
-
112
111
 
113
-
114
112
 
115
-
116
113
 
117
-
114
+
118
115
  <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
119
116
  <header>
120
117
  <h3>Public Instance Methods</h3>
121
118
  </header>
122
119
 
123
-
124
120
  <div id="method-i-parse" class="method-detail ">
125
-
126
121
  <div class="method-heading">
127
122
  <span class="method-name">parse</span><span
128
123
  class="method-args">(value = true)</span>
129
-
130
124
  <span class="method-click-advice">click to toggle source</span>
131
-
132
125
  </div>
133
-
134
126
 
135
127
  <div class="method-description">
136
-
137
128
  <p>The parsable duck type interface to every parser usage.</p>
138
-
139
-
140
129
 
141
-
142
130
  <div class="method-source-code" id="parse-source">
143
131
  <pre> <span class="ruby-comment"># File lib/gravaty/parsers/avatar.rb</span>
144
- <span class="line-num">34</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">value</span> = <span class="ruby-keyword">true</span>)
145
- <span class="line-num">35</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">?</span> <span class="ruby-string">&#39;avatar/&#39;</span> <span class="ruby-operator">:</span> <span class="ruby-string">&#39;&#39;</span>
146
- <span class="line-num">36</span> <span class="ruby-keyword">end</span></pre>
132
+ <span class="line-num">42</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">value</span> = <span class="ruby-keyword">true</span>)
133
+ <span class="line-num">43</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">?</span> <span class="ruby-string">&#39;avatar/&#39;</span> <span class="ruby-operator">:</span> <span class="ruby-string">&#39;&#39;</span>
134
+ <span class="line-num">44</span> <span class="ruby-keyword">end</span></pre>
147
135
  </div>
148
-
149
136
  </div>
150
137
 
151
-
152
138
 
153
-
154
139
  </div>
155
140
 
156
-
157
141
  </section>
158
-
159
- </section>
160
142
 
143
+ </section>
161
144
  </main>
162
145
 
163
146
 
164
147
  <footer id="validator-badges" role="contentinfo">
165
148
  <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.2.1.
149
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
167
150
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
168
151
  </footer>
169
152