atome 0.5.4.1.9 → 0.5.5.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (357) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/README.md +70 -1
  4. data/Rakefile +246 -75
  5. data/app_builder_helpers/Rakefile +276 -288
  6. data/documentation/basic.md +242 -0
  7. data/documentation/deep learning/architecture.txt +3763 -0
  8. data/documentation/deep learning/atome.png +0 -0
  9. data/documentation/deep learning/basic_infos.txt +227 -0
  10. data/documentation/deep learning/example_of_users_code.rb +1810 -0
  11. data/documentation/deep learning/misc.txt +24 -0
  12. data/documentation/deep learning/ruby_js_example.rb +272 -0
  13. data/documentation/deep learning/wasm_script_help.text +14 -0
  14. data/documentation/framework/enhance_atome.md +1 -1
  15. data/documentation/tutorials/tutorials.md +7 -0
  16. data/exe/atome +308 -208
  17. data/lib/atome/atome.rb +52 -156
  18. data/lib/atome/extensions/atome.rb +129 -47
  19. data/lib/atome/extensions/mathematics.rb +20 -0
  20. data/lib/atome/extensions/ping.rb +2 -3
  21. data/lib/atome/genesis/generators/atome.rb +57 -30
  22. data/lib/atome/genesis/generators/communication.rb +9 -0
  23. data/lib/atome/genesis/generators/effect.rb +0 -1
  24. data/lib/atome/genesis/generators/event.rb +279 -43
  25. data/lib/atome/genesis/generators/geometry.rb +1 -10
  26. data/lib/atome/genesis/generators/hierarchy.rb +103 -0
  27. data/lib/atome/genesis/generators/identity.rb +45 -84
  28. data/lib/atome/genesis/generators/material.rb +31 -34
  29. data/lib/atome/genesis/generators/property.rb +31 -0
  30. data/lib/atome/genesis/generators/security.rb +31 -0
  31. data/lib/atome/genesis/generators/spatial.rb +3 -5
  32. data/lib/atome/genesis/generators/time.rb +0 -1
  33. data/lib/atome/genesis/generators/utility.rb +181 -66
  34. data/lib/atome/genesis/genesis.rb +152 -55
  35. data/lib/atome/genesis/sparkle.rb +59 -75
  36. data/lib/atome/helpers/color_helper/color/rgb/colors.rb +1 -1
  37. data/lib/atome/helpers/color_helper/color/rgb.rb +1 -1
  38. data/lib/atome/helpers/color_helper/color.rb +226 -7
  39. data/lib/atome/helpers/essentials.rb +22 -26
  40. data/lib/atome/helpers/security.rb +71 -0
  41. data/lib/atome/helpers/utilities.rb +191 -178
  42. data/lib/atome/kernel/black_matter.rb +22 -0
  43. data/lib/atome/kernel/universe.rb +123 -24
  44. data/lib/atome/presets/atome.rb +39 -35
  45. data/lib/atome/version.rb +3 -2
  46. data/lib/atome.rb +12 -12
  47. data/lib/atome_relative.rb +36 -0
  48. data/lib/{atome/renderers → platform_specific}/opal/atome_opal_extensions.rb +4 -1
  49. data/lib/{atome/renderers → platform_specific}/opal/extensions/color.rb +12 -5
  50. data/lib/{atome/renderers → platform_specific}/opal/extensions/geolocation.rb +1 -0
  51. data/lib/platform_specific/opal/extensions/js.rb +21 -0
  52. data/lib/platform_specific/opal/extensions/object.rb +6 -0
  53. data/lib/platform_specific/opal/extensions/ping.rb +31 -0
  54. data/lib/{atome/renderers → platform_specific}/opal/extensions/sha.rb +4 -2
  55. data/lib/platform_specific/wasm/atome_wasm_extensions.rb +11 -0
  56. data/lib/renderers/headless/headless.rb +18 -0
  57. data/lib/renderers/headless/index.rb +6 -0
  58. data/lib/renderers/headless/index_relative.rb +6 -0
  59. data/lib/renderers/headless/utility.rb +6 -0
  60. data/{vendor/assets/src/medias/rubies/examples/top.rb → lib/renderers/html/atome.rb} +0 -1
  61. data/lib/renderers/html/atome_html.rb +22 -0
  62. data/lib/renderers/html/effect.rb +26 -0
  63. data/lib/renderers/html/event.rb +43 -0
  64. data/lib/renderers/html/geometry.rb +31 -0
  65. data/lib/renderers/html/hierarchy.rb +233 -0
  66. data/lib/renderers/html/html.rb +1112 -0
  67. data/lib/renderers/html/identity.rb +84 -0
  68. data/lib/renderers/html/index.rb +19 -0
  69. data/lib/renderers/html/index_relative.rb +20 -0
  70. data/lib/renderers/html/material.rb +53 -0
  71. data/lib/renderers/html/property.rb +24 -0
  72. data/lib/renderers/html/spatial.rb +46 -0
  73. data/lib/renderers/html/time.rb +1 -0
  74. data/lib/renderers/html/utility.rb +38 -0
  75. data/lib/renderers/renderer.rb +16 -0
  76. data/lib/renderers/server/index.rb +4 -0
  77. data/lib/renderers/server/index_relative.rb +4 -0
  78. data/lib/renderers/server/utility.rb +4 -0
  79. data/sig/atome.rbs +6 -0
  80. data/sig/object.rbs +4 -0
  81. data/sig/universe.rbs +3 -0
  82. data/vendor/assets/Rakefile +3 -3
  83. data/vendor/assets/application/examples/a_concat.rb +16 -0
  84. data/vendor/assets/application/examples/affect.rb +8 -0
  85. data/vendor/assets/application/examples/animation.rb +96 -0
  86. data/vendor/assets/application/examples/apply.rb +8 -0
  87. data/vendor/assets/application/examples/atome.rb +5 -0
  88. data/vendor/assets/application/examples/attach.rb +34 -0
  89. data/vendor/assets/application/examples/attached.rb +38 -0
  90. data/vendor/assets/application/examples/basic_understanding.rb +52 -0
  91. data/vendor/assets/application/examples/browse.rb +17 -0
  92. data/vendor/assets/application/examples/callback.rb +20 -0
  93. data/vendor/assets/application/examples/category.rb +12 -0
  94. data/vendor/assets/application/examples/clear.rb +96 -0
  95. data/vendor/assets/application/examples/clones.rb +177 -0
  96. data/vendor/assets/application/examples/code.rb +13 -0
  97. data/vendor/assets/application/examples/color.rb +54 -0
  98. data/vendor/assets/application/examples/convert.rb +163 -0
  99. data/vendor/assets/application/examples/copy.rb +25 -0
  100. data/vendor/assets/application/examples/copybck.rb +68 -0
  101. data/vendor/assets/application/examples/debug.rb +78 -0
  102. data/vendor/assets/application/examples/delete.rb +93 -0
  103. data/vendor/assets/application/examples/display.rb +279 -0
  104. data/vendor/assets/application/examples/display_bck.rb +164 -0
  105. data/vendor/assets/application/examples/drag.rb +45 -0
  106. data/vendor/assets/application/examples/drop.rb +35 -0
  107. data/vendor/assets/application/examples/duplicate.rb +64 -0
  108. data/vendor/assets/application/examples/edit.rb +21 -0
  109. data/vendor/assets/application/examples/encode.rb +6 -0
  110. data/vendor/assets/application/examples/file.rb +50 -0
  111. data/vendor/assets/application/examples/find.rb +157 -0
  112. data/vendor/assets/application/examples/generator_and_build.rb +15 -0
  113. data/vendor/assets/application/examples/getter.rb +16 -0
  114. data/vendor/assets/application/examples/grab.rb +14 -0
  115. data/vendor/assets/application/examples/gradient.rb +35 -0
  116. data/vendor/assets/application/examples/group.rb +44 -0
  117. data/vendor/assets/application/examples/hierarchy.rb +21 -0
  118. data/vendor/assets/application/examples/history.rb +31 -0
  119. data/vendor/assets/application/examples/hypertext.rb +113 -0
  120. data/vendor/assets/application/examples/image.rb +5 -0
  121. data/vendor/assets/application/examples/keyboard.rb +59 -0
  122. data/vendor/assets/application/examples/layout.rb +227 -0
  123. data/vendor/assets/application/examples/login.rb +10 -0
  124. data/vendor/assets/application/examples/markup.rb +4 -0
  125. data/vendor/assets/application/examples/match.rb +115 -0
  126. data/vendor/assets/application/examples/messaging.rb +16 -0
  127. data/vendor/assets/application/examples/monitor.rb +14 -0
  128. data/vendor/assets/application/examples/on_resize.rb +7 -0
  129. data/vendor/assets/{src/medias/rubies/examples/get_renderer_list.rb → application/examples/online.rb} +1 -1
  130. data/vendor/assets/application/examples/over.rb +29 -0
  131. data/vendor/assets/application/examples/paint.rb +23 -0
  132. data/vendor/assets/application/examples/particles.rb +4 -0
  133. data/vendor/assets/application/examples/percent_to_px.rb +4 -0
  134. data/vendor/assets/application/examples/play.rb +50 -0
  135. data/vendor/assets/application/examples/presets.rb +33 -0
  136. data/vendor/assets/application/examples/random.rb +42 -0
  137. data/vendor/assets/application/examples/raw_html.rb +48 -0
  138. data/vendor/assets/application/examples/read.rb +11 -0
  139. data/vendor/assets/application/examples/refresh.rb +62 -0
  140. data/vendor/assets/application/examples/remove.rb +47 -0
  141. data/vendor/assets/application/examples/repeat.rb +26 -0
  142. data/vendor/assets/application/examples/resize.rb +17 -0
  143. data/vendor/assets/application/examples/scroll.rb +11 -0
  144. data/vendor/assets/application/examples/security.rb +76 -0
  145. data/vendor/assets/application/examples/selected.rb +30 -0
  146. data/vendor/assets/application/examples/shadow.rb +46 -0
  147. data/vendor/assets/application/examples/shapes.rb +6 -0
  148. data/vendor/assets/{src/medias/rubies → application}/examples/smooth.rb +5 -1
  149. data/vendor/assets/application/examples/style.rb +4 -0
  150. data/vendor/assets/application/examples/sync.rb +39 -0
  151. data/vendor/assets/application/examples/tagged.rb +24 -0
  152. data/vendor/assets/application/examples/terminal.rb +4 -0
  153. data/vendor/assets/application/examples/text.rb +5 -0
  154. data/vendor/assets/application/examples/touch.rb +38 -0
  155. data/vendor/assets/application/examples/type_mutation.rb +18 -0
  156. data/vendor/assets/application/examples/universe.rb +8 -0
  157. data/vendor/assets/application/examples/vector.rb +24 -0
  158. data/vendor/assets/application/examples/video.rb +14 -0
  159. data/vendor/assets/application/examples/wait.rb +6 -0
  160. data/vendor/assets/application/examples/www.rb +10 -0
  161. data/vendor/assets/application/index.rb +1 -1
  162. data/vendor/assets/application/test.rb +29 -0
  163. data/vendor/assets/application/works/photos.rb +672 -0
  164. data/vendor/assets/application/works/photos2.rb +218 -0
  165. data/vendor/assets/application/works/photos3.rb +343 -0
  166. data/vendor/assets/application/works/photos4.rb +34 -0
  167. data/vendor/assets/application/works/photos6.rb +6 -0
  168. data/vendor/assets/application/works/trigga.rb +0 -0
  169. data/vendor/assets/application/works/vie.rb +74 -0
  170. data/vendor/assets/server/atome_server.rb +37 -41
  171. data/vendor/assets/server/atome_server_wasm.rb +112 -0
  172. data/vendor/assets/server/capture.rb +10 -0
  173. data/vendor/assets/server/config.ru +5 -4
  174. data/vendor/assets/src/css/style.css +29 -4
  175. data/vendor/assets/src/index.html +31 -38
  176. data/vendor/assets/src/index_opal.html +42 -0
  177. data/vendor/assets/src/index_server.html +43 -0
  178. data/vendor/assets/src/index_server_wasm.html +46 -0
  179. data/vendor/assets/src/js/atome/atome.js +170 -150
  180. data/vendor/assets/src/js/atome/atome_helpers/add_font.js +46 -0
  181. data/vendor/assets/src/js/atome/atome_helpers/atome_drag.js +3 -1
  182. data/vendor/assets/src/js/atome/atome_helpers/atome_events.js +12 -7
  183. data/vendor/assets/src/js/atome/atome_helpers/communication.js +126 -0
  184. data/vendor/assets/src/js/atome/atome_helpers/{atome_file.js → file.js} +1 -1
  185. data/vendor/assets/src/js/atome/specific/opal.js +3 -0
  186. data/vendor/assets/src/js/atome/specific/wasm.js +12 -0
  187. data/vendor/assets/src/js/third_parties/browser.script.iife.min.js +13 -0
  188. data/vendor/assets/src/js/third_parties/fabric.min.js +1 -1
  189. data/vendor/assets/src/js/third_parties/html-to-image.min.js +2 -0
  190. data/vendor/assets/src/js/third_parties/jsencrypt.min.js +2 -0
  191. data/vendor/assets/src/js/third_parties/papaparse.min.js +7 -0
  192. data/vendor/assets/src/medias/fonts/Roboto/LICENSE.txt +202 -0
  193. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Black.ttf +0 -0
  194. data/vendor/assets/src/medias/fonts/Roboto/Roboto-BlackItalic.ttf +0 -0
  195. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Bold.ttf +0 -0
  196. data/vendor/assets/src/medias/fonts/Roboto/Roboto-BoldItalic.ttf +0 -0
  197. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Italic.ttf +0 -0
  198. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Light.ttf +0 -0
  199. data/vendor/assets/src/medias/fonts/Roboto/Roboto-LightItalic.ttf +0 -0
  200. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Medium.ttf +0 -0
  201. data/vendor/assets/src/medias/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
  202. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Regular.ttf +0 -0
  203. data/vendor/assets/src/medias/fonts/Roboto/Roboto-Thin.ttf +0 -0
  204. data/vendor/assets/src/medias/fonts/Roboto/Roboto-ThinItalic.ttf +0 -0
  205. data/vendor/assets/src/medias/images/logos/Facebook.svg +1 -1
  206. data/vendor/assets/src/medias/images/logos/LinkedIn-full.svg +109 -0
  207. data/vendor/assets/src/medias/images/logos/LinkedIn.svg +11 -0
  208. data/vendor/assets/src/medias/images/logos/X.svg +5 -0
  209. data/vendor/assets/src-tauri/Cargo.toml +1 -1
  210. data/vendor/assets/src-tauri/src/main.rs +59 -5
  211. data/vendor/assets/src-tauri/tauri.conf.json +1 -1
  212. data/vendor/assets/src-wasm/wasm/wasi-vfs-osx_arm +0 -0
  213. data/vendor/assets/src-wasm/wasm/wasi-vfs-osx_x86 +0 -0
  214. data/vendor/assets/src-wasm/wasm/wasi-vfs-unix +0 -0
  215. data/vendor/assets/src-wasm/wasm/wasi-vfs.exe +0 -0
  216. metadata +188 -180
  217. data/lib/atome/extensions/mathematic.rb +0 -20
  218. data/lib/atome/extensions/matrix.rb +0 -346
  219. data/lib/atome/helpers/callbacks.rb +0 -133
  220. data/lib/atome/kernel/batch.rb +0 -26
  221. data/lib/atome/kernel/essentials.rb +0 -23
  222. data/lib/atome/renderers/browser/atome.rb +0 -177
  223. data/lib/atome/renderers/browser/browser.rb +0 -47
  224. data/lib/atome/renderers/browser/effect.rb +0 -23
  225. data/lib/atome/renderers/browser/event.rb +0 -96
  226. data/lib/atome/renderers/browser/geometry.rb +0 -27
  227. data/lib/atome/renderers/browser/helpers/animation_helper.rb +0 -69
  228. data/lib/atome/renderers/browser/helpers/browser_helper.rb +0 -101
  229. data/lib/atome/renderers/browser/helpers/color_helper.rb +0 -95
  230. data/lib/atome/renderers/browser/helpers/drag_helper.rb +0 -52
  231. data/lib/atome/renderers/browser/helpers/drop_helper.rb +0 -13
  232. data/lib/atome/renderers/browser/helpers/effect_helper.rb +0 -23
  233. data/lib/atome/renderers/browser/helpers/event_helper.rb +0 -76
  234. data/lib/atome/renderers/browser/helpers/image_helper.rb +0 -27
  235. data/lib/atome/renderers/browser/helpers/over_helper.rb +0 -13
  236. data/lib/atome/renderers/browser/helpers/shadow_helper.rb +0 -74
  237. data/lib/atome/renderers/browser/helpers/shape_helper.rb +0 -22
  238. data/lib/atome/renderers/browser/helpers/text_helper.rb +0 -38
  239. data/lib/atome/renderers/browser/helpers/video_helper.rb +0 -50
  240. data/lib/atome/renderers/browser/helpers/web_helper.rb +0 -26
  241. data/lib/atome/renderers/browser/identity.rb +0 -61
  242. data/lib/atome/renderers/browser/material.rb +0 -121
  243. data/lib/atome/renderers/browser/opal_add_on.rb +0 -32
  244. data/lib/atome/renderers/browser/opal_browser.rb +0 -6
  245. data/lib/atome/renderers/browser/spatial.rb +0 -59
  246. data/lib/atome/renderers/browser/time.rb +0 -3
  247. data/lib/atome/renderers/browser/utility.rb +0 -49
  248. data/lib/atome/renderers/headless/headless.rb +0 -10
  249. data/lib/atome/renderers/headless/utility.rb +0 -6
  250. data/lib/atome/renderers/html/atome.rb +0 -49
  251. data/lib/atome/renderers/html/effect.rb +0 -19
  252. data/lib/atome/renderers/html/event.rb +0 -9
  253. data/lib/atome/renderers/html/geometry.rb +0 -11
  254. data/lib/atome/renderers/html/html.rb +0 -42
  255. data/lib/atome/renderers/html/identity.rb +0 -14
  256. data/lib/atome/renderers/html/opal_browser.rb +0 -6
  257. data/lib/atome/renderers/html/spatial.rb +0 -28
  258. data/lib/atome/renderers/html/utility.rb +0 -17
  259. data/lib/atome/renderers/opal/extensions/atome.rb +0 -29
  260. data/lib/atome/renderers/opal/extensions/ping.rb +0 -18
  261. data/lib/atome/renderers/renderer.rb +0 -15
  262. data/lib/atome/renderers/server/server.rb +0 -10
  263. data/lib/atome/renderers/server/utility.rb +0 -6
  264. data/vendor/assets/aui.rb +0 -5
  265. data/vendor/assets/r&d/misc.rb +0 -219
  266. data/vendor/assets/r&d/ping.rb +0 -3
  267. data/vendor/assets/r&d/storage.rb +0 -9
  268. data/vendor/assets/r&d/view_example.rb +0 -21
  269. data/vendor/assets/src/js/atome/atome_helpers/atome_communication.js +0 -40
  270. data/vendor/assets/src/medias/javascripts/test.js +0 -1
  271. data/vendor/assets/src/medias/rubies/demos.rb +0 -63
  272. data/vendor/assets/src/medias/rubies/examples/add.rb +0 -24
  273. data/vendor/assets/src/medias/rubies/examples/animation.rb +0 -81
  274. data/vendor/assets/src/medias/rubies/examples/atome_new.rb +0 -27
  275. data/vendor/assets/src/medias/rubies/examples/attach.rb +0 -15
  276. data/vendor/assets/src/medias/rubies/examples/attached.rb +0 -15
  277. data/vendor/assets/src/medias/rubies/examples/auto_height.rb +0 -5
  278. data/vendor/assets/src/medias/rubies/examples/auto_width.rb +0 -4
  279. data/vendor/assets/src/medias/rubies/examples/batch.rb +0 -17
  280. data/vendor/assets/src/medias/rubies/examples/blur.rb +0 -4
  281. data/vendor/assets/src/medias/rubies/examples/bottom.rb +0 -3
  282. data/vendor/assets/src/medias/rubies/examples/box.rb +0 -20
  283. data/vendor/assets/src/medias/rubies/examples/center.rb +0 -21
  284. data/vendor/assets/src/medias/rubies/examples/circle.rb +0 -3
  285. data/vendor/assets/src/medias/rubies/examples/class.rb +0 -13
  286. data/vendor/assets/src/medias/rubies/examples/clear.rb +0 -10
  287. data/vendor/assets/src/medias/rubies/examples/clone.rb +0 -35
  288. data/vendor/assets/src/medias/rubies/examples/code.rb +0 -11
  289. data/vendor/assets/src/medias/rubies/examples/color.rb +0 -73
  290. data/vendor/assets/src/medias/rubies/examples/create_atome_in_atome.rb +0 -13
  291. data/vendor/assets/src/medias/rubies/examples/cursor.rb +0 -7
  292. data/vendor/assets/src/medias/rubies/examples/delete.rb +0 -42
  293. data/vendor/assets/src/medias/rubies/examples/depth.rb +0 -6
  294. data/vendor/assets/src/medias/rubies/examples/detached.rb +0 -13
  295. data/vendor/assets/src/medias/rubies/examples/drag.rb +0 -98
  296. data/vendor/assets/src/medias/rubies/examples/drop.rb +0 -26
  297. data/vendor/assets/src/medias/rubies/examples/edit.rb +0 -12
  298. data/vendor/assets/src/medias/rubies/examples/element.rb +0 -6
  299. data/vendor/assets/src/medias/rubies/examples/empty_atome.rb +0 -12
  300. data/vendor/assets/src/medias/rubies/examples/fullscreen.rb +0 -15
  301. data/vendor/assets/src/medias/rubies/examples/grab.rb +0 -5
  302. data/vendor/assets/src/medias/rubies/examples/height.rb +0 -7
  303. data/vendor/assets/src/medias/rubies/examples/hide.rb +0 -7
  304. data/vendor/assets/src/medias/rubies/examples/id.rb +0 -14
  305. data/vendor/assets/src/medias/rubies/examples/image.rb +0 -8
  306. data/vendor/assets/src/medias/rubies/examples/left.rb +0 -7
  307. data/vendor/assets/src/medias/rubies/examples/link.rb +0 -22
  308. data/vendor/assets/src/medias/rubies/examples/markers.rb +0 -48
  309. data/vendor/assets/src/medias/rubies/examples/materials.rb +0 -15
  310. data/vendor/assets/src/medias/rubies/examples/matrix.rb +0 -102
  311. data/vendor/assets/src/medias/rubies/examples/matrix_changes.rb +0 -483
  312. data/vendor/assets/src/medias/rubies/examples/matrix_simple.rb +0 -32
  313. data/vendor/assets/src/medias/rubies/examples/monitoring.rb +0 -70
  314. data/vendor/assets/src/medias/rubies/examples/mute.rb +0 -22
  315. data/vendor/assets/src/medias/rubies/examples/on.rb +0 -26
  316. data/vendor/assets/src/medias/rubies/examples/opacity.rb +0 -5
  317. data/vendor/assets/src/medias/rubies/examples/over.rb +0 -21
  318. data/vendor/assets/src/medias/rubies/examples/pause.rb +0 -15
  319. data/vendor/assets/src/medias/rubies/examples/physical.rb +0 -19
  320. data/vendor/assets/src/medias/rubies/examples/play.rb +0 -15
  321. data/vendor/assets/src/medias/rubies/examples/read.rb +0 -11
  322. data/vendor/assets/src/medias/rubies/examples/refresh.rb +0 -8
  323. data/vendor/assets/src/medias/rubies/examples/remove.rb +0 -16
  324. data/vendor/assets/src/medias/rubies/examples/repeat.rb +0 -6
  325. data/vendor/assets/src/medias/rubies/examples/right.rb +0 -3
  326. data/vendor/assets/src/medias/rubies/examples/rotate.rb +0 -4
  327. data/vendor/assets/src/medias/rubies/examples/schedule.rb +0 -13
  328. data/vendor/assets/src/medias/rubies/examples/shadow.rb +0 -84
  329. data/vendor/assets/src/medias/rubies/examples/size.rb +0 -8
  330. data/vendor/assets/src/medias/rubies/examples/sort.rb +0 -18
  331. data/vendor/assets/src/medias/rubies/examples/style.rb +0 -4
  332. data/vendor/assets/src/medias/rubies/examples/tags.rb +0 -10
  333. data/vendor/assets/src/medias/rubies/examples/text.rb +0 -39
  334. data/vendor/assets/src/medias/rubies/examples/time.rb +0 -18
  335. data/vendor/assets/src/medias/rubies/examples/to_px.rb +0 -10
  336. data/vendor/assets/src/medias/rubies/examples/touch.rb +0 -56
  337. data/vendor/assets/src/medias/rubies/examples/vector.rb +0 -39
  338. data/vendor/assets/src/medias/rubies/examples/video.rb +0 -65
  339. data/vendor/assets/src/medias/rubies/examples/wait.rb +0 -8
  340. data/vendor/assets/src/medias/rubies/examples/web.rb +0 -13
  341. data/vendor/assets/src/medias/rubies/examples/width.rb +0 -6
  342. data/vendor/assets/src/medias/rubies/test.rb +0 -1
  343. data/vendor/assets/src/medias/rubies/text_read.rb +0 -1
  344. data/vendor/assets/src/medias/rubies/unstable/!run.rb +0 -16
  345. data/vendor/assets/src/medias/rubies/unstable/_2_solve.rb +0 -72
  346. data/vendor/assets/src/medias/rubies/unstable/_attach.rb +0 -12
  347. data/vendor/assets/src/medias/rubies/unstable/_audio.rb +0 -231
  348. data/vendor/assets/src/medias/rubies/unstable/_dataset.rb +0 -257
  349. data/vendor/assets/src/medias/rubies/unstable/_matrix.rb +0 -58
  350. data/vendor/assets/src/medias/rubies/unstable/_os.rb +0 -29
  351. data/vendor/assets/src/medias/rubies/unstable/_table2.rb +0 -108
  352. data/vendor/assets/src/medias/rubies/unstable/_vie.rb +0 -211
  353. data/vendor/assets/src/medias/rubies/users/code.rb +0 -6
  354. /data/lib/{atome/renderers → platform_specific}/opal/opal.rb +0 -0
  355. /data/lib/{atome/renderers → platform_specific}/opal/opal_parser.rb +0 -0
  356. /data/{vendor/assets/src/utilities/mode.rb → lib/renderers/html/communication.rb} +0 -0
  357. /data/{vendor/assets/src/medias/rubies/unstable/_test.rb → lib/renderers/html/security.rb} +0 -0
@@ -1,290 +1,278 @@
1
- # frozen_string_literal: true
2
-
3
- # FIXME: check when creating gem version the new gem is not always fully updated we have to type gem uninstall first
4
-
5
- require 'opal'
6
- # require 'opal-jquery'
7
- require 'opal-browser'
8
- require 'parser'
9
- # require 'ruby2js'
10
- require 'uglifier'
11
-
12
- Opal.append_path 'app'
13
-
14
- def build_browser_content
15
- Opal::Builder.build('../lib/atome/renderers/browser/opal_browser.rb').to_s
16
- end
17
-
18
- def build_opal_content
19
- Opal::Builder.build('../lib/atome/renderers/opal/opal.rb').to_s
20
- end
21
-
22
- def build_opal_browser(user_project_path)
23
- opal_directory = "#{user_project_path}/src/js/opal"
24
- browser_js = "#{opal_directory}/opal_browser.js"
25
- Dir.mkdir(opal_directory) unless File.directory?(opal_directory)
26
-
27
- File.new browser_js, 'w'
28
- browser_content = build_browser_content
29
-
30
- File.open(browser_js, 'w') do |f|
31
- f.puts browser_content
32
- end
33
- end
34
-
35
- def build_opal(user_project_path)
36
- opal_directory = "#{user_project_path}/src/js/opal"
37
- opal_js = "#{opal_directory}/opal.js"
38
- Dir.mkdir(opal_directory) unless File.directory?(opal_directory)
39
-
40
- File.new opal_js, 'w'
41
- browser_content = build_opal_content
42
-
43
- File.open(opal_js, 'w') do |f|
44
- f.puts browser_content
45
- end
46
- end
47
-
48
- def build_aui(user_project_path)
49
- # now we add an uniq aui to the app
50
- aui_js = "#{user_project_path}/src/js/aui.js"
51
- File.new aui_js, 'w'
52
- builder = Opal::Builder.new
53
- aui_content = builder.build("#{user_project_path}/aui.rb").to_s
54
- File.open(aui_js, 'w') do |f|
55
- f.puts aui_content
56
- end
57
- end
58
-
59
- def copy_assets_files(user_project_path, gem_location)
60
- # build_location = "#{gem_location}/../vendor/assets/src/"
61
- server_location = "#{gem_location}/../vendor/assets/server/"
62
- FileUtils.copy_entry server_location, "#{user_project_path}/server", preserve: nil
63
- # FileUtils.copy_entry build_location, "#{user_project_path}/src", preserve: nil
64
- css_location ="#{gem_location}/../vendor/assets/src/css/"
65
- FileUtils.copy_entry css_location, "#{user_project_path}/src/css", preserve: nil
66
- js_location ="#{gem_location}/../vendor/assets/src/js/"
67
- FileUtils.copy_entry js_location, "#{user_project_path}/src/js", preserve: nil
68
- index_location ="#{gem_location}/../vendor/assets/src/index.html"
69
- FileUtils.copy_entry index_location, "#{user_project_path}/src/index.html", preserve: nil
70
- end
71
-
72
- def build_atome_kernel(user_project_path, gem_location)
73
- # now lets build the atome kernel
74
- atome_directory = "#{user_project_path}/src/js/atome"
75
- Dir.mkdir(atome_directory) unless File.directory?(atome_directory)
76
- kernel_js = "#{atome_directory}/kernel.js"
77
- File.new kernel_js, 'w'
78
- builder = Opal::Builder.new
79
- builder.append_paths("#{gem_location}/../lib/")
80
- kernel_content = builder.build("#{gem_location}/../lib/atome.rb").to_s
81
- File.open(kernel_js, 'w') do |f|
82
- f.puts kernel_content
83
- end
84
- end
85
-
86
- def build_opal_extensions(user_project_path, gem_location)
87
- opal_directory = "#{user_project_path}/src/js/opal"
88
- extensions_js = "#{opal_directory}/atome_opal_extensions.js"
89
- File.new extensions_js, 'w'
90
- builder = Opal::Builder.new
91
- builder.append_paths("#{gem_location}/../lib/atome/renderers/opal/")
92
- extensions_content = builder.build("#{gem_location}/../lib/atome/renderers/opal/atome_opal_extensions.rb").to_s
93
- File.open(extensions_js, 'w') do |f|
94
- f.puts extensions_content
95
- end
96
- end
97
-
98
- def build_opal_parser(user_project_path)
99
- parser_js = "#{user_project_path}/src/js/opal/opal_parser.js"
100
- File.new parser_js, 'w'
101
- parser_content = Opal::Builder.build('../lib/atome/renderers/opal/opal_parser.rb').to_s
102
- File.open(parser_js, 'w') do |f|
103
- f.puts parser_content
104
- end
105
- end
106
-
107
- def build_user_code(user_project_path, source_code)
108
- application_js = "#{user_project_path}/src/js/application.js"
109
- builder = Opal::Builder.new
110
- builder.append_paths("#{user_project_path}/")
111
-
112
- builder.build("#{source_code}/src/utilities/mode.rb").to_s
113
-
114
- # aui = builder.build("#{source_code}/aui.rb").to_s
115
- application_content = builder.build("#{source_code}/application/index.rb").to_s
116
-
117
- # full_app=aui+"\n"+system_infos+"\n"+application_content
118
- File.open(application_js, 'w') do |f|
119
- f.puts application_content
120
- end
121
- # minimize_application(user_project_path)
122
- end
123
-
124
- def build_system_infos(user_project_path, source_code)
125
- system_infos_js = "#{user_project_path}/src/js/infos.js"
126
- builder = Opal::Builder.new
127
- builder.append_paths("#{user_project_path}/")
128
- system_infos = builder.build("#{source_code}/src/utilities/mode.rb").to_s
129
- File.open(system_infos_js, 'w') do |f|
130
- f.puts system_infos
131
- end
132
- end
133
-
134
- def minimize_aui(user_project_path)
135
- aui_js = "#{user_project_path}/src/js/aui.js"
136
- aui_content = File.open(aui_js).read
137
- aui_content = Uglifier.new.compile(aui_content)
138
- File.open(aui_js, 'w') do |f|
139
- f.puts aui_content
140
- end
141
- end
142
-
143
- def minimize_browser(user_project_path)
144
- browser_js = "#{user_project_path}/src/js/opal/opal_browser.js"
145
- browser_content = File.open(browser_js).read
146
- browser_content = Uglifier.new.compile(browser_content)
147
- File.open(browser_js, 'w') do |f|
148
- f.puts browser_content
149
- end
150
- end
151
-
152
- def minimize_opal(user_project_path)
153
- opal_js = "#{user_project_path}/src/js/opal/opal.js"
154
- opal_content = File.open(opal_js).read
155
- opal_content = Uglifier.new.compile(opal_content)
156
- File.open(opal_js, 'w') do |f|
157
- f.puts opal_content
158
- end
159
- end
160
-
161
- def minimize_parser(user_project_path)
162
- parser_js = "#{user_project_path}/src/js/opal/opal_parser.js"
163
- parser_content = File.open(parser_js).read
164
- parser_content = Uglifier.new.compile(parser_content)
165
- File.open(parser_js, 'w') do |f|
166
- f.puts parser_content
167
- end
168
- end
169
-
170
- def minimize_kernel(user_project_path)
171
- kernel_js = "#{user_project_path}/src/js/atome/kernel.js"
172
- kernel_content = File.open(kernel_js).read
173
- kernel_content = Uglifier.new.compile(kernel_content)
174
- File.open(kernel_js, 'w') do |f|
175
- f.puts kernel_content
176
- end
177
- end
178
-
179
- def minimize_atome(user_project_path)
180
- atome_js = "#{user_project_path}/src/js/atome/atome.js"
181
- atome_content = File.open(atome_js).read
182
- atome_content = Uglifier.new.compile(atome_content)
183
- File.open(atome_js, 'w') do |f|
184
- f.puts atome_content
185
- end
186
- end
187
-
188
- # def minimize_sparkle(user_project_path)
189
- # opal_sparkle_js = "#{user_project_path}/src/js/opal/opal_sparkle.js"
190
- # opal_sparkle_content = File.open(opal_sparkle_js).read
191
- # opal_sparkle_content = Uglifier.new.compile(opal_sparkle_content)
192
- # File.open(opal_sparkle_js, 'w') do |f|
193
- # f.puts opal_sparkle_content
1
+ # # frozen_string_literal: true
2
+ #
3
+ # # FIXME: check when creating gem version the new gem is not always fully updated we have to type gem uninstall first
4
+ #
5
+ # require 'opal'
6
+ # require 'parser'
7
+ # require 'uglifier'
8
+ #
9
+ #
10
+ # Opal.append_path 'app'
11
+ #
12
+ # # def build_opal_content
13
+ # # Opal::Builder.build('../lib/platform_specific/opal/opal.rb').to_s
14
+ # # end
15
+ # #
16
+ # # def build_opal(user_project_path)
17
+ # #
18
+ # # opal_directory = "#{user_project_path}/src/js/opal"
19
+ # # opal_js = "#{opal_directory}/opal.js"
20
+ # # Dir.mkdir(opal_directory) unless File.directory?(opal_directory)
21
+ # #
22
+ # # File.new opal_js, 'w'
23
+ # # opal_content = build_opal_content
24
+ # # File.open(opal_js, 'w') do |f|
25
+ # # f.puts opal_content
26
+ # # end
27
+ # # end
28
+ #
29
+ # # def build_aui_for_opal(user_project_path)
30
+ # # # now we add an uniq aui to the app
31
+ # # aui_js = "#{user_project_path}/src/js/aui.js"
32
+ # # File.new aui_js, 'w'
33
+ # # builder = Opal::Builder.new
34
+ # # aui_content = builder.build("#{user_project_path}/src/utilities/aui.rb").to_s
35
+ # # File.open(aui_js, 'w') do |f|
36
+ # # f.puts aui_content
37
+ # # end
38
+ # # end
39
+ #
40
+ # # def build_host_mode_for_opal(user_project_path)
41
+ # # host_mode_js = "#{user_project_path}/src/js/host_mode.js"
42
+ # # File.new host_mode_js, 'w'
43
+ # # builder = Opal::Builder.new
44
+ # # host_mode_content = builder.build("#{user_project_path}/src/utilities/host_mode.rb").to_s
45
+ # # File.open(host_mode_js, 'w') do |f|
46
+ # # f.puts host_mode_content
47
+ # # end
48
+ # # end
49
+ #
50
+ # # def copy_assets_files(user_project_path, gem_location)
51
+ # # server_location = "#{gem_location}/../vendor/assets/server/"
52
+ # # FileUtils.copy_entry server_location, "#{user_project_path}/server", preserve: nil
53
+ # # css_location ="#{gem_location}/../vendor/assets/src/css/"
54
+ # # FileUtils.copy_entry css_location, "#{user_project_path}/src/css", preserve: nil
55
+ # # js_location ="#{gem_location}/../vendor/assets/src/js/"
56
+ # # FileUtils.copy_entry js_location, "#{user_project_path}/src/js", preserve: nil
57
+ # # index_location ="#{gem_location}/../vendor/assets/src/index.html"
58
+ # # FileUtils.copy_entry index_location, "#{user_project_path}/src/index.html", preserve: nil
59
+ # # end
60
+ #
61
+ # # def build_atome_kernel(user_project_path, gem_location)
62
+ # # # now lets build the atome kernel
63
+ # # atome_directory = "#{user_project_path}/src/js/atome"
64
+ # # Dir.mkdir(atome_directory) unless File.directory?(atome_directory)
65
+ # # kernel_js = "#{atome_directory}/kernel.js"
66
+ # # File.new kernel_js, 'w'
67
+ # # builder = Opal::Builder.new
68
+ # # builder.append_paths("#{gem_location}/../lib/")
69
+ # # kernel_content = builder.build("#{gem_location}/../lib/atome.rb").to_s
70
+ # # File.open(kernel_js, 'w') do |f|
71
+ # # f.puts kernel_content
72
+ # # end
73
+ # # end
74
+ #
75
+ # def build_opal_extensions(user_project_path, gem_location)
76
+ # opal_directory = "#{user_project_path}/src/js/opal"
77
+ # extensions_js = "#{opal_directory}/atome_opal_extensions.js"
78
+ # File.new extensions_js, 'w'
79
+ # builder = Opal::Builder.new
80
+ # builder.append_paths("#{gem_location}/../lib/platform_specific/opal/")
81
+ # extensions_content = builder.build("#{gem_location}/../lib/platform_specific/opal/atome_opal_extensions.rb").to_s
82
+ # File.open(extensions_js, 'w') do |f|
83
+ # f.puts extensions_content
194
84
  # end
195
85
  # end
196
-
197
- def minimize_opal_extensions(user_project_path)
198
- atome_opal_extensions_js = "#{user_project_path}/src/js/opal/atome_opal_extensions.js"
199
- atome_opal_extensions_content = File.open(atome_opal_extensions_js).read
200
- atome_opal_extensions_content = Uglifier.new.compile(atome_opal_extensions_content)
201
- File.open(atome_opal_extensions_js, 'w') do |f|
202
- f.puts atome_opal_extensions_content
203
- end
204
- end
205
-
206
- def minimize_libraries(user_project_path)
207
- # minimizing aui
208
- minimize_aui(user_project_path)
209
- # minimizing opal
210
- minimize_opal(user_project_path)
211
- # minimizing opal_browser
212
- minimize_browser(user_project_path)
213
- # minimizing opal_parser
214
- minimize_parser(user_project_path)
215
- # minimizing atome_lib
216
- minimize_kernel(user_project_path)
217
- # minimizing atome
218
- minimize_atome(user_project_path)
219
- # minimizing atome_lib
220
- minimize_opal_extensions(user_project_path)
221
- # minimizing application
222
- minimize_application(user_project_path)
223
- # minimize(user_project_path) if production == 'production'
224
- end
225
-
226
- def minimize_application(user_project_path)
227
- # minimizing user codes
228
- application_js = "#{user_project_path}/src/js/application.js"
229
- application_content = File.open(application_js).read
230
- application_content = Uglifier.new.compile(application_content)
231
- File.open(application_js, 'w') do |f|
232
- f.puts application_content
233
- end
234
- end
235
-
236
- task :build_user_code, :user_project_path, :production do |_t, args|
237
- user_project_path = args[:user_project_path]
238
- source_code = "#{user_project_path}"
239
- build_system_infos(user_project_path, source_code)
240
- build_user_code(user_project_path, source_code)
241
- end
242
-
243
- task :system_builder, :user_project_path, :production do |_t, args|
244
- user_project_path = args[:user_project_path]
245
- production = args[:production]
246
- source_code = '../vendor/assets'
247
- build_common_libraries(user_project_path, production)
248
- build_system_infos(user_project_path, source_code)
249
- build_user_code(user_project_path, source_code)
250
-
251
- # TODO: catch and message to user when when there's no force and folder already exist
252
- end
253
-
254
- task :system_updater, :user_project_path, :production do |_t, args|
255
- user_project_path = args[:user_project_path]
256
- production = args[:production]
257
- gem_location = File.join(File.dirname(__FILE__))
258
- build_libraries(user_project_path, gem_location)
259
- build_common_libraries(user_project_path, production)
260
- end
261
-
262
- task :minimizer, :user_project_path do |_t, args|
263
- user_project_path = args[:user_project_path]
264
- minimize(user_project_path)
265
- end
266
-
267
- task default: :run
268
-
269
- def build_libraries(user_project_path, gem_location)
270
- build_aui(user_project_path)
271
- build_atome_kernel(user_project_path, gem_location)
272
- build_opal(user_project_path)
273
- build_opal_browser(user_project_path)
274
- build_opal_parser(user_project_path)
275
- build_opal_extensions(user_project_path, gem_location)
276
- end
277
-
278
- def minimize(user_project_path)
279
- minimize_libraries(user_project_path)
280
- # minimize_user_code(user_project_path)
281
- end
282
-
283
- def build_common_libraries(user_project_path, production)
284
- gem_location = File.join(File.dirname(__FILE__))
285
- copy_assets_files(user_project_path, gem_location)
286
- build_libraries(user_project_path, gem_location)
287
- minimize(user_project_path) if production == 'production'
288
- end
289
-
290
- # TODO: integrate pure JS (ruby2js) compilation
86
+ #
87
+ # # def build_opal_parser(user_project_path)
88
+ # # parser_js = "#{user_project_path}/src/js/opal/opal_parser.js"
89
+ # # File.new parser_js, 'w'
90
+ # # parser_content = Opal::Builder.build('../lib/platform_specific/opal/opal_parser.rb').to_s
91
+ # # File.open(parser_js, 'w') do |f|
92
+ # # f.puts parser_content
93
+ # # end
94
+ # # end
95
+ #
96
+ # def modify_and_copy_file(source_path, destination_path,source_code)
97
+ # file_content = File.read(source_path)
98
+ # modified_content = file_content.gsub(' ', ' ').gsub(' ', ' ').gsub(' ', ' ').gsub(' ', ' ').gsub("require './", "require 'tmp/opal/").gsub('require "./', 'require "tmp/opal/')
99
+ # File.write(destination_path, modified_content)
100
+ #
101
+ # end
102
+ # def process_directory(source_dir, destination_dir, source_code)
103
+ # Dir.entries(source_dir).each do |entry|
104
+ # next if entry == '.' || entry == '..'
105
+ #
106
+ # source_path = File.join(source_dir, entry)
107
+ # destination_path = File.join(destination_dir, entry)
108
+ #
109
+ # if File.directory?(source_path)
110
+ # Dir.mkdir(destination_path) unless Dir.exist?(destination_path)
111
+ # process_directory(source_path, destination_path,source_code)
112
+ # elsif File.file?(source_path)
113
+ # modify_and_copy_file(source_path, destination_path,source_code)
114
+ # end
115
+ # end
116
+ # end
117
+ # def build_user_code(user_project_path, source_code)
118
+ # application_js = "#{user_project_path}/src/js/application.js"
119
+ # builder = Opal::Builder.new
120
+ # builder.append_paths("#{user_project_path}/")
121
+ # source_directory = "#{source_code}/application"
122
+ # destination_directory = "#{source_code}/tmp/opal"
123
+ # process_directory(source_directory, destination_directory, source_code)
124
+ # application_content = builder.build("#{source_code}/tmp/opal/index.rb").to_s
125
+ # File.open(application_js, 'w') do |f|
126
+ # f.puts application_content
127
+ # end
128
+ # end
129
+ #
130
+ # def build_system_infos(user_project_path, source_code)
131
+ # system_infos_js = "#{user_project_path}/src/js/infos.js"
132
+ # builder = Opal::Builder.new
133
+ # builder.append_paths("#{user_project_path}/")
134
+ # # system_infos = builder.build("#{source_code}/src/utilities/mode.rb").to_s
135
+ # File.open(system_infos_js, 'w') do |f|
136
+ # f.puts system_infos
137
+ # end
138
+ # end
139
+ #
140
+ # def minimize_aui(user_project_path)
141
+ # aui_js = "#{user_project_path}/src/js/aui.js"
142
+ # aui_content = File.open(aui_js).read
143
+ # aui_content = Uglifier.new.compile(aui_content)
144
+ # File.open(aui_js, 'w') do |f|
145
+ # f.puts aui_content
146
+ # end
147
+ # end
148
+ #
149
+ # def minimize_opal(user_project_path)
150
+ # opal_js = "#{user_project_path}/src/js/opal/opal.js"
151
+ # opal_content = File.open(opal_js).read
152
+ # opal_content = Uglifier.new.compile(opal_content)
153
+ # File.open(opal_js, 'w') do |f|
154
+ # f.puts opal_content
155
+ # end
156
+ # end
157
+ #
158
+ # def minimize_parser(user_project_path)
159
+ # parser_js = "#{user_project_path}/src/js/opal/opal_parser.js"
160
+ # parser_content = File.open(parser_js).read
161
+ # parser_content = Uglifier.new.compile(parser_content)
162
+ # File.open(parser_js, 'w') do |f|
163
+ # f.puts parser_content
164
+ # end
165
+ # end
166
+ #
167
+ # def minimize_kernel(user_project_path)
168
+ # kernel_js = "#{user_project_path}/src/js/atome/kernel.js"
169
+ # kernel_content = File.open(kernel_js).read
170
+ # kernel_content = Uglifier.new.compile(kernel_content)
171
+ # File.open(kernel_js, 'w') do |f|
172
+ # f.puts kernel_content
173
+ # end
174
+ # end
175
+ #
176
+ # def minimize_atome(user_project_path)
177
+ # atome_js = "#{user_project_path}/src/js/atome/atome.js"
178
+ # atome_content = File.open(atome_js).read
179
+ # atome_content = Uglifier.new.compile(atome_content)
180
+ # File.open(atome_js, 'w') do |f|
181
+ # f.puts atome_content
182
+ # end
183
+ # end
184
+ #
185
+ # def minimize_opal_extensions(user_project_path)
186
+ # atome_opal_extensions_js = "#{user_project_path}/src/js/opal/atome_opal_extensions.js"
187
+ # atome_opal_extensions_content = File.open(atome_opal_extensions_js).read
188
+ # atome_opal_extensions_content = Uglifier.new.compile(atome_opal_extensions_content)
189
+ # File.open(atome_opal_extensions_js, 'w') do |f|
190
+ # f.puts atome_opal_extensions_content
191
+ # end
192
+ # end
193
+ #
194
+ # def minimize_libraries(user_project_path)
195
+ # # minimizing aui
196
+ # minimize_aui(user_project_path)
197
+ # # minimizing opal
198
+ # minimize_opal(user_project_path)
199
+ # # # minimizing opal_browser
200
+ # # minimize_browser(user_project_path)
201
+ # # minimizing opal_parser
202
+ # minimize_parser(user_project_path)
203
+ # # minimizing atome_lib
204
+ # minimize_kernel(user_project_path)
205
+ # # minimizing atome
206
+ # minimize_atome(user_project_path)
207
+ # # minimizing atome_lib
208
+ # minimize_opal_extensions(user_project_path)
209
+ # # minimizing application
210
+ # minimize_application(user_project_path)
211
+ # # minimize(user_project_path) if production == 'production'
212
+ # end
213
+ #
214
+ # def minimize_application(user_project_path)
215
+ # # minimizing user codes
216
+ # application_js = "#{user_project_path}/src/js/application.js"
217
+ # application_content = File.open(application_js).read
218
+ # application_content = Uglifier.new.compile(application_content)
219
+ # File.open(application_js, 'w') do |f|
220
+ # f.puts application_content
221
+ # end
222
+ # end
223
+ #
224
+ # task :build_user_code, :user_project_path, :production do |_t, args|
225
+ # user_project_path = args[:user_project_path]
226
+ # source_code = "#{user_project_path}"
227
+ # build_system_infos(user_project_path, source_code)
228
+ # build_user_code(user_project_path, source_code)
229
+ # end
230
+ #
231
+ # task :system_builder, :user_project_path, :production do |_t, args|
232
+ # user_project_path = args[:user_project_path]
233
+ # production = args[:production]
234
+ # source_code = '../vendor/assets'
235
+ # build_common_libraries(user_project_path, production)
236
+ # build_system_infos(user_project_path, source_code)
237
+ # build_user_code(user_project_path, source_code)
238
+ #
239
+ # # TODO: catch and message to user when when there's no force and folder already exist
240
+ # end
241
+ #
242
+ # task :system_updater, :user_project_path, :production do |_t, args|
243
+ # user_project_path = args[:user_project_path]
244
+ # production = args[:production]
245
+ # gem_location = File.join(File.dirname(__FILE__))
246
+ # build_libraries(user_project_path, gem_location)
247
+ # build_common_libraries(user_project_path, production)
248
+ # end
249
+ #
250
+ # task :minimizer, :user_project_path do |_t, args|
251
+ # user_project_path = args[:user_project_path]
252
+ # minimize(user_project_path)
253
+ # end
254
+ #
255
+ # task default: :run
256
+ #
257
+ # def build_libraries(user_project_path, gem_location)
258
+ # build_aui_for_opal(user_project_path)
259
+ # build_host_mode_for_opal(user_project_path)
260
+ # build_atome_kernel(user_project_path, gem_location)
261
+ # build_opal(user_project_path)
262
+ # build_opal_parser(user_project_path)
263
+ # build_opal_extensions(user_project_path, gem_location)
264
+ # end
265
+ #
266
+ # def minimize(user_project_path)
267
+ # minimize_libraries(user_project_path)
268
+ # # minimize_user_code(user_project_path)
269
+ # end
270
+ #
271
+ # def build_common_libraries(user_project_path, production)
272
+ # gem_location = File.join(File.dirname(__FILE__))
273
+ # copy_assets_files(user_project_path, gem_location)
274
+ # build_libraries(user_project_path, gem_location)
275
+ # minimize(user_project_path) if production == 'production'
276
+ # end
277
+ #
278
+ # # TODO: integrate pure JS (ruby2js) compilation