ovto 0.6.2 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/Gemfile.lock +15 -16
  4. data/Rakefile +2 -9
  5. data/book/SUMMARY.md +15 -11
  6. data/book/book.toml +10 -0
  7. data/docs/.nojekyll +1 -0
  8. data/docs/404.html +189 -0
  9. data/docs/FontAwesome/css/font-awesome.css +4 -0
  10. data/docs/FontAwesome/fonts/FontAwesome.ttf +0 -0
  11. data/docs/FontAwesome/fonts/fontawesome-webfont.eot +0 -0
  12. data/docs/FontAwesome/fonts/fontawesome-webfont.svg +2671 -0
  13. data/docs/{gitbook/fonts/fontawesome → FontAwesome/fonts}/fontawesome-webfont.ttf +0 -0
  14. data/docs/FontAwesome/fonts/fontawesome-webfont.woff +0 -0
  15. data/docs/FontAwesome/fonts/fontawesome-webfont.woff2 +0 -0
  16. data/docs/api/Array.html +4 -4
  17. data/docs/api/Hash.html +4 -4
  18. data/docs/api/MightyInspect.html +238 -0
  19. data/docs/api/Ovto/Actions.html +4 -4
  20. data/docs/api/Ovto/App.html +4 -4
  21. data/docs/api/Ovto/Component/MoreThanOneNode.html +5 -5
  22. data/docs/api/Ovto/Component.html +4 -4
  23. data/docs/api/Ovto/Middleware/Actions.html +4 -4
  24. data/docs/api/Ovto/Middleware/Base.html +5 -5
  25. data/docs/api/Ovto/Middleware/Component.html +5 -5
  26. data/docs/api/Ovto/Middleware.html +8 -8
  27. data/docs/api/Ovto/PureComponent/StateIsNotAvailable.html +4 -4
  28. data/docs/api/Ovto/PureComponent.html +4 -4
  29. data/docs/api/Ovto/Runtime.html +4 -4
  30. data/docs/api/Ovto/State/MissingValue.html +4 -4
  31. data/docs/api/Ovto/State/UnknownStateKey.html +4 -4
  32. data/docs/api/Ovto/State.html +12 -12
  33. data/docs/api/Ovto/WiredActionSet.html +4 -4
  34. data/docs/api/Ovto/WiredActions.html +4 -4
  35. data/docs/api/Ovto.html +8 -8
  36. data/docs/api/_index.html +5 -5
  37. data/docs/api/actions.html +215 -426
  38. data/docs/api/app.html +226 -432
  39. data/docs/api/component.html +268 -480
  40. data/docs/api/fetch.html +188 -393
  41. data/docs/api/file.README.html +4 -4
  42. data/docs/api/frames.html +1 -1
  43. data/docs/api/index.html +4 -4
  44. data/docs/api/middleware.html +249 -460
  45. data/docs/api/pure_component.html +186 -398
  46. data/docs/api/state.html +226 -438
  47. data/docs/api/top-level-namespace.html +4 -4
  48. data/docs/ayu-highlight.css +78 -0
  49. data/docs/book.js +688 -0
  50. data/docs/book.toml +10 -0
  51. data/docs/clipboard.min.js +7 -0
  52. data/docs/css/chrome.css +545 -0
  53. data/docs/css/general.css +203 -0
  54. data/docs/css/print.css +54 -0
  55. data/docs/css/variables.css +255 -0
  56. data/docs/elasticlunr.min.js +10 -0
  57. data/docs/favicon.png +0 -0
  58. data/docs/favicon.svg +22 -0
  59. data/docs/fonts/OPEN-SANS-LICENSE.txt +202 -0
  60. data/docs/fonts/SOURCE-CODE-PRO-LICENSE.txt +93 -0
  61. data/docs/fonts/fonts.css +100 -0
  62. data/docs/fonts/open-sans-v17-all-charsets-300.woff2 +0 -0
  63. data/docs/fonts/open-sans-v17-all-charsets-300italic.woff2 +0 -0
  64. data/docs/fonts/open-sans-v17-all-charsets-600.woff2 +0 -0
  65. data/docs/fonts/open-sans-v17-all-charsets-600italic.woff2 +0 -0
  66. data/docs/fonts/open-sans-v17-all-charsets-700.woff2 +0 -0
  67. data/docs/fonts/open-sans-v17-all-charsets-700italic.woff2 +0 -0
  68. data/docs/fonts/open-sans-v17-all-charsets-800.woff2 +0 -0
  69. data/docs/fonts/open-sans-v17-all-charsets-800italic.woff2 +0 -0
  70. data/docs/fonts/open-sans-v17-all-charsets-italic.woff2 +0 -0
  71. data/docs/fonts/open-sans-v17-all-charsets-regular.woff2 +0 -0
  72. data/docs/fonts/source-code-pro-v11-all-charsets-500.woff2 +0 -0
  73. data/docs/guides/debugging.html +184 -390
  74. data/docs/guides/development.html +171 -383
  75. data/docs/guides/install.html +206 -409
  76. data/docs/guides/tutorial.html +309 -525
  77. data/docs/highlight.css +82 -0
  78. data/docs/highlight.js +6 -0
  79. data/docs/index.html +390 -391
  80. data/docs/mark.min.js +7 -0
  81. data/docs/print.html +958 -0
  82. data/docs/searcher.js +483 -0
  83. data/docs/searchindex.js +1 -0
  84. data/docs/searchindex.json +1 -0
  85. data/docs/tomorrow-night.css +102 -0
  86. data/examples/sinatra/Gemfile.lock +25 -25
  87. data/examples/static/Gemfile.lock +8 -8
  88. data/lib/ovto/component.rb +2 -3
  89. data/lib/ovto/version.rb +1 -1
  90. metadata +47 -26
  91. data/docs/gitbook/fonts/fontawesome/FontAwesome.otf +0 -0
  92. data/docs/gitbook/fonts/fontawesome/fontawesome-webfont.eot +0 -0
  93. data/docs/gitbook/fonts/fontawesome/fontawesome-webfont.svg +0 -685
  94. data/docs/gitbook/fonts/fontawesome/fontawesome-webfont.woff +0 -0
  95. data/docs/gitbook/fonts/fontawesome/fontawesome-webfont.woff2 +0 -0
  96. data/docs/gitbook/gitbook-plugin-fontsettings/fontsettings.js +0 -240
  97. data/docs/gitbook/gitbook-plugin-fontsettings/website.css +0 -291
  98. data/docs/gitbook/gitbook-plugin-highlight/ebook.css +0 -135
  99. data/docs/gitbook/gitbook-plugin-highlight/website.css +0 -434
  100. data/docs/gitbook/gitbook-plugin-lunr/lunr.min.js +0 -7
  101. data/docs/gitbook/gitbook-plugin-lunr/search-lunr.js +0 -59
  102. data/docs/gitbook/gitbook-plugin-search/lunr.min.js +0 -7
  103. data/docs/gitbook/gitbook-plugin-search/search-engine.js +0 -50
  104. data/docs/gitbook/gitbook-plugin-search/search.css +0 -35
  105. data/docs/gitbook/gitbook-plugin-search/search.js +0 -213
  106. data/docs/gitbook/gitbook-plugin-sharing/buttons.js +0 -90
  107. data/docs/gitbook/gitbook.js +0 -4
  108. data/docs/gitbook/images/apple-touch-icon-precomposed-152.png +0 -0
  109. data/docs/gitbook/images/favicon.ico +0 -0
  110. data/docs/gitbook/style.css +0 -9
  111. data/docs/gitbook/theme.js +0 -4
  112. data/docs/search_index.json +0 -1
@@ -0,0 +1,102 @@
1
+ /* Tomorrow Night Theme */
2
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
3
+ /* Original theme - https://github.com/chriskempson/tomorrow-theme */
4
+ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
5
+
6
+ /* Tomorrow Comment */
7
+ .hljs-comment {
8
+ color: #969896;
9
+ }
10
+
11
+ /* Tomorrow Red */
12
+ .hljs-variable,
13
+ .hljs-attribute,
14
+ .hljs-tag,
15
+ .hljs-regexp,
16
+ .ruby .hljs-constant,
17
+ .xml .hljs-tag .hljs-title,
18
+ .xml .hljs-pi,
19
+ .xml .hljs-doctype,
20
+ .html .hljs-doctype,
21
+ .css .hljs-id,
22
+ .css .hljs-class,
23
+ .css .hljs-pseudo {
24
+ color: #cc6666;
25
+ }
26
+
27
+ /* Tomorrow Orange */
28
+ .hljs-number,
29
+ .hljs-preprocessor,
30
+ .hljs-pragma,
31
+ .hljs-built_in,
32
+ .hljs-literal,
33
+ .hljs-params,
34
+ .hljs-constant {
35
+ color: #de935f;
36
+ }
37
+
38
+ /* Tomorrow Yellow */
39
+ .ruby .hljs-class .hljs-title,
40
+ .css .hljs-rule .hljs-attribute {
41
+ color: #f0c674;
42
+ }
43
+
44
+ /* Tomorrow Green */
45
+ .hljs-string,
46
+ .hljs-value,
47
+ .hljs-inheritance,
48
+ .hljs-header,
49
+ .hljs-name,
50
+ .ruby .hljs-symbol,
51
+ .xml .hljs-cdata {
52
+ color: #b5bd68;
53
+ }
54
+
55
+ /* Tomorrow Aqua */
56
+ .hljs-title,
57
+ .css .hljs-hexcolor {
58
+ color: #8abeb7;
59
+ }
60
+
61
+ /* Tomorrow Blue */
62
+ .hljs-function,
63
+ .python .hljs-decorator,
64
+ .python .hljs-title,
65
+ .ruby .hljs-function .hljs-title,
66
+ .ruby .hljs-title .hljs-keyword,
67
+ .perl .hljs-sub,
68
+ .javascript .hljs-title,
69
+ .coffeescript .hljs-title {
70
+ color: #81a2be;
71
+ }
72
+
73
+ /* Tomorrow Purple */
74
+ .hljs-keyword,
75
+ .javascript .hljs-function {
76
+ color: #b294bb;
77
+ }
78
+
79
+ .hljs {
80
+ display: block;
81
+ overflow-x: auto;
82
+ background: #1d1f21;
83
+ color: #c5c8c6;
84
+ }
85
+
86
+ .coffeescript .javascript,
87
+ .javascript .xml,
88
+ .tex .hljs-formula,
89
+ .xml .javascript,
90
+ .xml .vbscript,
91
+ .xml .css,
92
+ .xml .hljs-cdata {
93
+ opacity: 0.5;
94
+ }
95
+
96
+ .hljs-addition {
97
+ color: #718c00;
98
+ }
99
+
100
+ .hljs-deletion {
101
+ color: #c82829;
102
+ }
@@ -1,52 +1,52 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- ovto (0.6.0)
4
+ ovto (0.6.2)
5
5
  opal (>= 0.11, < 2)
6
6
  rack (~> 2.0)
7
- thor (~> 0.20)
7
+ thor (>= 0.20)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
12
  ast (2.4.2)
13
- concurrent-ruby (1.1.9)
13
+ concurrent-ruby (1.2.2)
14
14
  multi_json (1.15.0)
15
- mustermann (1.1.1)
15
+ mustermann (3.0.0)
16
16
  ruby2_keywords (~> 0.0.1)
17
- nio4r (2.5.8)
18
- opal (1.2.0)
17
+ nio4r (2.5.9)
18
+ opal (1.7.3)
19
19
  ast (>= 2.3.0)
20
- parser (~> 3.0)
21
- opal-sprockets (1.0.2)
20
+ parser (~> 3.0, >= 3.0.3.2)
21
+ opal-sprockets (1.0.3)
22
22
  opal (>= 1.0, < 2.0)
23
23
  sprockets (~> 4.0)
24
24
  tilt (>= 1.4)
25
- parser (3.0.2.0)
25
+ parser (3.2.2.0)
26
26
  ast (~> 2.4.1)
27
- puma (5.5.2)
27
+ puma (6.2.2)
28
28
  nio4r (~> 2.0)
29
- rack (2.2.3)
30
- rack-protection (2.1.0)
29
+ rack (2.2.6.4)
30
+ rack-protection (3.0.6)
31
31
  rack
32
32
  rake (13.0.6)
33
33
  ruby2_keywords (0.0.5)
34
- sinatra (2.1.0)
35
- mustermann (~> 1.0)
36
- rack (~> 2.2)
37
- rack-protection (= 2.1.0)
34
+ sinatra (3.0.6)
35
+ mustermann (~> 3.0)
36
+ rack (~> 2.2, >= 2.2.4)
37
+ rack-protection (= 3.0.6)
38
38
  tilt (~> 2.0)
39
- sinatra-contrib (2.1.0)
39
+ sinatra-contrib (3.0.6)
40
40
  multi_json
41
- mustermann (~> 1.0)
42
- rack-protection (= 2.1.0)
43
- sinatra (= 2.1.0)
41
+ mustermann (~> 3.0)
42
+ rack-protection (= 3.0.6)
43
+ sinatra (= 3.0.6)
44
44
  tilt (~> 2.0)
45
- sprockets (4.0.2)
45
+ sprockets (4.2.0)
46
46
  concurrent-ruby (~> 1.0)
47
- rack (> 1, < 3)
48
- thor (0.20.3)
49
- tilt (2.0.10)
47
+ rack (>= 2.2.4, < 4)
48
+ thor (1.2.1)
49
+ tilt (2.1.0)
50
50
 
51
51
  PLATFORMS
52
52
  ruby
@@ -61,4 +61,4 @@ DEPENDENCIES
61
61
  sinatra-contrib
62
62
 
63
63
  BUNDLED WITH
64
- 2.2.22
64
+ 2.4.12
@@ -1,24 +1,24 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- ovto (0.6.0)
4
+ ovto (0.6.2)
5
5
  opal (>= 0.11, < 2)
6
6
  rack (~> 2.0)
7
- thor (~> 0.20)
7
+ thor (>= 0.20)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
12
  ast (2.4.2)
13
13
  ifchanged (1.0.1)
14
- opal (1.2.0)
14
+ opal (1.7.3)
15
15
  ast (>= 2.3.0)
16
- parser (~> 3.0)
17
- parser (3.0.2.0)
16
+ parser (~> 3.0, >= 3.0.3.2)
17
+ parser (3.2.2.0)
18
18
  ast (~> 2.4.1)
19
- rack (2.2.3)
19
+ rack (2.2.6.4)
20
20
  rake (13.0.6)
21
- thor (0.20.3)
21
+ thor (1.2.1)
22
22
 
23
23
  PLATFORMS
24
24
  ruby
@@ -29,4 +29,4 @@ DEPENDENCIES
29
29
  rake
30
30
 
31
31
  BUNDLED WITH
32
- 2.2.22
32
+ 2.4.12
@@ -278,15 +278,14 @@ module Ovto
278
278
  `js_attributes.style = #{Component.hash_to_js_obj(style)}`
279
279
  end
280
280
  children ||= `null`
281
- ret = %x{
282
- {
281
+ %x{
282
+ return {
283
283
  nodeName: tag_name,
284
284
  attributes: js_attributes,
285
285
  children: children,
286
286
  key: js_attributes.key
287
287
  }
288
288
  }
289
- ret
290
289
  end
291
290
  end
292
291
  end
data/lib/ovto/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ovto
2
- VERSION = '0.6.2'
2
+ VERSION = '0.7.0'
3
3
  end
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.6.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yutaka HARA
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-22 00:00:00.000000000 Z
11
+ date: 2023-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
@@ -83,14 +83,25 @@ files:
83
83
  - book/api/middleware.md
84
84
  - book/api/pure_component.md
85
85
  - book/api/state.md
86
+ - book/book.toml
86
87
  - book/guides/debugging.md
87
88
  - book/guides/development.md
88
89
  - book/guides/install.md
89
90
  - book/guides/tutorial.md
90
91
  - book/ovtologo.png
91
92
  - book/screenshot.png
93
+ - docs/.nojekyll
94
+ - docs/404.html
95
+ - docs/FontAwesome/css/font-awesome.css
96
+ - docs/FontAwesome/fonts/FontAwesome.ttf
97
+ - docs/FontAwesome/fonts/fontawesome-webfont.eot
98
+ - docs/FontAwesome/fonts/fontawesome-webfont.svg
99
+ - docs/FontAwesome/fonts/fontawesome-webfont.ttf
100
+ - docs/FontAwesome/fonts/fontawesome-webfont.woff
101
+ - docs/FontAwesome/fonts/fontawesome-webfont.woff2
92
102
  - docs/api/Array.html
93
103
  - docs/api/Hash.html
104
+ - docs/api/MightyInspect.html
94
105
  - docs/api/Ovto.html
95
106
  - docs/api/Ovto/Actions.html
96
107
  - docs/api/Ovto/App.html
@@ -129,36 +140,46 @@ files:
129
140
  - docs/api/pure_component.html
130
141
  - docs/api/state.html
131
142
  - docs/api/top-level-namespace.html
132
- - docs/gitbook/fonts/fontawesome/FontAwesome.otf
133
- - docs/gitbook/fonts/fontawesome/fontawesome-webfont.eot
134
- - docs/gitbook/fonts/fontawesome/fontawesome-webfont.svg
135
- - docs/gitbook/fonts/fontawesome/fontawesome-webfont.ttf
136
- - docs/gitbook/fonts/fontawesome/fontawesome-webfont.woff
137
- - docs/gitbook/fonts/fontawesome/fontawesome-webfont.woff2
138
- - docs/gitbook/gitbook-plugin-fontsettings/fontsettings.js
139
- - docs/gitbook/gitbook-plugin-fontsettings/website.css
140
- - docs/gitbook/gitbook-plugin-highlight/ebook.css
141
- - docs/gitbook/gitbook-plugin-highlight/website.css
142
- - docs/gitbook/gitbook-plugin-lunr/lunr.min.js
143
- - docs/gitbook/gitbook-plugin-lunr/search-lunr.js
144
- - docs/gitbook/gitbook-plugin-search/lunr.min.js
145
- - docs/gitbook/gitbook-plugin-search/search-engine.js
146
- - docs/gitbook/gitbook-plugin-search/search.css
147
- - docs/gitbook/gitbook-plugin-search/search.js
148
- - docs/gitbook/gitbook-plugin-sharing/buttons.js
149
- - docs/gitbook/gitbook.js
150
- - docs/gitbook/images/apple-touch-icon-precomposed-152.png
151
- - docs/gitbook/images/favicon.ico
152
- - docs/gitbook/style.css
153
- - docs/gitbook/theme.js
143
+ - docs/ayu-highlight.css
144
+ - docs/book.js
145
+ - docs/book.toml
146
+ - docs/clipboard.min.js
147
+ - docs/css/chrome.css
148
+ - docs/css/general.css
149
+ - docs/css/print.css
150
+ - docs/css/variables.css
151
+ - docs/elasticlunr.min.js
152
+ - docs/favicon.png
153
+ - docs/favicon.svg
154
+ - docs/fonts/OPEN-SANS-LICENSE.txt
155
+ - docs/fonts/SOURCE-CODE-PRO-LICENSE.txt
156
+ - docs/fonts/fonts.css
157
+ - docs/fonts/open-sans-v17-all-charsets-300.woff2
158
+ - docs/fonts/open-sans-v17-all-charsets-300italic.woff2
159
+ - docs/fonts/open-sans-v17-all-charsets-600.woff2
160
+ - docs/fonts/open-sans-v17-all-charsets-600italic.woff2
161
+ - docs/fonts/open-sans-v17-all-charsets-700.woff2
162
+ - docs/fonts/open-sans-v17-all-charsets-700italic.woff2
163
+ - docs/fonts/open-sans-v17-all-charsets-800.woff2
164
+ - docs/fonts/open-sans-v17-all-charsets-800italic.woff2
165
+ - docs/fonts/open-sans-v17-all-charsets-italic.woff2
166
+ - docs/fonts/open-sans-v17-all-charsets-regular.woff2
167
+ - docs/fonts/source-code-pro-v11-all-charsets-500.woff2
154
168
  - docs/guides/debugging.html
155
169
  - docs/guides/development.html
156
170
  - docs/guides/install.html
157
171
  - docs/guides/tutorial.html
172
+ - docs/highlight.css
173
+ - docs/highlight.js
158
174
  - docs/index.html
175
+ - docs/mark.min.js
159
176
  - docs/ovtologo.png
177
+ - docs/print.html
160
178
  - docs/screenshot.png
161
- - docs/search_index.json
179
+ - docs/searcher.js
180
+ - docs/searchindex.js
181
+ - docs/searchindex.json
182
+ - docs/tomorrow-night.css
162
183
  - examples/sinatra/Gemfile
163
184
  - examples/sinatra/Gemfile.lock
164
185
  - examples/sinatra/README.md
@@ -213,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
234
  - !ruby/object:Gem::Version
214
235
  version: '0'
215
236
  requirements: []
216
- rubygems_version: 3.2.22
237
+ rubygems_version: 3.4.10
217
238
  signing_key:
218
239
  specification_version: 4
219
240
  summary: Simple client-side framework for Opal