mako 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/mako +133 -0
- data/lib/mako/build.rb +336 -0
- data/lib/mako/data/flash_widget_dev_core/Dependencies.txt +10 -0
- data/lib/mako/data/flash_widget_dev_core/libs/Degrafa_.2.11.swc +0 -0
- data/lib/mako/data/flash_widget_dev_core/libs/KogneatoGraphics.swc +0 -0
- data/lib/mako/data/flash_widget_dev_core/libs/KogneatoSymbols.swc +0 -0
- data/lib/mako/data/flash_widget_dev_core/libs/flash.swc +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/images/RichTextEditor.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/ARLRDBD.TTF +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/FTD_____.TTF +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/verdana.ttf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/verdanab.ttf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/verdanai.ttf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/verdanaz.ttf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/DefaultError.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/barbgfill.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/barshadow.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/bold.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/bullets.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/center.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/close-x.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/fullscreenPopup_close.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/gameTypeIcons/mc.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/gameTypeIcons/mc2.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/gameTypeIcons/mc3.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/gameTypeIcons/qa.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/gameTypeIcons/so.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/importIcon.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/italic.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/justify.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/kogLogo.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/left.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-href-disabled.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-href.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-pagelink-disabled.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-pagelink.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-tooltip-delete.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-tooltip-disabled.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-tooltip-edit.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-tooltip.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/pencil.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/right.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/underline.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayButton.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerPauseButton.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerPauseButton_over.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerPlayButton.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerPlayButton_over.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerSoundButton.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerSoundButton_over.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/styles/creatorStyle.css +57 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/styles/style.css +929 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/swf/embeddedfonts.swf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/swf/helpBubble.swf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/swf/kogneatoSymbols.swf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/swf/videobg.swf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/LICENSE.txt +27 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/CubeRotate.as +48 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Distortion.as +168 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/DistortionConstants.as +16 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Door.as +57 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Flip.as +62 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Gate.as +57 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Pop.as +53 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Push.as +48 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/SimpleDistortion.as +619 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/CubeRotateInstance.as +94 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/DistortBaseInstance.as +258 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/DoorInstance.as +116 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/FlipInstance.as +79 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/GateInstance.as +163 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/PopInstance.as +91 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/PushInstance.as +76 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/util/DisplayObjectBounds.as +64 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/util/DisplayObjectBoundsUtil.as +42 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/util/SimpleDisplayObjectBoundsUtil.as +60 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/HMAC.as +108 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/MD5.as +250 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/MD5Stream.as +343 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/SHA1.as +250 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/SHA224.as +226 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/SHA256.as +229 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/WSSEUsernameToken.as +100 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/effects/SaturationFade.as +107 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/effects/SaturationFadeInstance.as +178 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/effects/SaturationFadePopUpBlocker.as +88 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/errors/IllegalStateError.as +57 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/fileformats/vcard/Address.as +41 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/fileformats/vcard/Email.as +34 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/fileformats/vcard/Phone.as +34 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/fileformats/vcard/VCard.as +47 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/fileformats/vcard/VCardParser.as +234 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/images/BitString.as +34 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/images/JPGEncoder.as +584 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/images/PNGEncoder.as +133 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/DynamicURLLoader.as +48 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/IURIResolver.as +70 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/MimeTypeMap.as +192 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/URI.as +2139 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/URIEncodingBitmap.as +122 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/proxies/RFC2817Socket.as +179 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/Database.as +55 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/Definition.as +59 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/Dict.as +322 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/DictionaryServer.as +50 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/MatchStrategy.as +55 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/Response.as +59 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/ConnectedEvent.as +44 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/DatabaseEvent.as +54 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/DefinitionEvent.as +55 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as +55 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/DictionaryServerEvent.as +55 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/DisconnectedEvent.as +44 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/ErrorEvent.as +64 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/MatchEvent.as +54 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/MatchStrategiesEvent.as +56 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/NoMatchEvent.as +44 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/util/CompleteResponseEvent.as +55 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/util/SocketHelper.as +70 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSON.as +76 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONDecoder.as +303 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONEncoder.as +277 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONParseError.as +79 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONToken.as +79 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONTokenType.as +49 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONTokenizer.as +605 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/ArrayUtil.as +166 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/DateUtil.as +657 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/DictionaryUtil.as +73 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/IntUtil.as +85 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/NumberFormatter.as +63 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/StringUtil.as +220 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/XMLUtil.as +148 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/webapis/ServiceBase.as +39 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/webapis/URLLoaderBase.as +93 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/webapis/events/ServiceEvent.as +67 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/geom/ColorMatrix.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/GTween.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/GTweenTimeline.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/GTweener.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Back.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Bounce.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Circular.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Cubic.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Elastic.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Exponential.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Linear.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Quadratic.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Quartic.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Quintic.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Sine.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/AutoHidePlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/BlurPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/ColorAdjustPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/ColorTransformPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/CurrentFramePlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/IGTweenPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/MatrixPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/MotionBlurPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/SmartRotationPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/SnappingPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/SoundTransformPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/utils/SWFBridgeAS3.as +83 -0
- data/lib/mako/data/flash_widget_dev_core/src/etc/GUID.as +82 -0
- data/lib/mako/data/flash_widget_dev_core/src/etc/MathExt.as +114 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/OverwriteManager.as +143 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/TweenFilterLite.as +502 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/TweenLite.as +512 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/TweenMax.as +987 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Back.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Bounce.as +22 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Circ.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Cubic.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Elastic.as +27 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Expo.as +16 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Linear.as +16 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Quad.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Quart.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Quint.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Sine.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Strong.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/easing_readme.txt +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/events/TweenEvent.as +26 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/BevelFilterVars.as +63 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/BlurFilterVars.as +42 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/ColorMatrixFilterVars.as +86 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/DropShadowFilterVars.as +66 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/GlowFilterVars.as +57 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/TweenFilterLiteVars.as +93 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/TweenLiteVars.as +269 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/TweenMaxVars.as +103 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/TweenEvent.as +17 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/TweenObject.as +27 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/TweenSingleton.as +86 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/Constant.as +7 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/FastSlow.as +7 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/FastSlowFast.as +8 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/Shake.as +12 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/SlowFast.as +7 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/SlowFastSlow.as +8 -0
- data/lib/mako/data/flash_widget_dev_core/src/jac/image/ImageUtils.as +173 -0
- data/lib/mako/data/flash_widget_dev_core/src/jac/image/ResizeStyle.as +52 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/CreatorBase.mxml +504 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/CreatorConfig.as +45 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/CreatorEvents.as +38 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/Dialog.as +35 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/MateriaButton.as +35 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/PopUpAlert.mxml +271 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/GradientBackground.as +41 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/PercentField.mxml +104 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/ScrollableSizableImage.mxml +654 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/TextAreaWithDefaultText.mxml +94 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/TextInputWithDefaultText.mxml +94 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/VertCenterTextRenderer.mxml +37 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/ImportEvent.as +22 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/itemRenderers/CheckBoxColumn.mxml +23 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/questions/QuestionDetails.mxml +68 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/questions/QuestionDisplay.mxml +38 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/questions/QuestionsDataGrid.mxml +247 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/questions/QuestionsDataGridEvent.as +20 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/questionAnswerDataGrid/QuestionAnswerColumn.as +13 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/questionAnswerDataGrid/QuestionAnswerDataGrid.mxml +692 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/questionAnswerDataGrid/TextInputItem.mxml +584 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/questionAnswerDataGrid/TextInputObject.as +28 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/toolTips/KogneatoToolTip.as +196 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/toolTips/TipManager.as +150 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/help/HelpBubble.mxml +245 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/help/HelpDot.mxml +21 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/help/HelpManager.as +92 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/help/HelpObject.as +33 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/help/IHelpGuided.as +7 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/media/ImageCacherImage.mxml +56 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/media/MateriaUploader.as +61 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/questionStorage/Question.as +386 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/questionStorage/QuestionGroup.as +313 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/questionStorage/QuestionSet.as +21 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/toolTips/KogneatoToolTip.as +196 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/toolTips/TipManager.as +150 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/utils/CommonUtils.as +186 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/utils/DateUtils.as +273 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/utils/ImageCacher.as +93 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/arrays/Randomize.as +19 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/arrays/SimpleClone.as +32 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/Color.as +102 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/Draw.as +65 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/lines/Dashed.as +48 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/lines/Dotted.as +83 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/Check.as +27 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/Rect.as +12 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/RectBevel.as +35 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/RectBorder.as +39 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/RectRound.as +33 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/RectRoundBorder.as +62 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/TriangleEquilateral.as +25 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/X.as +28 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/errors/ScoringError.as +10 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/errors/StorageError.as +10 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/events/ButtonEvent.as +25 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/events/PayloadEvent.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/events/StandardEvent.as +26 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/Question.as +72 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/QuestionGroup.as +87 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/QuestionSet.as +35 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/WidgetSettings.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/coms/ServerEvents.as +17 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/coms/ServerMessageEvent.as +31 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/logging/Log.as +92 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/scoring/Scoring.as +87 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/storage/StorageManager.as +91 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/storage/StorageTable.as +72 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/engines/EngineCore.as +222 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/geom/Dimension.as +76 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/respondus/Respondus.as +612 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/respondus/RespondusAnswer.as +11 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/respondus/RespondusError.as +18 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/respondus/RespondusQuestion.as +43 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/respondus/RespondusQuiz.as +68 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/AlertWindow.as +182 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/BlueButton.as +102 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Button.as +88 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Button_base.as +168 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Component.as +98 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ContentBlocker.as +38 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/FlexUIScaler.as +59 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/FormInput.as +191 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/GrabZoomClip.as +305 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/HelpLayer.as +55 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Label.as +25 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/List.as +62 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/List_Base.as +644 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ProcessingBar.as +112 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ProgressBar.as +35 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ProgressBar_base.as +69 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ScrollBar.as +163 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ScrollBar_base.as +378 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ScrollClip.as +468 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ScrollText.as +29 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ScrollText_base.as +295 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/SimpleScrollBar.as +247 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/StageRef.as +34 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/StorageTank.as +233 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/StorageTankHorizontal.as +109 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ToolTip.as +930 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/TweeningDragDropBankList.as +503 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Window.as +144 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Window_base.as +385 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/layout/CenterScale.as +27 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/layout/WindowManager.as +163 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/layout/WindowStage.as +96 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/util/BitField.as +99 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/util/ObjPeek.as +148 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/util/Objects.as +49 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/util/Printer.as +548 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/util/StringUtil.as +12 -0
- data/lib/mako/data/flash_widget_dev_core/src/org/rubyamf/remoting/ssr/FaultEvent.as +37 -0
- data/lib/mako/data/flash_widget_dev_core/src/org/rubyamf/remoting/ssr/RemotingCall.as +211 -0
- data/lib/mako/data/flash_widget_dev_core/src/org/rubyamf/remoting/ssr/RemotingConnection.as +41 -0
- data/lib/mako/data/flash_widget_dev_core/src/org/rubyamf/remoting/ssr/RemotingService.as +214 -0
- data/lib/mako/data/flash_widget_dev_core/src/org/rubyamf/remoting/ssr/ResultEvent.as +36 -0
- data/lib/mako/data/flash_widget_dev_core/src/sandy/util/DistortImage.as +281 -0
- data/lib/mako/data/flash_widget_dev_core/src/sandy/util/SandyPoint.as +29 -0
- data/lib/mako/data/flash_widget_dev_core/src/sandy/util/Triangle.as +32 -0
- data/lib/mako/data/html/thistest.html +0 -0
- data/lib/mako/data/template_creator/src/Creator.mxml +138 -0
- data/lib/mako/data/template_creator/src/assets/images/RichTextEditor.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/DefaultError.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/barbgfill.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/barshadow.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/bold.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/bullets.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/center.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/close-x.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/fullscreenPopup_close.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/importIcon.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/italic.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/justify.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/left.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-href-disabled.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-href.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-pagelink-disabled.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-pagelink.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip-delete.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip-disabled.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip-edit.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/pencil.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/right.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/underline.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayButton.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPauseButton.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPauseButton_over.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPlayButton.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPlayButton_over.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerSoundButton.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerSoundButton_over.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/styles/creatorStyle.css +63 -0
- data/lib/mako/data/template_creator/src/assets/materia/styles/style.css +1127 -0
- data/lib/mako/data/template_creator/src/assets/materia/swf/embeddedfonts.swf +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/swf/helpBubble.swf +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/swf/kogneatoSymbols.swf +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/swf/videobg.swf +0 -0
- data/lib/mako/data/template_creator/src/components/SmallRichTextEditor.mxml +678 -0
- data/lib/mako/data/template_creator/src/components/SmallRichTextEditorToolbar.mxml +133 -0
- data/lib/mako/data/templates/html/README.md +11 -0
- data/lib/mako/data/templates/html/_creator/build.yaml +12 -0
- data/lib/mako/data/templates/html/_creator/creator.html +19 -0
- data/lib/mako/data/templates/html/_creator/css/creator.less +29 -0
- data/lib/mako/data/templates/html/_creator/js/creator.coffee +122 -0
- data/lib/mako/data/templates/html/_creator/test.html +0 -0
- data/lib/mako/data/templates/html/_engine/build.yaml +12 -0
- data/lib/mako/data/templates/html/_engine/css/widget.scss +18 -0
- data/lib/mako/data/templates/html/_engine/js/widget.coffee +143 -0
- data/lib/mako/data/templates/html/_engine/widget.html +21 -0
- data/lib/mako/data/templates/html/_icons/icon-275.png +0 -0
- data/lib/mako/data/templates/html/_icons/icon-394.png +0 -0
- data/lib/mako/data/templates/html/_icons/icon-60.png +0 -0
- data/lib/mako/data/templates/html/_icons/icon-92.png +0 -0
- data/lib/mako/data/templates/html/_score/score_module.php +48 -0
- data/lib/mako/data/templates/html/_score/test_score_module.php +157 -0
- data/lib/mako/data/templates/html/_screen-shots/1-thumb.png +0 -0
- data/lib/mako/data/templates/html/_screen-shots/1.png +0 -0
- data/lib/mako/data/templates/html/_screen-shots/2-thumb.png +0 -0
- data/lib/mako/data/templates/html/_screen-shots/2.png +0 -0
- data/lib/mako/data/templates/html/_screen-shots/3-thumb.png +0 -0
- data/lib/mako/data/templates/html/_screen-shots/3.png +0 -0
- data/lib/mako/data/templates/html/build.yaml +4 -0
- data/lib/mako/data/templates/html/demo.yaml +7 -0
- data/lib/mako/data/templates/html/install.yaml +94 -0
- data/lib/mako/path.rb +48 -0
- data/lib/mako/scaffold.rb +69 -0
- metadata +597 -0
data/bin/mako
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require 'trollop'
|
|
4
|
+
require 'mako/scaffold'
|
|
5
|
+
require 'mako/build'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Add some config functionality onto the hashes
|
|
9
|
+
class Hash
|
|
10
|
+
def compiles_widget?
|
|
11
|
+
!self[:type].nil? && ['compile_swf', 'compile_html'].include?(self[:type])
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def contains_configs?
|
|
15
|
+
!self[:type].nil? && self[:type] == 'config'
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def is_package?
|
|
19
|
+
!self[:type].nil? && self[:type] == 'package'
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def is_copy_type?
|
|
23
|
+
!self[:type].nil? && self[:type] == 'copy'
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
class String
|
|
28
|
+
def pretty
|
|
29
|
+
self.downcase.gsub(/\W/,'-').squeeze('-').chomp('-')
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# inti defaults
|
|
34
|
+
default = {}
|
|
35
|
+
default[:sdk] = nil
|
|
36
|
+
default[:dev_kit] = nil
|
|
37
|
+
default[:app_class] = 'src/Engine.as'
|
|
38
|
+
default[:configs] = ['build.yaml']
|
|
39
|
+
default[:target] = 'compiled_widget.swf'
|
|
40
|
+
default[:output_path] = Dir.pwd+'/_output'
|
|
41
|
+
default[:stop_on_fail] = true
|
|
42
|
+
|
|
43
|
+
SUB_COMMANDS = %w(scaffold build)
|
|
44
|
+
global_args = Trollop::options do
|
|
45
|
+
banner <<-EOS
|
|
46
|
+
Mako is a compiler for Materia that can create a development widget skeleton for building new widgets, or can take a developed widget and compile it into an installable .wigt file for Materia.
|
|
47
|
+
|
|
48
|
+
Usage:
|
|
49
|
+
mako scaffold <widget> [options]+ Creates a scaffold of a development widget.
|
|
50
|
+
mako build <widget> [options]+ Builds a widget for instillation into Materia.
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
Options:
|
|
54
|
+
EOS
|
|
55
|
+
|
|
56
|
+
opt :output_path, "Path to place all compiled", :type => :string
|
|
57
|
+
opt :watch, "Watch for changes and rebuild updated files", :type => :boolean, :default => false
|
|
58
|
+
opt :sdk, "Path to the Flex SDK", :type => :string
|
|
59
|
+
opt :configs, "Path to the build yaml to load", :type => :strings
|
|
60
|
+
opt :target, "Output swf file name", :type => :string
|
|
61
|
+
opt :skip_optimize, "Skip optimization"
|
|
62
|
+
opt :stop_on_fail, "Stop execution if compile fails", :type => :boolean
|
|
63
|
+
opt :skip_package, "Don't build packages?", :type => :boolean, :default => false
|
|
64
|
+
stop_on SUB_COMMANDS
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
cmd = ARGV.shift # get the subcommand
|
|
68
|
+
|
|
69
|
+
args = case cmd
|
|
70
|
+
when "scaffold"
|
|
71
|
+
Trollop::options do
|
|
72
|
+
banner <<-EOS
|
|
73
|
+
Creates a scaffold of a development widget. This can either be an html or flash widget
|
|
74
|
+
|
|
75
|
+
Usage:
|
|
76
|
+
mako scaffold <widget> [options] Creates a scaffold of a development widget.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
Options:
|
|
80
|
+
EOS
|
|
81
|
+
|
|
82
|
+
opt :type, "The type of scaffold that is to be built. Defaults to html", :type => :string, :default => 'html'
|
|
83
|
+
opt :dev_kit, "Path to dev kit", :type => :string
|
|
84
|
+
end
|
|
85
|
+
# Options and banner for building a widget
|
|
86
|
+
when "build"
|
|
87
|
+
Trollop::options do
|
|
88
|
+
banner <<-EOS
|
|
89
|
+
Compiles a widget into a .wigt file in the output directory.
|
|
90
|
+
|
|
91
|
+
Usage:
|
|
92
|
+
mako scaffold <widget> [options] Creates a scaffold of a development widget.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
Options:
|
|
96
|
+
EOS
|
|
97
|
+
end
|
|
98
|
+
# If the sub command isn't recognized
|
|
99
|
+
when !cmd.nil?
|
|
100
|
+
Trollop::die "unknown subcommand #{cmd.inspect}".red
|
|
101
|
+
# If there is no sub command at all
|
|
102
|
+
else
|
|
103
|
+
Trollop::die "mako needs at least one sub command".red
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
args.merge! global_args
|
|
107
|
+
|
|
108
|
+
# user's environment settings
|
|
109
|
+
settings = {}
|
|
110
|
+
settings[:sdk] = ENV["MAKO_FLEX_SDK"] unless ENV["MAKO_FLEX_SDK"].nil?
|
|
111
|
+
settings[:dev_kit] = File.expand_path(File.dirname(__FILE__)+"/../")+"/lib/mako/data/"
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
case cmd
|
|
115
|
+
when "scaffold"
|
|
116
|
+
# Scaffold
|
|
117
|
+
if ARGV[0].nil?
|
|
118
|
+
Trollop::die "Widget name must be defined: mako scaffold \"Widget Name\"".red
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
default[:output_path] = Dir.pwd
|
|
122
|
+
|
|
123
|
+
scaffold = Scaffold.new(settings, default, args)
|
|
124
|
+
|
|
125
|
+
scaffold.create ARGV[0]
|
|
126
|
+
|
|
127
|
+
when "build"
|
|
128
|
+
|
|
129
|
+
build = Build.new(settings, default, args)
|
|
130
|
+
configs = build.prioritize(:configs, args, default)
|
|
131
|
+
|
|
132
|
+
build.compile configs
|
|
133
|
+
end
|
data/lib/mako/build.rb
ADDED
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
require 'mako/path'
|
|
2
|
+
require 'yaml'
|
|
3
|
+
require 'colorize'
|
|
4
|
+
require 'fileutils'
|
|
5
|
+
require 'zip/zip'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Build < Path
|
|
9
|
+
|
|
10
|
+
def initialize settings, default, args
|
|
11
|
+
@settings = settings
|
|
12
|
+
@default = default
|
|
13
|
+
@args = args
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
#process_configs output, prioritize(:configs, args, default), default, settings, args
|
|
17
|
+
def compile configs, current_path=Dir.pwd
|
|
18
|
+
output = prepare_output_path @args, @default
|
|
19
|
+
configs.each do |config|
|
|
20
|
+
|
|
21
|
+
dir = File.dirname absolute_path(config, current_path)
|
|
22
|
+
cfg = load_symbolized_yaml absolute_path(config, current_path)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
if cfg.compiles_widget?
|
|
26
|
+
if cfg[:type] == 'compile_swf'
|
|
27
|
+
compile_swc output, dir, cfg
|
|
28
|
+
end
|
|
29
|
+
if cfg[:type] == 'compile_html'
|
|
30
|
+
compile_html output, dir, cfg
|
|
31
|
+
end
|
|
32
|
+
elsif cfg.is_copy_type?
|
|
33
|
+
compile_copy output, dir, cfg
|
|
34
|
+
elsif cfg.contains_configs?
|
|
35
|
+
# for configs that only contain other configs but arent packages
|
|
36
|
+
compile(output, cfg[:configs], dir)
|
|
37
|
+
elsif cfg.is_package?
|
|
38
|
+
# for package configs
|
|
39
|
+
if @args[:skip_package] != true
|
|
40
|
+
package(dir, output, cfg)
|
|
41
|
+
else
|
|
42
|
+
compile [cfg[:engine], cfg[:creator]], dir
|
|
43
|
+
optimize_staged_files(output) unless args[:skip_optimize]
|
|
44
|
+
end
|
|
45
|
+
else
|
|
46
|
+
puts "#{config} unknown config type".red
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def load_yaml yaml
|
|
52
|
+
if File::exists?(yaml) and contents = YAML::load_file(yaml)
|
|
53
|
+
return contents
|
|
54
|
+
end
|
|
55
|
+
false
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
def load_symbolized_yaml yaml
|
|
59
|
+
contents = load_yaml yaml
|
|
60
|
+
if contents
|
|
61
|
+
return string_keys_to_symbols contents
|
|
62
|
+
end
|
|
63
|
+
false
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Convert an array that uses string keys to symbol keys... cuz they look cooler
|
|
67
|
+
def string_keys_to_symbols hash
|
|
68
|
+
hash.keys.each do |key|
|
|
69
|
+
hash[(key.to_sym rescue key) || key] = hash.delete(key)
|
|
70
|
+
end
|
|
71
|
+
hash
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# execute the mxmlc compiler on the given settings
|
|
75
|
+
def compile_swc output_dir, base_dir, config
|
|
76
|
+
|
|
77
|
+
# combine and prioritize the options
|
|
78
|
+
run = {}
|
|
79
|
+
run[:dev_kit] = prioritize :dev_kit, @args, @settings, @default
|
|
80
|
+
run[:sdk] = prioritize :sdk, @args, @settings, @default
|
|
81
|
+
run[:target] = prioritize :target, @args, config, @default
|
|
82
|
+
run[:app_class] = absolute_path(prioritize(:app_class, config, @default), base_dir)
|
|
83
|
+
run[:stop_on_fail] = prioritize :stop_on_fail, @args, @settings, @default
|
|
84
|
+
run[:libs] = aboslute_paths config[:libs], base_dir
|
|
85
|
+
run[:sources] = aboslute_paths config[:sources], base_dir
|
|
86
|
+
|
|
87
|
+
# Make sure the SDK exists
|
|
88
|
+
if run[:sdk].empty?
|
|
89
|
+
puts "Mako can't find your Flex SDK".red
|
|
90
|
+
puts "Please set MAKO_FLEX_SDK environment variable or the --sdk option"
|
|
91
|
+
abort
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Check for the DevKit
|
|
95
|
+
if prioritize(:dev_kit, @args, @settings, @default).empty?
|
|
96
|
+
puts "Mako can't find your Materia Dev Kit".red
|
|
97
|
+
puts "Please set MAKO_DEV_KIT environment variable or the --dev-kit option"
|
|
98
|
+
abort
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Add in Materia and Flex Resources
|
|
102
|
+
run[:sources].push run[:sdk]+'frameworks/' # flex sdk framework directory
|
|
103
|
+
run[:sources].push run[:dev_kit]+'flash_widget_dev_core/src/' # Materia widget dev kit source
|
|
104
|
+
run[:libs].push run[:sdk]+'frameworks/libs/' # Flex framework libs
|
|
105
|
+
run[:libs].push run[:sdk]+'frameworks/locale/en_US/' # Flex local files
|
|
106
|
+
|
|
107
|
+
# Setup the strings for the command
|
|
108
|
+
mxmlc = run[:sdk] + 'bin/mxmlc'
|
|
109
|
+
sources = ' -source-path '+run[:sources].join(' ')
|
|
110
|
+
output_dir = ' -output '+output_dir+'/'+run[:target]
|
|
111
|
+
extras = ' -load-config '+run[:sdk]+'frameworks/flex-config.xml'+' -target-player 10.2.0 -debug=' +@args[:skip_optimize].to_s
|
|
112
|
+
libs = ' -library-path '+run[:libs].join(' ')
|
|
113
|
+
|
|
114
|
+
# Execute
|
|
115
|
+
puts "[Compiling] #{run[:target]}".white
|
|
116
|
+
unless system(mxmlc+" "+run[:app_class]+sources+output_dir+libs+extras)
|
|
117
|
+
puts "[Compile Failed]".red
|
|
118
|
+
puts mxmlc+" "+run[:app_class]+sources+output_dir+libs+extras
|
|
119
|
+
abort unless run[:stop_on_fail]
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# copy and compile any html, js, coffeescript, saas, css, or images given the settings
|
|
124
|
+
def compile_html output_dir, base_dir, config
|
|
125
|
+
|
|
126
|
+
compile_copy output_dir, base_dir, config
|
|
127
|
+
|
|
128
|
+
coffee = Dir[output_dir+'/**/*.coffee']
|
|
129
|
+
if coffee.any?
|
|
130
|
+
require 'coffee-script'
|
|
131
|
+
coffee.each do |source|
|
|
132
|
+
process_coffee source, output_dir, output_dir, !@args[:skip_optimize]
|
|
133
|
+
File.delete source
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
less = Dir[output_dir+'/**/*.{less}']
|
|
138
|
+
if less.any?
|
|
139
|
+
require 'less'
|
|
140
|
+
less.each do |source|
|
|
141
|
+
process_less source, output_dir, output_dir, !@args[:skip_optimize]
|
|
142
|
+
File.delete source
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
sass = Dir[output_dir+'/**/*.{scss,sass}']
|
|
147
|
+
if sass.any?
|
|
148
|
+
require 'sass'
|
|
149
|
+
sass.each do |source|
|
|
150
|
+
process_sass source, output_dir, output_dir, !@args[:skip_optimize]
|
|
151
|
+
File.delete source
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
remove_html_dev_helpers output_dir
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
def compile_copy output, base_dir, config
|
|
159
|
+
|
|
160
|
+
base_dir << '/' unless base_dir.end_with? '/'
|
|
161
|
+
output_dir = output.dup
|
|
162
|
+
output_dir << '/' unless output_dir.end_with? '/'
|
|
163
|
+
|
|
164
|
+
# FileUtils.rm_r output_dir, :force=>true
|
|
165
|
+
Dir::mkdir output_dir unless File::exists? output_dir
|
|
166
|
+
|
|
167
|
+
# copy any included directories
|
|
168
|
+
if config[:include]
|
|
169
|
+
config[:include].each do |item|
|
|
170
|
+
item << '/' unless item.end_with? '/'
|
|
171
|
+
Dir::mkdir output_dir+item unless File::exists? output_dir+item
|
|
172
|
+
FileUtils.cp_r Dir[base_dir+item+'*'], output_dir+item
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
#copy the target file incase its not in the included directories
|
|
177
|
+
if config[:target]
|
|
178
|
+
dir = File::dirname(output_dir+config[:target])
|
|
179
|
+
FileUtils.mkpath dir unless File::exists? dir
|
|
180
|
+
FileUtils.cp_r base_dir+config[:target], output_dir+config[:target]
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
def process_sass file, output_dir, base_dir, optimize
|
|
185
|
+
puts "Compiling SASS:".green + "#{file}".white
|
|
186
|
+
# output to a css file of the same name, in the same reletive structure in the output directory
|
|
187
|
+
output_file = (file.chomp(File.extname(file)) + '.css').sub(base_dir, output_dir)
|
|
188
|
+
output_dir = File.dirname(output_file)
|
|
189
|
+
# makes the directory structure if it doesnt exist
|
|
190
|
+
FileUtils.mkdir_p output_dir unless File.directory? output_dir
|
|
191
|
+
# process sass file and write output
|
|
192
|
+
sass_engine = Sass::Engine.for_file(file, {:style => :nested})
|
|
193
|
+
output = sass_engine.render
|
|
194
|
+
File.open(output_file, 'w') { |file_out| file_out.write(output) }
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# requires gem therubyracer
|
|
198
|
+
def process_less file, output_dir, base_dir, optimize
|
|
199
|
+
puts "Compiling LESS:".green + "#{file}".white
|
|
200
|
+
|
|
201
|
+
output_file = (file.chomp(File.extname(file)) + '.css').sub(base_dir, output_dir)
|
|
202
|
+
output_dir = File.dirname(output_file)
|
|
203
|
+
# makes the directory structure if it doesnt exist
|
|
204
|
+
FileUtils.mkdir_p output_dir unless File.directory? output_dir
|
|
205
|
+
# process sass file and write output
|
|
206
|
+
tree = Less::Parser.new().parse File.read(file)
|
|
207
|
+
output = tree.to_css()
|
|
208
|
+
File.open(output_file, 'w') { |file_out| file_out.write(output) }
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
def process_coffee file, output_dir, base_dir, optimize
|
|
212
|
+
puts "Compiling CoffeeScript:".green + "#{file}".white
|
|
213
|
+
# output to a css file of the same name, in the same reletive structure in the output directory
|
|
214
|
+
output_file = (file.chomp(File.extname(file)) + '.js').sub(base_dir, output_dir)
|
|
215
|
+
output_dir = File.dirname(output_file)
|
|
216
|
+
# makes the directory structure if it doesnt exist
|
|
217
|
+
FileUtils.mkdir_p output_dir unless File.directory? output_dir
|
|
218
|
+
# process sass file and write output
|
|
219
|
+
output = CoffeeScript.compile File.read(file)
|
|
220
|
+
File.open(output_file, 'w') { |file_out| file_out.write(output) }
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
def process_js file
|
|
224
|
+
puts "Compressing JavaScript:".blue + "#{file}".white
|
|
225
|
+
compressor = YUI::JavaScriptCompressor.new :munge => true
|
|
226
|
+
compressed = compressor.compress File.read(file)
|
|
227
|
+
File.open(file, 'w') { |file_out| file_out.write(compressed) }
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
def process_css file
|
|
231
|
+
puts "Compressing CSS:".blue + "#{file}".white
|
|
232
|
+
compressor = YUI::CssCompressor.new
|
|
233
|
+
compressed = compressor.compress File.read(file)
|
|
234
|
+
File.open(file, 'w') { |file_out| file_out.write(compressed) }
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
def remove_html_dev_helpers output_path
|
|
238
|
+
# For development, html widgets support loading coffeescript via require.js
|
|
239
|
+
# to do so, authors will add 'cs!' before the coffeescript file they are loading
|
|
240
|
+
# dev: [ ...scripts..., 'cs!js/widget'] will load js/widget.coffee
|
|
241
|
+
# packaged: [ ...scripts..., 'js/widget'] will load js/widget.js
|
|
242
|
+
# Now we will pull out cs! because we pre-compile coffeescript
|
|
243
|
+
# ALSO if LESS is used, we will be including 'less' in the require - we'll get rid of this too
|
|
244
|
+
Dir[output_path+'/**/*.{html,htm}'].each do |file|
|
|
245
|
+
text = File.read(file)
|
|
246
|
+
# remove coffeescript helpers
|
|
247
|
+
text = text.gsub(/['"]cs!/, "'")
|
|
248
|
+
# remove less in require
|
|
249
|
+
text = text.gsub(/(require\(\[[^\]]+?)['"]less['"]\s?,/, '\1')
|
|
250
|
+
# remove less in includes
|
|
251
|
+
text = text.gsub(/rel="stylesheet\/less"/, 'rel="stylesheet"')
|
|
252
|
+
text = text.gsub(/href="(.+?)\.less"/, 'href="\1.css"')
|
|
253
|
+
File.open(file, 'w') { |fpath| fpath.puts(text) }
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
def package source, output_dir, cfg
|
|
259
|
+
|
|
260
|
+
# setup all the directories
|
|
261
|
+
output_dir = output_dir.dup # output_dir is frozen typically and I don't know ruby enough to understand why
|
|
262
|
+
output_dir << '/' unless output_dir.end_with? '/'
|
|
263
|
+
source << '/' unless source.end_with? '/'
|
|
264
|
+
name = load_yaml(source+'install.yaml')['general']['name'].pretty
|
|
265
|
+
stage = Dir::pwd+'/wigt'
|
|
266
|
+
FileUtils.rm_r stage, :force=>true
|
|
267
|
+
|
|
268
|
+
Dir::mkdir stage
|
|
269
|
+
Dir::mkdir stage+'/swf'
|
|
270
|
+
Dir::mkdir stage+'/img'
|
|
271
|
+
Dir::mkdir stage+'/img/screen-shots'
|
|
272
|
+
Dir::mkdir stage+'/_score-modules'
|
|
273
|
+
Dir::mkdir stage+'/_assets'
|
|
274
|
+
|
|
275
|
+
# copy everything to where it needs to be
|
|
276
|
+
FileUtils.cp_r Dir[source+'swf/*'], stage+'/swf'
|
|
277
|
+
FileUtils.cp_r Dir[source+'img/*'], stage+'/img'
|
|
278
|
+
FileUtils.cp_r Dir[source+'_icons/*'], stage+'/img'
|
|
279
|
+
FileUtils.cp_r Dir[source+'_screen-shots/*'], stage+'/img/screen-shots'
|
|
280
|
+
FileUtils.cp_r Dir[source+'_assets/*'], stage+'/_assets'
|
|
281
|
+
FileUtils.cp source+'install.yaml', stage+'/install.yaml'
|
|
282
|
+
FileUtils.cp source+'demo.yaml', stage+'/demo.yaml'
|
|
283
|
+
|
|
284
|
+
if File::exists? source+'_score/score_module.php'
|
|
285
|
+
FileUtils.cp source+'_score/score_module.php', stage+'/_score-modules/score_module.php'
|
|
286
|
+
FileUtils.cp source+'_score/test_score_module.php', stage+'/_score-modules/test_score_module.php'
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
# run makobuild on each part of this package
|
|
290
|
+
# this will typically be once per engine/creator of this package
|
|
291
|
+
if File::exists? source+'build.yaml'
|
|
292
|
+
command = "mako --configs #{source}build.yaml --output-path #{stage}/ --skip-package"
|
|
293
|
+
command << " --skip-optimize" if @args[:skip_optimize]
|
|
294
|
+
command << " build"
|
|
295
|
+
unless system command
|
|
296
|
+
FileUtils.rm_r stage, :force=>true
|
|
297
|
+
abort "Package Failure".red
|
|
298
|
+
end
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
optimize_staged_files(stage) unless @args[:skip_optimize]
|
|
302
|
+
|
|
303
|
+
# zip it
|
|
304
|
+
zip_file = "#{output_dir}#{name}.wigt"
|
|
305
|
+
FileUtils.rm zip_file, :force=>true
|
|
306
|
+
Zip::ZipFile.open(zip_file, Zip::ZipFile::CREATE) do |zip|
|
|
307
|
+
Dir[stage+'/**/**'].each do |file|
|
|
308
|
+
zip.add file.sub(stage+'/', ''), file
|
|
309
|
+
end
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# done, cleanup
|
|
313
|
+
puts "[Package Finished] #{name} #{zip_file}".green
|
|
314
|
+
FileUtils.rm_r stage, :force=>true
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
def optimize_staged_files path
|
|
318
|
+
css = Dir[path+'/**/*.css']
|
|
319
|
+
if css.any?
|
|
320
|
+
require "yui/compressor"
|
|
321
|
+
css.each do |source|
|
|
322
|
+
process_css source
|
|
323
|
+
end
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
js = Dir[path+'/**/*.js']
|
|
327
|
+
if js.any?
|
|
328
|
+
require "yui/compressor"
|
|
329
|
+
js.each do |source|
|
|
330
|
+
process_js source
|
|
331
|
+
end
|
|
332
|
+
end
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Package Licenses to Investigate
|
|
2
|
+
===============================================================================
|
|
3
|
+
com.gskinner
|
|
4
|
+
com.adobe
|
|
5
|
+
sandy.util (Dependency for com.adobe)
|
|
6
|
+
gs.* (Dependency for GrabZoomClip.as)
|
|
7
|
+
jac.image (Dependency for Printer)
|
|
8
|
+
org.rubyamf.remoting.ssr (Dependency for many files in Kogneato)
|
|
9
|
+
Other Packages Dependencies
|
|
10
|
+
===============================================================================
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerPauseButton_over.png
ADDED
|
Binary file
|
|
Binary file
|
data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerPlayButton_over.png
ADDED
|
Binary file
|
|
Binary file
|
data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerSoundButton_over.png
ADDED
|
Binary file
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*HRule {
|
|
2
|
+
stroke-color: #9198B3;
|
|
3
|
+
shadow-color: #9198B3;
|
|
4
|
+
stroke-width: 1;
|
|
5
|
+
}*/
|
|
6
|
+
.sectionLabel {
|
|
7
|
+
font-family: "Futura ICG Demi";
|
|
8
|
+
font-size: 18;
|
|
9
|
+
color: #f0f0f0;
|
|
10
|
+
font-weight: normal;
|
|
11
|
+
}
|
|
12
|
+
.crosswordLabel {
|
|
13
|
+
font-family: "Futura ICG Demi";
|
|
14
|
+
font-size: 17;
|
|
15
|
+
color: #f0f0f0;
|
|
16
|
+
font-weight: normal;
|
|
17
|
+
}
|
|
18
|
+
.titleField {
|
|
19
|
+
font-size: 21;
|
|
20
|
+
font-weight: normal;
|
|
21
|
+
}
|
|
22
|
+
.creatorSectionMajor {
|
|
23
|
+
background-color: #2C4B5F;
|
|
24
|
+
border-color: #2C4B5F;
|
|
25
|
+
border-style: solid;
|
|
26
|
+
corner-radius: 4;
|
|
27
|
+
border-thickness: 1;
|
|
28
|
+
padding-left: 10;
|
|
29
|
+
padding-right: 10;
|
|
30
|
+
padding-bottom: 10;
|
|
31
|
+
padding-top: 10;
|
|
32
|
+
}
|
|
33
|
+
.creatorSectionMinor {
|
|
34
|
+
background-color: #233C4D;
|
|
35
|
+
border-color: #233C4D;
|
|
36
|
+
border-style: solid;
|
|
37
|
+
corner-radius: 4;
|
|
38
|
+
padding-left: 10;
|
|
39
|
+
padding-right: 10;
|
|
40
|
+
padding-bottom: 10;
|
|
41
|
+
}
|
|
42
|
+
.subLabel
|
|
43
|
+
{
|
|
44
|
+
fontFamily: "Arial Rounded MT Bold";
|
|
45
|
+
color: #FFFFFF;
|
|
46
|
+
fontSize: 14;
|
|
47
|
+
}
|
|
48
|
+
.numStepper
|
|
49
|
+
{
|
|
50
|
+
fontFamily: "Arial Rounded MT Bold";
|
|
51
|
+
color: #000000;
|
|
52
|
+
fontSize: 12;
|
|
53
|
+
}
|
|
54
|
+
LinkButton.timelineWindowLinkButton
|
|
55
|
+
{
|
|
56
|
+
color: #1A5F70;
|
|
57
|
+
}
|