ovto 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/CHANGELOG.md +5 -0
- data/Gemfile +3 -2
- data/Gemfile.lock +21 -21
- data/README.md +2 -2
- data/book/SUMMARY.md +1 -1
- data/book/api/fetch.md +3 -3
- data/book/api/pure_component.md +27 -0
- data/book/guides/install.md +76 -0
- data/book/guides/tutorial.md +3 -3
- data/book/ovtologo.png +0 -0
- data/docs/api/Ovto.html +18 -18
- data/docs/api/Ovto/Actions.html +1 -1
- data/docs/api/Ovto/App.html +1 -1
- data/docs/api/Ovto/Component.html +18 -10
- data/docs/api/Ovto/Component/MoreThanOneNode.html +1 -1
- data/docs/api/Ovto/PureComponent.html +368 -0
- data/docs/api/Ovto/PureComponent/StateIsNotAvailable.html +124 -0
- data/docs/api/Ovto/Runtime.html +1 -1
- data/docs/api/Ovto/State.html +1 -1
- data/docs/api/Ovto/State/MissingValue.html +1 -1
- data/docs/api/Ovto/State/UnknownKey.html +1 -1
- data/docs/api/Ovto/WiredActions.html +1 -1
- data/docs/api/_index.html +26 -4
- data/docs/api/actions.html +8 -8
- data/docs/api/app.html +8 -8
- data/docs/api/class_list.html +1 -1
- data/docs/api/component.html +8 -8
- data/docs/api/fetch.html +11 -11
- data/docs/api/file.README.html +75 -79
- data/docs/api/index.html +75 -79
- data/docs/api/method_list.html +43 -19
- data/docs/api/pure_component.md +27 -0
- data/docs/api/state.html +8 -8
- data/docs/api/top-level-namespace.html +1 -1
- data/docs/gitbook/gitbook.js +2 -2
- data/docs/gitbook/theme.js +1 -1
- data/docs/guides/debugging.html +8 -8
- data/docs/guides/development.html +8 -8
- data/docs/guides/install.html +426 -0
- data/docs/guides/tutorial.html +74 -65
- data/docs/index.html +10 -16
- data/docs/ovtologo.png +0 -0
- data/docs/search_index.json +1 -1
- data/examples/sinatra/Gemfile.lock +2 -2
- data/examples/static/Gemfile.lock +6 -10
- data/lib/ovto.rb +1 -0
- data/lib/ovto/component.rb +25 -12
- data/lib/ovto/fetch.rb +1 -1
- data/lib/ovto/pure_component.rb +22 -0
- data/lib/ovto/version.rb +1 -1
- data/ovto.gemspec +1 -1
- metadata +21 -5
data/docs/api/Ovto/Runtime.html
CHANGED
@@ -313,7 +313,7 @@
|
|
313
313
|
</div>
|
314
314
|
|
315
315
|
<div id="footer">
|
316
|
-
Generated on
|
316
|
+
Generated on Thu Aug 8 01:14:40 2019 by
|
317
317
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
318
318
|
0.9.19 (ruby-2.5.5).
|
319
319
|
</div>
|
data/docs/api/Ovto/State.html
CHANGED
@@ -842,7 +842,7 @@
|
|
842
842
|
</div>
|
843
843
|
|
844
844
|
<div id="footer">
|
845
|
-
Generated on
|
845
|
+
Generated on Thu Aug 8 01:14:40 2019 by
|
846
846
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
847
847
|
0.9.19 (ruby-2.5.5).
|
848
848
|
</div>
|
@@ -125,7 +125,7 @@
|
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div id="footer">
|
128
|
-
Generated on
|
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>
|
@@ -125,7 +125,7 @@
|
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div id="footer">
|
128
|
-
Generated on
|
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>
|
@@ -402,7 +402,7 @@
|
|
402
402
|
</div>
|
403
403
|
|
404
404
|
<div id="footer">
|
405
|
-
Generated on
|
405
|
+
Generated on Thu Aug 8 01:14:40 2019 by
|
406
406
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
407
407
|
0.9.19 (ruby-2.5.5).
|
408
408
|
</div>
|
data/docs/api/_index.html
CHANGED
@@ -150,6 +150,21 @@
|
|
150
150
|
</ul>
|
151
151
|
|
152
152
|
|
153
|
+
<ul id="alpha_P" class="alpha">
|
154
|
+
<li class="letter">P</li>
|
155
|
+
<ul>
|
156
|
+
|
157
|
+
<li>
|
158
|
+
<span class='object_link'><a href="Ovto/PureComponent.html" title="Ovto::PureComponent (class)">PureComponent</a></span>
|
159
|
+
|
160
|
+
<small>(Ovto)</small>
|
161
|
+
|
162
|
+
</li>
|
163
|
+
|
164
|
+
</ul>
|
165
|
+
</ul>
|
166
|
+
|
167
|
+
|
153
168
|
<ul id="alpha_R" class="alpha">
|
154
169
|
<li class="letter">R</li>
|
155
170
|
<ul>
|
@@ -176,10 +191,20 @@
|
|
176
191
|
|
177
192
|
</li>
|
178
193
|
|
194
|
+
<li>
|
195
|
+
<span class='object_link'><a href="Ovto/PureComponent/StateIsNotAvailable.html" title="Ovto::PureComponent::StateIsNotAvailable (class)">StateIsNotAvailable</a></span>
|
196
|
+
|
197
|
+
<small>(Ovto::PureComponent)</small>
|
198
|
+
|
199
|
+
</li>
|
200
|
+
|
179
201
|
</ul>
|
180
202
|
</ul>
|
181
203
|
|
182
204
|
|
205
|
+
</td><td valign='top' width="33%">
|
206
|
+
|
207
|
+
|
183
208
|
<ul id="alpha_U" class="alpha">
|
184
209
|
<li class="letter">U</li>
|
185
210
|
<ul>
|
@@ -195,9 +220,6 @@
|
|
195
220
|
</ul>
|
196
221
|
|
197
222
|
|
198
|
-
</td><td valign='top' width="33%">
|
199
|
-
|
200
|
-
|
201
223
|
<ul id="alpha_W" class="alpha">
|
202
224
|
<li class="letter">W</li>
|
203
225
|
<ul>
|
@@ -221,7 +243,7 @@
|
|
221
243
|
</div>
|
222
244
|
|
223
245
|
<div id="footer">
|
224
|
-
Generated on
|
246
|
+
Generated on Thu Aug 8 01:14:40 2019 by
|
225
247
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
226
248
|
0.9.19 (ruby-2.5.5).
|
227
249
|
</div>
|
data/docs/api/actions.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
<title>Ovto::Actions · GitBook</title>
|
8
8
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
9
9
|
<meta name="description" content="">
|
10
|
-
<meta name="generator" content="GitBook 3.2.
|
10
|
+
<meta name="generator" content="GitBook 3.2.2">
|
11
11
|
|
12
12
|
|
13
13
|
|
@@ -102,12 +102,12 @@
|
|
102
102
|
|
103
103
|
</li>
|
104
104
|
|
105
|
-
<li class="chapter " data-level="1.2" data-path="../">
|
105
|
+
<li class="chapter " data-level="1.2" data-path="../guides/tutorial.html">
|
106
106
|
|
107
|
-
<a href="../">
|
107
|
+
<a href="../guides/tutorial.html">
|
108
108
|
|
109
109
|
|
110
|
-
|
110
|
+
Getting Started
|
111
111
|
|
112
112
|
</a>
|
113
113
|
|
@@ -115,12 +115,12 @@
|
|
115
115
|
|
116
116
|
</li>
|
117
117
|
|
118
|
-
<li class="chapter " data-level="1.3" data-path="../guides/
|
118
|
+
<li class="chapter " data-level="1.3" data-path="../guides/install.html">
|
119
119
|
|
120
|
-
<a href="../guides/
|
120
|
+
<a href="../guides/install.html">
|
121
121
|
|
122
122
|
|
123
|
-
|
123
|
+
Install
|
124
124
|
|
125
125
|
</a>
|
126
126
|
|
@@ -407,7 +407,7 @@ In such cases, you can call another action via <code>actions</code> to tell Ovto
|
|
407
407
|
<script>
|
408
408
|
var gitbook = gitbook || [];
|
409
409
|
gitbook.push(function() {
|
410
|
-
gitbook.page.hasChanged({"page":{"title":"Ovto::Actions","level":"1.4.3","depth":2,"next":{"title":"Ovto::Component","level":"1.4.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},"previous":{"title":"Ovto::State","level":"1.4.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/actions.md","mtime":"2019-04-18T08:50:22.000Z","type":"markdown"},"gitbook":{"version":"3.2.
|
410
|
+
gitbook.page.hasChanged({"page":{"title":"Ovto::Actions","level":"1.4.3","depth":2,"next":{"title":"Ovto::Component","level":"1.4.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},"previous":{"title":"Ovto::State","level":"1.4.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/actions.md","mtime":"2019-04-18T08:50:22.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2019-08-07T16:14:36.732Z"},"basePath":"..","book":{"language":""}});
|
411
411
|
});
|
412
412
|
</script>
|
413
413
|
</div>
|
data/docs/api/app.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
<title>Ovto::App · GitBook</title>
|
8
8
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
9
9
|
<meta name="description" content="">
|
10
|
-
<meta name="generator" content="GitBook 3.2.
|
10
|
+
<meta name="generator" content="GitBook 3.2.2">
|
11
11
|
|
12
12
|
|
13
13
|
|
@@ -100,12 +100,12 @@
|
|
100
100
|
|
101
101
|
</li>
|
102
102
|
|
103
|
-
<li class="chapter " data-level="1.2" data-path="../">
|
103
|
+
<li class="chapter " data-level="1.2" data-path="../guides/tutorial.html">
|
104
104
|
|
105
|
-
<a href="../">
|
105
|
+
<a href="../guides/tutorial.html">
|
106
106
|
|
107
107
|
|
108
|
-
|
108
|
+
Getting Started
|
109
109
|
|
110
110
|
</a>
|
111
111
|
|
@@ -113,12 +113,12 @@
|
|
113
113
|
|
114
114
|
</li>
|
115
115
|
|
116
|
-
<li class="chapter " data-level="1.3" data-path="../guides/
|
116
|
+
<li class="chapter " data-level="1.3" data-path="../guides/install.html">
|
117
117
|
|
118
|
-
<a href="../guides/
|
118
|
+
<a href="../guides/install.html">
|
119
119
|
|
120
120
|
|
121
|
-
|
121
|
+
Install
|
122
122
|
|
123
123
|
</a>
|
124
124
|
|
@@ -411,7 +411,7 @@ MyApp.run(<span class="hljs-symbol">id:</span> <span class="hljs-string">'o
|
|
411
411
|
<script>
|
412
412
|
var gitbook = gitbook || [];
|
413
413
|
gitbook.push(function() {
|
414
|
-
gitbook.page.hasChanged({"page":{"title":"Ovto::App","level":"1.4.1","depth":2,"next":{"title":"Ovto::State","level":"1.4.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},"previous":{"title":"API","level":"1.4","depth":1,"ref":"","articles":[{"title":"Ovto::App","level":"1.4.1","depth":2,"path":"api/app.md","ref":"api/app.md","articles":[]},{"title":"Ovto::State","level":"1.4.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},{"title":"Ovto::Actions","level":"1.4.3","depth":2,"path":"api/actions.md","ref":"api/actions.md","articles":[]},{"title":"Ovto::Component","level":"1.4.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},{"title":"Ovto.fetch","level":"1.4.5","depth":2,"path":"api/fetch.md","ref":"api/fetch.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/app.md","mtime":"2019-04-18T08:51:42.000Z","type":"markdown"},"gitbook":{"version":"3.2.
|
414
|
+
gitbook.page.hasChanged({"page":{"title":"Ovto::App","level":"1.4.1","depth":2,"next":{"title":"Ovto::State","level":"1.4.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},"previous":{"title":"API","level":"1.4","depth":1,"ref":"","articles":[{"title":"Ovto::App","level":"1.4.1","depth":2,"path":"api/app.md","ref":"api/app.md","articles":[]},{"title":"Ovto::State","level":"1.4.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},{"title":"Ovto::Actions","level":"1.4.3","depth":2,"path":"api/actions.md","ref":"api/actions.md","articles":[]},{"title":"Ovto::Component","level":"1.4.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},{"title":"Ovto.fetch","level":"1.4.5","depth":2,"path":"api/fetch.md","ref":"api/fetch.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/app.md","mtime":"2019-04-18T08:51:42.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2019-08-07T16:14:36.732Z"},"basePath":"..","book":{"language":""}});
|
415
415
|
});
|
416
416
|
</script>
|
417
417
|
</div>
|
data/docs/api/class_list.html
CHANGED
@@ -43,7 +43,7 @@
|
|
43
43
|
|
44
44
|
<ul id="full_list" class="class">
|
45
45
|
<li id="object_" class="odd"><div class="item" style="padding-left:30px"><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></div></li>
|
46
|
-
<li id='object_Ovto' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="Ovto.html" title="Ovto (module)">Ovto</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_Ovto::Actions' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Ovto/Actions.html" title="Ovto::Actions (class)">Actions</a></span> < Object<small class='search_info'>Ovto</small></div></li><li id='object_Ovto::App' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Ovto/App.html" title="Ovto::App (class)">App</a></span> < Object<small class='search_info'>Ovto</small></div></li><li id='object_Ovto::Component' class='collapsed odd'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="Ovto/Component.html" title="Ovto::Component (class)">Component</a></span> < Object<small class='search_info'>Ovto</small></div><ul><li id='object_Ovto::Component::MoreThanOneNode' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Ovto/Component/MoreThanOneNode.html" title="Ovto::Component::MoreThanOneNode (class)">MoreThanOneNode</a></span> < StandardError<small class='search_info'>Ovto::Component</small></div></li></ul></li><li id='object_Ovto::
|
46
|
+
<li id='object_Ovto' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="Ovto.html" title="Ovto (module)">Ovto</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_Ovto::Actions' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Ovto/Actions.html" title="Ovto::Actions (class)">Actions</a></span> < Object<small class='search_info'>Ovto</small></div></li><li id='object_Ovto::App' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Ovto/App.html" title="Ovto::App (class)">App</a></span> < Object<small class='search_info'>Ovto</small></div></li><li id='object_Ovto::Component' class='collapsed odd'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="Ovto/Component.html" title="Ovto::Component (class)">Component</a></span> < Object<small class='search_info'>Ovto</small></div><ul><li id='object_Ovto::Component::MoreThanOneNode' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Ovto/Component/MoreThanOneNode.html" title="Ovto::Component::MoreThanOneNode (class)">MoreThanOneNode</a></span> < StandardError<small class='search_info'>Ovto::Component</small></div></li></ul></li><li id='object_Ovto::PureComponent' class='collapsed even'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="Ovto/PureComponent.html" title="Ovto::PureComponent (class)">PureComponent</a></span> < Component<small class='search_info'>Ovto</small></div><ul><li id='object_Ovto::PureComponent::StateIsNotAvailable' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Ovto/PureComponent/StateIsNotAvailable.html" title="Ovto::PureComponent::StateIsNotAvailable (class)">StateIsNotAvailable</a></span> < StandardError<small class='search_info'>Ovto::PureComponent</small></div></li></ul></li><li id='object_Ovto::Runtime' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Ovto/Runtime.html" title="Ovto::Runtime (class)">Runtime</a></span> < Object<small class='search_info'>Ovto</small></div></li><li id='object_Ovto::State' class='collapsed even'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="Ovto/State.html" title="Ovto::State (class)">State</a></span> < Object<small class='search_info'>Ovto</small></div><ul><li id='object_Ovto::State::MissingValue' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Ovto/State/MissingValue.html" title="Ovto::State::MissingValue (class)">MissingValue</a></span> < StandardError<small class='search_info'>Ovto::State</small></div></li><li id='object_Ovto::State::UnknownKey' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Ovto/State/UnknownKey.html" title="Ovto::State::UnknownKey (class)">UnknownKey</a></span> < StandardError<small class='search_info'>Ovto::State</small></div></li></ul></li><li id='object_Ovto::WiredActions' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Ovto/WiredActions.html" title="Ovto::WiredActions (class)">WiredActions</a></span> < Object<small class='search_info'>Ovto</small></div></li></ul></li>
|
47
47
|
|
48
48
|
</ul>
|
49
49
|
</div>
|
data/docs/api/component.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
<title>Ovto::Component · GitBook</title>
|
8
8
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
9
9
|
<meta name="description" content="">
|
10
|
-
<meta name="generator" content="GitBook 3.2.
|
10
|
+
<meta name="generator" content="GitBook 3.2.2">
|
11
11
|
|
12
12
|
|
13
13
|
|
@@ -102,12 +102,12 @@
|
|
102
102
|
|
103
103
|
</li>
|
104
104
|
|
105
|
-
<li class="chapter " data-level="1.2" data-path="../">
|
105
|
+
<li class="chapter " data-level="1.2" data-path="../guides/tutorial.html">
|
106
106
|
|
107
|
-
<a href="../">
|
107
|
+
<a href="../guides/tutorial.html">
|
108
108
|
|
109
109
|
|
110
|
-
|
110
|
+
Getting Started
|
111
111
|
|
112
112
|
</a>
|
113
113
|
|
@@ -115,12 +115,12 @@
|
|
115
115
|
|
116
116
|
</li>
|
117
117
|
|
118
|
-
<li class="chapter " data-level="1.3" data-path="../guides/
|
118
|
+
<li class="chapter " data-level="1.3" data-path="../guides/install.html">
|
119
119
|
|
120
|
-
<a href="../guides/
|
120
|
+
<a href="../guides/install.html">
|
121
121
|
|
122
122
|
|
123
|
-
|
123
|
+
Install
|
124
124
|
|
125
125
|
</a>
|
126
126
|
|
@@ -467,7 +467,7 @@ HTML could be described like this.</p>
|
|
467
467
|
<script>
|
468
468
|
var gitbook = gitbook || [];
|
469
469
|
gitbook.push(function() {
|
470
|
-
gitbook.page.hasChanged({"page":{"title":"Ovto::Component","level":"1.4.4","depth":2,"next":{"title":"Ovto.fetch","level":"1.4.5","depth":2,"path":"api/fetch.md","ref":"api/fetch.md","articles":[]},"previous":{"title":"Ovto::Actions","level":"1.4.3","depth":2,"path":"api/actions.md","ref":"api/actions.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/component.md","mtime":"2019-04-18T08:50:59.000Z","type":"markdown"},"gitbook":{"version":"3.2.
|
470
|
+
gitbook.page.hasChanged({"page":{"title":"Ovto::Component","level":"1.4.4","depth":2,"next":{"title":"Ovto.fetch","level":"1.4.5","depth":2,"path":"api/fetch.md","ref":"api/fetch.md","articles":[]},"previous":{"title":"Ovto::Actions","level":"1.4.3","depth":2,"path":"api/actions.md","ref":"api/actions.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/component.md","mtime":"2019-04-18T08:50:59.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2019-08-07T16:14:36.732Z"},"basePath":"..","book":{"language":""}});
|
471
471
|
});
|
472
472
|
</script>
|
473
473
|
</div>
|
data/docs/api/fetch.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
<title>Ovto.fetch · GitBook</title>
|
8
8
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
9
9
|
<meta name="description" content="">
|
10
|
-
<meta name="generator" content="GitBook 3.2.
|
10
|
+
<meta name="generator" content="GitBook 3.2.2">
|
11
11
|
|
12
12
|
|
13
13
|
|
@@ -100,12 +100,12 @@
|
|
100
100
|
|
101
101
|
</li>
|
102
102
|
|
103
|
-
<li class="chapter " data-level="1.2" data-path="../">
|
103
|
+
<li class="chapter " data-level="1.2" data-path="../guides/tutorial.html">
|
104
104
|
|
105
|
-
<a href="../">
|
105
|
+
<a href="../guides/tutorial.html">
|
106
106
|
|
107
107
|
|
108
|
-
|
108
|
+
Getting Started
|
109
109
|
|
110
110
|
</a>
|
111
111
|
|
@@ -113,12 +113,12 @@
|
|
113
113
|
|
114
114
|
</li>
|
115
115
|
|
116
|
-
<li class="chapter " data-level="1.3" data-path="../guides/
|
116
|
+
<li class="chapter " data-level="1.3" data-path="../guides/install.html">
|
117
117
|
|
118
|
-
<a href="../guides/
|
118
|
+
<a href="../guides/install.html">
|
119
119
|
|
120
120
|
|
121
|
-
|
121
|
+
Install
|
122
122
|
|
123
123
|
</a>
|
124
124
|
|
@@ -305,21 +305,21 @@
|
|
305
305
|
<p><code>Ovto.fetch</code> returns Opal's Promise object that calls the API with the specified parameters.</p>
|
306
306
|
<h2 id="examples">Examples</h2>
|
307
307
|
<p>GET</p>
|
308
|
-
<pre><code class="lang-rb">Ovto.fetch(<span class="hljs-string">'/api/tasks'</span>){|json_data|
|
308
|
+
<pre><code class="lang-rb">Ovto.fetch(<span class="hljs-string">'/api/tasks'</span>).<span class="hljs-keyword">then</span>{|json_data|
|
309
309
|
p json_data
|
310
310
|
}.fail{|e| <span class="hljs-comment"># Network error, 404 Not Found, JSON parse error, etc.</span>
|
311
311
|
p e
|
312
312
|
}
|
313
313
|
</code></pre>
|
314
314
|
<p>POST</p>
|
315
|
-
<pre><code class="lang-rb">Ovto.fetch(<span class="hljs-string">'/api/new_task'</span>, <span class="hljs-string">'POST'</span>, {<span class="hljs-symbol">title:</span> <span class="hljs-string">"do something"</span>}){|json_data|
|
315
|
+
<pre><code class="lang-rb">Ovto.fetch(<span class="hljs-string">'/api/new_task'</span>, <span class="hljs-string">'POST'</span>, {<span class="hljs-symbol">title:</span> <span class="hljs-string">"do something"</span>}).<span class="hljs-keyword">then</span>{|json_data|
|
316
316
|
p json_data
|
317
317
|
}.fail{|e| <span class="hljs-comment"># Network error, 404 Not Found, JSON parse error, etc.</span>
|
318
318
|
p e
|
319
319
|
}
|
320
320
|
</code></pre>
|
321
321
|
<p>PUT</p>
|
322
|
-
<pre><code class="lang-rb">Ovto.fetch(<span class="hljs-string">'/api/tasks/1'</span>, <span class="hljs-string">'PUT'</span>, {<span class="hljs-symbol">title:</span> <span class="hljs-string">"do something"</span>}){|json_data|
|
322
|
+
<pre><code class="lang-rb">Ovto.fetch(<span class="hljs-string">'/api/tasks/1'</span>, <span class="hljs-string">'PUT'</span>, {<span class="hljs-symbol">title:</span> <span class="hljs-string">"do something"</span>}).<span class="hljs-keyword">then</span>{|json_data|
|
323
323
|
p json_data
|
324
324
|
}.fail{|e| <span class="hljs-comment"># Network error, 404 Not Found, JSON parse error, etc.</span>
|
325
325
|
p e
|
@@ -366,7 +366,7 @@
|
|
366
366
|
<script>
|
367
367
|
var gitbook = gitbook || [];
|
368
368
|
gitbook.push(function() {
|
369
|
-
gitbook.page.hasChanged({"page":{"title":"Ovto.fetch","level":"1.4.5","depth":2,"next":{"title":"Guides","level":"1.5","depth":1,"ref":"","articles":[{"title":"Debugging","level":"1.5.1","depth":2,"path":"guides/debugging.md","ref":"guides/debugging.md","articles":[]},{"title":"Development","level":"1.5.2","depth":2,"path":"guides/development.md","ref":"guides/development.md","articles":[]}]},"previous":{"title":"Ovto::Component","level":"1.4.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/fetch.md","mtime":"
|
369
|
+
gitbook.page.hasChanged({"page":{"title":"Ovto.fetch","level":"1.4.5","depth":2,"next":{"title":"Guides","level":"1.5","depth":1,"ref":"","articles":[{"title":"Debugging","level":"1.5.1","depth":2,"path":"guides/debugging.md","ref":"guides/debugging.md","articles":[]},{"title":"Development","level":"1.5.2","depth":2,"path":"guides/development.md","ref":"guides/development.md","articles":[]}]},"previous":{"title":"Ovto::Component","level":"1.4.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"api/fetch.md","mtime":"2019-08-07T16:07:49.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2019-08-07T16:14:36.732Z"},"basePath":"..","book":{"language":""}});
|
370
370
|
});
|
371
371
|
</script>
|
372
372
|
</div>
|
data/docs/api/file.README.html
CHANGED
@@ -57,103 +57,99 @@
|
|
57
57
|
<div class="clear"></div>
|
58
58
|
</div>
|
59
59
|
|
60
|
-
<div id="content"><div id='filecontents'>
|
61
|
-
<h1 id="label-Ovto">Ovto</h1>
|
60
|
+
<div id="content"><div id='filecontents'><h1>Ovto</h1>
|
62
61
|
|
63
62
|
<p>Client-side web framework for Opal</p>
|
64
63
|
|
65
|
-
<p><img src="ovtologo.png"></p>
|
66
|
-
|
67
|
-
<h2
|
68
|
-
|
69
|
-
<
|
70
|
-
|
71
|
-
<
|
72
|
-
</
|
73
|
-
|
74
|
-
<h2
|
75
|
-
|
76
|
-
<p><img src="screenshot.png"></p>
|
77
|
-
|
78
|
-
<pre class="code
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
64
|
+
<p><img src="ovtologo.png" alt="logo"></p>
|
65
|
+
|
66
|
+
<h2>Documents</h2>
|
67
|
+
|
68
|
+
<ul>
|
69
|
+
<li><a href="https://yhara.github.io/ovto/docs/">Book</a></li>
|
70
|
+
<li><a href="https://yhara.github.io/ovto/api/">yardoc</a></li>
|
71
|
+
</ul>
|
72
|
+
|
73
|
+
<h2>Example</h2>
|
74
|
+
|
75
|
+
<p><img src="screenshot.png" alt="screenshot"></p>
|
76
|
+
|
77
|
+
<pre class="code rb"><code class="rb">require 'ovto'
|
78
|
+
|
79
|
+
class MyApp < Ovto::App
|
80
|
+
class State < Ovto::State
|
81
|
+
item :celsius, default: 0
|
82
|
+
|
83
|
+
def fahrenheit
|
84
|
+
(celsius * 9 / 5.0) + 32
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
class Actions < Ovto::Actions
|
89
|
+
def set_celsius(value:)
|
90
|
+
return {celsius: value}
|
91
|
+
end
|
92
|
+
|
93
|
+
def set_fahrenheit(value:)
|
94
|
+
new_celsius = (value - 32) * 5 / 9.0
|
95
|
+
return {celsius: new_celsius}
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
class MainComponent < Ovto::Component
|
100
|
+
def render
|
101
|
+
o 'div' do
|
102
|
+
o 'span', 'Celcius:'
|
103
|
+
o 'input', {
|
104
|
+
type: 'text',
|
105
|
+
onchange: ->(e){ actions.set_celsius(value: e.target.value.to_i) },
|
106
|
+
value: state.celsius
|
107
|
+
}
|
108
|
+
o 'span', 'Fahrenheit:'
|
109
|
+
o 'input', {
|
110
|
+
type: 'text',
|
111
|
+
onchange: ->(e){ actions.set_fahrenheit(value: e.target.value.to_i) },
|
112
|
+
value: state.fahrenheit
|
113
|
+
}
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
MyApp.run(id: 'ovto')
|
121
120
|
</code></pre>
|
122
121
|
|
123
|
-
<p>See the <a
|
124
|
-
href="https://yhara.github.io/ovto/guides/tutorial.html">book</a> for
|
125
|
-
details.</p>
|
122
|
+
<p>See the <a href="https://yhara.github.io/ovto/docs/guides/tutorial.html">book</a> for details.</p>
|
126
123
|
|
127
|
-
<h2
|
124
|
+
<h2>Setup</h2>
|
128
125
|
|
129
|
-
<h3
|
126
|
+
<h3>Static</h3>
|
130
127
|
|
131
|
-
<p><a href="./examples/static">./examples/static</a> demonstrates how to
|
132
|
-
|
128
|
+
<p><a href="./examples/static">./examples/static</a> demonstrates how to convert Ovto app
|
129
|
+
into a .js file.</p>
|
133
130
|
|
134
|
-
<h3
|
131
|
+
<h3>Ovto + Sinatra</h3>
|
135
132
|
|
136
|
-
<p><a href="./examples/sinatra">./examples/sinatra</a> demonstrates how to
|
137
|
-
|
133
|
+
<p><a href="./examples/sinatra">./examples/sinatra</a> demonstrates how to serve Ovto app
|
134
|
+
from Sinatra.</p>
|
138
135
|
|
139
|
-
<h3
|
136
|
+
<h3>Ovto + Rails</h3>
|
140
137
|
|
141
|
-
<p><a href="https://github.com/yhara/vision">yhara/vision</a> is a working
|
142
|
-
example of using Ovto with Rails 5.</p>
|
138
|
+
<p><a href="https://github.com/yhara/vision">yhara/vision</a> is a working example of using Ovto with Rails 5.</p>
|
143
139
|
|
144
|
-
<h2
|
145
|
-
<ul><li>
|
146
|
-
<p><a href="https://github.com/hyperapp/hyperapp">hyperapp</a></p>
|
147
|
-
</li></ul>
|
140
|
+
<h2>Acknowledgements</h2>
|
148
141
|
|
149
|
-
<
|
142
|
+
<ul>
|
143
|
+
<li><a href="https://github.com/hyperapp/hyperapp">hyperapp</a></li>
|
144
|
+
</ul>
|
150
145
|
|
151
|
-
<
|
152
|
-
|
146
|
+
<h2>Contact</h2>
|
147
|
+
|
148
|
+
<p><a href="https://github.com/yhara/ovto/issues">https://github.com/yhara/ovto/issues</a></p>
|
153
149
|
</div></div>
|
154
150
|
|
155
151
|
<div id="footer">
|
156
|
-
Generated on
|
152
|
+
Generated on Thu Aug 8 01:14:40 2019 by
|
157
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
158
154
|
0.9.19 (ruby-2.5.5).
|
159
155
|
</div>
|