ovto 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -4
- data/Gemfile.lock +1 -1
- data/Rakefile +13 -14
- data/docs/api/Ovto/Actions.html +1 -1
- data/docs/api/Ovto/App.html +1 -1
- data/docs/api/Ovto/Component/MoreThanOneNode.html +1 -1
- data/docs/api/Ovto/Component.html +1 -1
- data/docs/api/Ovto/Runtime.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/State.html +42 -36
- data/docs/api/Ovto/WiredActions.html +1 -1
- data/docs/api/Ovto.html +2 -2
- data/docs/api/_index.html +1 -1
- data/docs/api/actions.html +1 -1
- data/docs/api/app.html +1 -1
- data/docs/api/component.html +1 -1
- data/docs/api/file.README.html +1 -1
- data/docs/api/index.html +1 -1
- data/docs/api/state.html +1 -1
- data/docs/api/top-level-namespace.html +1 -1
- data/docs/guides/debugging.html +1 -1
- data/docs/guides/development.html +1 -1
- data/docs/guides/tutorial.html +1 -1
- data/docs/index.html +1 -1
- data/example/sinatra/Gemfile.lock +24 -12
- data/lib/ovto/app.rb +6 -2
- data/lib/ovto/component.rb +8 -2
- data/lib/ovto/runtime.rb +7 -1
- data/lib/ovto/state.rb +3 -0
- data/lib/ovto/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c17abf9bd95d6f8f6cab67b30bd2eb24d176b1d0099c596e6d984248aa401fb1
|
|
4
|
+
data.tar.gz: 93a8b6b2b6afe491c2385b96728021e10f18f94c01d0db9d0f832954e41550b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 207bbcbd1cbeb5bcb9d4c9b8e2f48c6e5b44520bda7946d06b8029aeb12c2956c754a15dc6e1e802a88073ee6f8781fdac3e34ec34b18d5a06198e6f130e53ff
|
|
7
|
+
data.tar.gz: 80b690d5feea528b4fce13873c0008f09f7c503c5dcb686d6eff30a743036b4bf9592d6267f25ffccaafa05b2e64b2217f71a3d5607db23090c30aba23f2e461
|
data/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
##
|
|
1
|
+
## HEAD
|
|
2
|
+
|
|
3
|
+
## v0.2.3 (2018-11-13)
|
|
4
|
+
|
|
5
|
+
- fix: `o "div" do ... end` raises error when ... is `[]`
|
|
6
|
+
- fix: error on calling actions before DOMContentLoaded
|
|
7
|
+
|
|
8
|
+
## v0.2.2 (2018-11-07)
|
|
2
9
|
|
|
3
10
|
- security: Update rack
|
|
4
11
|
|
|
5
|
-
## v0.2.1 2018-11-02
|
|
12
|
+
## v0.2.1 (2018-11-02)
|
|
6
13
|
|
|
7
14
|
- fix: gem install error on Windows (due to symlink)
|
|
8
15
|
|
|
9
|
-
## v0.2.0 2018-11-01
|
|
16
|
+
## v0.2.0 (2018-11-01)
|
|
10
17
|
|
|
11
18
|
New features
|
|
12
19
|
|
|
@@ -25,6 +32,6 @@ Fixes
|
|
|
25
32
|
- `o "div.main", class: 'hovered'` should yield `<div class='main hovered'>`
|
|
26
33
|
- Cannot pass falsy value when rendering a child component
|
|
27
34
|
|
|
28
|
-
## v0.1.0 2018-06-01
|
|
35
|
+
## v0.1.0 (2018-06-01)
|
|
29
36
|
|
|
30
37
|
- Initial release
|
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
|
@@ -24,19 +24,18 @@ namespace :docs do
|
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
task :push_commit do
|
|
35
|
-
sh "git push origin master --tags"
|
|
36
|
-
end
|
|
27
|
+
desc "git ci, git tag and git push"
|
|
28
|
+
task :release do
|
|
29
|
+
load 'lib/ovto/version.rb'
|
|
30
|
+
sh "git diff"
|
|
31
|
+
v = "v#{Ovto::VERSION}"
|
|
32
|
+
puts "release as #{v}? [y/N]"
|
|
33
|
+
break unless $stdin.gets.chomp == "y"
|
|
37
34
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
sh "bundle exec rake docs:build"
|
|
36
|
+
sh "git ci -am '#{v}'"
|
|
37
|
+
sh "git tag '#{v}'"
|
|
38
|
+
sh "git push origin master --tags"
|
|
39
|
+
sh "gem build ovto"
|
|
40
|
+
sh "gem push ovto-#{Ovto::VERSION}.gem"
|
|
42
41
|
end
|
data/docs/api/Ovto/Actions.html
CHANGED
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
</div>
|
|
294
294
|
|
|
295
295
|
<div id="footer">
|
|
296
|
-
Generated on
|
|
296
|
+
Generated on Tue Nov 13 16:32:29 2018 by
|
|
297
297
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
298
298
|
0.9.16 (ruby-2.5.3).
|
|
299
299
|
</div>
|
data/docs/api/Ovto/App.html
CHANGED
|
@@ -610,7 +610,7 @@
|
|
|
610
610
|
</div>
|
|
611
611
|
|
|
612
612
|
<div id="footer">
|
|
613
|
-
Generated on
|
|
613
|
+
Generated on Tue Nov 13 16:32:29 2018 by
|
|
614
614
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
615
615
|
0.9.16 (ruby-2.5.3).
|
|
616
616
|
</div>
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
</div>
|
|
126
126
|
|
|
127
127
|
<div id="footer">
|
|
128
|
-
Generated on
|
|
128
|
+
Generated on Tue Nov 13 16:32:29 2018 by
|
|
129
129
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
130
130
|
0.9.16 (ruby-2.5.3).
|
|
131
131
|
</div>
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
</div>
|
|
341
341
|
|
|
342
342
|
<div id="footer">
|
|
343
|
-
Generated on
|
|
343
|
+
Generated on Tue Nov 13 16:32:29 2018 by
|
|
344
344
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
345
345
|
0.9.16 (ruby-2.5.3).
|
|
346
346
|
</div>
|
data/docs/api/Ovto/Runtime.html
CHANGED
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
</div>
|
|
306
306
|
|
|
307
307
|
<div id="footer">
|
|
308
|
-
Generated on
|
|
308
|
+
Generated on Tue Nov 13 16:32:29 2018 by
|
|
309
309
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
310
310
|
0.9.16 (ruby-2.5.3).
|
|
311
311
|
</div>
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
</div>
|
|
126
126
|
|
|
127
127
|
<div id="footer">
|
|
128
|
-
Generated on
|
|
128
|
+
Generated on Tue Nov 13 16:32:29 2018 by
|
|
129
129
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
130
130
|
0.9.16 (ruby-2.5.3).
|
|
131
131
|
</div>
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
</div>
|
|
126
126
|
|
|
127
127
|
<div id="footer">
|
|
128
|
-
Generated on
|
|
128
|
+
Generated on Tue Nov 13 16:32:29 2018 by
|
|
129
129
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
130
130
|
0.9.16 (ruby-2.5.3).
|
|
131
131
|
</div>
|
data/docs/api/Ovto/State.html
CHANGED
|
@@ -413,9 +413,6 @@
|
|
|
413
413
|
<pre class="lines">
|
|
414
414
|
|
|
415
415
|
|
|
416
|
-
25
|
|
417
|
-
26
|
|
418
|
-
27
|
|
419
416
|
28
|
|
420
417
|
29
|
|
421
418
|
30
|
|
@@ -427,10 +424,13 @@
|
|
|
427
424
|
36
|
|
428
425
|
37
|
|
429
426
|
38
|
|
430
|
-
39
|
|
427
|
+
39
|
|
428
|
+
40
|
|
429
|
+
41
|
|
430
|
+
42</pre>
|
|
431
431
|
</td>
|
|
432
432
|
<td>
|
|
433
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line
|
|
433
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 28</span>
|
|
434
434
|
|
|
435
435
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
436
436
|
<span class='id identifier rubyid_unknown_keys'>unknown_keys</span> <span class='op'>=</span> <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span> <span class='op'>-</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_item_specs'>item_specs</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:first</span><span class='rparen'>)</span>
|
|
@@ -485,12 +485,12 @@
|
|
|
485
485
|
<pre class="lines">
|
|
486
486
|
|
|
487
487
|
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
488
|
+
43
|
|
489
|
+
44
|
|
490
|
+
45</pre>
|
|
491
491
|
</td>
|
|
492
492
|
<td>
|
|
493
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line
|
|
493
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 43</span>
|
|
494
494
|
|
|
495
495
|
<span class='kw'>def</span> <span class='id identifier rubyid_values'>values</span>
|
|
496
496
|
<span class='ivar'>@values</span>
|
|
@@ -578,12 +578,18 @@
|
|
|
578
578
|
15
|
|
579
579
|
16
|
|
580
580
|
17
|
|
581
|
-
18
|
|
581
|
+
18
|
|
582
|
+
19
|
|
583
|
+
20
|
|
584
|
+
21</pre>
|
|
582
585
|
</td>
|
|
583
586
|
<td>
|
|
584
587
|
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 14</span>
|
|
585
588
|
|
|
586
589
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_item'>item</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
590
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
|
|
591
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>options must be a Hash: item :</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>, </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
592
|
+
<span class='kw'>end</span>
|
|
587
593
|
<span class='ivar'>@item_specs</span> <span class='op'><<</span> <span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rbracket'>]</span>
|
|
588
594
|
<span class='comment'># Define accessor
|
|
589
595
|
</span> <span class='id identifier rubyid_define_method'>define_method</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span><span class='lbrace'>{</span> <span class='ivar'>@values</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span> <span class='rbrace'>}</span>
|
|
@@ -619,12 +625,12 @@
|
|
|
619
625
|
<pre class="lines">
|
|
620
626
|
|
|
621
627
|
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
628
|
+
24
|
|
629
|
+
25
|
|
630
|
+
26</pre>
|
|
625
631
|
</td>
|
|
626
632
|
<td>
|
|
627
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line
|
|
633
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 24</span>
|
|
628
634
|
|
|
629
635
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_item_specs'>item_specs</span>
|
|
630
636
|
<span class='ivar'>@item_specs</span>
|
|
@@ -666,12 +672,12 @@
|
|
|
666
672
|
<pre class="lines">
|
|
667
673
|
|
|
668
674
|
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
675
|
+
60
|
|
676
|
+
61
|
|
677
|
+
62</pre>
|
|
672
678
|
</td>
|
|
673
679
|
<td>
|
|
674
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line
|
|
680
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 60</span>
|
|
675
681
|
|
|
676
682
|
<span class='kw'>def</span> <span class='op'>==</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
|
|
677
683
|
<span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="" title="Ovto::State (class)">State</a></span></span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span>
|
|
@@ -707,12 +713,12 @@
|
|
|
707
713
|
<pre class="lines">
|
|
708
714
|
|
|
709
715
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
716
|
+
55
|
|
717
|
+
56
|
|
718
|
+
57</pre>
|
|
713
719
|
</td>
|
|
714
720
|
<td>
|
|
715
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line
|
|
721
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 55</span>
|
|
716
722
|
|
|
717
723
|
<span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
|
|
718
724
|
<span class='ivar'>@values</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span>
|
|
@@ -737,12 +743,12 @@
|
|
|
737
743
|
<pre class="lines">
|
|
738
744
|
|
|
739
745
|
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
746
|
+
68
|
|
747
|
+
69
|
|
748
|
+
70</pre>
|
|
743
749
|
</td>
|
|
744
750
|
<td>
|
|
745
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line
|
|
751
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 68</span>
|
|
746
752
|
|
|
747
753
|
<span class='kw'>def</span> <span class='id identifier rubyid_inspect'>inspect</span>
|
|
748
754
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>#<</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_object_id'>object_id</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@values</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>></span><span class='tstring_end'>"</span></span>
|
|
@@ -778,16 +784,16 @@
|
|
|
778
784
|
<pre class="lines">
|
|
779
785
|
|
|
780
786
|
|
|
781
|
-
43
|
|
782
|
-
44
|
|
783
|
-
45
|
|
784
787
|
46
|
|
785
788
|
47
|
|
786
789
|
48
|
|
787
|
-
49
|
|
790
|
+
49
|
|
791
|
+
50
|
|
792
|
+
51
|
|
793
|
+
52</pre>
|
|
788
794
|
</td>
|
|
789
795
|
<td>
|
|
790
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line
|
|
796
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 46</span>
|
|
791
797
|
|
|
792
798
|
<span class='kw'>def</span> <span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
|
|
793
799
|
<span class='id identifier rubyid_unknown_keys'>unknown_keys</span> <span class='op'>=</span> <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span> <span class='op'>-</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_item_specs'>item_specs</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:first</span><span class='rparen'>)</span>
|
|
@@ -816,12 +822,12 @@
|
|
|
816
822
|
<pre class="lines">
|
|
817
823
|
|
|
818
824
|
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
825
|
+
64
|
|
826
|
+
65
|
|
827
|
+
66</pre>
|
|
822
828
|
</td>
|
|
823
829
|
<td>
|
|
824
|
-
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line
|
|
830
|
+
<pre class="code"><span class="info file"># File 'lib/ovto/state.rb', line 64</span>
|
|
825
831
|
|
|
826
832
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
|
|
827
833
|
<span class='ivar'>@values</span>
|
|
@@ -836,7 +842,7 @@
|
|
|
836
842
|
</div>
|
|
837
843
|
|
|
838
844
|
<div id="footer">
|
|
839
|
-
Generated on
|
|
845
|
+
Generated on Tue Nov 13 16:32:29 2018 by
|
|
840
846
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
841
847
|
0.9.16 (ruby-2.5.3).
|
|
842
848
|
</div>
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
</div>
|
|
334
334
|
|
|
335
335
|
<div id="footer">
|
|
336
|
-
Generated on
|
|
336
|
+
Generated on Tue Nov 13 16:32:29 2018 by
|
|
337
337
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
338
338
|
0.9.16 (ruby-2.5.3).
|
|
339
339
|
</div>
|
data/docs/api/Ovto.html
CHANGED
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
<dt id="VERSION-constant" class="">VERSION =
|
|
108
108
|
|
|
109
109
|
</dt>
|
|
110
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.2.
|
|
110
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.2.3</span><span class='tstring_end'>'</span></span></pre></dd>
|
|
111
111
|
|
|
112
112
|
</dl>
|
|
113
113
|
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
</div>
|
|
517
517
|
|
|
518
518
|
<div id="footer">
|
|
519
|
-
Generated on
|
|
519
|
+
Generated on Tue Nov 13 16:32:29 2018 by
|
|
520
520
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
521
521
|
0.9.16 (ruby-2.5.3).
|
|
522
522
|
</div>
|
data/docs/api/_index.html
CHANGED
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
</div>
|
|
222
222
|
|
|
223
223
|
<div id="footer">
|
|
224
|
-
Generated on
|
|
224
|
+
Generated on Tue Nov 13 16:32:28 2018 by
|
|
225
225
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
226
226
|
0.9.16 (ruby-2.5.3).
|
|
227
227
|
</div>
|
data/docs/api/actions.html
CHANGED
|
@@ -394,7 +394,7 @@ In such cases, you can call another action via <code>actions</code> to tell Ovto
|
|
|
394
394
|
<script>
|
|
395
395
|
var gitbook = gitbook || [];
|
|
396
396
|
gitbook.push(function() {
|
|
397
|
-
gitbook.page.hasChanged({"page":{"title":"Ovto::Actions","level":"1.3.3","depth":2,"next":{"title":"Ovto::Component","level":"1.3.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},"previous":{"title":"Ovto::State","level":"1.3.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":"2018-10-27T08:57:46.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-
|
|
397
|
+
gitbook.page.hasChanged({"page":{"title":"Ovto::Actions","level":"1.3.3","depth":2,"next":{"title":"Ovto::Component","level":"1.3.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},"previous":{"title":"Ovto::State","level":"1.3.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":"2018-10-27T08:57:46.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-13T07:32:25.426Z"},"basePath":"..","book":{"language":""}});
|
|
398
398
|
});
|
|
399
399
|
</script>
|
|
400
400
|
</div>
|
data/docs/api/app.html
CHANGED
|
@@ -398,7 +398,7 @@ MyApp.run(<span class="hljs-symbol">id:</span> <span class="hljs-string">'o
|
|
|
398
398
|
<script>
|
|
399
399
|
var gitbook = gitbook || [];
|
|
400
400
|
gitbook.push(function() {
|
|
401
|
-
gitbook.page.hasChanged({"page":{"title":"Ovto::App","level":"1.3.1","depth":2,"next":{"title":"Ovto::State","level":"1.3.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},"previous":{"title":"API","level":"1.3","depth":1,"ref":"","articles":[{"title":"Ovto::App","level":"1.3.1","depth":2,"path":"api/app.md","ref":"api/app.md","articles":[]},{"title":"Ovto::State","level":"1.3.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},{"title":"Ovto::Actions","level":"1.3.3","depth":2,"path":"api/actions.md","ref":"api/actions.md","articles":[]},{"title":"Ovto::Component","level":"1.3.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},{"title":"Ovto.fetch","level":"1.3.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":"2018-10-27T08:04:24.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-
|
|
401
|
+
gitbook.page.hasChanged({"page":{"title":"Ovto::App","level":"1.3.1","depth":2,"next":{"title":"Ovto::State","level":"1.3.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},"previous":{"title":"API","level":"1.3","depth":1,"ref":"","articles":[{"title":"Ovto::App","level":"1.3.1","depth":2,"path":"api/app.md","ref":"api/app.md","articles":[]},{"title":"Ovto::State","level":"1.3.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},{"title":"Ovto::Actions","level":"1.3.3","depth":2,"path":"api/actions.md","ref":"api/actions.md","articles":[]},{"title":"Ovto::Component","level":"1.3.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},{"title":"Ovto.fetch","level":"1.3.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":"2018-10-27T08:04:24.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-13T07:32:25.426Z"},"basePath":"..","book":{"language":""}});
|
|
402
402
|
});
|
|
403
403
|
</script>
|
|
404
404
|
</div>
|
data/docs/api/component.html
CHANGED
|
@@ -455,7 +455,7 @@ HTML could be described like this.</p>
|
|
|
455
455
|
<script>
|
|
456
456
|
var gitbook = gitbook || [];
|
|
457
457
|
gitbook.push(function() {
|
|
458
|
-
gitbook.page.hasChanged({"page":{"title":"Ovto::Component","level":"1.3.4","depth":2,"next":{"title":"Ovto.fetch","level":"1.3.5","depth":2,"path":"api/fetch.md","ref":"api/fetch.md","articles":[]},"previous":{"title":"Ovto::Actions","level":"1.3.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":"2018-
|
|
458
|
+
gitbook.page.hasChanged({"page":{"title":"Ovto::Component","level":"1.3.4","depth":2,"next":{"title":"Ovto.fetch","level":"1.3.5","depth":2,"path":"api/fetch.md","ref":"api/fetch.md","articles":[]},"previous":{"title":"Ovto::Actions","level":"1.3.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":"2018-11-11T07:17:36.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-13T07:32:25.426Z"},"basePath":"..","book":{"language":""}});
|
|
459
459
|
});
|
|
460
460
|
</script>
|
|
461
461
|
</div>
|
data/docs/api/file.README.html
CHANGED
|
@@ -151,7 +151,7 @@ href="https://github.com/yhara/ovto/issues">github.com/yhara/ovto/issues</a></p>
|
|
|
151
151
|
</div></div>
|
|
152
152
|
|
|
153
153
|
<div id="footer">
|
|
154
|
-
Generated on
|
|
154
|
+
Generated on Tue Nov 13 16:32:29 2018 by
|
|
155
155
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
156
156
|
0.9.16 (ruby-2.5.3).
|
|
157
157
|
</div>
|
data/docs/api/index.html
CHANGED
|
@@ -151,7 +151,7 @@ href="https://github.com/yhara/ovto/issues">github.com/yhara/ovto/issues</a></p>
|
|
|
151
151
|
</div></div>
|
|
152
152
|
|
|
153
153
|
<div id="footer">
|
|
154
|
-
Generated on
|
|
154
|
+
Generated on Tue Nov 13 16:32:28 2018 by
|
|
155
155
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
156
156
|
0.9.16 (ruby-2.5.3).
|
|
157
157
|
</div>
|
data/docs/api/state.html
CHANGED
|
@@ -404,7 +404,7 @@ taro_books = Book.of_author(books, <span class="hljs-string">"taro"</s
|
|
|
404
404
|
<script>
|
|
405
405
|
var gitbook = gitbook || [];
|
|
406
406
|
gitbook.push(function() {
|
|
407
|
-
gitbook.page.hasChanged({"page":{"title":"Ovto::State","level":"1.3.2","depth":2,"next":{"title":"Ovto::Actions","level":"1.3.3","depth":2,"path":"api/actions.md","ref":"api/actions.md","articles":[]},"previous":{"title":"Ovto::App","level":"1.3.1","depth":2,"path":"api/app.md","ref":"api/app.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/state.md","mtime":"2018-05-11T06:21:35.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-
|
|
407
|
+
gitbook.page.hasChanged({"page":{"title":"Ovto::State","level":"1.3.2","depth":2,"next":{"title":"Ovto::Actions","level":"1.3.3","depth":2,"path":"api/actions.md","ref":"api/actions.md","articles":[]},"previous":{"title":"Ovto::App","level":"1.3.1","depth":2,"path":"api/app.md","ref":"api/app.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/state.md","mtime":"2018-05-11T06:21:35.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-13T07:32:25.426Z"},"basePath":"..","book":{"language":""}});
|
|
408
408
|
});
|
|
409
409
|
</script>
|
|
410
410
|
</div>
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
</div>
|
|
166
166
|
|
|
167
167
|
<div id="footer">
|
|
168
|
-
Generated on
|
|
168
|
+
Generated on Tue Nov 13 16:32:29 2018 by
|
|
169
169
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
170
170
|
0.9.16 (ruby-2.5.3).
|
|
171
171
|
</div>
|
data/docs/guides/debugging.html
CHANGED
|
@@ -339,7 +339,7 @@ JavaScript objects too.</p>
|
|
|
339
339
|
<script>
|
|
340
340
|
var gitbook = gitbook || [];
|
|
341
341
|
gitbook.push(function() {
|
|
342
|
-
gitbook.page.hasChanged({"page":{"title":"Debugging","level":"1.4.1","depth":2,"next":{"title":"Development","level":"1.4.2","depth":2,"path":"guides/development.md","ref":"guides/development.md","articles":[]},"previous":{"title":"Guides","level":"1.4","depth":1,"ref":"","articles":[{"title":"Debugging","level":"1.4.1","depth":2,"path":"guides/debugging.md","ref":"guides/debugging.md","articles":[]},{"title":"Development","level":"1.4.2","depth":2,"path":"guides/development.md","ref":"guides/development.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":"guides/debugging.md","mtime":"2018-08-16T13:15:42.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-
|
|
342
|
+
gitbook.page.hasChanged({"page":{"title":"Debugging","level":"1.4.1","depth":2,"next":{"title":"Development","level":"1.4.2","depth":2,"path":"guides/development.md","ref":"guides/development.md","articles":[]},"previous":{"title":"Guides","level":"1.4","depth":1,"ref":"","articles":[{"title":"Debugging","level":"1.4.1","depth":2,"path":"guides/debugging.md","ref":"guides/debugging.md","articles":[]},{"title":"Development","level":"1.4.2","depth":2,"path":"guides/development.md","ref":"guides/development.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":"guides/debugging.md","mtime":"2018-08-16T13:15:42.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-13T07:32:25.426Z"},"basePath":"..","book":{"language":""}});
|
|
343
343
|
});
|
|
344
344
|
</script>
|
|
345
345
|
</div>
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
<script>
|
|
336
336
|
var gitbook = gitbook || [];
|
|
337
337
|
gitbook.push(function() {
|
|
338
|
-
gitbook.page.hasChanged({"page":{"title":"Development","level":"1.4.2","depth":2,"previous":{"title":"Debugging","level":"1.4.1","depth":2,"path":"guides/debugging.md","ref":"guides/debugging.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":"guides/development.md","mtime":"2018-05-24T07:03:24.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-
|
|
338
|
+
gitbook.page.hasChanged({"page":{"title":"Development","level":"1.4.2","depth":2,"previous":{"title":"Debugging","level":"1.4.1","depth":2,"path":"guides/debugging.md","ref":"guides/debugging.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":"guides/development.md","mtime":"2018-05-24T07:03:24.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-13T07:32:25.426Z"},"basePath":"..","book":{"language":""}});
|
|
339
339
|
});
|
|
340
340
|
</script>
|
|
341
341
|
</div>
|
data/docs/guides/tutorial.html
CHANGED
|
@@ -545,7 +545,7 @@ Fahrenheit degree into Celsius and set it to the global state.</p>
|
|
|
545
545
|
<script>
|
|
546
546
|
var gitbook = gitbook || [];
|
|
547
547
|
gitbook.push(function() {
|
|
548
|
-
gitbook.page.hasChanged({"page":{"title":"Getting Started","level":"1.2","depth":1,"next":{"title":"API","level":"1.3","depth":1,"ref":"","articles":[{"title":"Ovto::App","level":"1.3.1","depth":2,"path":"api/app.md","ref":"api/app.md","articles":[]},{"title":"Ovto::State","level":"1.3.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},{"title":"Ovto::Actions","level":"1.3.3","depth":2,"path":"api/actions.md","ref":"api/actions.md","articles":[]},{"title":"Ovto::Component","level":"1.3.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},{"title":"Ovto.fetch","level":"1.3.5","depth":2,"path":"api/fetch.md","ref":"api/fetch.md","articles":[]}]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.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":"guides/tutorial.md","mtime":"2018-06-01T11:09:14.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-
|
|
548
|
+
gitbook.page.hasChanged({"page":{"title":"Getting Started","level":"1.2","depth":1,"next":{"title":"API","level":"1.3","depth":1,"ref":"","articles":[{"title":"Ovto::App","level":"1.3.1","depth":2,"path":"api/app.md","ref":"api/app.md","articles":[]},{"title":"Ovto::State","level":"1.3.2","depth":2,"path":"api/state.md","ref":"api/state.md","articles":[]},{"title":"Ovto::Actions","level":"1.3.3","depth":2,"path":"api/actions.md","ref":"api/actions.md","articles":[]},{"title":"Ovto::Component","level":"1.3.4","depth":2,"path":"api/component.md","ref":"api/component.md","articles":[]},{"title":"Ovto.fetch","level":"1.3.5","depth":2,"path":"api/fetch.md","ref":"api/fetch.md","articles":[]}]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.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":"guides/tutorial.md","mtime":"2018-06-01T11:09:14.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-13T07:32:25.426Z"},"basePath":"..","book":{"language":""}});
|
|
549
549
|
});
|
|
550
550
|
</script>
|
|
551
551
|
</div>
|
data/docs/index.html
CHANGED
|
@@ -395,7 +395,7 @@ from Sinatra.</p>
|
|
|
395
395
|
<script>
|
|
396
396
|
var gitbook = gitbook || [];
|
|
397
397
|
gitbook.push(function() {
|
|
398
|
-
gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"Getting Started","level":"1.2","depth":1,"path":"guides/tutorial.md","ref":"guides/tutorial.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":"README.md","mtime":"2018-10-31T11:57:20.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-
|
|
398
|
+
gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"Getting Started","level":"1.2","depth":1,"path":"guides/tutorial.md","ref":"guides/tutorial.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":"README.md","mtime":"2018-10-31T11:57:20.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-13T07:32:25.426Z"},"basePath":".","book":{"language":""}});
|
|
399
399
|
});
|
|
400
400
|
</script>
|
|
401
401
|
</div>
|
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ../..
|
|
3
3
|
specs:
|
|
4
|
-
ovto (0.2.
|
|
4
|
+
ovto (0.2.2)
|
|
5
5
|
opal (~> 0.11)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
+
activesupport (5.2.1)
|
|
11
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
12
|
+
i18n (>= 0.7, < 2)
|
|
13
|
+
minitest (~> 5.1)
|
|
14
|
+
tzinfo (~> 1.1)
|
|
10
15
|
ast (2.4.0)
|
|
11
|
-
backports (3.11.
|
|
12
|
-
concurrent-ruby (1.
|
|
16
|
+
backports (3.11.4)
|
|
17
|
+
concurrent-ruby (1.1.3)
|
|
13
18
|
hike (1.2.3)
|
|
19
|
+
i18n (1.1.1)
|
|
20
|
+
concurrent-ruby (~> 1.0)
|
|
21
|
+
minitest (5.11.3)
|
|
14
22
|
multi_json (1.13.1)
|
|
15
|
-
mustermann (1.0.
|
|
23
|
+
mustermann (1.0.3)
|
|
16
24
|
opal (0.11.4)
|
|
17
25
|
ast (>= 2.3.0)
|
|
18
26
|
hike (~> 1.2)
|
|
@@ -25,25 +33,29 @@ GEM
|
|
|
25
33
|
parser (2.3.3.1)
|
|
26
34
|
ast (~> 2.2)
|
|
27
35
|
rack (2.0.6)
|
|
28
|
-
rack-protection (2.0.
|
|
36
|
+
rack-protection (2.0.4)
|
|
29
37
|
rack
|
|
30
|
-
sinatra (2.0.
|
|
38
|
+
sinatra (2.0.4)
|
|
31
39
|
mustermann (~> 1.0)
|
|
32
40
|
rack (~> 2.0)
|
|
33
|
-
rack-protection (= 2.0.
|
|
41
|
+
rack-protection (= 2.0.4)
|
|
34
42
|
tilt (~> 2.0)
|
|
35
|
-
sinatra-contrib (2.0.
|
|
36
|
-
|
|
43
|
+
sinatra-contrib (2.0.4)
|
|
44
|
+
activesupport (>= 4.0.0)
|
|
45
|
+
backports (>= 2.8.2)
|
|
37
46
|
multi_json
|
|
38
47
|
mustermann (~> 1.0)
|
|
39
|
-
rack-protection (= 2.0.
|
|
40
|
-
sinatra (= 2.0.
|
|
48
|
+
rack-protection (= 2.0.4)
|
|
49
|
+
sinatra (= 2.0.4)
|
|
41
50
|
tilt (>= 1.3, < 3)
|
|
42
51
|
sourcemap (0.1.1)
|
|
43
|
-
sprockets (3.7.
|
|
52
|
+
sprockets (3.7.2)
|
|
44
53
|
concurrent-ruby (~> 1.0)
|
|
45
54
|
rack (> 1, < 3)
|
|
55
|
+
thread_safe (0.3.6)
|
|
46
56
|
tilt (2.0.8)
|
|
57
|
+
tzinfo (1.2.5)
|
|
58
|
+
thread_safe (~> 0.1)
|
|
47
59
|
|
|
48
60
|
PLATFORMS
|
|
49
61
|
ruby
|
data/lib/ovto/app.rb
CHANGED
|
@@ -46,12 +46,16 @@ module Ovto
|
|
|
46
46
|
if (!container) {
|
|
47
47
|
throw "Ovto::App#run: tag with id='" + id + "' was not found";
|
|
48
48
|
}
|
|
49
|
-
#{runtime
|
|
49
|
+
#{start_application(runtime, view, `container`)}
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
else
|
|
53
|
-
runtime
|
|
53
|
+
start_application(runtime, view, nil)
|
|
54
54
|
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def start_application(runtime, view, container)
|
|
58
|
+
runtime.run(view, container)
|
|
55
59
|
setup
|
|
56
60
|
end
|
|
57
61
|
end
|
data/lib/ovto/component.rb
CHANGED
|
@@ -150,15 +150,21 @@ module Ovto
|
|
|
150
150
|
@vdom_tree.push []
|
|
151
151
|
block_value = block.call
|
|
152
152
|
results = @vdom_tree.pop
|
|
153
|
-
if results.length > 0
|
|
153
|
+
if results.length > 0 # 'o' was called at least once
|
|
154
154
|
results
|
|
155
|
-
|
|
155
|
+
elsif block_value.is_a?(String)
|
|
156
156
|
# When 'o' is never called in the child block, use the last value
|
|
157
157
|
# eg.
|
|
158
158
|
# o 'span' do
|
|
159
159
|
# 'Hello' #=> This will be the content of the span tag
|
|
160
160
|
# end
|
|
161
161
|
[block_value]
|
|
162
|
+
else
|
|
163
|
+
# o 'div' do
|
|
164
|
+
# # When items is `[]`, 'o' is never called and `block_value` will be `[]`
|
|
165
|
+
# items.each{ o 'div', '...' }
|
|
166
|
+
# end
|
|
167
|
+
[]
|
|
162
168
|
end
|
|
163
169
|
else
|
|
164
170
|
[]
|
data/lib/ovto/runtime.rb
CHANGED
|
@@ -51,7 +51,13 @@ end
|
|
|
51
51
|
return "";
|
|
52
52
|
}
|
|
53
53
|
else if (node.$$id) { // is a Opal obj
|
|
54
|
-
|
|
54
|
+
if (node.$render_view) {
|
|
55
|
+
return node.$render_view(getState());
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
throw "resolveNode: render_view not defined on " + node.$inspect();
|
|
59
|
+
return "";
|
|
60
|
+
}
|
|
55
61
|
}
|
|
56
62
|
else {
|
|
57
63
|
return node;
|
data/lib/ovto/state.rb
CHANGED
|
@@ -12,6 +12,9 @@ module Ovto
|
|
|
12
12
|
|
|
13
13
|
# Declare state item
|
|
14
14
|
def self.item(name, options={})
|
|
15
|
+
unless options.is_a?(Hash)
|
|
16
|
+
raise ArgumentError, "options must be a Hash: item :#{name}, #{options.inspect}"
|
|
17
|
+
end
|
|
15
18
|
@item_specs << [name, options]
|
|
16
19
|
# Define accessor
|
|
17
20
|
define_method(name){ @values[name] }
|
data/lib/ovto/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ovto
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yutaka HARA
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-11-
|
|
11
|
+
date: 2018-11-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: opal
|