atome 0.5.4.1.7 → 0.5.5.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/Gemfile +3 -1
- data/README.md +70 -1
- data/Rakefile +246 -75
- data/app_builder_helpers/Rakefile +276 -288
- data/documentation/basic.md +242 -0
- data/documentation/deep learning/architecture.txt +3763 -0
- data/documentation/deep learning/atome.png +0 -0
- data/documentation/deep learning/basic_infos.txt +227 -0
- data/documentation/deep learning/example_of_users_code.rb +1810 -0
- data/documentation/deep learning/misc.txt +24 -0
- data/documentation/deep learning/ruby_js_example.rb +272 -0
- data/documentation/deep learning/wasm_script_help.text +14 -0
- data/documentation/framework/enhance_atome.md +1 -1
- data/documentation/tutorials/tutorials.md +7 -0
- data/exe/atome +308 -208
- data/lib/atome/atome.rb +52 -156
- data/lib/atome/extensions/atome.rb +129 -47
- data/lib/atome/extensions/mathematics.rb +20 -0
- data/lib/atome/extensions/ping.rb +2 -3
- data/lib/atome/genesis/generators/atome.rb +57 -30
- data/lib/atome/genesis/generators/communication.rb +9 -0
- data/lib/atome/genesis/generators/effect.rb +0 -1
- data/lib/atome/genesis/generators/event.rb +279 -43
- data/lib/atome/genesis/generators/geometry.rb +1 -10
- data/lib/atome/genesis/generators/hierarchy.rb +103 -0
- data/lib/atome/genesis/generators/identity.rb +45 -84
- data/lib/atome/genesis/generators/material.rb +31 -34
- data/lib/atome/genesis/generators/property.rb +31 -0
- data/lib/atome/genesis/generators/security.rb +31 -0
- data/lib/atome/genesis/generators/spatial.rb +3 -5
- data/lib/atome/genesis/generators/time.rb +0 -1
- data/lib/atome/genesis/generators/utility.rb +181 -66
- data/lib/atome/genesis/genesis.rb +152 -55
- data/lib/atome/genesis/sparkle.rb +59 -75
- data/lib/atome/helpers/color_helper/color/rgb/colors.rb +1 -1
- data/lib/atome/helpers/color_helper/color/rgb.rb +1 -1
- data/lib/atome/helpers/color_helper/color.rb +226 -7
- data/lib/atome/helpers/essentials.rb +22 -26
- data/lib/atome/helpers/security.rb +71 -0
- data/lib/atome/helpers/utilities.rb +191 -178
- data/lib/atome/kernel/black_matter.rb +22 -0
- data/lib/atome/kernel/universe.rb +123 -24
- data/lib/atome/presets/atome.rb +39 -35
- data/lib/atome/version.rb +3 -2
- data/lib/atome.rb +12 -12
- data/lib/atome_relative.rb +36 -0
- data/lib/{atome/renderers → platform_specific}/opal/atome_opal_extensions.rb +4 -1
- data/lib/{atome/renderers → platform_specific}/opal/extensions/color.rb +12 -5
- data/lib/{atome/renderers → platform_specific}/opal/extensions/geolocation.rb +1 -0
- data/lib/platform_specific/opal/extensions/js.rb +21 -0
- data/lib/platform_specific/opal/extensions/object.rb +6 -0
- data/lib/platform_specific/opal/extensions/ping.rb +31 -0
- data/lib/{atome/renderers → platform_specific}/opal/extensions/sha.rb +4 -2
- data/lib/platform_specific/wasm/atome_wasm_extensions.rb +11 -0
- data/lib/renderers/headless/headless.rb +18 -0
- data/lib/renderers/headless/index.rb +6 -0
- data/lib/renderers/headless/index_relative.rb +6 -0
- data/lib/renderers/headless/utility.rb +6 -0
- data/{vendor/assets/src/medias/rubies/examples/top.rb → lib/renderers/html/atome.rb} +0 -1
- data/lib/renderers/html/atome_html.rb +22 -0
- data/lib/renderers/html/effect.rb +26 -0
- data/lib/renderers/html/event.rb +43 -0
- data/lib/renderers/html/geometry.rb +31 -0
- data/lib/renderers/html/hierarchy.rb +233 -0
- data/lib/renderers/html/html.rb +1112 -0
- data/lib/renderers/html/identity.rb +84 -0
- data/lib/renderers/html/index.rb +19 -0
- data/lib/renderers/html/index_relative.rb +20 -0
- data/lib/renderers/html/material.rb +53 -0
- data/lib/renderers/html/property.rb +24 -0
- data/lib/renderers/html/spatial.rb +46 -0
- data/lib/renderers/html/time.rb +1 -0
- data/lib/renderers/html/utility.rb +38 -0
- data/lib/renderers/renderer.rb +16 -0
- data/lib/renderers/server/index.rb +4 -0
- data/lib/renderers/server/index_relative.rb +4 -0
- data/lib/renderers/server/utility.rb +4 -0
- data/sig/atome.rbs +6 -0
- data/sig/object.rbs +4 -0
- data/sig/universe.rbs +3 -0
- data/vendor/assets/Rakefile +3 -3
- data/vendor/assets/application/examples/a_concat.rb +16 -0
- data/vendor/assets/application/examples/affect.rb +8 -0
- data/vendor/assets/application/examples/animation.rb +96 -0
- data/vendor/assets/application/examples/apply.rb +8 -0
- data/vendor/assets/application/examples/atome.rb +5 -0
- data/vendor/assets/application/examples/attach.rb +34 -0
- data/vendor/assets/application/examples/attached.rb +38 -0
- data/vendor/assets/application/examples/basic_understanding.rb +52 -0
- data/vendor/assets/application/examples/browse.rb +17 -0
- data/vendor/assets/application/examples/callback.rb +20 -0
- data/vendor/assets/application/examples/category.rb +12 -0
- data/vendor/assets/application/examples/clear.rb +96 -0
- data/vendor/assets/application/examples/clones.rb +177 -0
- data/vendor/assets/application/examples/code.rb +13 -0
- data/vendor/assets/application/examples/color.rb +54 -0
- data/vendor/assets/application/examples/convert.rb +163 -0
- data/vendor/assets/application/examples/copy.rb +25 -0
- data/vendor/assets/application/examples/copybck.rb +68 -0
- data/vendor/assets/application/examples/debug.rb +78 -0
- data/vendor/assets/application/examples/delete.rb +93 -0
- data/vendor/assets/application/examples/display.rb +279 -0
- data/vendor/assets/application/examples/display_bck.rb +164 -0
- data/vendor/assets/application/examples/drag.rb +45 -0
- data/vendor/assets/application/examples/drop.rb +35 -0
- data/vendor/assets/application/examples/duplicate.rb +64 -0
- data/vendor/assets/application/examples/edit.rb +21 -0
- data/vendor/assets/application/examples/encode.rb +6 -0
- data/vendor/assets/application/examples/file.rb +50 -0
- data/vendor/assets/application/examples/find.rb +157 -0
- data/vendor/assets/application/examples/generator_and_build.rb +15 -0
- data/vendor/assets/application/examples/getter.rb +16 -0
- data/vendor/assets/application/examples/grab.rb +14 -0
- data/vendor/assets/application/examples/gradient.rb +35 -0
- data/vendor/assets/application/examples/group.rb +44 -0
- data/vendor/assets/application/examples/hierarchy.rb +21 -0
- data/vendor/assets/application/examples/history.rb +31 -0
- data/vendor/assets/application/examples/hypertext.rb +113 -0
- data/vendor/assets/application/examples/image.rb +5 -0
- data/vendor/assets/application/examples/keyboard.rb +59 -0
- data/vendor/assets/application/examples/layout.rb +227 -0
- data/vendor/assets/application/examples/login.rb +10 -0
- data/vendor/assets/application/examples/markup.rb +4 -0
- data/vendor/assets/application/examples/match.rb +115 -0
- data/vendor/assets/application/examples/messaging.rb +16 -0
- data/vendor/assets/application/examples/monitor.rb +14 -0
- data/vendor/assets/application/examples/on_resize.rb +7 -0
- data/vendor/assets/{src/medias/rubies/examples/get_renderer_list.rb → application/examples/online.rb} +1 -1
- data/vendor/assets/application/examples/over.rb +29 -0
- data/vendor/assets/application/examples/paint.rb +23 -0
- data/vendor/assets/application/examples/particles.rb +4 -0
- data/vendor/assets/application/examples/percent_to_px.rb +4 -0
- data/vendor/assets/application/examples/play.rb +50 -0
- data/vendor/assets/application/examples/presets.rb +33 -0
- data/vendor/assets/application/examples/random.rb +42 -0
- data/vendor/assets/application/examples/raw_html.rb +48 -0
- data/vendor/assets/application/examples/read.rb +11 -0
- data/vendor/assets/application/examples/refresh.rb +62 -0
- data/vendor/assets/application/examples/remove.rb +47 -0
- data/vendor/assets/application/examples/repeat.rb +26 -0
- data/vendor/assets/application/examples/resize.rb +17 -0
- data/vendor/assets/application/examples/scroll.rb +11 -0
- data/vendor/assets/application/examples/security.rb +76 -0
- data/vendor/assets/application/examples/selected.rb +30 -0
- data/vendor/assets/application/examples/shadow.rb +46 -0
- data/vendor/assets/application/examples/shapes.rb +6 -0
- data/vendor/assets/{src/medias/rubies → application}/examples/smooth.rb +5 -1
- data/vendor/assets/application/examples/style.rb +4 -0
- data/vendor/assets/application/examples/sync.rb +39 -0
- data/vendor/assets/application/examples/tagged.rb +24 -0
- data/vendor/assets/application/examples/terminal.rb +4 -0
- data/vendor/assets/application/examples/text.rb +5 -0
- data/vendor/assets/application/examples/touch.rb +38 -0
- data/vendor/assets/application/examples/type_mutation.rb +18 -0
- data/vendor/assets/application/examples/universe.rb +8 -0
- data/vendor/assets/application/examples/vector.rb +24 -0
- data/vendor/assets/application/examples/video.rb +14 -0
- data/vendor/assets/application/examples/wait.rb +6 -0
- data/vendor/assets/application/examples/www.rb +10 -0
- data/vendor/assets/application/index.rb +1 -1
- data/vendor/assets/application/test.rb +29 -0
- data/vendor/assets/application/works/photos.rb +672 -0
- data/vendor/assets/application/works/photos2.rb +218 -0
- data/vendor/assets/application/works/photos3.rb +343 -0
- data/vendor/assets/application/works/photos4.rb +34 -0
- data/vendor/assets/application/works/photos6.rb +6 -0
- data/vendor/assets/application/works/trigga.rb +0 -0
- data/vendor/assets/application/works/vie.rb +74 -0
- data/vendor/assets/server/atome_server.rb +37 -41
- data/vendor/assets/server/atome_server_wasm.rb +112 -0
- data/vendor/assets/server/capture.rb +10 -0
- data/vendor/assets/server/config.ru +5 -4
- data/vendor/assets/src/css/style.css +29 -4
- data/vendor/assets/src/index.html +31 -38
- data/vendor/assets/src/index_opal.html +42 -0
- data/vendor/assets/src/index_server.html +43 -0
- data/vendor/assets/src/index_server_wasm.html +46 -0
- data/vendor/assets/src/js/atome/atome.js +170 -150
- data/vendor/assets/src/js/atome/atome_helpers/add_font.js +46 -0
- data/vendor/assets/src/js/atome/atome_helpers/atome_drag.js +3 -1
- data/vendor/assets/src/js/atome/atome_helpers/atome_events.js +12 -7
- data/vendor/assets/src/js/atome/atome_helpers/communication.js +126 -0
- data/vendor/assets/src/js/atome/atome_helpers/{atome_file.js → file.js} +1 -1
- data/vendor/assets/src/js/atome/specific/opal.js +3 -0
- data/vendor/assets/src/js/atome/specific/wasm.js +12 -0
- data/vendor/assets/src/js/third_parties/browser.script.iife.min.js +13 -0
- data/vendor/assets/src/js/third_parties/fabric.min.js +1 -1
- data/vendor/assets/src/js/third_parties/html-to-image.min.js +2 -0
- data/vendor/assets/src/js/third_parties/jsencrypt.min.js +2 -0
- data/vendor/assets/src/js/third_parties/papaparse.min.js +7 -0
- data/vendor/assets/src/medias/fonts/Roboto/LICENSE.txt +202 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-Black.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-BlackItalic.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-Bold.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-BoldItalic.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-Italic.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-Light.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-LightItalic.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-Medium.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-Regular.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-Thin.ttf +0 -0
- data/vendor/assets/src/medias/fonts/Roboto/Roboto-ThinItalic.ttf +0 -0
- data/vendor/assets/src/medias/images/logos/Facebook.svg +1 -1
- data/vendor/assets/src/medias/images/logos/LinkedIn-full.svg +109 -0
- data/vendor/assets/src/medias/images/logos/LinkedIn.svg +11 -0
- data/vendor/assets/src/medias/images/logos/X.svg +5 -0
- data/vendor/assets/src-tauri/Cargo.toml +1 -1
- data/vendor/assets/src-tauri/src/main.rs +59 -5
- data/vendor/assets/src-tauri/tauri.conf.json +1 -1
- data/vendor/assets/src-wasm/wasm/wasi-vfs-osx_arm +0 -0
- data/vendor/assets/src-wasm/wasm/wasi-vfs-osx_x86 +0 -0
- data/vendor/assets/src-wasm/wasm/wasi-vfs-unix +0 -0
- data/vendor/assets/src-wasm/wasm/wasi-vfs.exe +0 -0
- metadata +188 -180
- data/lib/atome/extensions/mathematic.rb +0 -20
- data/lib/atome/extensions/matrix.rb +0 -346
- data/lib/atome/helpers/callbacks.rb +0 -133
- data/lib/atome/kernel/batch.rb +0 -26
- data/lib/atome/kernel/essentials.rb +0 -23
- data/lib/atome/renderers/browser/atome.rb +0 -158
- data/lib/atome/renderers/browser/browser.rb +0 -47
- data/lib/atome/renderers/browser/effect.rb +0 -23
- data/lib/atome/renderers/browser/event.rb +0 -96
- data/lib/atome/renderers/browser/geometry.rb +0 -27
- data/lib/atome/renderers/browser/helpers/animation_helper.rb +0 -69
- data/lib/atome/renderers/browser/helpers/browser_helper.rb +0 -101
- data/lib/atome/renderers/browser/helpers/color_helper.rb +0 -80
- data/lib/atome/renderers/browser/helpers/drag_helper.rb +0 -52
- data/lib/atome/renderers/browser/helpers/drop_helper.rb +0 -13
- data/lib/atome/renderers/browser/helpers/effect_helper.rb +0 -23
- data/lib/atome/renderers/browser/helpers/event_helper.rb +0 -76
- data/lib/atome/renderers/browser/helpers/image_helper.rb +0 -27
- data/lib/atome/renderers/browser/helpers/over_helper.rb +0 -13
- data/lib/atome/renderers/browser/helpers/shadow_helper.rb +0 -74
- data/lib/atome/renderers/browser/helpers/shape_helper.rb +0 -22
- data/lib/atome/renderers/browser/helpers/text_helper.rb +0 -38
- data/lib/atome/renderers/browser/helpers/video_helper.rb +0 -50
- data/lib/atome/renderers/browser/helpers/web_helper.rb +0 -26
- data/lib/atome/renderers/browser/identity.rb +0 -61
- data/lib/atome/renderers/browser/material.rb +0 -121
- data/lib/atome/renderers/browser/opal_add_on.rb +0 -31
- data/lib/atome/renderers/browser/opal_browser.rb +0 -6
- data/lib/atome/renderers/browser/spatial.rb +0 -59
- data/lib/atome/renderers/browser/time.rb +0 -3
- data/lib/atome/renderers/browser/utility.rb +0 -49
- data/lib/atome/renderers/headless/headless.rb +0 -10
- data/lib/atome/renderers/headless/utility.rb +0 -6
- data/lib/atome/renderers/html/atome.rb +0 -49
- data/lib/atome/renderers/html/effect.rb +0 -19
- data/lib/atome/renderers/html/event.rb +0 -9
- data/lib/atome/renderers/html/geometry.rb +0 -11
- data/lib/atome/renderers/html/html.rb +0 -42
- data/lib/atome/renderers/html/identity.rb +0 -14
- data/lib/atome/renderers/html/opal_browser.rb +0 -6
- data/lib/atome/renderers/html/spatial.rb +0 -28
- data/lib/atome/renderers/html/utility.rb +0 -17
- data/lib/atome/renderers/opal/extensions/atome.rb +0 -29
- data/lib/atome/renderers/opal/extensions/ping.rb +0 -18
- data/lib/atome/renderers/renderer.rb +0 -15
- data/lib/atome/renderers/server/server.rb +0 -10
- data/lib/atome/renderers/server/utility.rb +0 -6
- data/vendor/assets/aui.rb +0 -5
- data/vendor/assets/r&d/misc.rb +0 -219
- data/vendor/assets/r&d/ping.rb +0 -3
- data/vendor/assets/r&d/storage.rb +0 -9
- data/vendor/assets/r&d/view_example.rb +0 -21
- data/vendor/assets/src/js/atome/atome_helpers/atome_communication.js +0 -40
- data/vendor/assets/src/medias/javascripts/test.js +0 -1
- data/vendor/assets/src/medias/rubies/demos.rb +0 -63
- data/vendor/assets/src/medias/rubies/examples/add.rb +0 -24
- data/vendor/assets/src/medias/rubies/examples/animation.rb +0 -81
- data/vendor/assets/src/medias/rubies/examples/atome_new.rb +0 -27
- data/vendor/assets/src/medias/rubies/examples/attach.rb +0 -15
- data/vendor/assets/src/medias/rubies/examples/attached.rb +0 -15
- data/vendor/assets/src/medias/rubies/examples/auto_height.rb +0 -5
- data/vendor/assets/src/medias/rubies/examples/auto_width.rb +0 -4
- data/vendor/assets/src/medias/rubies/examples/batch.rb +0 -17
- data/vendor/assets/src/medias/rubies/examples/blur.rb +0 -4
- data/vendor/assets/src/medias/rubies/examples/bottom.rb +0 -3
- data/vendor/assets/src/medias/rubies/examples/box.rb +0 -20
- data/vendor/assets/src/medias/rubies/examples/center.rb +0 -21
- data/vendor/assets/src/medias/rubies/examples/circle.rb +0 -3
- data/vendor/assets/src/medias/rubies/examples/class.rb +0 -13
- data/vendor/assets/src/medias/rubies/examples/clear.rb +0 -10
- data/vendor/assets/src/medias/rubies/examples/clone.rb +0 -35
- data/vendor/assets/src/medias/rubies/examples/code.rb +0 -11
- data/vendor/assets/src/medias/rubies/examples/color.rb +0 -73
- data/vendor/assets/src/medias/rubies/examples/create_atome_in_atome.rb +0 -13
- data/vendor/assets/src/medias/rubies/examples/cursor.rb +0 -7
- data/vendor/assets/src/medias/rubies/examples/delete.rb +0 -42
- data/vendor/assets/src/medias/rubies/examples/depth.rb +0 -6
- data/vendor/assets/src/medias/rubies/examples/detached.rb +0 -13
- data/vendor/assets/src/medias/rubies/examples/drag.rb +0 -98
- data/vendor/assets/src/medias/rubies/examples/drop.rb +0 -26
- data/vendor/assets/src/medias/rubies/examples/edit.rb +0 -12
- data/vendor/assets/src/medias/rubies/examples/element.rb +0 -6
- data/vendor/assets/src/medias/rubies/examples/empty_atome.rb +0 -12
- data/vendor/assets/src/medias/rubies/examples/fullscreen.rb +0 -15
- data/vendor/assets/src/medias/rubies/examples/grab.rb +0 -5
- data/vendor/assets/src/medias/rubies/examples/height.rb +0 -7
- data/vendor/assets/src/medias/rubies/examples/hide.rb +0 -7
- data/vendor/assets/src/medias/rubies/examples/id.rb +0 -14
- data/vendor/assets/src/medias/rubies/examples/image.rb +0 -8
- data/vendor/assets/src/medias/rubies/examples/left.rb +0 -7
- data/vendor/assets/src/medias/rubies/examples/link.rb +0 -22
- data/vendor/assets/src/medias/rubies/examples/markers.rb +0 -48
- data/vendor/assets/src/medias/rubies/examples/materials.rb +0 -15
- data/vendor/assets/src/medias/rubies/examples/matrix.rb +0 -102
- data/vendor/assets/src/medias/rubies/examples/matrix_changes.rb +0 -483
- data/vendor/assets/src/medias/rubies/examples/matrix_simple.rb +0 -32
- data/vendor/assets/src/medias/rubies/examples/monitoring.rb +0 -70
- data/vendor/assets/src/medias/rubies/examples/mute.rb +0 -22
- data/vendor/assets/src/medias/rubies/examples/on.rb +0 -26
- data/vendor/assets/src/medias/rubies/examples/opacity.rb +0 -5
- data/vendor/assets/src/medias/rubies/examples/over.rb +0 -21
- data/vendor/assets/src/medias/rubies/examples/pause.rb +0 -15
- data/vendor/assets/src/medias/rubies/examples/physical.rb +0 -19
- data/vendor/assets/src/medias/rubies/examples/play.rb +0 -15
- data/vendor/assets/src/medias/rubies/examples/read.rb +0 -11
- data/vendor/assets/src/medias/rubies/examples/refresh.rb +0 -8
- data/vendor/assets/src/medias/rubies/examples/remove.rb +0 -16
- data/vendor/assets/src/medias/rubies/examples/repeat.rb +0 -6
- data/vendor/assets/src/medias/rubies/examples/right.rb +0 -3
- data/vendor/assets/src/medias/rubies/examples/rotate.rb +0 -4
- data/vendor/assets/src/medias/rubies/examples/schedule.rb +0 -13
- data/vendor/assets/src/medias/rubies/examples/shadow.rb +0 -84
- data/vendor/assets/src/medias/rubies/examples/size.rb +0 -8
- data/vendor/assets/src/medias/rubies/examples/sort.rb +0 -18
- data/vendor/assets/src/medias/rubies/examples/style.rb +0 -4
- data/vendor/assets/src/medias/rubies/examples/tags.rb +0 -10
- data/vendor/assets/src/medias/rubies/examples/text.rb +0 -39
- data/vendor/assets/src/medias/rubies/examples/time.rb +0 -18
- data/vendor/assets/src/medias/rubies/examples/to_px.rb +0 -10
- data/vendor/assets/src/medias/rubies/examples/touch.rb +0 -56
- data/vendor/assets/src/medias/rubies/examples/vector.rb +0 -39
- data/vendor/assets/src/medias/rubies/examples/video.rb +0 -65
- data/vendor/assets/src/medias/rubies/examples/wait.rb +0 -8
- data/vendor/assets/src/medias/rubies/examples/web.rb +0 -13
- data/vendor/assets/src/medias/rubies/examples/width.rb +0 -6
- data/vendor/assets/src/medias/rubies/test.rb +0 -1
- data/vendor/assets/src/medias/rubies/text_read.rb +0 -1
- data/vendor/assets/src/medias/rubies/unstable/!run.rb +0 -16
- data/vendor/assets/src/medias/rubies/unstable/_2_solve.rb +0 -72
- data/vendor/assets/src/medias/rubies/unstable/_attach.rb +0 -12
- data/vendor/assets/src/medias/rubies/unstable/_audio.rb +0 -231
- data/vendor/assets/src/medias/rubies/unstable/_dataset.rb +0 -257
- data/vendor/assets/src/medias/rubies/unstable/_matrix.rb +0 -58
- data/vendor/assets/src/medias/rubies/unstable/_os.rb +0 -29
- data/vendor/assets/src/medias/rubies/unstable/_table2.rb +0 -108
- data/vendor/assets/src/medias/rubies/unstable/_vie.rb +0 -211
- data/vendor/assets/src/medias/rubies/users/code.rb +0 -6
- /data/lib/{atome/renderers → platform_specific}/opal/opal.rb +0 -0
- /data/lib/{atome/renderers → platform_specific}/opal/opal_parser.rb +0 -0
- /data/{vendor/assets/src/utilities/mode.rb → lib/renderers/html/communication.rb} +0 -0
- /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 '
|
7
|
-
require '
|
8
|
-
|
9
|
-
#
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
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
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
end
|
205
|
-
|
206
|
-
def
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
end
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
end
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
#
|
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
|