filemagic 0.3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +37 -0
- data/app/assets/fonts/filemagic-icons.eot +0 -0
- data/app/assets/fonts/filemagic-icons.ttf +0 -0
- data/app/assets/fonts/filemagic-icons.woff +0 -0
- data/app/assets/javascripts/filemagic.js +14 -0
- data/app/assets/javascripts/filemagic/application.js +15 -0
- data/app/assets/javascripts/filemagic/canvas-to-blob.js +95 -0
- data/app/assets/javascripts/filemagic/classnames.js +44 -0
- data/app/assets/javascripts/filemagic/components/uploader.es6 +385 -0
- data/app/assets/javascripts/filemagic/initializer.es6 +9 -0
- data/app/assets/javascripts/filemagic/jquery.fileupload.js +1467 -0
- data/app/assets/javascripts/filemagic/jquery.iframe-transport.js +217 -0
- data/app/assets/javascripts/filemagic/jquery.ui.js +16617 -0
- data/app/assets/javascripts/filemagic/jquery.ui.widget.js +563 -0
- data/app/assets/javascripts/filemagic/load-image.js +348 -0
- data/app/assets/javascripts/filemagic/lodash.js +12175 -0
- data/app/assets/javascripts/filemagic/react-dom.js +42 -0
- data/app/assets/javascripts/filemagic/react.js +18808 -0
- data/app/assets/stylesheets/filemagic.scss +33 -0
- data/app/assets/stylesheets/filemagic/_filemagic-icons.scss +34 -0
- data/app/assets/stylesheets/filemagic/_uploader.scss +40 -0
- data/app/assets/stylesheets/filemagic/application.css +1 -0
- data/app/assets/stylesheets/filemagic/components/_buttons.scss +39 -0
- data/app/assets/stylesheets/filemagic/components/_loader.scss +23 -0
- data/app/assets/stylesheets/filemagic/states/_uploader-drag.scss +53 -0
- data/app/assets/stylesheets/filemagic/states/_uploader-empty.scss +44 -0
- data/app/assets/stylesheets/filemagic/states/_uploader-filled.scss +57 -0
- data/app/assets/stylesheets/filemagic/states/_uploader-loading.scss +20 -0
- data/app/assets/stylesheets/filemagic/states/_uploader-repositioning.scss +11 -0
- data/app/controllers/filemagic/application_controller.rb +4 -0
- data/app/controllers/filemagic/image_controller.rb +21 -0
- data/app/helpers/filemagic/application_helper.rb +12 -0
- data/app/views/layouts/filemagic/application.html.erb +14 -0
- data/config/routes.rb +4 -0
- data/lib/filemagic.rb +4 -0
- data/lib/filemagic/engine.rb +126 -0
- data/lib/filemagic/version.rb +8 -0
- data/lib/tasks/filemagic_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +6 -0
- data/test/dummy/app/assets/javascripts/posts.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.scss +17 -0
- data/test/dummy/app/assets/stylesheets/posts.css +4 -0
- data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/posts_controller.rb +58 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/posts_helper.rb +2 -0
- data/test/dummy/app/models/post.rb +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/posts/_form.html.erb +29 -0
- data/test/dummy/app/views/posts/edit.html.erb +6 -0
- data/test/dummy/app/views/posts/index.html.erb +18 -0
- data/test/dummy/app/views/posts/new.html.erb +5 -0
- data/test/dummy/app/views/posts/show.html.erb +35 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +7 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20160701161345_create_posts.rb +11 -0
- data/test/dummy/db/migrate/20160701175704_add_offset_to_post.rb +6 -0
- data/test/dummy/db/schema.rb +26 -0
- data/test/dummy/log/development.log +669 -0
- data/test/dummy/log/test.log +5 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/controllers/posts_controller_test.rb +49 -0
- data/test/dummy/test/fixtures/posts.yml +11 -0
- data/test/dummy/test/models/post_test.rb +7 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-9fw994Yol65vBMI97itkrjPavPXYWWFkB6uivTz5v8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-LX_w_RSHEt3GQluIt2hYblBefGWLhzQDvO7jI2k6Ok.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-XtoHqe2ytO7UraIImZctev7njgPWMZvY_gBv7ziDKw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-xsKMHT2LN0HR6u7R3xdyRqk_Rx4x6TrXc_FF79YDWM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-zf7WboBz0QWaTi04WQFjsmTyM2h-XVE-7QsR3uEeu8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0OBgaq7bbfwsDjDnM8tWXdx9CNhcIEtvwWS5WKPNl4g.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0hXRi95-UDPmmhoa-Q78vGAt5j1pv-Tl-_pJMVF6mH0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0phvQr_Ht373Ffj0MaD0ZFTtXnQwKSWs9JLWoHPNF8U.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/15gZWnR3ALNTUq43PIjkNHChFRf5HWF2XOKBdwk9DZU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/15yTOt29VJuhxme5JLvhF33SS03AXHA5O6UnWOeE4-4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1Eo6XDPzWfQbqmc0jotB-ax3rKjW0fgfvmRVtNcHqfg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1ad4fICEGq7HLvmzU62Cb51MU0PD-j-QPE3JRMk834Q.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1hrQ1ope6o2-ff3VcbZNMaQF3zjGYNP5B5ufvGjIrZ0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/25ah2DTT1tAtIrEGPBgfh6WW0u9MAspPw78VIrRO9kg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/2GleRbQkIiO_kXw3tTCUtdAJ-gWDZWd_iTLEye_DH-U.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/2NL78TK0a1p1YVNOsMaRicnKuleyls0i2dGg0HXbjwY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3elz5ZwjeT6rBLmSCz8CNiRgPbst1tuWy49nv5eKXUs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3k3hnrloNksSclDyY1G5Ffe8Togln4PTF26teZj4daU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3o6SyrtKCa5-IW82Gku6TT50xVuYSPmWZYV2LpXt0ng.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4XbbAtbDeCPgBgwEGfaVYbh0z4-8IVkXY5dC9xufAqE.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/4mdhEpfFlSlrufWtk3Qe_RmsVuOkU_n7PRBLtBG5bZg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/57VWddntHZmImAbLHffgzWBZOfELQXF35qvp-h4xSqs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5HtbdtEteX-EBT3v71mk9qgfeWybkF0w6pm3Wo69ODk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5Shm6EVGs2LfJZhF16hVrHIrqReoSJ0vQ8K7If3maUU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5TzYmONEI2HYkxGdPZU9iJFCuuoe70CB-i-w-KEHZv0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5qRm6M17eqp9ipjb3_SUxEtN0hWh2oQELdhKtycQtog.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5rGYGjKoFndqCWXSNVyjCCIkQE9pSJjye3NsVhZnXes.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/60XA3OEWI-NSTe8v2MywH7EvOoTOd8WpJ1MyUlinw6U.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6BRxKCHFSDWCSNxJrbjKmf3CYXOCpqBg3a1SEtr2a0s.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6Rru6T6Y51aQCe6jqVeJ1rfKmTo9GUIPcUar8rtq-Rg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6as1--h6jJEEUmq_0kVrxc0pwyJ98rOuawZLimWm_6A.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6fjaGP4lf1hCTlKuAEMwaNP2Ui1Bziq8q_bkgFuonww.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6sCXk5ZnhABzKKPVSv551SqmF7vBiE5GsZ9INSGcpE8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6udi3HLGr1LETSalwA-b8aHfK7pf1lmdBNRCmLaQeqM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7DeVqrf0z9akoAULAaKAaNfXT0F2x3KPUlYjgX08AZI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7K5myWw5wmyQDfjairkEB0-5At47CWVP89BJOrYy8yg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7Tc4KejuD7oDeI1YUfRJK2d32cP6qEDy3E9qg1zYp1I.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7_xh9nApxF_F6bZKKcceQZDyPud5z7Z9X2eF5Ng28JI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7cHMiFku4aNBoYYgMxYQs5TlgKSAxGML_Ji4mhC4HJg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7omTqexvKlj_RHP5tXUtQKz1DVeUjyFUaQSKkOitjVc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7xzatHL4nFDunMIIndkxLUhR9RSC_pq5-ecqLr3iDOU.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7zZpAotw30sQanfrrbypVDttEbLBhXD0Zz5K4XYIQeM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/84Me44hvtapTtN0sw7x6Atl1Pnh3TWjn6bUqHsbob-Q.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8_4a4WmKbDnFi_P4AGbt6tt8_ISlY4qCYqvehvw8AZI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8qUP1kKVENfP86RDpdKFHWfVrebNx3HIt9BKCbJvJWo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8teW6uepXXCGnRK_6TW8HxU64DlG-VkU4GP1uD_CAp8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8ul7L1385P1Y4Lye1IjcYLw7ZV9XR7t7iDNYTflG_LI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9Ao4YOAk5OrYbkTps2fmbe3J0wJgbpoHmF-RoWiS-tE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9Mbhx9R5uX1_r2r09dv9ZeiJ0Ce0HbbfK-AMIaTrM-k.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9P66LJIM0hEcs_92j4tYm5KixR6AlFKHMZnn96TFmVc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9cxg0J5Iz3XrIEBcMdfVLBGub-tl1dNGayduoE570Ko.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/AatOjV7lBh57a31_4jJTOZ8O-Xcp0V4GbZvK1R44jx8.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/AeaEUF49bAXdrFJ_HtP83vdA7HHse1nAOa9p89CbDGk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/AggI8FeI4v--Wk_ImOySHUMDxUDThth3w6IyBk6OQsw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/AlsNnuva_5wUqDKonJNRGTA1a_TgpDEfazLh-jF199c.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/AtgqcE5rqq08AqyIPxk1lCV3BeRP9FKrCwMlPLjL3iw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/B3p97R9Vw9Ts0Ta7c1M8bQ1OjyAtDkQmSBeAIugPS00.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/BAwmUE7f-j5Be6DBHAp_jvxOqJcUc3SUKocKCi727Vc.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/BQGdY4F2B_lkXoXbpw-cJS-EKXrlxf74Gpm6HJUIBPs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Beq1s5XEZhoXyGWPSfXBXpCBxGKEY8-gxf2MpCQIIjM.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/BzxTIMxPO3oFioUyf8tq1SGdrufca5hmL2LyBlbkkqQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/C5k02RNeDiR0pKwh0tpF36f0KxBL_gZlVRuAGHfPy5Q.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/COXNcr2x7ajmEBKfyXAHthMZbgTuzSHhn5OjZDz0udc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Cz77XlOcaUemcBFitRXS9Ti_PXctjdox4XKoDITlVX0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/CzgGnrxOpZbZDGs8CyesNZy0kws6dhF8IxHcGKpxC5A.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/DFvFRydcNYBLnGR2L8Sq8aHVhLz5SHG7hVn02w_d5hI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/DQVhyP4nG2IIZ64mi_T1AKrkMBqKZRp2evd2LzOXda0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/EsCBUlp77xnzQiRyqWGq-BY6wslW-lGKDvgcmjzSMUI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/F7FWJBE9htvPBaFxWw4vvovsr7Bc22ikh-Edf-nvy3c.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/FDT3ct5HC__IzQXCp_3qnZ3XH0YjfLXr7CgXfHI6qW8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/FW1sC8ygAhgjI_3qg_rIFYCYx4EMOrin9XDpTu2nv_4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/FZR8_CM3SgTnLAy8g09HGAoANh57dI252jPmhqJLErk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/G4ieiq2v4GIUmX5ylBOHWxLnY4yp3RxyDpwxFJImO-I.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/HGwmcfMPWygBvYKWOaYExsIdFBn6OeFY51KK0JrjMi8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/HLY_lr98JQWKZR1T0HfVR9b8bnOFfDwLlUUDoBTX9xA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Hv6-zi8PhCOKo831FDuHaS90z_ChN51Bazeq_hTrlQw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/HwDBQWpzf17FO4afRUqw2p45ufI0a6w89djzUfHVCTY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/IUDMAMnOKY_k9hxqO_ZeL6RBuQWvomVQ0lQDT7NboS0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ig3s1a-IMrS9FfWrfloCxj9WjeTB6VDXM4HZwjvPRcs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/IjAOyKP_fCiBLuxcGthPahvo0Rp04pdSOFRppvNf6ww.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/IkjJfWOPsEz_jfYkqsKSU7dV02S24119qjYfhcZ1ysU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/JGplcx-1vckrZ_6IZ9ZCf6JknAPuQe47uWv-GSszeZo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Jo3NfZBLWZAp-PBbnZSRdIZM921g_psXUYgv47yRldw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KEXHXnQERBOFehIjKY5SNpYivt4JBVRnEL0_-DI2jDg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KJ9Vuuo6Ja1TDpbyYvJqsHop0D1TtUukFCjYG9OKBNA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KKi6MLLwJpr-dr8N7GfPIlI9iSrszbOfHf50xUxd4PE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KLRzf2U393VZ3HQkqi8VjxQ3wmLKmRO8wqrcfM1w0QE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KTagD8moutfKzQXXaxT7FRxqTj2RsD7RyvHNQQXnT6U.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/KVIpPGQlAbPB7QDf4HF7zoReUpf4XS_F7AxmRHqu9Rs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/L8ugpmOU9W8eW-gNlxLEUfvpl_YlGhfMjyU6JaMFihI.cache +4 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/LKqpB-4fW_tpkLHvml7opyPaEL_hu5pPzbW5ORsmrYo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/LMKsQ62ra--uyBXoAb94_nQrqevk-9qAJUjlryaDzfI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/LY5EnPcvEjkLx2FgVltf5BnVzHpASPgTaRJcisUw4uI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/LcgVcIlxhy9vT7OpVrjr53vQUWdBvhAhypzOPY-3r90.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/LkNoONCNq2UPevxSKdP0i0Ki0A_KlW4j0uDD0xg0MmA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Lqi5vZsMHqOHrbDAQBchC2IqX8jfjCb6aCm7sOCI430.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/M4T3vrHDuXMdv6Fg8J4OKFi7owm-Y7cS9-M0CM6kscM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/M6Cma1yMs7diNoZKmIkphuCxSCidkUQkPJdazTw1wAs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/M6fbxInBt81J8jxWpYScSyeIPufN45PwNwYcsqPrR18.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/MAsAAfz5fYIYNvglWCPdiKu2uyCtoxDA8qx11g6FsuE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/MigGpeua-SLGzqW_7XZbEcDOjQoh7RpGy76_9m2y2UY.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/MsTUKee0ZD-yZDzkVPEWvEARH50filG25Ns0maCK6HQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/N4e66rflw6asEGVVZVK7zKTHJ0Rc2RvAz_mJVu-p8WA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/N7QB0-ku4FR4vPcOpHQPRwsaLwerAW_FVASSMtxqF_s.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/NE3U5dr5hpFtRGutiIho678AYjiIt57JAzUiSTu1Gos.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ne4Zslbu34-G_4xa2qnRT7uwepKJeVX2mKYULBND4dQ.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/NrU2YhM4Qh_wW4tG7Agk_DWAQFdlUGM356xPAKFQW7M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OAikTS6UZe_3GqN1fYDdGXywljRGfgBnppwSNje90bk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OLb_fDl2Dfv6jexI75EunO8DWM1Bk2U69Y21LDRfmJ0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OWXYtDqFAywkxFGAElJovXtVrfuj3ebuL-Bih8BuWgo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ozyo_xyamUe0yZI2Z1VxmPqKk2sJzkXLRHHU2cUmNQw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/P16Q_YA5ylmkg_GCpQVvALYWnIt6NZ7DvoDkNhzTl1A.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/PhCYe7l5RmaFI689dA7TPR0X1b3YZhtTxuB-ZBoUmeM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/PmwnmlizZPo73wSq1jlfjxwZ-wy9ikOcWT_6REdwQcM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/PsvC6BYOif8ZqjcT-pzcbu72TcNxVHd3xA7Sxd9igKw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/QAKAmpbCbrKip7u4ce_Gi7pYd7HM8idsXO0UAeJRsaY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/QJihi0YXCTu9TZDPBV5J6nu23gOieUKTHQ_H_rR38Fw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/QQ9eeF64VkbzxUzqLa__0lXZrW07T1hrSe45JiDSRTU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/RC_coPsfjrMWcQ78gwnnJncINBLxouSnaQDree1Ar1U.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/RIGmmBGxPumSth9yjdvak2rOFWICUKe3UqA-lfHI5JE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/SCgNy0pD4dY_qIZHpc59SZ3ujCAFKDFaRuFeFsl_k9M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/SOtCihSLXw6pZAlS30GYQOMQZPd0clJ0jtdmlRJGxow.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/SVobf7ghLuFEzzr-BDhnz1702Pm-9bMMlU4A5tYG5Uo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Sj8Q-J6T5I9cEEvSS5zi81zNVJTLvzMZjNfjcoC3ec8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/TCm-N8NRQJNFGRsq3KmlfTt6GMLMcV262qEiLlknDN0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Tgw-iZOfdNu8sqSAiW8VCfhItpTbQpmq9_rsnxLI-tw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/TnTPlBCE7kD4vqBh53MAipjcf6w_BfpJ5ePhADsBW-w.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/USwWZqABZ7UPJ-3jCA93GQoeAHLjwdzzoSkUaj08y6E.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/UWi448nl23X2wGcTEIY7JTByIGou0H5f4zO0m8mIkN4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/V0-49kHimjKaRaRv0FeXzmDpw61GE0_eOAiiKVuvSN8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VBNR2J1B_PrW4Rp_BhVyTY1KPjbpRjyMwnzaGD9Nijw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VIkgZF4XPq108I0AUUYud17pMtQ0MuoUqctWXExb7m4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VSbngpP08vL9He1C_15791gtJsOFz8rLzSbDhoTeDvk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VaGiS4CKzgldEdes8m1euMeZQk6iajqxSgppK9kS580.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VlNk7D8Ndkl457LNoYxOt0pYRa3m-iQ0UC2cs6cpTQs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VvQVGj7XuAOpQkD0B_ETLRMARqs6BS-F7uzjjV1IoFw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/WBrqQBKEmgyzchq2RxAWhydYoLXqeTk-WoGl0NJGKQw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/WYtIkVcMUqdsOe4JMMw4OMWm4DNa_cRkSXeQg7R9Kj0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/X2cWZXc43W76-YiJ4LYZsrLS3TT_MbYWHHzjLn4kVKs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/XWkbqr5QkMu-aHffHMdSg6xh22lI1_b6kg0f1kVz9rY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/X_VES5DNRbkM8t0U7-Gf9aac_24hgdnQSVDZR6qiDUQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Xb-4lEMf0EMnSauBmz0kVwfi8e8h4eoPh_Cu-SHgpkc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/XpJSTbl4fbWpTJUeHVdEvs9fq1z0s7i-l8n_RuM6zQc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Xy_yOiWaduqzy81I-YZkGLcI54cSIAeEwi9mVAONOGU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Y3f_TNfTpoxNx71_X74-SUiCW1Tpa-l3boRsuUe4kpA.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YBQRixGGbPV7cU-XoI7N7Wn0rEawCbK6fgogJHM1jiQ.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YH0EEOhHF8QJsoDS8biu45Eb-Qj8cVbrtghYEdD7ghw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YQxneH2j0Ud0ARtxAqaWwRBh02hzhil2Zmz8wfZQJ08.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Yh9cABZVyzqA2fHH2ckpQbgRqwC2HSS1lJ5qrI_a1b8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YqTp3BVkp66ZpMG2Fm79vV8LEANtus8USWNgTz0WpFo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Z6fERkMZYHePL7NIOcQZKP7910-E3uiNK0ESVNdK-T8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZDm9HEJzomOKXyyZsgxOO2C2pNlkmfz5uGZ7HxiDzGU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZItMJsZGH5KTr3SD91MfAZhvV3r7XaBhpU_PI9TqqrI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZqkXG4-dsaKNccfu3FcDxJBkYBx8X34k_ce8myOzTrE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Zt-2jaJcd5DZWo8gzahtYAt4MFv2u7Sfp_u52OUTu3Q.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_Ii3SxthOmdOIY21Fr7uU8BZcuasShIr4iZptjf3Dvk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_IrBUFJCtjx3Dy8Y6o8kWmmoAxnaEgj4dJPVehtu1Tg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_MUgI8B2s_FOuQBwBOorKneWTbVIljHxSPN2VBuT3sI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_YgtjiJXHIIZDbhNd-LpRJIWPr7UaSd2Eml7JeHYepE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/a1nL81soR44tH3G6oJtevx9T_W01lWClFYR-OYF_DQ4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/a5PN4OnixFYOtukRpbEvkUgC6HvQWyJZ6nJIhUHdcYw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/adzZYWMcDWL0JuFdGad-X24qZCEg0cv6RQdWSuhj9Uo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/afqhqlE0SvCqu0CqG6b1NgO59OjNxQGxLuAa5x5FIss.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ass7AwdZ_Q6K8aNTX2zeSnT-PlnwRddIoaTMLfsw_uI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/avxhob66j6ksE59f75Ma56JQdqyXdd64HhDuZh4xhtI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bCNEU1ynNhvgduB973fNhdrkG9ipEytHj6KrvmFr2t4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bMySBSlPk995lhQO-l7b0a8fta4yq-BtFIPC0ZXkKOE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/c-c6hbRb0UVVOl_yHo418R9hfc3zTthb20BAVbi6SnA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cJEQVnLR2r25p0QIoIZyZA_Nee3Oek04liRvpAkaJ5o.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cNue3qGzns1SNQH1Kc3VD7UuS9akfnQk0-pjdSnLnCs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/crxEbXw4VF8P_NVdJZgxDc8nb8AsF7VlQKOEXi74GQE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cwxrjUeD7kb4osDJ1vqsR78VI4wuADafeS64riVIz7Q.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cyC6flIS6zWzfxVo9WFg9MQhMac_KFA75HPag3NbzDM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/d1a_-PD3FCKbRPobxe5Y_dGpcLc2kkCklvFteNP79Fc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/eC2i6qxP9st3qGv2oRd6f2TOU3onTmfhBVsxDRZid0o.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/eJi40RfL0xwb5BgGAWyVbpjpvSCwIJ2gC5Gy5ssR_TI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/enKnlyDZ1cusAP8qLEUBqrHu8RD5ZMVAz1MjTcmskt4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fOYzxW-wOkRgEwIzo367a_g36kwtc7dkwAggaQW8NnE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fQnCwWrX9nPbRhmUsD-onMitWTsI2Hu8lospJi789ik.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fSiIY5vC94k7ShtpmgzC2uxjTJrysmI_JSLCVkldVtE.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fe1tJBK8BOYoZ6kvlNSUguKLhnGU0_dVhOVS7GkbexI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ff7lDF1BNYau6Asgy9iRz-sDQPKbisAwkK-p-szBbHc.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fhnxe9RxwQ0KOUIL78HNtGgY2AweE3cU_rEUKYxnL0U.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fiPmY2ENMTR6RnFaZWDX47QXP3FGwV0uBuRCBq9VVtE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fu29IVYTH5-I2TT1D-h3TQOLXlvZQX52bcCID9hhb24.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gALsCSMHNkFYRLA9p_uzeZqPVHjfRjq62JVmSHLf2Eg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gdjQUKjgFXpnoAeXI9qyXzheAVKvRwkNskM86A62HwI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gdqDQcO3UMCdaWZzNTwUNpF1pFZZKiGIAvbU1GxGD_c.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gsN3jeRSlLUQHdG2OdvnTfuDXaRwXicCtYNwWfDjrio.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hDwKc18dXlg8r7BmKEUrOtnslJvigDJXbq3F3-NMnbc.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hTNKjYGssdhsHsm2DHn6y4RdO4zeRLwZx9e40Ecy1RI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/heHJw4pc99zx9s8Dr2W8SAvOZ4taqj5l4UkS3mNjh1A.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/i6BB9rdbHA1bUTre3qCmGKyT7troJOjUiY4Jr_6LA4M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/i8pno6bmmXm7OwJgVS8dbsog4y1P4j-DExvSuJxvmJk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/iT4WUO-ycX_8x-vlZmYfSIOuHF38zVQwZ7t0lH844-4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/iTX2Qgwtl7-xax0dmlj9na2XVTG64dWJEGYp5mGRBEY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/iZljKkw8QdW8_tQPjLFjvLnWi29okVx_U0xpqiK20f0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/irGj8cyqwNhqWNA1CYoBuFUgxUf5hKnX-ZI7V5Tr0ec.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/iztahfec3REkXYqOiJ177SZEQBWayhd_-6VayTjMCjc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/j1LVMhBGB12zQkNGg2w0rYSCC0bEMADJiQ9Fqz7Ng88.cache +4 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/j4-_TNuamChdwU70Ol5zs_kbf2K4WC4Q2r8jY4OvbDU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jHRaZreRHAyyxpghBlMjTO57RYj6EI03HBIV_tAH4AI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jO2yLail_52oABk6QHeb1QkWbe24mo21haTrvK0vIjc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jT7lFNjn40dKUIa-e_YQpPQ6kCWDCY7E-HulSLm2NC4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jbu5891mx0f1bjNp8Wic87by9kagjt32XP_nl-bmqWc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jmOrNXvfTDa-lOUn_P_DY0qEqNHGupLdv_Ji0uox0X4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kP4Q6SSuHjW_jFEVHzE_rFB10v1na_JCA_v0N6FTITA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kkOzcIXwzP1WpMytVfgyAZQivL6UFQeDsSIjOtRslUY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kzsfJdAqL_VxX28nKaZwaPEGo3sqjLwsAShio43GvfI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/l-sQmhpuZlMvG-aHnRyDHsNJcRKdV0zlD8CLPp7NdHo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/laMHEMvvdXWsWXOUtX-peBoW2xoPtzKplJZTB6sGRrg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lc1eqriYSu2r4D3OvDFGzxiYqzM5Y23FseklcyCqwjM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/m-LELDvYM76vYwf8yPB-Vz6fp7f8ABkmHcUM-D1dqf0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/mEO0vw2qvMN1X4vMR1KO8eOa-mUHQWaLgS_R69Fg_HM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/moI2zCk1bAkb8F_v666U23glvZHc9KFH55R5F2Nj9Rk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/n0Tu3EOX5KtHL-Ne9DPWLAaOZWhNE_an8XFt8q1OooM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/n0te4ySIbJ4LNMOt6zdzN5JNCjRR9Tr4Ck83IzlxF1o.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/n9f72U1Pfs40dcQjQRy_JgvBQq2spoEBbfWS23saH9k.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/nMZ5k7oPOIci0QLN_HolLD2s6CtskpajfvYgoUOFclo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/nOTtg3EYTHBi7Br81G1taWP5FOPvxw2ID7iFO3cizj4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/nio8XuvCzwMOX8srU5Sey74sA1R-gUdNrb0fZisYLwE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/nitQNdwWUSv3G2z4aQXh0Tda5ViS5MW4ljbh_EsasEs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ompUzgaB0qfmoE6djKuHjLjMYlToLX0_lb6iFwWPO0o.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/oxERuzx-uXIJwjYORxwNa9WHpTcq17klVL-7wYcVLVs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/p7EIcidBB3P2aJehbr_9i5nlvhK4SMcY76zsHEs-EAo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/p9AYwwuir9WiDgyQxCGeKL4wvBHFj6TxnuVMuf_WPig.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pFnCVy-D388uqNAJtLNW99XwjEjsAKwp9wd9yoAvHq0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pIl-ZjvFPFiviK0dFwed9ajlaq7X2XHegQ2tqhxoPOY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pNDnudvlxCfiwelGEXutXnZrnAah9Ea-u2hM-gHYvcI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pPuvsfG-i0X2t48cHOiALXfs5xq3KOxoOfkV3oSgF6E.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pmwVuIVJC-uyOk5iakUZaTC1Bk8HfTEXSRpK_IPayU4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/q4kVSMTCwGbyfnM7exRePMaa8k2D_BDH8Qorh4sAA6M.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qDeGUVu2kiDhWU93YQFKZX-d1Az6amQ9Tqc8uRADWmU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qKfBsKgOj5YRSdUi_x9sQSnTJYfzWWLzN1tYmspYUq4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qdLsnHdgCfZ1stwBKhIyWFFjOcx8hmytg1crlU7dnYc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qflaeiDYybzUcUvVUdvEWohlQ2PhAjN2NBEOGh9msO8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/r1ttg8_BUpfuwJ7zGEMrvN9F33bzHBWqJS4iG8RHqBQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/r38Lkbe5xbu8xM3XByDS96zgpDE-DnAT_M9NIBsFG2g.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/r8VvhJdWkyi3y0I4ilHxADozvy_tGy-L_aj5PxZkIoY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rRa2vlPo4Ul8PyNYsBB-Ju3wJPnscp0gTrtPpqRB3go.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rU37Vggb1_PUq_RVIjpUr4BEujPSmuN67UZajCBeKRk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rb4lULLCosykmgGHYQMNcylKa8vlCIDisGukkSVh0ck.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rbwjVGbFWjhEe7CLbEx5jI-CZVQqCIKodbE6b3sV0Ic.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sBHNjNmyMnbCYkzU57b_MZqRt6olb6wU9PgOP549hz8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sPCcHyXfq9h7dcrYghpzuUvrPlLkFOvhQMnYzI9ZNTo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tLPCwd4Zv4NpM8O2FoW5ZPTndkXgcaeu6hHTePyJtXM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tO-BgSV5XmwbABZv8ZoO7Eg-b6Anwy-FskCU9EuWR3g.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/thyVTP5iJu8IVW9_bflYV84NbjHzg-GxQ8H7b7WmeTY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tq2bmTazBvjgzcGkT_34r5hen_S5LEXswTC7If6JAhI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tsYKujSV2SL_qwVGC6T0pXbAxapUUBCNTIGabFXz32k.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tzS7uabJU0pXG3voZJIVODIYxSY0JxI3AsVf6MmYesA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/uGFq1qoem2wF91zoCMZXAcfaOBBGP__u-MQ7EsaUAEw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/uK6bUitNr9x7VSukvoIIcgJw-MdWfh1V5sHSN6pEFZ4.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/uUHAP7fkhl4fKz5rdARquQXHeWcpk1liDspZAQ6q2tQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ueIAsGxgF7eS2icrAdy40UbkobzFV490P2EH4UfGbUg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/uf2r46HQLK0mxrYlp4tAqENE9WNasZxu9YbgLTRjVJE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/v1oBUZWMY8U8B89h-MbFIxKBe-P0B68m1CxFr3Oc9mI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vDMpyTEPvqj1tD2NGoEG7xTYSvxIoMizpcFp_bPAllY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vDcnY7D2RZYYAXjcAtU78fw5moXXfYTpGBIhXlaZ0Ao.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vOoo8ZvzE7ZqCZB9sU01kivdOVyjw7FknMG1m4GVwRg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vVhvfc4MucIRLRfIEzbehsabFOspTn4VwMXZX4p7B-o.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vlNUuQpkMG4YwAvaaz942fud03yemvGoa6VFKe2cqGE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/w-LdUR7Copwxv__j0BiZ0fpXSPVuNq6fteigQ5Eab2w.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/w3SVOStSIUhvee-gn-NQRui7OpTePzi8tx_QL5cT_o4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/wLn_LW2R9M365b1aBZxOMUeAzD3OGpEx1LRBG_Ng-98.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/wUrD3kA8ko_BFe7uP02lHw1_drN1yvGSpeigZXTrTuk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/wZ2ecVSS2hg2feCmfuvuL0esbmNAqFQ-9KE4Z_qvee0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/wjXH4yeJVkouolTlHmRT5lw2BbzK8zgfrxsee797R4E.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/wl_d2mz5lW-_mQYHxUyffqq4r_IlNRoId0__S0TELww.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xIwxHmCHZqNpdLYPnCDnd4S91zgikLCSCVLLDNK14E8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xQV8cTNXx6YN-o_yLJTjMazxafKp9EmPq0kq7-HrmYM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xnEKGDj17y2qvP7nIqW-MVkrHdNhltw7TW-eu7sB1qs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xrB94PoxGermzmHsjuAnOimhCbOAcEAf5lSq3ITzrS4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/y2IvJQJMMofcPH5AD2Lh9_e1EFdLKRomlwyfrhH5FjQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yivUwS-Un2NnPjW5aWEVYRPUs7EnntOS1yDXgGusl1k.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/z4GEx0zKoSsxv7shvv7rK3Mkk-P1IWkezP_JQMISk0U.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/z5dp3YdXOGKedMJLaPnWooVd827mf0BatDDZ-IeRH8k.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/z7mfZdRuZLaC8yzApFJ2nQJ1ia7d1vJkKdGNBvkSay0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/zFnz3R6TaDCtmhQSNDVuH1Kws4lPVtkOSF57Unmgz1g.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/zZmgG5r9Or2N_Q1bjTNvRk7keuEQ8FSVJRdwHryTlQY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/zmoVEsD3PMerM7_1ulzpRNb1u-HZneAn1BVceuy6URI.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/-nWxAyXJm2cKl-jOdzUvios5zuP38pHO6WDYl8rl9EQ.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/2U2PJqTMl37_LbRvs2XNt239TAPm5rm724FtAIpSdj4.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/3jTnpsHbx_LSYEITv2v_CTz3lf85VaBmqtKUK-ySgfM.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/3kSus_hxECclFtyIA7tN_45OHC4pS3UVtp1pl9r4RBA.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/46hYboPTE4z2C9aLiE6XcCy6YuVaJAAfAO22RaBeB9g.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/4FoptxRaFHSLisJi8eZdlyNs11At8W6y7OkeTeXttcY.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/4uf06uOkrq131eaxrEii1zkvmWZDnnaz6ol8CSMQcZU.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/5TzYmONEI2HYkxGdPZU9iJFCuuoe70CB-i-w-KEHZv0.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/6QzJAMpwPAPcS7OfIgQLDWAKgAQTEwRVCkRA4SpMOFI.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/9eH9rwl27BRbe5Gcin0NwKURmXcJMfOqv5Eh-QlfkcM.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/ADjeuph3UfkMq86hnE1eFCmqAg4YOmWOvwxcDBcg3uk.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/B1UYbIDTD89kh3kOE8Pd2ze6SoR-jmfPkbzIka1NxJc.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/DDG6Y-qI4kx7uVzf-Es79WvY5n_OMkgAhXnUmbaQ7FM.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/FDT3ct5HC__IzQXCp_3qnZ3XH0YjfLXr7CgXfHI6qW8.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/G29Lfpv_i7CfbfcEnpq1-K1HpJedzyfr6U57r0NSfGo.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/G7b78U6d2Qdz8_0L78NWAI1Xteip2JUhzEj1IrbDY-Q.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/HLY_lr98JQWKZR1T0HfVR9b8bnOFfDwLlUUDoBTX9xA.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/Hn71mT0RZldf5jsbV0e8zNh3t2TYuOI0wETefZM9FKg.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/IW2PK2Hhfz4tugrNNha3xhgBw80649yA4r_S4UQAfAk.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/Jfxiu7q1mOa1upJHM--__IZL48xZeUDkT77HAU9BDL8.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/JsKuXk-KJ3KADsupeXtQtgMxfX6_Wsp4UIYE1kLH2Z8.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/LA4E0Ral8MVhZVeA_2cA4EtrlaKGDqWO0dCJPAKViS4.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/LJ8nn5EQPxTgM4QrzPGzFsd_kGMtvm0IybnYetC6-kE.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/M4T3vrHDuXMdv6Fg8J4OKFi7owm-Y7cS9-M0CM6kscM.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/MhubNbhYzwyIST3_i-pmfNEaIgp6kcMdPwgavLgEKgQ.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/NMKAlFsVOPqWFTGgXgkgQGsEGEyOHC_GVniAM28_dsI.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/OSJELDWUoc4-7GNJrnD889JAedEtj2gu-BnVxU8nC_4.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/OWXYtDqFAywkxFGAElJovXtVrfuj3ebuL-Bih8BuWgo.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/PIxywRGy_ed5ttgGmQI3RTKoMZklBrkSGwe0pTgnBAQ.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/QmF6IdYDh8eVKYpt2LARB13bMp08MnfcsYj3oszW7dI.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/QxqUgRAUYpFprBFRWwmgIC5ovBYJB6nYKL7DhGIcdq8.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/R23LhhcAT_3b801x2ugnSxakoB-j_y0jJFfUKK372Hk.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/SBbRMRnEBbofnZy5TOiFIwG6NadGIhZ2vMa7kt3J1mY.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/TSNbKoJK4nQp9GvphYuh18GLP8NGVhM0VwwuA1r24J8.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/U2sw1j0LMe3vNlmzFs5Dd7EzRH7iVcBAUz3i62Ky1Aw.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/Uz-m2TaDHl3WyhmvHbn7HMtb2XF-5v_KP1edVNOeOgo.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/Wo4UK8e7b4dxGHgLKeVY3MqTY91mp1gdQ1MVcMChgKE.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/X1KfZOdg3PYCSvHxvqybHmxOLey-PlRn4OFJtlyIbLI.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/XWkbqr5QkMu-aHffHMdSg6xh22lI1_b6kg0f1kVz9rY.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/XgEs4crWPXnTxUxKcHbpUoaCI0xHNKSuh_crI0gQEGk.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/Y399dgpcgqO8UwIZH9zp4MkPDHcMlj4BZsLMSKH_9gU.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/YKjt2a1R-qkonr4T36XehpSyRNyJfWbs0SZlfnE75UA.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/YifHlSxjhQiRs7ONffBVKRt6MYN5fBtm5xvyCzazD54.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/_Evk0n7em6zit2-V04eAlwG_A9LYRJbN-FXEm9ruYQg.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/_Pxi2f3t1gVgWemdRyaPCd82Z6-wj_co_2KE_QUJL78.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/a5PN4OnixFYOtukRpbEvkUgC6HvQWyJZ6nJIhUHdcYw.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/ajR53A3KCZlIkDCkgonBX9gUcomed-Jlc1WFJ8AOXgg.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/bsRdXXrv-w6sJOdWFN9bXfu_TUPPilSWLOCObGOnMK8.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/btdjVw671m9IFsbN0XVuddc01p_7tENyDqMoxJg-zPk.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/c-F69u-u_YGby9057byO7ALJJJ_-0Y8Fs-tVdmyfrdo.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/cKJ0YuENVDolQ6rYO5SAkV-co1-Y23fwScitPdeHMjg.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/d_VZ7E6sULZ3pEOBlvNXbbZsyU3Nr0ennnJi13-4Y_w.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/ff7lDF1BNYau6Asgy9iRz-sDQPKbisAwkK-p-szBbHc.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/gdqDQcO3UMCdaWZzNTwUNpF1pFZZKiGIAvbU1GxGD_c.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/hD9RAr0FchcENs1yhGMUd95Fl_oE3DsOMpajz99WctE.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/hjEuBbNqDGc82aGxOehokB0iKHcf8F24CUb9D-bsp8c.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/imFW47Eteg5n4REGRReo7slYOAEIvUgJa5jAA6C8hi0.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/iulRqqtUmrCzYfz1OZwdWKSOzlRfZGQOYGgvGknt-tg.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/k-mDAq3YYIwpUFsy3jHhlL-6Z4VP-HkJXe396GDOsfc.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/kZ4WzVCZamGk0jw4M05Y14hnni8L8uuPGR7wujhmlek.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/lbHoWKdpY9lKV6FUzBjv4n1ToCT4dhJFejsMSbLfeOs.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/mUKfdlx29M3xFmkHrKdHV0eJK1eMGiqz1KaN2RuQn5s.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/nEp0okfYi7z-fR78zGnxabwr73B25sSyBtXE136BA7E.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/ompUzgaB0qfmoE6djKuHjLjMYlToLX0_lb6iFwWPO0o.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/p7e3wYjZm_dUlRJ7OSpdcxc8FD-2YMVJTHgdeHqEBDY.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/pIl-ZjvFPFiviK0dFwed9ajlaq7X2XHegQ2tqhxoPOY.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/pmwVuIVJC-uyOk5iakUZaTC1Bk8HfTEXSRpK_IPayU4.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/qdLsnHdgCfZ1stwBKhIyWFFjOcx8hmytg1crlU7dnYc.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/qflaeiDYybzUcUvVUdvEWohlQ2PhAjN2NBEOGh9msO8.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/r8VvhJdWkyi3y0I4ilHxADozvy_tGy-L_aj5PxZkIoY.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/rWoe-ykX3jWCyJCJoruYBahRZhI39h5Dm4foQpXC2Pk.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/rb4lULLCosykmgGHYQMNcylKa8vlCIDisGukkSVh0ck.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/sAFF5X3ZqfjbwQgggM40JJbD8p9LKToY1TQmSHnupLk.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/tYTFtQWnZZTPwYaAnFxSNMwKneAQu3y5ZGRUnoJ9U-U.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/uD59U0f1Bm9MpfohmfGBh-h0Q7Si5PVhrpmmUeZa_B8.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/uJfGxpP2R4_xg2wN-qdbrN3t0h_yam10-HYlJLsHTL8.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/uK6bUitNr9x7VSukvoIIcgJw-MdWfh1V5sHSN6pEFZ4.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/vOoo8ZvzE7ZqCZB9sU01kivdOVyjw7FknMG1m4GVwRg.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/vncVBh7sw8jYYHU6F3jliZF7zOC4RpXv6qnOjZVF-DA.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/w7vbDCITLuauXpyqR3Q6I-Rr8Korx5wUsmPayVNW56A.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/wU0iaywy_173IJtneJfoqqCyD6A0EpjCsxONh4Skacc.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/xRMmQQ5p1UFSAeUPurSOKeS2ClniOk8JY2mQsnuctS4.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/xxupvwjj656Gx4oa9aFjYP392pD9q2Wi7zpdgo34S94.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/zRufqlRd4EBQgO8E496P0Is9yKuxRN-6BknN9y-EbOo.cache +0 -0
- data/test/filemagic_test.rb +7 -0
- data/test/integration/navigation_test.rb +8 -0
- data/test/test_helper.rb +21 -0
- metadata +1103 -0
@@ -0,0 +1,1467 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery File Upload Plugin 5.42.3
|
3
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
4
|
+
*
|
5
|
+
* Copyright 2010, Sebastian Tschan
|
6
|
+
* https://blueimp.net
|
7
|
+
*
|
8
|
+
* Licensed under the MIT license:
|
9
|
+
* http://www.opensource.org/licenses/MIT
|
10
|
+
*/
|
11
|
+
|
12
|
+
/* jshint nomen:false */
|
13
|
+
/* global define, require, window, document, location, Blob, FormData */
|
14
|
+
|
15
|
+
(function (factory) {
|
16
|
+
'use strict';
|
17
|
+
if (typeof define === 'function' && define.amd) {
|
18
|
+
// Register as an anonymous AMD module:
|
19
|
+
define([
|
20
|
+
'jquery',
|
21
|
+
'jquery.ui.widget'
|
22
|
+
], factory);
|
23
|
+
} else if (typeof exports === 'object') {
|
24
|
+
// Node/CommonJS:
|
25
|
+
factory(
|
26
|
+
require('jquery'),
|
27
|
+
require('./vendor/jquery.ui.widget')
|
28
|
+
);
|
29
|
+
} else {
|
30
|
+
// Browser globals:
|
31
|
+
factory(window.jQuery);
|
32
|
+
}
|
33
|
+
}(function ($) {
|
34
|
+
'use strict';
|
35
|
+
|
36
|
+
// Detect file input support, based on
|
37
|
+
// http://viljamis.com/blog/2012/file-upload-support-on-mobile/
|
38
|
+
$.support.fileInput = !(new RegExp(
|
39
|
+
// Handle devices which give false positives for the feature detection:
|
40
|
+
'(Android (1\\.[0156]|2\\.[01]))' +
|
41
|
+
'|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)' +
|
42
|
+
'|(w(eb)?OSBrowser)|(webOS)' +
|
43
|
+
'|(Kindle/(1\\.0|2\\.[05]|3\\.0))'
|
44
|
+
).test(window.navigator.userAgent) ||
|
45
|
+
// Feature detection for all other devices:
|
46
|
+
$('<input type="file">').prop('disabled'));
|
47
|
+
|
48
|
+
// The FileReader API is not actually used, but works as feature detection,
|
49
|
+
// as some Safari versions (5?) support XHR file uploads via the FormData API,
|
50
|
+
// but not non-multipart XHR file uploads.
|
51
|
+
// window.XMLHttpRequestUpload is not available on IE10, so we check for
|
52
|
+
// window.ProgressEvent instead to detect XHR2 file upload capability:
|
53
|
+
$.support.xhrFileUpload = !!(window.ProgressEvent && window.FileReader);
|
54
|
+
$.support.xhrFormDataFileUpload = !!window.FormData;
|
55
|
+
|
56
|
+
// Detect support for Blob slicing (required for chunked uploads):
|
57
|
+
$.support.blobSlice = window.Blob && (Blob.prototype.slice ||
|
58
|
+
Blob.prototype.webkitSlice || Blob.prototype.mozSlice);
|
59
|
+
|
60
|
+
// Helper function to create drag handlers for dragover/dragenter/dragleave:
|
61
|
+
function getDragHandler(type) {
|
62
|
+
var isDragOver = type === 'dragover';
|
63
|
+
return function (e) {
|
64
|
+
e.dataTransfer = e.originalEvent && e.originalEvent.dataTransfer;
|
65
|
+
var dataTransfer = e.dataTransfer;
|
66
|
+
if (dataTransfer && $.inArray('Files', dataTransfer.types) !== -1 &&
|
67
|
+
this._trigger(
|
68
|
+
type,
|
69
|
+
$.Event(type, {delegatedEvent: e})
|
70
|
+
) !== false) {
|
71
|
+
e.preventDefault();
|
72
|
+
if (isDragOver) {
|
73
|
+
dataTransfer.dropEffect = 'copy';
|
74
|
+
}
|
75
|
+
}
|
76
|
+
};
|
77
|
+
}
|
78
|
+
|
79
|
+
// The fileupload widget listens for change events on file input fields defined
|
80
|
+
// via fileInput setting and paste or drop events of the given dropZone.
|
81
|
+
// In addition to the default jQuery Widget methods, the fileupload widget
|
82
|
+
// exposes the "add" and "send" methods, to add or directly send files using
|
83
|
+
// the fileupload API.
|
84
|
+
// By default, files added via file input selection, paste, drag & drop or
|
85
|
+
// "add" method are uploaded immediately, but it is possible to override
|
86
|
+
// the "add" callback option to queue file uploads.
|
87
|
+
$.widget('blueimp.fileupload', {
|
88
|
+
|
89
|
+
options: {
|
90
|
+
// The drop target element(s), by the default the complete document.
|
91
|
+
// Set to null to disable drag & drop support:
|
92
|
+
dropZone: $(document),
|
93
|
+
// The paste target element(s), by the default undefined.
|
94
|
+
// Set to a DOM node or jQuery object to enable file pasting:
|
95
|
+
pasteZone: undefined,
|
96
|
+
// The file input field(s), that are listened to for change events.
|
97
|
+
// If undefined, it is set to the file input fields inside
|
98
|
+
// of the widget element on plugin initialization.
|
99
|
+
// Set to null to disable the change listener.
|
100
|
+
fileInput: undefined,
|
101
|
+
// By default, the file input field is replaced with a clone after
|
102
|
+
// each input field change event. This is required for iframe transport
|
103
|
+
// queues and allows change events to be fired for the same file
|
104
|
+
// selection, but can be disabled by setting the following option to false:
|
105
|
+
replaceFileInput: true,
|
106
|
+
// The parameter name for the file form data (the request argument name).
|
107
|
+
// If undefined or empty, the name property of the file input field is
|
108
|
+
// used, or "files[]" if the file input name property is also empty,
|
109
|
+
// can be a string or an array of strings:
|
110
|
+
paramName: undefined,
|
111
|
+
// By default, each file of a selection is uploaded using an individual
|
112
|
+
// request for XHR type uploads. Set to false to upload file
|
113
|
+
// selections in one request each:
|
114
|
+
singleFileUploads: true,
|
115
|
+
// To limit the number of files uploaded with one XHR request,
|
116
|
+
// set the following option to an integer greater than 0:
|
117
|
+
limitMultiFileUploads: undefined,
|
118
|
+
// The following option limits the number of files uploaded with one
|
119
|
+
// XHR request to keep the request size under or equal to the defined
|
120
|
+
// limit in bytes:
|
121
|
+
limitMultiFileUploadSize: undefined,
|
122
|
+
// Multipart file uploads add a number of bytes to each uploaded file,
|
123
|
+
// therefore the following option adds an overhead for each file used
|
124
|
+
// in the limitMultiFileUploadSize configuration:
|
125
|
+
limitMultiFileUploadSizeOverhead: 512,
|
126
|
+
// Set the following option to true to issue all file upload requests
|
127
|
+
// in a sequential order:
|
128
|
+
sequentialUploads: false,
|
129
|
+
// To limit the number of concurrent uploads,
|
130
|
+
// set the following option to an integer greater than 0:
|
131
|
+
limitConcurrentUploads: undefined,
|
132
|
+
// Set the following option to true to force iframe transport uploads:
|
133
|
+
forceIframeTransport: false,
|
134
|
+
// Set the following option to the location of a redirect url on the
|
135
|
+
// origin server, for cross-domain iframe transport uploads:
|
136
|
+
redirect: undefined,
|
137
|
+
// The parameter name for the redirect url, sent as part of the form
|
138
|
+
// data and set to 'redirect' if this option is empty:
|
139
|
+
redirectParamName: undefined,
|
140
|
+
// Set the following option to the location of a postMessage window,
|
141
|
+
// to enable postMessage transport uploads:
|
142
|
+
postMessage: undefined,
|
143
|
+
// By default, XHR file uploads are sent as multipart/form-data.
|
144
|
+
// The iframe transport is always using multipart/form-data.
|
145
|
+
// Set to false to enable non-multipart XHR uploads:
|
146
|
+
multipart: true,
|
147
|
+
// To upload large files in smaller chunks, set the following option
|
148
|
+
// to a preferred maximum chunk size. If set to 0, null or undefined,
|
149
|
+
// or the browser does not support the required Blob API, files will
|
150
|
+
// be uploaded as a whole.
|
151
|
+
maxChunkSize: undefined,
|
152
|
+
// When a non-multipart upload or a chunked multipart upload has been
|
153
|
+
// aborted, this option can be used to resume the upload by setting
|
154
|
+
// it to the size of the already uploaded bytes. This option is most
|
155
|
+
// useful when modifying the options object inside of the "add" or
|
156
|
+
// "send" callbacks, as the options are cloned for each file upload.
|
157
|
+
uploadedBytes: undefined,
|
158
|
+
// By default, failed (abort or error) file uploads are removed from the
|
159
|
+
// global progress calculation. Set the following option to false to
|
160
|
+
// prevent recalculating the global progress data:
|
161
|
+
recalculateProgress: true,
|
162
|
+
// Interval in milliseconds to calculate and trigger progress events:
|
163
|
+
progressInterval: 100,
|
164
|
+
// Interval in milliseconds to calculate progress bitrate:
|
165
|
+
bitrateInterval: 500,
|
166
|
+
// By default, uploads are started automatically when adding files:
|
167
|
+
autoUpload: true,
|
168
|
+
|
169
|
+
// Error and info messages:
|
170
|
+
messages: {
|
171
|
+
uploadedBytes: 'Uploaded bytes exceed file size'
|
172
|
+
},
|
173
|
+
|
174
|
+
// Translation function, gets the message key to be translated
|
175
|
+
// and an object with context specific data as arguments:
|
176
|
+
i18n: function (message, context) {
|
177
|
+
message = this.messages[message] || message.toString();
|
178
|
+
if (context) {
|
179
|
+
$.each(context, function (key, value) {
|
180
|
+
message = message.replace('{' + key + '}', value);
|
181
|
+
});
|
182
|
+
}
|
183
|
+
return message;
|
184
|
+
},
|
185
|
+
|
186
|
+
// Additional form data to be sent along with the file uploads can be set
|
187
|
+
// using this option, which accepts an array of objects with name and
|
188
|
+
// value properties, a function returning such an array, a FormData
|
189
|
+
// object (for XHR file uploads), or a simple object.
|
190
|
+
// The form of the first fileInput is given as parameter to the function:
|
191
|
+
formData: function (form) {
|
192
|
+
return form.serializeArray();
|
193
|
+
},
|
194
|
+
|
195
|
+
// The add callback is invoked as soon as files are added to the fileupload
|
196
|
+
// widget (via file input selection, drag & drop, paste or add API call).
|
197
|
+
// If the singleFileUploads option is enabled, this callback will be
|
198
|
+
// called once for each file in the selection for XHR file uploads, else
|
199
|
+
// once for each file selection.
|
200
|
+
//
|
201
|
+
// The upload starts when the submit method is invoked on the data parameter.
|
202
|
+
// The data object contains a files property holding the added files
|
203
|
+
// and allows you to override plugin options as well as define ajax settings.
|
204
|
+
//
|
205
|
+
// Listeners for this callback can also be bound the following way:
|
206
|
+
// .bind('fileuploadadd', func);
|
207
|
+
//
|
208
|
+
// data.submit() returns a Promise object and allows to attach additional
|
209
|
+
// handlers using jQuery's Deferred callbacks:
|
210
|
+
// data.submit().done(func).fail(func).always(func);
|
211
|
+
add: function (e, data) {
|
212
|
+
if (e.isDefaultPrevented()) {
|
213
|
+
return false;
|
214
|
+
}
|
215
|
+
if (data.autoUpload || (data.autoUpload !== false &&
|
216
|
+
$(this).fileupload('option', 'autoUpload'))) {
|
217
|
+
data.process().done(function () {
|
218
|
+
data.submit();
|
219
|
+
});
|
220
|
+
}
|
221
|
+
},
|
222
|
+
|
223
|
+
// Other callbacks:
|
224
|
+
|
225
|
+
// Callback for the submit event of each file upload:
|
226
|
+
// submit: function (e, data) {}, // .bind('fileuploadsubmit', func);
|
227
|
+
|
228
|
+
// Callback for the start of each file upload request:
|
229
|
+
// send: function (e, data) {}, // .bind('fileuploadsend', func);
|
230
|
+
|
231
|
+
// Callback for successful uploads:
|
232
|
+
// done: function (e, data) {}, // .bind('fileuploaddone', func);
|
233
|
+
|
234
|
+
// Callback for failed (abort or error) uploads:
|
235
|
+
// fail: function (e, data) {}, // .bind('fileuploadfail', func);
|
236
|
+
|
237
|
+
// Callback for completed (success, abort or error) requests:
|
238
|
+
// always: function (e, data) {}, // .bind('fileuploadalways', func);
|
239
|
+
|
240
|
+
// Callback for upload progress events:
|
241
|
+
// progress: function (e, data) {}, // .bind('fileuploadprogress', func);
|
242
|
+
|
243
|
+
// Callback for global upload progress events:
|
244
|
+
// progressall: function (e, data) {}, // .bind('fileuploadprogressall', func);
|
245
|
+
|
246
|
+
// Callback for uploads start, equivalent to the global ajaxStart event:
|
247
|
+
// start: function (e) {}, // .bind('fileuploadstart', func);
|
248
|
+
|
249
|
+
// Callback for uploads stop, equivalent to the global ajaxStop event:
|
250
|
+
// stop: function (e) {}, // .bind('fileuploadstop', func);
|
251
|
+
|
252
|
+
// Callback for change events of the fileInput(s):
|
253
|
+
// change: function (e, data) {}, // .bind('fileuploadchange', func);
|
254
|
+
|
255
|
+
// Callback for paste events to the pasteZone(s):
|
256
|
+
// paste: function (e, data) {}, // .bind('fileuploadpaste', func);
|
257
|
+
|
258
|
+
// Callback for drop events of the dropZone(s):
|
259
|
+
// drop: function (e, data) {}, // .bind('fileuploaddrop', func);
|
260
|
+
|
261
|
+
// Callback for dragover events of the dropZone(s):
|
262
|
+
// dragover: function (e) {}, // .bind('fileuploaddragover', func);
|
263
|
+
|
264
|
+
// Callback for the start of each chunk upload request:
|
265
|
+
// chunksend: function (e, data) {}, // .bind('fileuploadchunksend', func);
|
266
|
+
|
267
|
+
// Callback for successful chunk uploads:
|
268
|
+
// chunkdone: function (e, data) {}, // .bind('fileuploadchunkdone', func);
|
269
|
+
|
270
|
+
// Callback for failed (abort or error) chunk uploads:
|
271
|
+
// chunkfail: function (e, data) {}, // .bind('fileuploadchunkfail', func);
|
272
|
+
|
273
|
+
// Callback for completed (success, abort or error) chunk upload requests:
|
274
|
+
// chunkalways: function (e, data) {}, // .bind('fileuploadchunkalways', func);
|
275
|
+
|
276
|
+
// The plugin options are used as settings object for the ajax calls.
|
277
|
+
// The following are jQuery ajax settings required for the file uploads:
|
278
|
+
processData: false,
|
279
|
+
contentType: false,
|
280
|
+
cache: false
|
281
|
+
},
|
282
|
+
|
283
|
+
// A list of options that require reinitializing event listeners and/or
|
284
|
+
// special initialization code:
|
285
|
+
_specialOptions: [
|
286
|
+
'fileInput',
|
287
|
+
'dropZone',
|
288
|
+
'pasteZone',
|
289
|
+
'multipart',
|
290
|
+
'forceIframeTransport'
|
291
|
+
],
|
292
|
+
|
293
|
+
_blobSlice: $.support.blobSlice && function () {
|
294
|
+
var slice = this.slice || this.webkitSlice || this.mozSlice;
|
295
|
+
return slice.apply(this, arguments);
|
296
|
+
},
|
297
|
+
|
298
|
+
_BitrateTimer: function () {
|
299
|
+
this.timestamp = ((Date.now) ? Date.now() : (new Date()).getTime());
|
300
|
+
this.loaded = 0;
|
301
|
+
this.bitrate = 0;
|
302
|
+
this.getBitrate = function (now, loaded, interval) {
|
303
|
+
var timeDiff = now - this.timestamp;
|
304
|
+
if (!this.bitrate || !interval || timeDiff > interval) {
|
305
|
+
this.bitrate = (loaded - this.loaded) * (1000 / timeDiff) * 8;
|
306
|
+
this.loaded = loaded;
|
307
|
+
this.timestamp = now;
|
308
|
+
}
|
309
|
+
return this.bitrate;
|
310
|
+
};
|
311
|
+
},
|
312
|
+
|
313
|
+
_isXHRUpload: function (options) {
|
314
|
+
return !options.forceIframeTransport &&
|
315
|
+
((!options.multipart && $.support.xhrFileUpload) ||
|
316
|
+
$.support.xhrFormDataFileUpload);
|
317
|
+
},
|
318
|
+
|
319
|
+
_getFormData: function (options) {
|
320
|
+
var formData;
|
321
|
+
if ($.type(options.formData) === 'function') {
|
322
|
+
return options.formData(options.form);
|
323
|
+
}
|
324
|
+
if ($.isArray(options.formData)) {
|
325
|
+
return options.formData;
|
326
|
+
}
|
327
|
+
if ($.type(options.formData) === 'object') {
|
328
|
+
formData = [];
|
329
|
+
$.each(options.formData, function (name, value) {
|
330
|
+
formData.push({name: name, value: value});
|
331
|
+
});
|
332
|
+
return formData;
|
333
|
+
}
|
334
|
+
return [];
|
335
|
+
},
|
336
|
+
|
337
|
+
_getTotal: function (files) {
|
338
|
+
var total = 0;
|
339
|
+
$.each(files, function (index, file) {
|
340
|
+
total += file.size || 1;
|
341
|
+
});
|
342
|
+
return total;
|
343
|
+
},
|
344
|
+
|
345
|
+
_initProgressObject: function (obj) {
|
346
|
+
var progress = {
|
347
|
+
loaded: 0,
|
348
|
+
total: 0,
|
349
|
+
bitrate: 0
|
350
|
+
};
|
351
|
+
if (obj._progress) {
|
352
|
+
$.extend(obj._progress, progress);
|
353
|
+
} else {
|
354
|
+
obj._progress = progress;
|
355
|
+
}
|
356
|
+
},
|
357
|
+
|
358
|
+
_initResponseObject: function (obj) {
|
359
|
+
var prop;
|
360
|
+
if (obj._response) {
|
361
|
+
for (prop in obj._response) {
|
362
|
+
if (obj._response.hasOwnProperty(prop)) {
|
363
|
+
delete obj._response[prop];
|
364
|
+
}
|
365
|
+
}
|
366
|
+
} else {
|
367
|
+
obj._response = {};
|
368
|
+
}
|
369
|
+
},
|
370
|
+
|
371
|
+
_onProgress: function (e, data) {
|
372
|
+
if (e.lengthComputable) {
|
373
|
+
var now = ((Date.now) ? Date.now() : (new Date()).getTime()),
|
374
|
+
loaded;
|
375
|
+
if (data._time && data.progressInterval &&
|
376
|
+
(now - data._time < data.progressInterval) &&
|
377
|
+
e.loaded !== e.total) {
|
378
|
+
return;
|
379
|
+
}
|
380
|
+
data._time = now;
|
381
|
+
loaded = Math.floor(
|
382
|
+
e.loaded / e.total * (data.chunkSize || data._progress.total)
|
383
|
+
) + (data.uploadedBytes || 0);
|
384
|
+
// Add the difference from the previously loaded state
|
385
|
+
// to the global loaded counter:
|
386
|
+
this._progress.loaded += (loaded - data._progress.loaded);
|
387
|
+
this._progress.bitrate = this._bitrateTimer.getBitrate(
|
388
|
+
now,
|
389
|
+
this._progress.loaded,
|
390
|
+
data.bitrateInterval
|
391
|
+
);
|
392
|
+
data._progress.loaded = data.loaded = loaded;
|
393
|
+
data._progress.bitrate = data.bitrate = data._bitrateTimer.getBitrate(
|
394
|
+
now,
|
395
|
+
loaded,
|
396
|
+
data.bitrateInterval
|
397
|
+
);
|
398
|
+
// Trigger a custom progress event with a total data property set
|
399
|
+
// to the file size(s) of the current upload and a loaded data
|
400
|
+
// property calculated accordingly:
|
401
|
+
this._trigger(
|
402
|
+
'progress',
|
403
|
+
$.Event('progress', {delegatedEvent: e}),
|
404
|
+
data
|
405
|
+
);
|
406
|
+
// Trigger a global progress event for all current file uploads,
|
407
|
+
// including ajax calls queued for sequential file uploads:
|
408
|
+
this._trigger(
|
409
|
+
'progressall',
|
410
|
+
$.Event('progressall', {delegatedEvent: e}),
|
411
|
+
this._progress
|
412
|
+
);
|
413
|
+
}
|
414
|
+
},
|
415
|
+
|
416
|
+
_initProgressListener: function (options) {
|
417
|
+
var that = this,
|
418
|
+
xhr = options.xhr ? options.xhr() : $.ajaxSettings.xhr();
|
419
|
+
// Accesss to the native XHR object is required to add event listeners
|
420
|
+
// for the upload progress event:
|
421
|
+
if (xhr.upload) {
|
422
|
+
$(xhr.upload).bind('progress', function (e) {
|
423
|
+
var oe = e.originalEvent;
|
424
|
+
// Make sure the progress event properties get copied over:
|
425
|
+
e.lengthComputable = oe.lengthComputable;
|
426
|
+
e.loaded = oe.loaded;
|
427
|
+
e.total = oe.total;
|
428
|
+
that._onProgress(e, options);
|
429
|
+
});
|
430
|
+
options.xhr = function () {
|
431
|
+
return xhr;
|
432
|
+
};
|
433
|
+
}
|
434
|
+
},
|
435
|
+
|
436
|
+
_isInstanceOf: function (type, obj) {
|
437
|
+
// Cross-frame instanceof check
|
438
|
+
return Object.prototype.toString.call(obj) === '[object ' + type + ']';
|
439
|
+
},
|
440
|
+
|
441
|
+
_initXHRData: function (options) {
|
442
|
+
var that = this,
|
443
|
+
formData,
|
444
|
+
file = options.files[0],
|
445
|
+
// Ignore non-multipart setting if not supported:
|
446
|
+
multipart = options.multipart || !$.support.xhrFileUpload,
|
447
|
+
paramName = $.type(options.paramName) === 'array' ?
|
448
|
+
options.paramName[0] : options.paramName;
|
449
|
+
options.headers = $.extend({}, options.headers);
|
450
|
+
if (options.contentRange) {
|
451
|
+
options.headers['Content-Range'] = options.contentRange;
|
452
|
+
}
|
453
|
+
if (!multipart || options.blob || !this._isInstanceOf('File', file)) {
|
454
|
+
options.headers['Content-Disposition'] = 'attachment; filename="' +
|
455
|
+
encodeURI(file.name) + '"';
|
456
|
+
}
|
457
|
+
if (!multipart) {
|
458
|
+
options.contentType = file.type || 'application/octet-stream';
|
459
|
+
options.data = options.blob || file;
|
460
|
+
} else if ($.support.xhrFormDataFileUpload) {
|
461
|
+
if (options.postMessage) {
|
462
|
+
// window.postMessage does not allow sending FormData
|
463
|
+
// objects, so we just add the File/Blob objects to
|
464
|
+
// the formData array and let the postMessage window
|
465
|
+
// create the FormData object out of this array:
|
466
|
+
formData = this._getFormData(options);
|
467
|
+
if (options.blob) {
|
468
|
+
formData.push({
|
469
|
+
name: paramName,
|
470
|
+
value: options.blob
|
471
|
+
});
|
472
|
+
} else {
|
473
|
+
$.each(options.files, function (index, file) {
|
474
|
+
formData.push({
|
475
|
+
name: ($.type(options.paramName) === 'array' &&
|
476
|
+
options.paramName[index]) || paramName,
|
477
|
+
value: file
|
478
|
+
});
|
479
|
+
});
|
480
|
+
}
|
481
|
+
} else {
|
482
|
+
if (that._isInstanceOf('FormData', options.formData)) {
|
483
|
+
formData = options.formData;
|
484
|
+
} else {
|
485
|
+
formData = new FormData();
|
486
|
+
$.each(this._getFormData(options), function (index, field) {
|
487
|
+
formData.append(field.name, field.value);
|
488
|
+
});
|
489
|
+
}
|
490
|
+
if (options.blob) {
|
491
|
+
formData.append(paramName, options.blob, file.name);
|
492
|
+
} else {
|
493
|
+
$.each(options.files, function (index, file) {
|
494
|
+
// This check allows the tests to run with
|
495
|
+
// dummy objects:
|
496
|
+
if (that._isInstanceOf('File', file) ||
|
497
|
+
that._isInstanceOf('Blob', file)) {
|
498
|
+
formData.append(
|
499
|
+
($.type(options.paramName) === 'array' &&
|
500
|
+
options.paramName[index]) || paramName,
|
501
|
+
file,
|
502
|
+
file.uploadName || file.name
|
503
|
+
);
|
504
|
+
}
|
505
|
+
});
|
506
|
+
}
|
507
|
+
}
|
508
|
+
options.data = formData;
|
509
|
+
}
|
510
|
+
// Blob reference is not needed anymore, free memory:
|
511
|
+
options.blob = null;
|
512
|
+
},
|
513
|
+
|
514
|
+
_initIframeSettings: function (options) {
|
515
|
+
var targetHost = $('<a></a>').prop('href', options.url).prop('host');
|
516
|
+
// Setting the dataType to iframe enables the iframe transport:
|
517
|
+
options.dataType = 'iframe ' + (options.dataType || '');
|
518
|
+
// The iframe transport accepts a serialized array as form data:
|
519
|
+
options.formData = this._getFormData(options);
|
520
|
+
// Add redirect url to form data on cross-domain uploads:
|
521
|
+
if (options.redirect && targetHost && targetHost !== location.host) {
|
522
|
+
options.formData.push({
|
523
|
+
name: options.redirectParamName || 'redirect',
|
524
|
+
value: options.redirect
|
525
|
+
});
|
526
|
+
}
|
527
|
+
},
|
528
|
+
|
529
|
+
_initDataSettings: function (options) {
|
530
|
+
if (this._isXHRUpload(options)) {
|
531
|
+
if (!this._chunkedUpload(options, true)) {
|
532
|
+
if (!options.data) {
|
533
|
+
this._initXHRData(options);
|
534
|
+
}
|
535
|
+
this._initProgressListener(options);
|
536
|
+
}
|
537
|
+
if (options.postMessage) {
|
538
|
+
// Setting the dataType to postmessage enables the
|
539
|
+
// postMessage transport:
|
540
|
+
options.dataType = 'postmessage ' + (options.dataType || '');
|
541
|
+
}
|
542
|
+
} else {
|
543
|
+
this._initIframeSettings(options);
|
544
|
+
}
|
545
|
+
},
|
546
|
+
|
547
|
+
_getParamName: function (options) {
|
548
|
+
var fileInput = $(options.fileInput),
|
549
|
+
paramName = options.paramName;
|
550
|
+
if (!paramName) {
|
551
|
+
paramName = [];
|
552
|
+
fileInput.each(function () {
|
553
|
+
var input = $(this),
|
554
|
+
name = input.prop('name') || 'files[]',
|
555
|
+
i = (input.prop('files') || [1]).length;
|
556
|
+
while (i) {
|
557
|
+
paramName.push(name);
|
558
|
+
i -= 1;
|
559
|
+
}
|
560
|
+
});
|
561
|
+
if (!paramName.length) {
|
562
|
+
paramName = [fileInput.prop('name') || 'files[]'];
|
563
|
+
}
|
564
|
+
} else if (!$.isArray(paramName)) {
|
565
|
+
paramName = [paramName];
|
566
|
+
}
|
567
|
+
return paramName;
|
568
|
+
},
|
569
|
+
|
570
|
+
_initFormSettings: function (options) {
|
571
|
+
// Retrieve missing options from the input field and the
|
572
|
+
// associated form, if available:
|
573
|
+
if (!options.form || !options.form.length) {
|
574
|
+
options.form = $(options.fileInput.prop('form'));
|
575
|
+
// If the given file input doesn't have an associated form,
|
576
|
+
// use the default widget file input's form:
|
577
|
+
if (!options.form.length) {
|
578
|
+
options.form = $(this.options.fileInput.prop('form'));
|
579
|
+
}
|
580
|
+
}
|
581
|
+
options.paramName = this._getParamName(options);
|
582
|
+
if (!options.url) {
|
583
|
+
options.url = options.form.prop('action') || location.href;
|
584
|
+
}
|
585
|
+
// The HTTP request method must be "POST" or "PUT":
|
586
|
+
options.type = (options.type ||
|
587
|
+
($.type(options.form.prop('method')) === 'string' &&
|
588
|
+
options.form.prop('method')) || ''
|
589
|
+
).toUpperCase();
|
590
|
+
if (options.type !== 'POST' && options.type !== 'PUT' &&
|
591
|
+
options.type !== 'PATCH') {
|
592
|
+
options.type = 'POST';
|
593
|
+
}
|
594
|
+
if (!options.formAcceptCharset) {
|
595
|
+
options.formAcceptCharset = options.form.attr('accept-charset');
|
596
|
+
}
|
597
|
+
},
|
598
|
+
|
599
|
+
_getAJAXSettings: function (data) {
|
600
|
+
var options = $.extend({}, this.options, data);
|
601
|
+
this._initFormSettings(options);
|
602
|
+
this._initDataSettings(options);
|
603
|
+
return options;
|
604
|
+
},
|
605
|
+
|
606
|
+
// jQuery 1.6 doesn't provide .state(),
|
607
|
+
// while jQuery 1.8+ removed .isRejected() and .isResolved():
|
608
|
+
_getDeferredState: function (deferred) {
|
609
|
+
if (deferred.state) {
|
610
|
+
return deferred.state();
|
611
|
+
}
|
612
|
+
if (deferred.isResolved()) {
|
613
|
+
return 'resolved';
|
614
|
+
}
|
615
|
+
if (deferred.isRejected()) {
|
616
|
+
return 'rejected';
|
617
|
+
}
|
618
|
+
return 'pending';
|
619
|
+
},
|
620
|
+
|
621
|
+
// Maps jqXHR callbacks to the equivalent
|
622
|
+
// methods of the given Promise object:
|
623
|
+
_enhancePromise: function (promise) {
|
624
|
+
promise.success = promise.done;
|
625
|
+
promise.error = promise.fail;
|
626
|
+
promise.complete = promise.always;
|
627
|
+
return promise;
|
628
|
+
},
|
629
|
+
|
630
|
+
// Creates and returns a Promise object enhanced with
|
631
|
+
// the jqXHR methods abort, success, error and complete:
|
632
|
+
_getXHRPromise: function (resolveOrReject, context, args) {
|
633
|
+
var dfd = $.Deferred(),
|
634
|
+
promise = dfd.promise();
|
635
|
+
context = context || this.options.context || promise;
|
636
|
+
if (resolveOrReject === true) {
|
637
|
+
dfd.resolveWith(context, args);
|
638
|
+
} else if (resolveOrReject === false) {
|
639
|
+
dfd.rejectWith(context, args);
|
640
|
+
}
|
641
|
+
promise.abort = dfd.promise;
|
642
|
+
return this._enhancePromise(promise);
|
643
|
+
},
|
644
|
+
|
645
|
+
// Adds convenience methods to the data callback argument:
|
646
|
+
_addConvenienceMethods: function (e, data) {
|
647
|
+
var that = this,
|
648
|
+
getPromise = function (args) {
|
649
|
+
return $.Deferred().resolveWith(that, args).promise();
|
650
|
+
};
|
651
|
+
data.process = function (resolveFunc, rejectFunc) {
|
652
|
+
if (resolveFunc || rejectFunc) {
|
653
|
+
data._processQueue = this._processQueue =
|
654
|
+
(this._processQueue || getPromise([this])).pipe(
|
655
|
+
function () {
|
656
|
+
if (data.errorThrown) {
|
657
|
+
return $.Deferred()
|
658
|
+
.rejectWith(that, [data]).promise();
|
659
|
+
}
|
660
|
+
return getPromise(arguments);
|
661
|
+
}
|
662
|
+
).pipe(resolveFunc, rejectFunc);
|
663
|
+
}
|
664
|
+
return this._processQueue || getPromise([this]);
|
665
|
+
};
|
666
|
+
data.submit = function () {
|
667
|
+
if (this.state() !== 'pending') {
|
668
|
+
data.jqXHR = this.jqXHR =
|
669
|
+
(that._trigger(
|
670
|
+
'submit',
|
671
|
+
$.Event('submit', {delegatedEvent: e}),
|
672
|
+
this
|
673
|
+
) !== false) && that._onSend(e, this);
|
674
|
+
}
|
675
|
+
return this.jqXHR || that._getXHRPromise();
|
676
|
+
};
|
677
|
+
data.abort = function () {
|
678
|
+
if (this.jqXHR) {
|
679
|
+
return this.jqXHR.abort();
|
680
|
+
}
|
681
|
+
this.errorThrown = 'abort';
|
682
|
+
that._trigger('fail', null, this);
|
683
|
+
return that._getXHRPromise(false);
|
684
|
+
};
|
685
|
+
data.state = function () {
|
686
|
+
if (this.jqXHR) {
|
687
|
+
return that._getDeferredState(this.jqXHR);
|
688
|
+
}
|
689
|
+
if (this._processQueue) {
|
690
|
+
return that._getDeferredState(this._processQueue);
|
691
|
+
}
|
692
|
+
};
|
693
|
+
data.processing = function () {
|
694
|
+
return !this.jqXHR && this._processQueue && that
|
695
|
+
._getDeferredState(this._processQueue) === 'pending';
|
696
|
+
};
|
697
|
+
data.progress = function () {
|
698
|
+
return this._progress;
|
699
|
+
};
|
700
|
+
data.response = function () {
|
701
|
+
return this._response;
|
702
|
+
};
|
703
|
+
},
|
704
|
+
|
705
|
+
// Parses the Range header from the server response
|
706
|
+
// and returns the uploaded bytes:
|
707
|
+
_getUploadedBytes: function (jqXHR) {
|
708
|
+
var range = jqXHR.getResponseHeader('Range'),
|
709
|
+
parts = range && range.split('-'),
|
710
|
+
upperBytesPos = parts && parts.length > 1 &&
|
711
|
+
parseInt(parts[1], 10);
|
712
|
+
return upperBytesPos && upperBytesPos + 1;
|
713
|
+
},
|
714
|
+
|
715
|
+
// Uploads a file in multiple, sequential requests
|
716
|
+
// by splitting the file up in multiple blob chunks.
|
717
|
+
// If the second parameter is true, only tests if the file
|
718
|
+
// should be uploaded in chunks, but does not invoke any
|
719
|
+
// upload requests:
|
720
|
+
_chunkedUpload: function (options, testOnly) {
|
721
|
+
options.uploadedBytes = options.uploadedBytes || 0;
|
722
|
+
var that = this,
|
723
|
+
file = options.files[0],
|
724
|
+
fs = file.size,
|
725
|
+
ub = options.uploadedBytes,
|
726
|
+
mcs = options.maxChunkSize || fs,
|
727
|
+
slice = this._blobSlice,
|
728
|
+
dfd = $.Deferred(),
|
729
|
+
promise = dfd.promise(),
|
730
|
+
jqXHR,
|
731
|
+
upload;
|
732
|
+
if (!(this._isXHRUpload(options) && slice && (ub || mcs < fs)) ||
|
733
|
+
options.data) {
|
734
|
+
return false;
|
735
|
+
}
|
736
|
+
if (testOnly) {
|
737
|
+
return true;
|
738
|
+
}
|
739
|
+
if (ub >= fs) {
|
740
|
+
file.error = options.i18n('uploadedBytes');
|
741
|
+
return this._getXHRPromise(
|
742
|
+
false,
|
743
|
+
options.context,
|
744
|
+
[null, 'error', file.error]
|
745
|
+
);
|
746
|
+
}
|
747
|
+
// The chunk upload method:
|
748
|
+
upload = function () {
|
749
|
+
// Clone the options object for each chunk upload:
|
750
|
+
var o = $.extend({}, options),
|
751
|
+
currentLoaded = o._progress.loaded;
|
752
|
+
o.blob = slice.call(
|
753
|
+
file,
|
754
|
+
ub,
|
755
|
+
ub + mcs,
|
756
|
+
file.type
|
757
|
+
);
|
758
|
+
// Store the current chunk size, as the blob itself
|
759
|
+
// will be dereferenced after data processing:
|
760
|
+
o.chunkSize = o.blob.size;
|
761
|
+
// Expose the chunk bytes position range:
|
762
|
+
o.contentRange = 'bytes ' + ub + '-' +
|
763
|
+
(ub + o.chunkSize - 1) + '/' + fs;
|
764
|
+
// Process the upload data (the blob and potential form data):
|
765
|
+
that._initXHRData(o);
|
766
|
+
// Add progress listeners for this chunk upload:
|
767
|
+
that._initProgressListener(o);
|
768
|
+
jqXHR = ((that._trigger('chunksend', null, o) !== false && $.ajax(o)) ||
|
769
|
+
that._getXHRPromise(false, o.context))
|
770
|
+
.done(function (result, textStatus, jqXHR) {
|
771
|
+
ub = that._getUploadedBytes(jqXHR) ||
|
772
|
+
(ub + o.chunkSize);
|
773
|
+
// Create a progress event if no final progress event
|
774
|
+
// with loaded equaling total has been triggered
|
775
|
+
// for this chunk:
|
776
|
+
if (currentLoaded + o.chunkSize - o._progress.loaded) {
|
777
|
+
that._onProgress($.Event('progress', {
|
778
|
+
lengthComputable: true,
|
779
|
+
loaded: ub - o.uploadedBytes,
|
780
|
+
total: ub - o.uploadedBytes
|
781
|
+
}), o);
|
782
|
+
}
|
783
|
+
options.uploadedBytes = o.uploadedBytes = ub;
|
784
|
+
o.result = result;
|
785
|
+
o.textStatus = textStatus;
|
786
|
+
o.jqXHR = jqXHR;
|
787
|
+
that._trigger('chunkdone', null, o);
|
788
|
+
that._trigger('chunkalways', null, o);
|
789
|
+
if (ub < fs) {
|
790
|
+
// File upload not yet complete,
|
791
|
+
// continue with the next chunk:
|
792
|
+
upload();
|
793
|
+
} else {
|
794
|
+
dfd.resolveWith(
|
795
|
+
o.context,
|
796
|
+
[result, textStatus, jqXHR]
|
797
|
+
);
|
798
|
+
}
|
799
|
+
})
|
800
|
+
.fail(function (jqXHR, textStatus, errorThrown) {
|
801
|
+
o.jqXHR = jqXHR;
|
802
|
+
o.textStatus = textStatus;
|
803
|
+
o.errorThrown = errorThrown;
|
804
|
+
that._trigger('chunkfail', null, o);
|
805
|
+
that._trigger('chunkalways', null, o);
|
806
|
+
dfd.rejectWith(
|
807
|
+
o.context,
|
808
|
+
[jqXHR, textStatus, errorThrown]
|
809
|
+
);
|
810
|
+
});
|
811
|
+
};
|
812
|
+
this._enhancePromise(promise);
|
813
|
+
promise.abort = function () {
|
814
|
+
return jqXHR.abort();
|
815
|
+
};
|
816
|
+
upload();
|
817
|
+
return promise;
|
818
|
+
},
|
819
|
+
|
820
|
+
_beforeSend: function (e, data) {
|
821
|
+
if (this._active === 0) {
|
822
|
+
// the start callback is triggered when an upload starts
|
823
|
+
// and no other uploads are currently running,
|
824
|
+
// equivalent to the global ajaxStart event:
|
825
|
+
this._trigger('start');
|
826
|
+
// Set timer for global bitrate progress calculation:
|
827
|
+
this._bitrateTimer = new this._BitrateTimer();
|
828
|
+
// Reset the global progress values:
|
829
|
+
this._progress.loaded = this._progress.total = 0;
|
830
|
+
this._progress.bitrate = 0;
|
831
|
+
}
|
832
|
+
// Make sure the container objects for the .response() and
|
833
|
+
// .progress() methods on the data object are available
|
834
|
+
// and reset to their initial state:
|
835
|
+
this._initResponseObject(data);
|
836
|
+
this._initProgressObject(data);
|
837
|
+
data._progress.loaded = data.loaded = data.uploadedBytes || 0;
|
838
|
+
data._progress.total = data.total = this._getTotal(data.files) || 1;
|
839
|
+
data._progress.bitrate = data.bitrate = 0;
|
840
|
+
this._active += 1;
|
841
|
+
// Initialize the global progress values:
|
842
|
+
this._progress.loaded += data.loaded;
|
843
|
+
this._progress.total += data.total;
|
844
|
+
},
|
845
|
+
|
846
|
+
_onDone: function (result, textStatus, jqXHR, options) {
|
847
|
+
var total = options._progress.total,
|
848
|
+
response = options._response;
|
849
|
+
if (options._progress.loaded < total) {
|
850
|
+
// Create a progress event if no final progress event
|
851
|
+
// with loaded equaling total has been triggered:
|
852
|
+
this._onProgress($.Event('progress', {
|
853
|
+
lengthComputable: true,
|
854
|
+
loaded: total,
|
855
|
+
total: total
|
856
|
+
}), options);
|
857
|
+
}
|
858
|
+
response.result = options.result = result;
|
859
|
+
response.textStatus = options.textStatus = textStatus;
|
860
|
+
response.jqXHR = options.jqXHR = jqXHR;
|
861
|
+
this._trigger('done', null, options);
|
862
|
+
},
|
863
|
+
|
864
|
+
_onFail: function (jqXHR, textStatus, errorThrown, options) {
|
865
|
+
var response = options._response;
|
866
|
+
if (options.recalculateProgress) {
|
867
|
+
// Remove the failed (error or abort) file upload from
|
868
|
+
// the global progress calculation:
|
869
|
+
this._progress.loaded -= options._progress.loaded;
|
870
|
+
this._progress.total -= options._progress.total;
|
871
|
+
}
|
872
|
+
response.jqXHR = options.jqXHR = jqXHR;
|
873
|
+
response.textStatus = options.textStatus = textStatus;
|
874
|
+
response.errorThrown = options.errorThrown = errorThrown;
|
875
|
+
this._trigger('fail', null, options);
|
876
|
+
},
|
877
|
+
|
878
|
+
_onAlways: function (jqXHRorResult, textStatus, jqXHRorError, options) {
|
879
|
+
// jqXHRorResult, textStatus and jqXHRorError are added to the
|
880
|
+
// options object via done and fail callbacks
|
881
|
+
this._trigger('always', null, options);
|
882
|
+
},
|
883
|
+
|
884
|
+
_onSend: function (e, data) {
|
885
|
+
if (!data.submit) {
|
886
|
+
this._addConvenienceMethods(e, data);
|
887
|
+
}
|
888
|
+
var that = this,
|
889
|
+
jqXHR,
|
890
|
+
aborted,
|
891
|
+
slot,
|
892
|
+
pipe,
|
893
|
+
options = that._getAJAXSettings(data),
|
894
|
+
send = function () {
|
895
|
+
that._sending += 1;
|
896
|
+
// Set timer for bitrate progress calculation:
|
897
|
+
options._bitrateTimer = new that._BitrateTimer();
|
898
|
+
jqXHR = jqXHR || (
|
899
|
+
((aborted || that._trigger(
|
900
|
+
'send',
|
901
|
+
$.Event('send', {delegatedEvent: e}),
|
902
|
+
options
|
903
|
+
) === false) &&
|
904
|
+
that._getXHRPromise(false, options.context, aborted)) ||
|
905
|
+
that._chunkedUpload(options) || $.ajax(options)
|
906
|
+
).done(function (result, textStatus, jqXHR) {
|
907
|
+
that._onDone(result, textStatus, jqXHR, options);
|
908
|
+
}).fail(function (jqXHR, textStatus, errorThrown) {
|
909
|
+
that._onFail(jqXHR, textStatus, errorThrown, options);
|
910
|
+
}).always(function (jqXHRorResult, textStatus, jqXHRorError) {
|
911
|
+
that._onAlways(
|
912
|
+
jqXHRorResult,
|
913
|
+
textStatus,
|
914
|
+
jqXHRorError,
|
915
|
+
options
|
916
|
+
);
|
917
|
+
that._sending -= 1;
|
918
|
+
that._active -= 1;
|
919
|
+
if (options.limitConcurrentUploads &&
|
920
|
+
options.limitConcurrentUploads > that._sending) {
|
921
|
+
// Start the next queued upload,
|
922
|
+
// that has not been aborted:
|
923
|
+
var nextSlot = that._slots.shift();
|
924
|
+
while (nextSlot) {
|
925
|
+
if (that._getDeferredState(nextSlot) === 'pending') {
|
926
|
+
nextSlot.resolve();
|
927
|
+
break;
|
928
|
+
}
|
929
|
+
nextSlot = that._slots.shift();
|
930
|
+
}
|
931
|
+
}
|
932
|
+
if (that._active === 0) {
|
933
|
+
// The stop callback is triggered when all uploads have
|
934
|
+
// been completed, equivalent to the global ajaxStop event:
|
935
|
+
that._trigger('stop');
|
936
|
+
}
|
937
|
+
});
|
938
|
+
return jqXHR;
|
939
|
+
};
|
940
|
+
this._beforeSend(e, options);
|
941
|
+
if (this.options.sequentialUploads ||
|
942
|
+
(this.options.limitConcurrentUploads &&
|
943
|
+
this.options.limitConcurrentUploads <= this._sending)) {
|
944
|
+
if (this.options.limitConcurrentUploads > 1) {
|
945
|
+
slot = $.Deferred();
|
946
|
+
this._slots.push(slot);
|
947
|
+
pipe = slot.pipe(send);
|
948
|
+
} else {
|
949
|
+
this._sequence = this._sequence.pipe(send, send);
|
950
|
+
pipe = this._sequence;
|
951
|
+
}
|
952
|
+
// Return the piped Promise object, enhanced with an abort method,
|
953
|
+
// which is delegated to the jqXHR object of the current upload,
|
954
|
+
// and jqXHR callbacks mapped to the equivalent Promise methods:
|
955
|
+
pipe.abort = function () {
|
956
|
+
aborted = [undefined, 'abort', 'abort'];
|
957
|
+
if (!jqXHR) {
|
958
|
+
if (slot) {
|
959
|
+
slot.rejectWith(options.context, aborted);
|
960
|
+
}
|
961
|
+
return send();
|
962
|
+
}
|
963
|
+
return jqXHR.abort();
|
964
|
+
};
|
965
|
+
return this._enhancePromise(pipe);
|
966
|
+
}
|
967
|
+
return send();
|
968
|
+
},
|
969
|
+
|
970
|
+
_onAdd: function (e, data) {
|
971
|
+
var that = this,
|
972
|
+
result = true,
|
973
|
+
options = $.extend({}, this.options, data),
|
974
|
+
files = data.files,
|
975
|
+
filesLength = files.length,
|
976
|
+
limit = options.limitMultiFileUploads,
|
977
|
+
limitSize = options.limitMultiFileUploadSize,
|
978
|
+
overhead = options.limitMultiFileUploadSizeOverhead,
|
979
|
+
batchSize = 0,
|
980
|
+
paramName = this._getParamName(options),
|
981
|
+
paramNameSet,
|
982
|
+
paramNameSlice,
|
983
|
+
fileSet,
|
984
|
+
i,
|
985
|
+
j = 0;
|
986
|
+
if (limitSize && (!filesLength || files[0].size === undefined)) {
|
987
|
+
limitSize = undefined;
|
988
|
+
}
|
989
|
+
if (!(options.singleFileUploads || limit || limitSize) ||
|
990
|
+
!this._isXHRUpload(options)) {
|
991
|
+
fileSet = [files];
|
992
|
+
paramNameSet = [paramName];
|
993
|
+
} else if (!(options.singleFileUploads || limitSize) && limit) {
|
994
|
+
fileSet = [];
|
995
|
+
paramNameSet = [];
|
996
|
+
for (i = 0; i < filesLength; i += limit) {
|
997
|
+
fileSet.push(files.slice(i, i + limit));
|
998
|
+
paramNameSlice = paramName.slice(i, i + limit);
|
999
|
+
if (!paramNameSlice.length) {
|
1000
|
+
paramNameSlice = paramName;
|
1001
|
+
}
|
1002
|
+
paramNameSet.push(paramNameSlice);
|
1003
|
+
}
|
1004
|
+
} else if (!options.singleFileUploads && limitSize) {
|
1005
|
+
fileSet = [];
|
1006
|
+
paramNameSet = [];
|
1007
|
+
for (i = 0; i < filesLength; i = i + 1) {
|
1008
|
+
batchSize += files[i].size + overhead;
|
1009
|
+
if (i + 1 === filesLength ||
|
1010
|
+
((batchSize + files[i + 1].size + overhead) > limitSize) ||
|
1011
|
+
(limit && i + 1 - j >= limit)) {
|
1012
|
+
fileSet.push(files.slice(j, i + 1));
|
1013
|
+
paramNameSlice = paramName.slice(j, i + 1);
|
1014
|
+
if (!paramNameSlice.length) {
|
1015
|
+
paramNameSlice = paramName;
|
1016
|
+
}
|
1017
|
+
paramNameSet.push(paramNameSlice);
|
1018
|
+
j = i + 1;
|
1019
|
+
batchSize = 0;
|
1020
|
+
}
|
1021
|
+
}
|
1022
|
+
} else {
|
1023
|
+
paramNameSet = paramName;
|
1024
|
+
}
|
1025
|
+
data.originalFiles = files;
|
1026
|
+
$.each(fileSet || files, function (index, element) {
|
1027
|
+
var newData = $.extend({}, data);
|
1028
|
+
newData.files = fileSet ? element : [element];
|
1029
|
+
newData.paramName = paramNameSet[index];
|
1030
|
+
that._initResponseObject(newData);
|
1031
|
+
that._initProgressObject(newData);
|
1032
|
+
that._addConvenienceMethods(e, newData);
|
1033
|
+
result = that._trigger(
|
1034
|
+
'add',
|
1035
|
+
$.Event('add', {delegatedEvent: e}),
|
1036
|
+
newData
|
1037
|
+
);
|
1038
|
+
return result;
|
1039
|
+
});
|
1040
|
+
return result;
|
1041
|
+
},
|
1042
|
+
|
1043
|
+
_replaceFileInput: function (data) {
|
1044
|
+
var input = data.fileInput,
|
1045
|
+
inputClone = input.clone(true);
|
1046
|
+
// Add a reference for the new cloned file input to the data argument:
|
1047
|
+
data.fileInputClone = inputClone;
|
1048
|
+
$('<form></form>').append(inputClone)[0].reset();
|
1049
|
+
// Detaching allows to insert the fileInput on another form
|
1050
|
+
// without loosing the file input value:
|
1051
|
+
input.after(inputClone).detach();
|
1052
|
+
// Avoid memory leaks with the detached file input:
|
1053
|
+
$.cleanData(input.unbind('remove'));
|
1054
|
+
// Replace the original file input element in the fileInput
|
1055
|
+
// elements set with the clone, which has been copied including
|
1056
|
+
// event handlers:
|
1057
|
+
this.options.fileInput = this.options.fileInput.map(function (i, el) {
|
1058
|
+
if (el === input[0]) {
|
1059
|
+
return inputClone[0];
|
1060
|
+
}
|
1061
|
+
return el;
|
1062
|
+
});
|
1063
|
+
// If the widget has been initialized on the file input itself,
|
1064
|
+
// override this.element with the file input clone:
|
1065
|
+
if (input[0] === this.element[0]) {
|
1066
|
+
this.element = inputClone;
|
1067
|
+
}
|
1068
|
+
},
|
1069
|
+
|
1070
|
+
_handleFileTreeEntry: function (entry, path) {
|
1071
|
+
var that = this,
|
1072
|
+
dfd = $.Deferred(),
|
1073
|
+
errorHandler = function (e) {
|
1074
|
+
if (e && !e.entry) {
|
1075
|
+
e.entry = entry;
|
1076
|
+
}
|
1077
|
+
// Since $.when returns immediately if one
|
1078
|
+
// Deferred is rejected, we use resolve instead.
|
1079
|
+
// This allows valid files and invalid items
|
1080
|
+
// to be returned together in one set:
|
1081
|
+
dfd.resolve([e]);
|
1082
|
+
},
|
1083
|
+
successHandler = function (entries) {
|
1084
|
+
that._handleFileTreeEntries(
|
1085
|
+
entries,
|
1086
|
+
path + entry.name + '/'
|
1087
|
+
).done(function (files) {
|
1088
|
+
dfd.resolve(files);
|
1089
|
+
}).fail(errorHandler);
|
1090
|
+
},
|
1091
|
+
readEntries = function () {
|
1092
|
+
dirReader.readEntries(function (results) {
|
1093
|
+
if (!results.length) {
|
1094
|
+
successHandler(entries);
|
1095
|
+
} else {
|
1096
|
+
entries = entries.concat(results);
|
1097
|
+
readEntries();
|
1098
|
+
}
|
1099
|
+
}, errorHandler);
|
1100
|
+
},
|
1101
|
+
dirReader, entries = [];
|
1102
|
+
path = path || '';
|
1103
|
+
if (entry.isFile) {
|
1104
|
+
if (entry._file) {
|
1105
|
+
// Workaround for Chrome bug #149735
|
1106
|
+
entry._file.relativePath = path;
|
1107
|
+
dfd.resolve(entry._file);
|
1108
|
+
} else {
|
1109
|
+
entry.file(function (file) {
|
1110
|
+
file.relativePath = path;
|
1111
|
+
dfd.resolve(file);
|
1112
|
+
}, errorHandler);
|
1113
|
+
}
|
1114
|
+
} else if (entry.isDirectory) {
|
1115
|
+
dirReader = entry.createReader();
|
1116
|
+
readEntries();
|
1117
|
+
} else {
|
1118
|
+
// Return an empy list for file system items
|
1119
|
+
// other than files or directories:
|
1120
|
+
dfd.resolve([]);
|
1121
|
+
}
|
1122
|
+
return dfd.promise();
|
1123
|
+
},
|
1124
|
+
|
1125
|
+
_handleFileTreeEntries: function (entries, path) {
|
1126
|
+
var that = this;
|
1127
|
+
return $.when.apply(
|
1128
|
+
$,
|
1129
|
+
$.map(entries, function (entry) {
|
1130
|
+
return that._handleFileTreeEntry(entry, path);
|
1131
|
+
})
|
1132
|
+
).pipe(function () {
|
1133
|
+
return Array.prototype.concat.apply(
|
1134
|
+
[],
|
1135
|
+
arguments
|
1136
|
+
);
|
1137
|
+
});
|
1138
|
+
},
|
1139
|
+
|
1140
|
+
_getDroppedFiles: function (dataTransfer) {
|
1141
|
+
dataTransfer = dataTransfer || {};
|
1142
|
+
var items = dataTransfer.items;
|
1143
|
+
if (items && items.length && (items[0].webkitGetAsEntry ||
|
1144
|
+
items[0].getAsEntry)) {
|
1145
|
+
return this._handleFileTreeEntries(
|
1146
|
+
$.map(items, function (item) {
|
1147
|
+
var entry;
|
1148
|
+
if (item.webkitGetAsEntry) {
|
1149
|
+
entry = item.webkitGetAsEntry();
|
1150
|
+
if (entry) {
|
1151
|
+
// Workaround for Chrome bug #149735:
|
1152
|
+
entry._file = item.getAsFile();
|
1153
|
+
}
|
1154
|
+
return entry;
|
1155
|
+
}
|
1156
|
+
return item.getAsEntry();
|
1157
|
+
})
|
1158
|
+
);
|
1159
|
+
}
|
1160
|
+
return $.Deferred().resolve(
|
1161
|
+
$.makeArray(dataTransfer.files)
|
1162
|
+
).promise();
|
1163
|
+
},
|
1164
|
+
|
1165
|
+
_getSingleFileInputFiles: function (fileInput) {
|
1166
|
+
fileInput = $(fileInput);
|
1167
|
+
var entries = fileInput.prop('webkitEntries') ||
|
1168
|
+
fileInput.prop('entries'),
|
1169
|
+
files,
|
1170
|
+
value;
|
1171
|
+
if (entries && entries.length) {
|
1172
|
+
return this._handleFileTreeEntries(entries);
|
1173
|
+
}
|
1174
|
+
files = $.makeArray(fileInput.prop('files'));
|
1175
|
+
if (!files.length) {
|
1176
|
+
value = fileInput.prop('value');
|
1177
|
+
if (!value) {
|
1178
|
+
return $.Deferred().resolve([]).promise();
|
1179
|
+
}
|
1180
|
+
// If the files property is not available, the browser does not
|
1181
|
+
// support the File API and we add a pseudo File object with
|
1182
|
+
// the input value as name with path information removed:
|
1183
|
+
files = [{name: value.replace(/^.*\\/, '')}];
|
1184
|
+
} else if (files[0].name === undefined && files[0].fileName) {
|
1185
|
+
// File normalization for Safari 4 and Firefox 3:
|
1186
|
+
$.each(files, function (index, file) {
|
1187
|
+
file.name = file.fileName;
|
1188
|
+
file.size = file.fileSize;
|
1189
|
+
});
|
1190
|
+
}
|
1191
|
+
return $.Deferred().resolve(files).promise();
|
1192
|
+
},
|
1193
|
+
|
1194
|
+
_getFileInputFiles: function (fileInput) {
|
1195
|
+
if (!(fileInput instanceof $) || fileInput.length === 1) {
|
1196
|
+
return this._getSingleFileInputFiles(fileInput);
|
1197
|
+
}
|
1198
|
+
return $.when.apply(
|
1199
|
+
$,
|
1200
|
+
$.map(fileInput, this._getSingleFileInputFiles)
|
1201
|
+
).pipe(function () {
|
1202
|
+
return Array.prototype.concat.apply(
|
1203
|
+
[],
|
1204
|
+
arguments
|
1205
|
+
);
|
1206
|
+
});
|
1207
|
+
},
|
1208
|
+
|
1209
|
+
_onChange: function (e) {
|
1210
|
+
var that = this,
|
1211
|
+
data = {
|
1212
|
+
fileInput: $(e.target),
|
1213
|
+
form: $(e.target.form)
|
1214
|
+
};
|
1215
|
+
this._getFileInputFiles(data.fileInput).always(function (files) {
|
1216
|
+
data.files = files;
|
1217
|
+
if (that.options.replaceFileInput) {
|
1218
|
+
that._replaceFileInput(data);
|
1219
|
+
}
|
1220
|
+
if (that._trigger(
|
1221
|
+
'change',
|
1222
|
+
$.Event('change', {delegatedEvent: e}),
|
1223
|
+
data
|
1224
|
+
) !== false) {
|
1225
|
+
that._onAdd(e, data);
|
1226
|
+
}
|
1227
|
+
});
|
1228
|
+
},
|
1229
|
+
|
1230
|
+
_onPaste: function (e) {
|
1231
|
+
var items = e.originalEvent && e.originalEvent.clipboardData &&
|
1232
|
+
e.originalEvent.clipboardData.items,
|
1233
|
+
data = {files: []};
|
1234
|
+
if (items && items.length) {
|
1235
|
+
$.each(items, function (index, item) {
|
1236
|
+
var file = item.getAsFile && item.getAsFile();
|
1237
|
+
if (file) {
|
1238
|
+
data.files.push(file);
|
1239
|
+
}
|
1240
|
+
});
|
1241
|
+
if (this._trigger(
|
1242
|
+
'paste',
|
1243
|
+
$.Event('paste', {delegatedEvent: e}),
|
1244
|
+
data
|
1245
|
+
) !== false) {
|
1246
|
+
this._onAdd(e, data);
|
1247
|
+
}
|
1248
|
+
}
|
1249
|
+
},
|
1250
|
+
|
1251
|
+
_onDrop: function (e) {
|
1252
|
+
e.dataTransfer = e.originalEvent && e.originalEvent.dataTransfer;
|
1253
|
+
var that = this,
|
1254
|
+
dataTransfer = e.dataTransfer,
|
1255
|
+
data = {};
|
1256
|
+
if (dataTransfer && dataTransfer.files && dataTransfer.files.length) {
|
1257
|
+
e.preventDefault();
|
1258
|
+
this._getDroppedFiles(dataTransfer).always(function (files) {
|
1259
|
+
data.files = files;
|
1260
|
+
if (that._trigger(
|
1261
|
+
'drop',
|
1262
|
+
$.Event('drop', {delegatedEvent: e}),
|
1263
|
+
data
|
1264
|
+
) !== false) {
|
1265
|
+
that._onAdd(e, data);
|
1266
|
+
}
|
1267
|
+
});
|
1268
|
+
}
|
1269
|
+
},
|
1270
|
+
|
1271
|
+
_onDragOver: getDragHandler('dragover'),
|
1272
|
+
|
1273
|
+
_onDragEnter: getDragHandler('dragenter'),
|
1274
|
+
|
1275
|
+
_onDragLeave: getDragHandler('dragleave'),
|
1276
|
+
|
1277
|
+
_initEventHandlers: function () {
|
1278
|
+
if (this._isXHRUpload(this.options)) {
|
1279
|
+
this._on(this.options.dropZone, {
|
1280
|
+
dragover: this._onDragOver,
|
1281
|
+
drop: this._onDrop,
|
1282
|
+
// event.preventDefault() on dragenter is required for IE10+:
|
1283
|
+
dragenter: this._onDragEnter,
|
1284
|
+
// dragleave is not required, but added for completeness:
|
1285
|
+
dragleave: this._onDragLeave
|
1286
|
+
});
|
1287
|
+
this._on(this.options.pasteZone, {
|
1288
|
+
paste: this._onPaste
|
1289
|
+
});
|
1290
|
+
}
|
1291
|
+
if ($.support.fileInput) {
|
1292
|
+
this._on(this.options.fileInput, {
|
1293
|
+
change: this._onChange
|
1294
|
+
});
|
1295
|
+
}
|
1296
|
+
},
|
1297
|
+
|
1298
|
+
_destroyEventHandlers: function () {
|
1299
|
+
this._off(this.options.dropZone, 'dragenter dragleave dragover drop');
|
1300
|
+
this._off(this.options.pasteZone, 'paste');
|
1301
|
+
this._off(this.options.fileInput, 'change');
|
1302
|
+
},
|
1303
|
+
|
1304
|
+
_setOption: function (key, value) {
|
1305
|
+
var reinit = $.inArray(key, this._specialOptions) !== -1;
|
1306
|
+
if (reinit) {
|
1307
|
+
this._destroyEventHandlers();
|
1308
|
+
}
|
1309
|
+
this._super(key, value);
|
1310
|
+
if (reinit) {
|
1311
|
+
this._initSpecialOptions();
|
1312
|
+
this._initEventHandlers();
|
1313
|
+
}
|
1314
|
+
},
|
1315
|
+
|
1316
|
+
_initSpecialOptions: function () {
|
1317
|
+
var options = this.options;
|
1318
|
+
if (options.fileInput === undefined) {
|
1319
|
+
options.fileInput = this.element.is('input[type="file"]') ?
|
1320
|
+
this.element : this.element.find('input[type="file"]');
|
1321
|
+
} else if (!(options.fileInput instanceof $)) {
|
1322
|
+
options.fileInput = $(options.fileInput);
|
1323
|
+
}
|
1324
|
+
if (!(options.dropZone instanceof $)) {
|
1325
|
+
options.dropZone = $(options.dropZone);
|
1326
|
+
}
|
1327
|
+
if (!(options.pasteZone instanceof $)) {
|
1328
|
+
options.pasteZone = $(options.pasteZone);
|
1329
|
+
}
|
1330
|
+
},
|
1331
|
+
|
1332
|
+
_getRegExp: function (str) {
|
1333
|
+
var parts = str.split('/'),
|
1334
|
+
modifiers = parts.pop();
|
1335
|
+
parts.shift();
|
1336
|
+
return new RegExp(parts.join('/'), modifiers);
|
1337
|
+
},
|
1338
|
+
|
1339
|
+
_isRegExpOption: function (key, value) {
|
1340
|
+
return key !== 'url' && $.type(value) === 'string' &&
|
1341
|
+
/^\/.*\/[igm]{0,3}$/.test(value);
|
1342
|
+
},
|
1343
|
+
|
1344
|
+
_initDataAttributes: function () {
|
1345
|
+
var that = this,
|
1346
|
+
options = this.options,
|
1347
|
+
data = this.element.data();
|
1348
|
+
// Initialize options set via HTML5 data-attributes:
|
1349
|
+
$.each(
|
1350
|
+
this.element[0].attributes,
|
1351
|
+
function (index, attr) {
|
1352
|
+
var key = attr.name.toLowerCase(),
|
1353
|
+
value;
|
1354
|
+
if (/^data-/.test(key)) {
|
1355
|
+
// Convert hyphen-ated key to camelCase:
|
1356
|
+
key = key.slice(5).replace(/-[a-z]/g, function (str) {
|
1357
|
+
return str.charAt(1).toUpperCase();
|
1358
|
+
});
|
1359
|
+
value = data[key];
|
1360
|
+
if (that._isRegExpOption(key, value)) {
|
1361
|
+
value = that._getRegExp(value);
|
1362
|
+
}
|
1363
|
+
options[key] = value;
|
1364
|
+
}
|
1365
|
+
}
|
1366
|
+
);
|
1367
|
+
},
|
1368
|
+
|
1369
|
+
_create: function () {
|
1370
|
+
this._initDataAttributes();
|
1371
|
+
this._initSpecialOptions();
|
1372
|
+
this._slots = [];
|
1373
|
+
this._sequence = this._getXHRPromise(true);
|
1374
|
+
this._sending = this._active = 0;
|
1375
|
+
this._initProgressObject(this);
|
1376
|
+
this._initEventHandlers();
|
1377
|
+
},
|
1378
|
+
|
1379
|
+
// This method is exposed to the widget API and allows to query
|
1380
|
+
// the number of active uploads:
|
1381
|
+
active: function () {
|
1382
|
+
return this._active;
|
1383
|
+
},
|
1384
|
+
|
1385
|
+
// This method is exposed to the widget API and allows to query
|
1386
|
+
// the widget upload progress.
|
1387
|
+
// It returns an object with loaded, total and bitrate properties
|
1388
|
+
// for the running uploads:
|
1389
|
+
progress: function () {
|
1390
|
+
return this._progress;
|
1391
|
+
},
|
1392
|
+
|
1393
|
+
// This method is exposed to the widget API and allows adding files
|
1394
|
+
// using the fileupload API. The data parameter accepts an object which
|
1395
|
+
// must have a files property and can contain additional options:
|
1396
|
+
// .fileupload('add', {files: filesList});
|
1397
|
+
add: function (data) {
|
1398
|
+
var that = this;
|
1399
|
+
if (!data || this.options.disabled) {
|
1400
|
+
return;
|
1401
|
+
}
|
1402
|
+
if (data.fileInput && !data.files) {
|
1403
|
+
this._getFileInputFiles(data.fileInput).always(function (files) {
|
1404
|
+
data.files = files;
|
1405
|
+
that._onAdd(null, data);
|
1406
|
+
});
|
1407
|
+
} else {
|
1408
|
+
data.files = $.makeArray(data.files);
|
1409
|
+
this._onAdd(null, data);
|
1410
|
+
}
|
1411
|
+
},
|
1412
|
+
|
1413
|
+
// This method is exposed to the widget API and allows sending files
|
1414
|
+
// using the fileupload API. The data parameter accepts an object which
|
1415
|
+
// must have a files or fileInput property and can contain additional options:
|
1416
|
+
// .fileupload('send', {files: filesList});
|
1417
|
+
// The method returns a Promise object for the file upload call.
|
1418
|
+
send: function (data) {
|
1419
|
+
if (data && !this.options.disabled) {
|
1420
|
+
if (data.fileInput && !data.files) {
|
1421
|
+
var that = this,
|
1422
|
+
dfd = $.Deferred(),
|
1423
|
+
promise = dfd.promise(),
|
1424
|
+
jqXHR,
|
1425
|
+
aborted;
|
1426
|
+
promise.abort = function () {
|
1427
|
+
aborted = true;
|
1428
|
+
if (jqXHR) {
|
1429
|
+
return jqXHR.abort();
|
1430
|
+
}
|
1431
|
+
dfd.reject(null, 'abort', 'abort');
|
1432
|
+
return promise;
|
1433
|
+
};
|
1434
|
+
this._getFileInputFiles(data.fileInput).always(
|
1435
|
+
function (files) {
|
1436
|
+
if (aborted) {
|
1437
|
+
return;
|
1438
|
+
}
|
1439
|
+
if (!files.length) {
|
1440
|
+
dfd.reject();
|
1441
|
+
return;
|
1442
|
+
}
|
1443
|
+
data.files = files;
|
1444
|
+
jqXHR = that._onSend(null, data);
|
1445
|
+
jqXHR.then(
|
1446
|
+
function (result, textStatus, jqXHR) {
|
1447
|
+
dfd.resolve(result, textStatus, jqXHR);
|
1448
|
+
},
|
1449
|
+
function (jqXHR, textStatus, errorThrown) {
|
1450
|
+
dfd.reject(jqXHR, textStatus, errorThrown);
|
1451
|
+
}
|
1452
|
+
);
|
1453
|
+
}
|
1454
|
+
);
|
1455
|
+
return this._enhancePromise(promise);
|
1456
|
+
}
|
1457
|
+
data.files = $.makeArray(data.files);
|
1458
|
+
if (data.files.length) {
|
1459
|
+
return this._onSend(null, data);
|
1460
|
+
}
|
1461
|
+
}
|
1462
|
+
return this._getXHRPromise(false, data && data.context);
|
1463
|
+
}
|
1464
|
+
|
1465
|
+
});
|
1466
|
+
|
1467
|
+
}));
|