ovto 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/CHANGELOG.md +5 -0
  4. data/Gemfile +3 -2
  5. data/Gemfile.lock +21 -21
  6. data/README.md +2 -2
  7. data/book/SUMMARY.md +1 -1
  8. data/book/api/fetch.md +3 -3
  9. data/book/api/pure_component.md +27 -0
  10. data/book/guides/install.md +76 -0
  11. data/book/guides/tutorial.md +3 -3
  12. data/book/ovtologo.png +0 -0
  13. data/docs/api/Ovto.html +18 -18
  14. data/docs/api/Ovto/Actions.html +1 -1
  15. data/docs/api/Ovto/App.html +1 -1
  16. data/docs/api/Ovto/Component.html +18 -10
  17. data/docs/api/Ovto/Component/MoreThanOneNode.html +1 -1
  18. data/docs/api/Ovto/PureComponent.html +368 -0
  19. data/docs/api/Ovto/PureComponent/StateIsNotAvailable.html +124 -0
  20. data/docs/api/Ovto/Runtime.html +1 -1
  21. data/docs/api/Ovto/State.html +1 -1
  22. data/docs/api/Ovto/State/MissingValue.html +1 -1
  23. data/docs/api/Ovto/State/UnknownKey.html +1 -1
  24. data/docs/api/Ovto/WiredActions.html +1 -1
  25. data/docs/api/_index.html +26 -4
  26. data/docs/api/actions.html +8 -8
  27. data/docs/api/app.html +8 -8
  28. data/docs/api/class_list.html +1 -1
  29. data/docs/api/component.html +8 -8
  30. data/docs/api/fetch.html +11 -11
  31. data/docs/api/file.README.html +75 -79
  32. data/docs/api/index.html +75 -79
  33. data/docs/api/method_list.html +43 -19
  34. data/docs/api/pure_component.md +27 -0
  35. data/docs/api/state.html +8 -8
  36. data/docs/api/top-level-namespace.html +1 -1
  37. data/docs/gitbook/gitbook.js +2 -2
  38. data/docs/gitbook/theme.js +1 -1
  39. data/docs/guides/debugging.html +8 -8
  40. data/docs/guides/development.html +8 -8
  41. data/docs/guides/install.html +426 -0
  42. data/docs/guides/tutorial.html +74 -65
  43. data/docs/index.html +10 -16
  44. data/docs/ovtologo.png +0 -0
  45. data/docs/search_index.json +1 -1
  46. data/examples/sinatra/Gemfile.lock +2 -2
  47. data/examples/static/Gemfile.lock +6 -10
  48. data/lib/ovto.rb +1 -0
  49. data/lib/ovto/component.rb +25 -12
  50. data/lib/ovto/fetch.rb +1 -1
  51. data/lib/ovto/pure_component.rb +22 -0
  52. data/lib/ovto/version.rb +1 -1
  53. data/ovto.gemspec +1 -1
  54. metadata +21 -5
@@ -99,6 +99,10 @@
99
99
 
100
100
  </div>
101
101
 
102
+ <div id="subclasses">
103
+ <h2>Direct Known Subclasses</h2>
104
+ <p class="children"><span class='object_link'><a href="PureComponent.html" title="Ovto::PureComponent (class)">PureComponent</a></span></p>
105
+ </div>
102
106
  <h2>Defined Under Namespace</h2>
103
107
  <p class="children">
104
108
 
@@ -261,7 +265,9 @@
261
265
  17
262
266
  18
263
267
  19
264
- 20</pre>
268
+ 20
269
+ 21
270
+ 22</pre>
265
271
  </td>
266
272
  <td>
267
273
  <pre class="code"><span class="info file"># File 'lib/ovto/component.rb', line 16</span>
@@ -270,6 +276,8 @@
270
276
  <span class='ivar'>@wired_actions</span> <span class='op'>=</span> <span class='id identifier rubyid_wired_actions'>wired_actions</span>
271
277
  <span class='comment'># Initialize here for the unit tests
272
278
  </span> <span class='ivar'>@vdom_tree</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
279
+ <span class='ivar'>@components</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
280
+ <span class='ivar'>@components_index</span> <span class='op'>=</span> <span class='int'>0</span>
273
281
  <span class='kw'>end</span></pre>
274
282
  </td>
275
283
  </tr>
@@ -342,12 +350,12 @@
342
350
  <pre class="lines">
343
351
 
344
352
 
345
- 22
346
- 23
347
- 24</pre>
353
+ 24
354
+ 25
355
+ 26</pre>
348
356
  </td>
349
357
  <td>
350
- <pre class="code"><span class="info file"># File 'lib/ovto/component.rb', line 22</span>
358
+ <pre class="code"><span class="info file"># File 'lib/ovto/component.rb', line 24</span>
351
359
 
352
360
  <span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span>
353
361
  <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
@@ -372,12 +380,12 @@
372
380
  <pre class="lines">
373
381
 
374
382
 
375
- 26
376
- 27
377
- 28</pre>
383
+ 28
384
+ 29
385
+ 30</pre>
378
386
  </td>
379
387
  <td>
380
- <pre class="code"><span class="info file"># File 'lib/ovto/component.rb', line 26</span>
388
+ <pre class="code"><span class="info file"># File 'lib/ovto/component.rb', line 28</span>
381
389
 
382
390
  <span class='kw'>def</span> <span class='id identifier rubyid_state'>state</span>
383
391
  <span class='ivar'>@wired_actions</span><span class='period'>.</span><span class='id identifier rubyid__app'>_app</span><span class='period'>.</span><span class='id identifier rubyid_state'>state</span>
@@ -392,7 +400,7 @@
392
400
  </div>
393
401
 
394
402
  <div id="footer">
395
- Generated on Fri Apr 19 12:51:39 2019 by
403
+ Generated on Thu Aug 8 01:14:40 2019 by
396
404
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
397
405
  0.9.19 (ruby-2.5.5).
398
406
  </div>
@@ -125,7 +125,7 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Fri Apr 19 12:51:39 2019 by
128
+ Generated on Thu Aug 8 01:14:40 2019 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
130
  0.9.19 (ruby-2.5.5).
131
131
  </div>
@@ -0,0 +1,368 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Ovto::PureComponent
8
+
9
+ &mdash; Documentation by YARD 0.9.19
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "Ovto::PureComponent";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (P)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../Ovto.html" title="Ovto (module)">Ovto</a></span></span>
41
+ &raquo;
42
+ <span class="title">PureComponent</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Ovto::PureComponent
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName"><span class='object_link'><a href="Component.html" title="Ovto::Component (class)">Component</a></span></span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next"><span class='object_link'><a href="Component.html" title="Ovto::Component (class)">Component</a></span></li>
78
+
79
+ <li class="next">Ovto::PureComponent</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <dl>
98
+ <dt>Defined in:</dt>
99
+ <dd>lib/ovto/pure_component.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+ <h2>Defined Under Namespace</h2>
105
+ <p class="children">
106
+
107
+
108
+
109
+
110
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="PureComponent/StateIsNotAvailable.html" title="Ovto::PureComponent::StateIsNotAvailable (class)">StateIsNotAvailable</a></span>
111
+
112
+
113
+ </p>
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+ <h2>
123
+ Instance Method Summary
124
+ <small><a href="#" class="summary_toggle">collapse</a></small>
125
+ </h2>
126
+
127
+ <ul class="summary">
128
+
129
+ <li class="public ">
130
+ <span class="summary_signature">
131
+
132
+ <a href="#do_render-instance_method" title="#do_render (instance method)">#<strong>do_render</strong>(args, state) &#x21d2; Object </a>
133
+
134
+
135
+
136
+ </span>
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+ <span class="summary_desc"><div class='inline'></div></span>
147
+
148
+ </li>
149
+
150
+
151
+ <li class="public ">
152
+ <span class="summary_signature">
153
+
154
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(wired_actions) &#x21d2; PureComponent </a>
155
+
156
+
157
+
158
+ </span>
159
+
160
+
161
+ <span class="note title constructor">constructor</span>
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+ <span class="summary_desc"><div class='inline'>
171
+ <p>A new instance of PureComponent.</p>
172
+ </div></span>
173
+
174
+ </li>
175
+
176
+
177
+ <li class="public ">
178
+ <span class="summary_signature">
179
+
180
+ <a href="#state-instance_method" title="#state (instance method)">#<strong>state</strong> &#x21d2; Object </a>
181
+
182
+
183
+
184
+ </span>
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+ <span class="summary_desc"><div class='inline'></div></span>
195
+
196
+ </li>
197
+
198
+
199
+ </ul>
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Component.html" title="Ovto::Component (class)">Component</a></span></h3>
212
+ <p class="inherited"><span class='object_link'><a href="Component.html#hash_to_js_obj-class_method" title="Ovto::Component.hash_to_js_obj (method)">hash_to_js_obj</a></span>, <span class='object_link'><a href="Component.html#render-instance_method" title="Ovto::Component#render (method)">#render</a></span></p>
213
+ <div id="constructor_details" class="method_details_list">
214
+ <h2>Constructor Details</h2>
215
+
216
+ <div class="method_details first">
217
+ <h3 class="signature first" id="initialize-instance_method">
218
+
219
+ #<strong>initialize</strong>(wired_actions) &#x21d2; <tt><span class='object_link'><a href="" title="Ovto::PureComponent (class)">PureComponent</a></span></tt>
220
+
221
+
222
+
223
+
224
+
225
+ </h3><div class="docstring">
226
+ <div class="discussion">
227
+
228
+ <p>Returns a new instance of PureComponent</p>
229
+
230
+
231
+ </div>
232
+ </div>
233
+ <div class="tags">
234
+
235
+
236
+ </div><table class="source_code">
237
+ <tr>
238
+ <td>
239
+ <pre class="lines">
240
+
241
+
242
+ 5
243
+ 6
244
+ 7
245
+ 8
246
+ 9</pre>
247
+ </td>
248
+ <td>
249
+ <pre class="code"><span class="info file"># File 'lib/ovto/pure_component.rb', line 5</span>
250
+
251
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_wired_actions'>wired_actions</span><span class='rparen'>)</span>
252
+ <span class='kw'>super</span>
253
+ <span class='ivar'>@prev_props</span> <span class='op'>=</span> <span class='kw'>nil</span>
254
+ <span class='ivar'>@cache</span> <span class='op'>=</span> <span class='kw'>nil</span>
255
+ <span class='kw'>end</span></pre>
256
+ </td>
257
+ </tr>
258
+ </table>
259
+ </div>
260
+
261
+ </div>
262
+
263
+
264
+ <div id="instance_method_details" class="method_details_list">
265
+ <h2>Instance Method Details</h2>
266
+
267
+
268
+ <div class="method_details first">
269
+ <h3 class="signature first" id="do_render-instance_method">
270
+
271
+ #<strong>do_render</strong>(args, state) &#x21d2; <tt>Object</tt>
272
+
273
+
274
+
275
+
276
+
277
+ </h3><table class="source_code">
278
+ <tr>
279
+ <td>
280
+ <pre class="lines">
281
+
282
+
283
+ 11
284
+ 12
285
+ 13
286
+ 14
287
+ 15
288
+ 16</pre>
289
+ </td>
290
+ <td>
291
+ <pre class="code"><span class="info file"># File 'lib/ovto/pure_component.rb', line 11</span>
292
+
293
+ <span class='kw'>def</span> <span class='id identifier rubyid_do_render'>do_render</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='id identifier rubyid_state'>state</span><span class='rparen'>)</span>
294
+ <span class='kw'>return</span> <span class='ivar'>@cache</span> <span class='kw'>if</span> <span class='id identifier rubyid_args'>args</span> <span class='op'>==</span> <span class='ivar'>@prev_props</span>
295
+
296
+ <span class='ivar'>@prev_props</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span>
297
+ <span class='ivar'>@cache</span> <span class='op'>=</span> <span class='kw'>super</span>
298
+ <span class='kw'>end</span></pre>
299
+ </td>
300
+ </tr>
301
+ </table>
302
+ </div>
303
+
304
+ <div class="method_details ">
305
+ <h3 class="signature " id="state-instance_method">
306
+
307
+ #<strong>state</strong> &#x21d2; <tt>Object</tt>
308
+
309
+
310
+
311
+
312
+
313
+ </h3><div class="docstring">
314
+ <div class="discussion">
315
+
316
+
317
+ </div>
318
+ </div>
319
+ <div class="tags">
320
+
321
+ <p class="tag_title">Raises:</p>
322
+ <ul class="raise">
323
+
324
+ <li>
325
+
326
+
327
+ <span class='type'>(<tt><span class='object_link'><a href="PureComponent/StateIsNotAvailable.html" title="Ovto::PureComponent::StateIsNotAvailable (class)">StateIsNotAvailable</a></span></tt>)</span>
328
+
329
+
330
+
331
+ </li>
332
+
333
+ </ul>
334
+
335
+ </div><table class="source_code">
336
+ <tr>
337
+ <td>
338
+ <pre class="lines">
339
+
340
+
341
+ 18
342
+ 19
343
+ 20</pre>
344
+ </td>
345
+ <td>
346
+ <pre class="code"><span class="info file"># File 'lib/ovto/pure_component.rb', line 18</span>
347
+
348
+ <span class='kw'>def</span> <span class='id identifier rubyid_state'>state</span>
349
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="PureComponent/StateIsNotAvailable.html" title="Ovto::PureComponent::StateIsNotAvailable (class)">StateIsNotAvailable</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Cannot use state in PureComponent</span><span class='tstring_end'>&quot;</span></span>
350
+ <span class='kw'>end</span></pre>
351
+ </td>
352
+ </tr>
353
+ </table>
354
+ </div>
355
+
356
+ </div>
357
+
358
+ </div>
359
+
360
+ <div id="footer">
361
+ Generated on Thu Aug 8 01:14:40 2019 by
362
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
363
+ 0.9.19 (ruby-2.5.5).
364
+ </div>
365
+
366
+ </div>
367
+ </body>
368
+ </html>
@@ -0,0 +1,124 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Exception: Ovto::PureComponent::StateIsNotAvailable
8
+
9
+ &mdash; Documentation by YARD 0.9.19
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "Ovto::PureComponent::StateIsNotAvailable";
19
+ relpath = '../../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../../_index.html">Index (S)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../Ovto.html" title="Ovto (module)">Ovto</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../PureComponent.html" title="Ovto::PureComponent (class)">PureComponent</a></span></span>
41
+ &raquo;
42
+ <span class="title">StateIsNotAvailable</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Exception: Ovto::PureComponent::StateIsNotAvailable
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">StandardError</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">StandardError</li>
78
+
79
+ <li class="next">Ovto::PureComponent::StateIsNotAvailable</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <dl>
98
+ <dt>Defined in:</dt>
99
+ <dd>lib/ovto/pure_component.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+ </div>
115
+
116
+ <div id="footer">
117
+ Generated on Thu Aug 8 01:14:40 2019 by
118
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
+ 0.9.19 (ruby-2.5.5).
120
+ </div>
121
+
122
+ </div>
123
+ </body>
124
+ </html>