better_frame 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/app/assets/javascripts/better_frame/better_frame.js +7 -1
- data/app/assets/javascripts/better_frame/jquery-ujs.js +12 -1
- data/lib/better_frame/better_frameable.rb +1 -0
- data/lib/better_frame/version.rb +1 -1
- data/test/dummy/app/controllers/foreign_website_controller.rb +2 -3
- data/test/dummy/app/views/products/index.html.erb +1 -1
- data/test/dummy/config/environments/development.rb +2 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +891 -0
- data/test/dummy/log/test.log +1258 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-B/-BYN-fNF8VuFLx4Nsn7pv66oWi2N0wFS2f9iVOQn9Tc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/-c/-cC4ZIcRLtdXmoHsbBgMxWSwH2HNwJ0NDbpU9TuR-J8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0A/0AetmsRZyKEoZN-81kwzqwJNDR6PEID_yvax_p22L0s.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0M/0MBd8z8ncijIpyZRkzw6tZfiFXcwVXXM_5YUhSETsi4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0V/0vHAbdy5y25mK9YbHo7SnTA92VVO7MKunI2qJNUBgBE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0x/0xYLTVsbxvVnSn0Z9r-xd6NldSwrngCT_rVEISEUHfg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1G/1GoXVwxJaJAhdmIz14ySX2j-W9TtEOXhiguMfzC_4t0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1K/1KF80otIEuMGrAdIeVX_V9hW_XLZoSYYq6LVGoYnZ8c.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1c/1cUdhpbBClBbCCjBkOdMkOvEWnDfzkf3gLEnf_MRqwo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1d/1daspj7jWgvNlPCPzj-hJBGHltQfZQKqg-x3vJW8Yb8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3U/3UlZ7ufaFDrMbPwRU9hjdoHG795v3RhbmUwXh64e_5k.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/3a/3an6DKMSl2QbxArp3QWXfkQ938PcC3U-pJNDOHbqpwE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/54/54YWTQiZQz5sdRmp9VoKQV4J3P_EM8OF98CyGpvRD9A.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5P/5Plq_sZGo4FPPyCJje2SXnDJKX1NvH0cj0Aht2eIF4E.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/64/641pzLgqPPK3Aji2D4CwRfJhroOnOJAIhilYNrj7qfo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/6H/6HpGEyFU0JwIINHnzhCVsqhRqiLlheQQwsAu6er2Qcc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/78/78RSPOEkusfhn9_uW99BTUBO-BVw_5RcbEZeRn_mRTs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7n/7nj_6qnMZHn033U4rRwYhNaoh6bzTUHYgSqFQ8g1zSo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7t/7tBvdBtm6DdOynM8fr2QM0R1R_fxpK2_G9ARt-S83Rw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8H/8H7pRh_rItc7pLY6YOb97SrLK3JOzlvZVdFojo2-XWo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8Q/8QHgTqgwmJ78xQnsenMMvJBCbkJGD9FLLxqFeg3hJy4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/92/92wlVFZg61cEb8MuVaCBrEg8eutNtTNR7zn8kITsYNU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9Y/9YudPI7ZOe5wmeCSeWSnotm1oE5iIrjIwn7TvwtzhRM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Av/Avaupa2r7tpYOMi-RtMxGVDvtzkiudDljtsodp9ermc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/BS/BSM-MV46bpigc856QiRbsjGRzms1AtbBded5nlvgFyU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ba/baUbL52Kh1dSS1XDKBEXhuot_7jxcfBC20MCc-IAsGw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/CK/CKrDtUVrRlSmb0UmJ545xlO7pFGe_nu3WWOA6hnE6T8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/CK/CkYAmHxHz1fjz1JtY4p2xZ4ZwRf7N16bXVz_bzawIII.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Cc/Ccb_z9I61RWG4lbCbGnVzpMGJJXbeRRTMrtHOLukUeY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/D8/D8ZUJ24gJYLlFZDJRJd5XEk5mO5A9aqk6oOFb6pU1jU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dj/DjrrmEApmtUZXvq8gljRKcHf0AbFTHH5Wz8YY3bJJsc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/EL/ELYhyMM2e3r5pqEWRDM83s5QZhuyHWHiucQgzX9tEZU.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/EX/exn0Lvw0rPbcXaF2IMDiqEE6tbDlvBcwwNKYPNJJYzg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/GM/GMAc5BImz3sH5cvv8eRF2wtScdkGDKP5UAvBunRFe6o.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ga/GabUUeJA72d5vpe8eJ6VYOLnHqBkjDJWUa6i0QahKg0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ge/Ge29WklOCtRkDniH-51INpWsnsixFmKVb-ybbFnOXmk.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/HP/HP7585wTusKwP7EptWBGzcK2lbfmsVpl_a5LmONHAYk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/JJ/JJk9PEX7OLFAFWqRw8uoaDsV8ax9GfUQCDi3Bps46Io.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/JJ/jJaqCziTk8TyDmwARGecVKHEDaX83altvuQDPZ7GGGk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/JU/JUsitcyHY354gQsHydWto-2nf4JShNhJKO6TKxU1EWs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/K9/K9gBGKY41X-GqfJJsL5zMvHRjIvB1kZQ8a108sGnA5c.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ke/KeI6d1MTDAfLlor9vSAfrZONaDtLFO8MxfnHhDpTK-Y.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/LE/LEK9RUNgca0Uo01i8aKjCD1tCvGdskJPdWivqB1KrLA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Lp/LpG_7iuxxzUZPnpChOkaCAZMhdzcoNF5H1OHHUYYA9U.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Oz/OzeWym5b8Attc2UEIIFEtxoE2uFrxYNV8EyVcLdK2s4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/P8/P8Aktbyk19Pvp7s0hhqXgbxG3HatXCwj1C7AszJgmsI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Pc/Pcc1iOJiIB1JA3ycXX_WHPa4oZk_PSoxYmAU1Rnl3ig.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/R4/R4IVC5DGyE4Hsdfvjnfat46kltwQT4fIkr4LgU7mJHY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/RZ/rZhhQDfRpJozSQ1mHBaWTrsL8uPwcFSbCrriHgkOk38.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Sh/ShPma4AxyabNnzr07XamvEAbZUt0hGdQR9OhudKm6y8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Sz/SzMgq7WiFqmX1pGGUUljJCz2p8if6VQzEL81GvHq3h8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Tm/TmDxRGJwsUYl3GJgrrkL7PRUUKO6sZul0nV6UCrDTBM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Tw/TW4YN-BbBmz4HjvLCMTWG7AmpcJ-0NXva1OvzRypVQE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VI/VIlYpYYZLZ9b2TexIIY1yzdOzBy64qKN6SOjsZyA6tE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Vg/VgX9gDfP0-6B3zlEmXEcG6ypLuiD4tHZ6zBKh1ymvjc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Vo/VoPDf1ijLMJDkA3FrOvXiQYATlZgzemh6cQXdN7n1sI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Vw/Vwpzht4cIQ0UGwxo-Yw2Twhz4gLkLZDnGig_TfrcKWM.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/W6/W66Ew7sVXlb0kWnx_rMBG3bxjRumy5oAXEbZ2kGhn0w.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Wn/WnAgYpTMEYPxQuBacvzZi2xJdmn3sR725kR6f3W2B5w.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/X2/X23Ovk5iH4pk-R9AFDLAlJjeqISZJGfp_Lk-U68RQm8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/X6/X6ya0iA8Be1DITg5j1G52yy4xkq3D571bpo9yAxTsdI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/XD/XDliMM31rE8FzgshjM1ZQDjn1u3l5yOCNCN9-VacP9U.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Yk/Yku002-3_uo94IebWn0rYt-0FACQyY8yopT7cCUoIb8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Yw/YwC07OTyijtrwH3K5bSWvABfjdd1_imEnd1n2aWwVkk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZB/ZB7xZR6pAL3MoIq-j55y9WNjvbyruqhmEI8uO2GLgnk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_9/_9RPMUlU5573Lk2g61VZW9FU_rDXbTJlGw0iWHEojRo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_G/_GbhSLNzGKFbrdQqmnkqvsS-dxNJcBhlK7x87v6YC54.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_M/_MMvii4Nu_ZjbEm57gJ6eL8SKlrSRTUqc_4FVckzPN0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_z/_zY16YT-dLVBT-XsM5-N2j5DvxEGaloqx5RRG0yy5Y8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/aI/aIDh3Sto_2pnwP-T5OADJAJyOMPRjhvZR2vG47RED_g.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/am/amzn5IIVVkPpLBu5Pfe_98Nc614Uy9hrWd2h2cWeGbI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/at/ATH4xBtelp8gxjLwWlMo5-P1G2YLeBN478c6uOrXmrY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/aw/awRKBF2OMYqW7tFfyUFhs5Lb_EZrKw-R4Yt-FztTUlA.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/b7/b71CtPOP48_2bjNX8BI09DCSZ8UTKrra5ZMECmnDA68.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bF/bFCtWTd7ePsco_XXOx3oiLpii_EkarNiab8yjqm_g3Q.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/bv/bvN-2I_fp8PwKR-TlnNyFri6aDlEag5iNwfBDmk6gfc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/c3/c3GvSY58VG7KcSM3xpmVLYbrJvrlzbe-4Hmb1gZJOM8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cZ/cZmqHsz0s2XaptuRSGNQu8xB96gFO4qu5DSMMem16LI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cj/cjTtJSfNzyCTSgtqfPQPF8wbTG_1u_3eqYpml49rwI8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/cs/csbQHf0FvRCO6prQphCpvp9snjpNpX4J6-FPTgA4PhQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fZ/fZDcyMk4uItXYyEkprKRogxpob1hshaoI2lp4MSRaWI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fa/fa4XZoYt5rXhWDYghaU49r2wWy3mbotr8ID30L_klDo.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fl/flZftHjhPBGnJcmmTSdzTiWAvHHUm2Axq6-_Zg2Ig6c.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gJ/GJR8739fDBlcTC3ctdSC3UVnVgqN-SjPQhiPS2JP2KI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gJ/gjp0pda00ixzmZmyI-z5wnUYz3GZUxD6LAyba7Jcdzw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/g_/g_USRapGE3lpyrh4m2UEprH9kRz5yk5xGGVlfOjhafk.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gp/GPY8D5vajxV83wvmgT9CpKZajq6RkhErKrAvfH5Aw80.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/gp/gpylotsKKcj1UhyZidQR56sdO5yChoyamXbKMgeurR4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hH/hHZUUZsRgnuLDD3t1CyF48xLhjf0_ffn7BEBRfuUadE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hf/hfUuF4fbYP4VEFzyKGir4ewpj6HipNY3yg-kq96-cWQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hi/hit_m2x1O4bGYDjryvEZJ5Pd6ZmFVrMdpwEnNBvfVRQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/iJ/iJeJf6uuKH2fKBmH8ZDedCux8WYZhhOXtb8NC0_XsmI.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ik/ikXwlyorz-2qldo9ymqsv716XPekuIsu93zok-cxD3E.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/j8/j8etQiDD2tKPXmBFba572HGw6MRlkLlDVtbMJzvW8_E.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/jy/jyXPrI0hwHm3SumJHyr8GeCNn8231h5McxWB80uVEXg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ki/kiH2z3f6EIvHim3qwmbuTmzoM6nEABC5g5ccl5-FdoQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/kz/kztR_c0VRxszdNc-qA1GBseOvIAM_k2iFRyNmNi7k-w.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lJ/ljiOGcnmiaUvDQdGaVqpldqSSGATbCP7zWyIz2h1nI4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/lN/lNBvUmvuouAfNIoZbcEqtxB0FYYIFafY2deJXm6J0IA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/m6/m6xfTNU0ZDKKnOA9Uc5fl_uyjYADwqbdtp614uFQPqM.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ma/maHLrJzKNxItZQbvkvgw_CC_GT1Wt6ZH-xv3_SYUUN4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/md/mdCNZTDO3dDTBS1CBVU41h5WHR9bQdfQpV6OApmQ2io.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/nW/nWrlNW3kmGOHS1aES-G8Zj4Gwz3ATUXEkbI_RqpbT-A.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/nq/nqc0JTnKVC4XTBqFc-CvOxK0YeZ2e4Ijp9HPLFx_fwY.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/o9/o92OcLGSvH63ZQE0Qso_0lyICiQZxmkD3WgDf5l9Aow.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pV/pVjRIwBgLKcR1Odk5eDCesGtD3OCdirffjIIQrTLTiI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qX/qX8-FCs0jjclo7bES_T-ZvZJOWkq4rIvO2qcPu58YOA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/qb/qbR1Vs1GFq9KxP285GnLWrk4vBG9Vm_4wKQctiUQUwA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rC/rCQgCIprRzC58SM09FvrXHxOl5TNZk_YIXygK0Mc4AQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/rr/rrkkKjL7X7N31t6WxOU4TcNvXkDjH2cqsUI714d1KM4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sF/sF7DZKzarGEgZ6YumVLdht__MbsQUF-aTJjTLatyNmw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/sF/sf07THFmdDxSo9C9ceaV6EgzpRf-GnhsDLdFEk_mhR4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/t2/t2S5h7zmV_HI4aHqcb-OPDivqqI28Euuh4-O5HGJ-RE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tI/TIZxqLTMj_euNc5aqnT_QMLp6gRVZtG-CV0T2PcUf0k.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tO/tOZL8-AzSInWUujjavQ-Dbge4SVy9zPUpO9628z7FhQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ty/tyq4Ai-O5x8nWRNiTwPROxx1pr-qZ6nuxd7NKGJk4Bw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/u_/u_acXJXOLpNNBi0lJOmPwTJXbFrWdBuzV5LTGMKj39M.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ur/ur0cYN-sxyJ5y7GVnUaOLPZkkjNH_3Ma_vvgzuRoP5k.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vZ/vZhlKgcBrkgKWX-3yqFpghN0R5ODYqGfYrunksjaSj4.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vq/vqZ3v32pxG3nQUUGzEGU2j6N2i-TbXn3pBHp4lFeIiE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vy/vyTmPR32t6SIjfQ4fJSJJ-8jV-88qIobiYriVHSTX8s.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/wU/wUCQ551OUK8UCT-mPh2BWfmPoUKy25XRuU7NEdJ8MY8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/wb/wbmFUT7asp_eptVauepee9yJUTlcGVRDIrKHIsRbQy8.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/xE/xEX5LLtFYx3TrjHo3R-bC6gxteKaA4mMhjTktKvEPa0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/y2/y2s41n6Pzqz2o-frIhv69mzX4izWEJkMhbd64bfdKEk.cache +1 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- data/test/integration/include_test.rb +2 -2
- data/test/test_helper.rb +3 -0
- metadata +254 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a284a29f6540f0ab795406fb8f7ed4a04e7ac405
|
4
|
+
data.tar.gz: 2152deb3b71b6c033c5b8429bc1fdf5be30a1700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fa3be6000eacae23242d67fdff36df095ade930a94f0fc91cf689f4eb8e80303c121756b9c353f972f06934255e779656318412ce173d619f03cd6e18d80e04
|
7
|
+
data.tar.gz: fea9054d3c45b76fa319b2c6eba22e8da8c318b9e60c2314966f3b3f861b71e524ff43b4748aac6f0fbfc0c3ecf1caeb63bcc8f234909782b0a62052c47536ad
|
data/README.md
CHANGED
@@ -28,8 +28,6 @@ And then execute:
|
|
28
28
|
|
29
29
|
**NOTE: you need to make all your forms `remote: true` as this should not
|
30
30
|
redirect to the rails app if you're submitting a form.
|
31
|
-
You also need to link your routes always with the url helper.
|
32
|
-
(`products_path` -> `products_url`)**
|
33
31
|
|
34
32
|
To start, you need to mount the engine in your rails routes:
|
35
33
|
|
@@ -20,7 +20,13 @@
|
|
20
20
|
|
21
21
|
function handleLinks(event) {
|
22
22
|
event.preventDefault();
|
23
|
-
|
23
|
+
url_or_path = event.currentTarget.getAttribute("href");
|
24
|
+
var expression = /(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/;
|
25
|
+
var url_regex = new RegExp(expression);
|
26
|
+
if (!url_or_path.match(url_regex)) {
|
27
|
+
url_or_path = railsURL + url_or_path;
|
28
|
+
}
|
29
|
+
fill(url_or_path).then(storeURLInHistory);
|
24
30
|
}
|
25
31
|
|
26
32
|
$(document).on("click", "#app-content a:not([target=\"_blank\"])", handleLinks);
|
@@ -1,6 +1,9 @@
|
|
1
1
|
(function($, undefined) {
|
2
2
|
|
3
3
|
/**
|
4
|
+
* PATCHED VERSION FOR BETTER_FRAME!!!
|
5
|
+
*
|
6
|
+
*
|
4
7
|
* Unobtrusive scripting adapter for jQuery
|
5
8
|
* https://github.com/rails/jquery-ujs
|
6
9
|
*
|
@@ -114,7 +117,15 @@
|
|
114
117
|
|
115
118
|
if (element.is('form')) {
|
116
119
|
method = element.data('ujs:submit-button-formmethod') || element.attr('method');
|
117
|
-
|
120
|
+
url_or_path = element.data('ujs:submit-button-formaction') || element.attr('action');
|
121
|
+
var expression = /(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/;
|
122
|
+
var url_regex = new RegExp(expression);
|
123
|
+
var railsURL = $("#app-content").data("railsurl");
|
124
|
+
if (!url_or_path.match(url_regex) && railsURL !== undefined) {
|
125
|
+
url = railsURL + url_or_path;
|
126
|
+
} else {
|
127
|
+
url = url_or_path;
|
128
|
+
}
|
118
129
|
data = $(element[0]).serializeArray();
|
119
130
|
// memoized value from clicked submit button
|
120
131
|
var button = element.data('ujs:submit-button');
|
@@ -9,6 +9,7 @@ module BetterFrameable
|
|
9
9
|
private
|
10
10
|
def set_headers
|
11
11
|
headers['Access-Control-Allow-Origin'] = ENV.fetch("BETTER_FRAME_ORIGIN", "*")
|
12
|
+
headers['Access-Control-Allow-Credentials'] = ENV.fetch("BETTER_FRAME_CREDENTIALS", "false")
|
12
13
|
headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, DELETE, OPTIONS'
|
13
14
|
headers['Access-Control-Allow-Headers'] = 'Origin, Content-Type, Accept, Authorization, Token'
|
14
15
|
headers['Access-Control-Max-Age'] = "1728000"
|
data/lib/better_frame/version.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
class ForeignWebsiteController < ApplicationController
|
2
2
|
def show
|
3
|
-
@
|
4
|
-
@
|
3
|
+
@rails_url = "http://lvh.me:#{request.port}"
|
4
|
+
@include_url = @rails_url + "/better_frame"
|
5
5
|
@base_url = request.original_url
|
6
|
-
@include_url = @current_url + "/better_frame"
|
7
6
|
end
|
8
7
|
end
|
Binary file
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|