wordjelly-auth 1.2.6 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/auth/overrides.scss +8 -0
- data/app/controllers/auth/authenticated_controller.rb +6 -0
- data/app/controllers/auth/concerns/shopping/cart_controller_concern.rb +9 -6
- data/app/controllers/auth/concerns/shopping/cart_item_controller_concern.rb +7 -6
- data/app/controllers/auth/concerns/shopping/payment_controller_concern.rb +2 -2
- data/app/controllers/auth/concerns/shopping/personality_controller_concern.rb +4 -4
- data/app/controllers/auth/concerns/shopping/product_controller_concern.rb +10 -9
- data/app/controllers/auth/concerns/token_concern.rb +2 -1
- data/app/controllers/auth/images_controller.rb +1 -1
- data/app/controllers/auth/profiles_controller.rb +11 -6
- data/app/controllers/auth/search_controller.rb +3 -0
- data/app/controllers/auth/shopping/bar_codes_controller.rb +109 -0
- data/app/jobs/otp_job.rb +1 -1
- data/app/models/auth/concerns/es_concern.rb +93 -16
- data/app/models/auth/concerns/shopping/bar_code_concern.rb +35 -9
- data/app/models/auth/concerns/shopping/cart_concern.rb +107 -10
- data/app/models/auth/concerns/shopping/cart_item_concern.rb +82 -7
- data/app/models/auth/concerns/shopping/discount_concern.rb +32 -1
- data/app/models/auth/concerns/shopping/lifecycle_of_state_concern.txt +26 -0
- data/app/models/auth/concerns/shopping/pay_u_money_concern.rb +4 -2
- data/app/models/auth/concerns/shopping/payment_concern.rb +19 -5
- data/app/models/auth/concerns/shopping/personality_concern.rb +61 -6
- data/app/models/auth/concerns/shopping/place_concern.rb +54 -1
- data/app/models/auth/concerns/shopping/product_concern.rb +143 -8
- data/app/models/auth/concerns/user_concern.rb +83 -1
- data/app/models/auth/image.rb +16 -5
- data/app/models/auth/shopping/bar_code.rb +98 -47
- data/app/models/auth/shopping/cart_item.rb +3 -0
- data/app/models/auth/shopping/personality.rb +3 -2
- data/app/models/auth/shopping/place.rb +3 -0
- data/app/models/auth/shopping/product.rb +3 -2
- data/app/views/auth/admin_create_users/search_results/_add_new_user.html.erb +3 -0
- data/app/views/auth/admin_create_users/search_results/_manage_user.html.erb +5 -0
- data/app/views/auth/images/_show.html.erb +16 -0
- data/app/views/auth/images/destroy.js.erb +1 -0
- data/app/views/auth/images/show.js.erb +1 -0
- data/app/views/auth/profiles/_admin_profile.html.erb +2 -0
- data/app/views/auth/profiles/_proxy_resource.html.erb +0 -5
- data/app/views/auth/profiles/search_results/_switch_to_user.html.erb +16 -0
- data/app/views/auth/profiles/set_proxy_resource.js.erb +6 -1
- data/app/views/auth/profiles/show.html.erb +14 -5
- data/app/views/auth/search/_search_result.html.erb +10 -4
- data/app/views/auth/search/authenticated_user_search.json +2 -2
- data/app/views/auth/search/authenticated_user_search_with_masking.json +15 -0
- data/app/views/auth/shopping/bar_codes/_barcode_input_field.html.erb +16 -0
- data/app/views/auth/shopping/bar_codes/_get_object_button.html.erb +21 -0
- data/app/views/auth/shopping/bar_codes/_scan.html.erb +12 -0
- data/app/views/auth/shopping/bar_codes/_show.html.erb +23 -0
- data/app/views/auth/shopping/bar_codes/_show.js.erb +16 -0
- data/app/views/auth/shopping/bar_codes/new.html.erb +3 -0
- data/app/views/auth/shopping/bar_codes/show.html.erb +1 -0
- data/app/views/auth/shopping/cart_items/search_results/_remove_item_from_cart.html.erb +7 -0
- data/app/views/auth/shopping/cart_items/search_results/_remove_item_from_wish_list.html.erb +3 -0
- data/app/views/auth/shopping/products/_create_from_product.html.erb +20 -0
- data/app/views/auth/shopping/products/search_results/_add_product.html.erb +3 -0
- data/app/views/auth/shopping/products/search_results/_edit_product.html.erb +3 -0
- data/app/views/layouts/auth/navbar/_acting_for_user.html.erb +19 -0
- data/config/initializers/devise.rb +1 -1
- data/config/initializers/time_hash.rb +2 -2
- data/lib/assets/javascripts/bar_code.js +70 -18
- data/lib/assets/javascripts/leanModal.js +3 -2
- data/lib/assets/javascripts/search.js +5 -2
- data/lib/assets/javascripts/spinner.js +1 -1
- data/lib/auth/engine.rb +20 -0
- data/lib/auth/rails/routes.rb +7 -11
- data/lib/auth/search/main.rb +10 -2
- data/lib/auth/version.rb +1 -1
- data/spec/dummy/app/assets/time_hashes.json +1 -1
- data/spec/dummy/app/models/shopping/cart.rb +9 -0
- data/spec/dummy/app/models/shopping/cart_item.rb +9 -11
- data/spec/dummy/app/models/shopping/personality.rb +9 -0
- data/spec/dummy/app/models/shopping/place.rb +9 -0
- data/spec/dummy/app/models/shopping/product.rb +9 -6
- data/spec/dummy/app/models/user.rb +10 -0
- data/spec/dummy/app/views/layouts/application.html.erb +1 -1
- data/spec/dummy/config/initializers/preinitializer.rb +1 -1
- data/spec/dummy/log/development.log +183 -0
- data/spec/dummy/log/test.log +114543 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-0/-0FH84k5qbcOcO7q6dItcLRdSEnxx6MiCDvyxJsvkQo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-7/-7DKhsuoLBdupVXPF_k7zNtDr__mo_87te9AIqFW_K4.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-J/-JN5Wc6kQppvZw6Tgx5MfEy_WVMIgeq4CqCqLFtnDlU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-J/-JvQJpqOMZZ5p6yK32KC_te1l8JlmG7K5OWX8wSl1M4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-c/-cxwoSAB71cYtGi2Mt0eCvTkBl4YiVY3TN2lJVwRMTc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-k/-kQ2EH8AeUK01fXF7oW_ag1eKQEaOOGbaIJ-PFSk5TE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-z/-zgfq4oAUXx-FshRXKVd4szl6sl6t-SA7rUDj6ngwfs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/01/01RN47Wk75g4hWKB9KjAujvSZjX9FJvhcipI6JenujM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0Y/0YeFekbBzPfCnVzsje8CrWY89XR2shtu1ke8Nu6vSzo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/16/16tPLrXtFSyIZDbcNkP-IpJFvN3ulDVpJYnz0b3g7NI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/19/19gI3__zyZzQ7LQeozis7e1AzgNM8GZ4hDrg_8UQaZ4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1F/1FGPi9nwerl2xqQzN3MLkyKSPzpbnrhRQ9VinGBcs0E.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1F/1FvBFD3jV2Df9U2Y7eaZ0lQTJJ18_EadeZ2WxB93Mtg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1Z/1Z79eTYT4t733p8ELTIx1wetBTnyxNNk3wIMFXloO1M.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1_/1_mWw6lknf4ASpsYczaGoa4GLpZKs2yL_0--tv2-Fi4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2d/2dLMthgCTTaOlqI-hExDdUY_0ah5imocMIky_TQf7Bo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3X/3XDiUnSRh49k1EFokrHBk_3Hs_AHpF6vyA4tAUQj5xE.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3X/3XZhRWfxpEESCszP6I6YCRrMrMztS8yFpH8TwBtnsYs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3u/3uyLmt6fQCxieft1OlSxDMqA6BdmqwG787MpgfvjrNE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4P/4PCTIkeJVNId70b3SwoBz4BnDvdnqQJvU2FbROHRbVQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4f/4fs1GL0KugXi1v9nB4hlhhUZxpSoynpykzOy0UhnRy8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4p/4p3xQC4pcOyDno3fhpxSy4goO0uuZpW-4c3ZnQU0k_Y.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4s/4sckZ0TedyVm0i70xpE5IVpFE4hrt_WmBNNlC-qLM2M.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/51/51f1FDIFZ2SGhyQ6WuNdRelZQceJIb_5LDOSiQ7QkyU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5H/5HKrnfHvwweeybIfbvntPxgdhl3bvFVxtBobE0wNr9M.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5_/5_rNjsUQIG1kvx0Ea14xFiVUNZw-fQiCKFADtCUISl8.cache +4 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5h/5hRRBO2bk0pdN92ehqH4rgT-gyufccm9SzEajBx4j4w.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5q/5qnoYyiLapR2HyyDv7CTXiMk4oWDFmYvvA6pRbM0Jjg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5u/5u7YTIbDiB_1yihXZcIpRTigKdITuUBCtCXjdeDLbQQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6N/6NWh4Lq6KngobEaZUmcIXQ7aRF8Epb-t04JDYzkKBnY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6R/6RgJ9I_dgmxqLtTOcWY9RnQ0hbm2bpeHVIPRTf0lStE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6q/6qUF4H480zGnNqgMSfnXgiUXAeNMbUuAgYbXyb4iUzg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6s/6sn6iDWCCFqtxL5QB58dZOYcC3wxXaVAxLRbj0ZHJss.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7e/7em68JtxqHgoeWlKhWFwQulaZjC7p4CS6wlJzkz9GQ4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7p/7p1SrKUS7nrrFrWkVlPMIFF9H9tmozMLbvKwdZSuUYI.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/88/88cOdcip_WVCkMmcVXscvLrCOkUZY6UN78kDZ7WwU9M.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8G/8GtUCAGcgJ4teJtXj5Ernjc2oR146ipR58e9D8SmD0o.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8O/8OJIxJ5B_M1zJumiXlmOnF5sM0KAY2rDg65zAADX8h8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8O/8OQefGugbgbcTfJDnbbciNA-03xrjL_ivQZaTx6jxYA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8i/8i7yma4r59iJZNZqxMWHFy5PPmFvYeRRV8YyAb-pDsM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8m/8mCKdXYbETWcbVlm9r5S4DH_7NdmUWk0xvQpG1NfnKI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/95/95IhppspBdHbJte9Eb-TFJyul3tMedfwa7PCnzYvtUw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9U/9Un3o6p8MK8rQLqzenk1pB_7hXQFh8oRV2e9H0gvVEE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9n/9ndgTI40F07w8FjASG_cWEWvFc-WFcAnQ0RTHKffLs0.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9o/9o8JxdyqOsc4w86Kf7lJ3_sPDgaz8jn67FjJdDPhDkI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9x/9xDDSh_d9R_KIIGZRTcuBWS8bGETaC_Bf_SfWRRek0w.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AP/AP8CMZvWwmd-jMLMU5sL0okrcR5WUB0YCEh3AuALxiE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Al/Al9KSjn0Oy17EA5EUfl2Iu6WMk0I9Xh_ayWe9vF8_HQ.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/An/AnzKitD9vM6_RjoLfJYBOh2jBnN_qdGB1u2EJiCCRoc.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Au/AuF_Lg8psMkag-Ebg2QLqzwaoKLe0m7I7BZ_SEvLjmk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Az/Az8kOr4kewFFaqsiiQE0WYSJ59i9wo9_z_F1TY9F7M8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Az/AzjCF36ZnCtfao-Xf_39oM5Iqw_-WxScCsNjdwTzkDg.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/B3/B3Cy78DXJF2UnoGhRjHucuqZDrClomUgdGvqtBbjWgo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BL/BLDosj0uYMnLDG_bKFv9uDRMQvYC-TqPXqt0LWDiHJw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BS/BSbNP_jWCJotqEhogYhxJWnVd8eNlQU5M0_ICj5vphs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Bd/BdDviGeLCnTSYiQXIcujXrRaHo6H0MR4-knE2YeeCgg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CO/COnlHVpKyQNDJUEMrL03OCrulthhbMGrK5LnzfqxKzc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CO/COog0ADFfcxxSQGirlDPnIplRoK0YS1sX_zi0EI_jLM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CX/CXWRi2s11uUfdM1WvjHt1MZgUR2ZOZy8kIkxDXGgLew.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/D2/D2rHtyO5uRykEy1sDjURZRsMFNRnctr_a4-sN6N_k3s.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DL/DLkERcNQXfP_jrGt04K3gIoyAQUwRAhsa8CGBbHeyr8.cache +4 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DR/DRUjSXaqukziuV073e2FWRUrvpczn174K8tnKOVnjCo.cache +4 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Dl/DlKAR44lUzqNCP74OxzxIKtHkZ8RxvRFNSHCSDAD0dg.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Dx/Dx7LY1s3Kt1d0QNsJS7QbwHBQXDat_Tejg6sFqggwpg.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/E1/E1sjzr7XlSJWVjX4wWthYeyuomO5VUcCix93RBDloFw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/EU/EU_udYe_J7iEcJIrPz3ryODOZ324JYpOQgZz6Bmr3NY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/EW/EW0mRGtnT3pbtHOhXnmfGFACMcet5Ga3wX7LvUZSub4.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/EY/EYtmNrxNv87V8eN1qeSFVNgVV-kJy6OybUTRAuQqbJw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Eh/EhDV9llU_Uji55N2N5hSisrVZB3F7ApMRgcaVy6DdSE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Eh/EhjkY9IvaTEQL2wcumd5kltyaR7e-C6rBM8JWCVXPTU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ei/Ei5n29SVP8SdmUMAMaA0umz86XuCUBuLpZ0BNQuQccs.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/F-/F-iArOgmgGF6z7buN7lXd0PD67cLzUqAyHI_dg5Ir-M.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/FR/FR7UgZsBXuOsZrTFw1Xbx07dvYP7DQ7HbJv0wrz4hq0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/G6/G64cowLHOfM_Yrt8O7KSbFiOMRqTgfEQm1PPxAQhbAg.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/G9/G9GcQSjBnO1nXjttmifoSI6ITmGuq7IwKnZBRYNRa8Q.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/GM/GMONcamN3RqysGKy4uYJgymCpqehQhPzSIm0464hTGw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Gf/GfuRghtVELfVYMujLNC574fvyKsMJzdWTtbEQlH7X6Q.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/H7/H7MvptNvTitndXYMJeMFbOLKPfS5xVM4KK16q3rWRf8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HE/HEMtPwPwyE2DNUimuj0RWr9XjDw566AWGpPxO-q44qI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HT/HTDa4jVpwYRkpWV8TUTUHnOXUZlDxlNvENOx9HDpt_A.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Hk/Hk4rKlg0YdT2T70kfxEdLJnLqt6-L_368Ls0wL_eUfk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/IH/IHdTxEINLD9EP_9WBZtShsz0L4wyvHvmWajj3bS0JO4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/II/IIhHECBYzW6R7KaHyb0vvWJRLzmrr2eRu2gYR23zXII.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ih/Ihlbo_G-ptum1z1TUDzAJtCaXb5dcjawZ_JC_6IV8Ck.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ij/IjA5E1ckNNxW7LS_WlHj3kq6rCzNkQm4GJXKbz16OH8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Iu/IuKXt-cdB0MWFj7mqA38Bor_psTeajaMBFLmvDVMoBg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/J0/J0VM7NzIgMpeH6e1g-iV1jukVtOeuJaEJBD8fwv-hJc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/JO/JOw5gbzb3UZHNCcvfkgx62jvLeTOtTeJr2n-KkMAje0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jh/Jh2yzmSNK2NI9-ZN_AUECyg0NmxfsW0BrXDpAu8Q0Sc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jk/JkTWRfXEtbewdT9C_84ZUCKfOJgW8vAYojqbIakKuUM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jo/JoYrlbw390oHMUGn2ukrbkCBic7MwB6h0xh45pDUZ-o.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jw/JwL3nARIMhyKb8g84VXSKO065zMFWQ5_Hpo1yKLmgBU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/K-/K-Z1865camwlbx6a_H9hvyUUNY5MvULTQRPGNNIN7O4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kd/KdjXvRD1FkAOT5gHV5oggXZChzNk7YulQwZcHQXIZRg.cache +5 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kg/Kg29pENl85d6oqEm08etqgE0i_wBEOgHSrC8RNQgxH0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kn/KnApnugr93z2u-bP7o4MoBYpzMfTsQCkE0BfaGmFh1M.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kt/Ktn9Bwh3ABbc0iZw75mn8jHdQ-c2wrSOOwr7bgKec2M.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/L-/L-9gOP-Eu8WWrqHhquHTuF-FYNyqPW_XADPX3zHfbA4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LX/LXdz5pGMYqMa6LDg6Cd1tUlmH5YsGjx8qWmEUw10p4s.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/La/LaLV7_h7bNXlIUdOYVJOJjuimbOMcNM6Lk2AQfHZj5k.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lb/LbpuXJvUMRSl-rkNmtrS76DOvfjCCL7sPX0Dik1Jj20.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lo/Lox5RGiMyRaI-gtEuR734T6Yxs3SO8CYVkpLobvm6Ec.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ML/MLGXPOc_o7QJhMTPIl-dolby9B6HGGATmZfvQUmKE9g.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mr/Mr2unC__UmyhRSGG3ZJT5qgD_hLYsJZcby3qcYkghJQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mv/MveaXKvyHsP7lUjRxWRNMfujogq7KoFeXny94FaZnMA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mz/MzRPdnRytqqYhJPaFID_20uq3exdwqTkj_JaNSeaIrA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/N-/N-efI87sYEJx9N5TgWUNVb9DZhfdxLIayZwS1QyrBBI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/N1/N1Ge-O_OfxqfdKJ8hS-hCM1m2PpxNrluFlt0h4T-ViM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/NA/NA1MvZyw6XbQUarkgAWb2vb2tED9CbMfX6bVAEOaby4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/O3/O3YH4rYrH4zTrSfm8r9yEjsegPVRCq-EPPgN9kVKt98.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OG/OGKM_vNfjdFZ8-_i9xxsqvL9JKeY8ZeB0crBJ5mnxbM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Oa/OaT2un4nlNDSN4mabpQGtzAZD_MhRbyuiW2JQ2O4AQQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Oj/OjYY-CX9a8_IYn3rdKI_zP4DaXsicVSsnDnHSNPWiDU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/P2/P20MUUHVNDibXLvOGOQXPtteMwoQE9ZdPOWt6E-8AXo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/P8/P8F3AFFdVIHJ1wRbNKIsKfDLRej3I46QD4ZrK2pvdH8.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PM/PMj3Wq0fic3iWDi9IWDFNRkrS6OZfFX9CPFql0BEKzI.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PS/PSD-YJcPLEoTyXjJwxPwUH1adb_OEG6-EVhYFavC9Y8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pp/PpzbEkwo1VQQqREU6mIpmE91gLIWhbSaKvZAzHmRzT4.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pz/PzYpfB-Mt_GZoI1BoK5JTEtoMNYz5eRyWjrqQ0Jwbrc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/QA/QAtOVdWly1g9_legRdZ1TiU1wt9exnZClfFs1KFInHw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Qm/Qm0bT-XviwzpPFa1cH4PKQlarnMXVAYLEhEHAMQfS0M.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/R-/R-P6hKBc_Kiub4PGDIV6GLWVPWKG5Hkb4pMibGZ4_mQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/R8/R8wQU1MrYoCOeoLDkm0JCDvph7JSzV4qMnnfQQHWJ_0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/RV/RVEELwrJy-0osxsK6bOgrdv0BJMXVeV0Kj1JU1ufudo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ro/Ro69Fy-gnadW6JbSAyOUEhPcix9r3dsDlAbMbmsvO9w.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/S9/S9VEgZtqRTQ01SX2jqwEmScpSkKiR6K6ps4b-47Yr1Y.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SJ/SJF1Y7x3bL3Lns0svNhFk_d4TC8gD1GbBFCIa6SKE5g.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SW/SWX0OIIfUckgfme5kpkBIgwgFSzKmarqkqsot0WKiEY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/TF/TFaZrdlbQz3NOtg2lMK89mjniknuNuNyi5MAyAAAihQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Tf/Tf2bgX5zezBb7fVsJ0UWYnQjW7LdkJVAb7g4PR5SLLo.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/U9/U90dV2vsbo5vLV-5nrMkYT1KZihPlwFGwtCpnmWUnkw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UA/UAIqUPfpgzUhqoW8Rpu-gyok0pe2qyGCmDZ75Ce8E1w.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UF/UF7abP4ooRBx6NIfQ3QY-qUwEkD9FDzQqw84LtV251s.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Uj/UjX8tjTZ-d5_6rIWttVCX-9zs45IlzjMl9w8jkIv5B4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Um/UmQ-TyyaNDZxmO_pyhLdwHNew2KSxQ6jWT9MtngyqrY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ut/UtN8NDRYbBYRbFtmdWKRK6rTi4gEFbOg8DvQ4cH7S7g.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Uv/UvqiGDl3Je-eTM9pIFPThYrDwUvoNnoodzISPqx3urk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VD/VDcsfdncrgnBziuB6ube7SE7djY03TqwY1IukD_TN7Y.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VT/VTEXyTvUoTTHn_xvcwk_W3pBeA77AFVfMgdcEixTUwY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VV/VV9jOPgrtgb0lMap4TpHaQGCX5ABH7jZS77u8CA_HWg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VZ/VZ-BzU4prW2vUnpfToRif74ofzzuXEMrLsM78MMFqXM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/W6/W6SS3z2NFrVIRIAHNlkS5HjKsqISu52qRQ-CLtMVu6c.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/WG/WGLNLZMgDpHpL_77HvgUU4OLdXxlgxrFnDNtxvAH8UU.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ws/WsVVpxbu--lln_NCf67Z2SL1ZFzAYK3oUKs58bs9Lng.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wy/WyuMagtVlhoZnbDJ1XWdzEZ5nEc3TtAakFgn3GtUlRw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/X0/X0TyY3kU86SBdTp0_SP0Dk_7A_6t2P95BfblJp21nL8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/X0/X0clyU7eLOTqHoVL8gmWxsUZtKT2sXmrR5RcEQKI61k.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/X3/X3smAVji-ukCfsZEDAxoOZLpw8mT4Mj-fAbNVG9-9bQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/XK/XKkVQq7H-pGpBPALp_h89EWR48ZkGLlIejmAdKCoN9c.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xf/Xf2mUbhZ10q_EATP_OsSnLhGXGHw4eC9XdiAdTnJ74c.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xp/Xp2pCnEav3eX2i1dS8VwmKs841_3_A4tCrEKFN_4mB0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Y-/Y-SMBXniQNM_PK59g6qkh3Rs7vutjQPID8cPZYUyvc8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Y6/Y6zCPRDYjMX91hrNtDDz50vO3yX5zn4_6xTguk_s_4g.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/YZ/YZ2FiKO-bbueEZ9CsbkJp3EFqkuwboncJhgKPeyRV4Q.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Yq/YqAdyNJ-WDhKGz9PNesXYBSfjIH6516EdP9_2Qf1BnU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Yw/YwQziXwjTffRGAoRXdMaBeiQLd8LYcVIWuO344bgy3c.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Z7/Z7FRIezQTNsL3aMk8NTXpPXzR7pEVVbPNHRTdohmpDw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ZZ/ZZiJaLJKT2joy06fP2oWL9qzj_sRH-H1tItfKcz2JW0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zb/ZbhOpgGTFv1aWxq09Ry2MiXqW11OTYAoXvFLPyF0zzY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zl/Zl-FTV4vKa2r3nBU7NRBdlkyRgcIo7NOyqsfaqdX_fg.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zp/ZpIypz91h5jOpIv5_XWneCig0eXbO5hjU-1E8lk0L0c.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zp/Zpo6cFyzVk3NjXX0p68zdmGprgxAX_ZHnNzvJY6ailg.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_G/_GnUMQowqX9t3laGvl0HnAxZF2Vhf0sq7-oURM0wcko.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_O/_O_7M8DxgHDGuIwgUtHu0Lc0mKcY8R5kxUxufQ97uX8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/__/__iX6Xzd89n2HuWT3iV4OrHtr8Qkn_Mn9hNWlWKneS4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_o/_oxoPWAnCwMi7IIf6T6dbEYFq3VKRvMfszDCgD0aPyM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/a9/a91uMBM_EHoG9dpZfGzpn7yE8kmrsX0VjOhWT1QskaE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aH/aHVHr_-0u4GYkc7Jj2NHqoe39XO3ajwlxFXQuYK_6U8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aL/aLiHncFxecbABwNN02qPqA_83asIyWD3VseIFDc9G04.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aP/aPGhkB2WKuHyPS7Sevt1IEJx0wDJxfXe1ruloXqj3xk.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ae/aeggiw7BQrQEDe_h9KrnAKMR-cLCOwguVWnbA4t7RDI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ar/arjoC4qFoPftvjtnTFvVOcqgyMTEO3R7eZfUBlCD2tQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bA/bAxW4suoIwrYp_k94dRFVbm2hReYVmuPmC2zMBfvJc8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bH/bHvyfESjIDel6qhGMnn7WQqdoNXoXBEHGqe6xaPpyLk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bK/bKWcVsqtCUYRj-dQ71E6Zv6VWGnb16tnJxXGQ_nQ2H8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bV/bVVKMfnewO_Cw5cF4DuWLGesLrgquE6waHtskIGuc4o.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bg/bgJeD0vSue1KUNM2KWqqSCTroUqhxlReXxzTmTOruxg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bq/bqc2uPWm4pGI7w9V5UTKsOJNWo37Cp3H2n8zfUa2oI4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cT/cTO6k7QA5M17ZMkAffV0ovTZiBXhT3VseIrOM1mBCs8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cY/cYK6npQK2KyeCzT46f6dwDF47WuLzAllkdR0ppOrkno.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/d6/d6MwJNJNxNFBkdXmYs_KvTpl1AS_VRd3tfEYNDmb2MM.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/db/dbGJxjhVLPsmOZwdy_nsIdlFbXeARv23LF7R7HE7AbA.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/do/doQ0zNGC703aNZz7U4-e7z7ZXn4QyE64ue9z0_UU_58.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dt/dt3vYLBhkenGITkPM7hggTYSZ9Hczn1N-WDFbFvGtb8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dv/dvCaWZlq_sdjkF_n9x4vzz1pn8wnFCfYRirZppk3Z9s.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/e7/e72aQlUn5CdiF0uDsIyuUXiO7WBe9TYk4k7jLmFPN-s.cache +4 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eL/eLKgQlMwf_H5A0vmly3GTNk49y8YtPV4hchufXVaCAA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eU/eUSALCij0-yOA98jJNYVgFhMfa_g9zrJGgGrqSPMNOE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eY/eY4_uLXSqnPVEpB1HuS1W_OXHHms0pInZYoefPvW9t0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fE/fEkHgB81i850dFiDLA-P41dzG7lzwscPfbEkn7xzBqI.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fX/fXTENvNKMpfQV-32mpv0geVR4aYDdU2ImdLVu382RWc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fx/fxKS5cKjNaBTqhsiLrQBnUHwIcET_TjiQkZvcuDSqFM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/g1/g1QcK14XjciA06BjnzcyJedMlbZDV8GtpMPMpDoJ_D8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gN/gN3fIJJNplV9pq-YkQCSKwGtQ4H_JtNrBkWtKzZzdjA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gs/gsdTj_I53MqRV9SgY7YcukVGxAcOhrNBajAbBBJtgm4.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gz/gz9XMd1uQwG02m-0et5AwJeE6DpmAOTNj-FgkXfw9PY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/h5/h5o0be8vpn_GFYP1jmOvODXBI6GpPxfLPzdzbu2A8R8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hM/hM29fgLy6zOyClGR9oUlM-vriwUnBZ3ENjM_1FShFj0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hh/hhNmdTfVeFvrSn9CamPVmpsxNS7URxFj1ohmNXOW8jA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iA/iA1lfqJxNFLKFbXNgUxFyE_uyPQALWH8yftLiPABhAk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iy/iy5i5tFHzesBHcv_hzO9VSwlALBRNJtKqW3rzcUUVfs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jA/jAzwo-XbTDn_mb6gbd2hvQFdB6IHcwlsrSI61jMFRu8.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jG/jGHmiJ0efPNx91nEHDL8zBy8A_3GAb6TNKCsumIxMrc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jN/jNB7bLvZDDgxEJ_aot5rRrTN522lDkV6rqfjpkHs34o.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jY/jYIoBdBuCwWF0O3ZLZ_EM4w3zGd0YwfjUo1wQ6Hk_jw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jl/jlO2h1zPkO-NwYpMj7YVvbgoFwRaZVi74w-hYlzaq7E.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jx/jxImfB_67hcaN57hzR-IPAEv5ubIsQkfWmfK_CsytAw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kR/kR9ffWXZJsevw9pRleOgcr8pz_b4cX8VqpoVJziGP08.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kb/kbQd6EO8oXIIwwsb4-N_3QzKr0c0gVc70-x8cTHGg7k.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/l0/l0jQk5kPfmG2Um5fNC7YyixCMowwMaCuMBWVoBN4vcc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lH/lHYhwn18H2WfEhHHt2MgLxWFbUSjTZNHCP_z8TzYWhk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lm/lmDtF24A1oDE4KDlhClswZcy-oE971KdFw1_2LsqrYc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lm/lmT75XgXB63O5BEdE3m1rUMJggEyXHS7NEjv_Xcamf8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m2/m2bWBtIVM9G04E_j5Y1PoqBs0JUi0F7wSt_EvaaJ0YA.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m9/m9caH9jq8YVbDxqaDFU2qPGFCA8QzRAbrM-m_N612rk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mA/mAkIP0ixRggjgv0ed1oDSByEf5ldee3HPDs6biQDBG0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mC/mCNBQdFEOLMGILmOJ9Pdrh4Rq8w_ffW-BhFukaDrCDw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mD/mDrzK83Mv14TV-9pCfS9oQcDShVXUn78mCV722HcUh8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mS/mSnLUa5l014-UgliBXGIHIZC1prxoOKofJbsj2sCBRE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mU/mUA-YJ9L2yS2PLx0FZvs9bldWItm_fJ41z2i7eEU9n8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/me/meNq1c2Ux0zYwqV1yg5T058zxFQ7BAyVqzWjbJUQ7-0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ng/ng-yExNasiyVV3qEjC6hdXxyCJcIzKh99lCCgYftkb0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nh/nhXndES7hwXIbsUG1fIqnNOs9H0iOsFH16ruuVjhjT0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nl/nlr8DeeQYRxoxJMWJBxg5TCR5jmL9hudYAGLgeMyZKE.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/np/npScNprHGrz4ZbVC8rgR94Ba8XY5FFB6-Xe7PXWRtr8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/o-/o-aAn-G67pIxAaTUZuMvKFo1CedVzW9074NWHXyv6co.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oA/oA6uToU4uvloVCwdiAKR-A8gH07qUO_Fw71BIFr8oOk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oA/oACljI4tPgKAxbx0yS9MCF9h463HW7iacP0ZVHMtOJQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/o_/o_yQ4ys9tqU8fvuSWSOYuWAaQIPkJoBlYSPV69Lag6w.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oj/ojtV124ntJUZXjJmJDBZQtTlTU1WAFNDP4eAdQ2uYhc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/om/omi8Qenrtp3NJkZWBLrBCYgsKSkb50JHMsGYF0kMsfY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/p7/p7ycjdV_4JeHQfXQz054I1rzH2KG6qFl3RFGjPr8e2I.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pETf6QxnSG7a4CvbVRha9eQ-DG9ZaZjNWBlCjHJ7Mh4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pK/pKBNPsUYs8eweHKaWGgVFQEIpB8R4LZy2gGx82jvZ2A.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pk/pkSt9DiSQNeoWbdCFjKARchGczKSlGnlq2tk4sRHGl0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q9/q9RgoV0PuVwQOOCdlt8z76egko-gThe0NIZRNJ7Vb8g.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qI/qI2emnzqHyl9ZOJxm4FkD25KQXXq4jE2m0hry2BLlvE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qM/qMN4jfYXHrhlIqCS9VjreBGlWhvaZKK1c4aLux4Myb0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qQ/qQHGSJufUk5KZIUb_vR0RUtxfx0ddvyFiFTn3umUXSE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ql/qlSEBPTiGY1jz6bXssCmY--dFFJ_ejUfXZ6wDao8eGE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qp/qpml4e-70MECbnFjH9p2a0GPu_Vs4AMQqUyCwLNb00g.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rE/rEWpl1AjQCLMdTcBJFp2KnwQ2XvWMlZ3fvJpbKcVHFc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rH/rHg5QaB0HvhIvuf3A530JZnAklQ2pIvI63VjwnHGFjE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rj/rjYHromYrCChcwPZfMIpJR5lH1v6AV4rFJ7PSpbmaRs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rk/rkQrgOdLddxqSCHuuxJ2JiioX_mFGyRh9i2bbYmWUuc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ry/rytY_Me7_DHvkuv3QVK6EghzfZGPIFqA3c-TCEYML2k.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/s9/s9SjWUk4UAt4reHYFo6HUET6atAbvuzJx7jFkFzBImk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/t1/t1ExmbhOJG5KqGz-Vy75ivtHe2bJmXlsRBK3-pmJy84.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tE/tEH8M7eQdOfPeisqPSQ4lj-q8XDMFAhWNXkDLWE75c8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tr/trCq7BhEHskeDpAD6mednS1kRw8S3HDqwXgPTdUl9U8.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/u6/u6tVe0hsmtnXDuqgzg5jZvaEmCZFL4sgGePf0or0R6Y.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uW/uWZCdrJIObhls-KkZZvQocyeDM0XbJDae-HmnBBA5J8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uY/uYYzv5Mfd8qRUalE9i8llXbnvhzj-7mN5xO9dHrKPIo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uZ/uZXV7w43ovUs_9uVjX1p9gZQ5Fsw-MRRVTeZMcEx0dM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uc/uckgWS0BcCc6LNAFlF7PElu4xSY8W4syiG8A2HNXQAY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ud/udiGVbD0CReFDUTw71vBR2mgCFU8Q6kaG6UdVL4yT7c.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uk/ukBqlR6stAs77HT4RK2EWYBIImXBMh4nBX-cTGc9KWQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uo/uoDesdHy_rZZLzkR-dDs3fEEjg9NP94xaBMFoDkjB88.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uo/uowxYUAV2RR9N3pfi_QyInIDyJfFdx0t9XbKszTnF2Q.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/v5/v56UY4h_wtUEkSk217QvUGhLmMRwfFxUp7-OGLFpSWc.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vN/vNulvOY1ZW1InlcztpORT8uhYn7jm-czph0IoRG4ziA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vZ/vZIA-1XhCjniB8BUpZbXiAu9iMRvS8S4ZhjhoFD69Jg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/w1/w1Gjto-nSo5bbwhqv__siTCg-BlCBKsDGAfIm3jVOMk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/w3/w3GO9wDvtd1y3U8_5qBRTyyAZMudF_CGwEODvjyMLWw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/w4/w4gJNAGhrqxs0B4MwhyC_ir8k__4On1dFcPc2DpEusY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wE/wEoQYuJaRPsMw9VmtT3GbtfTi7-HZlHSCV6FpH4DCKM.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wQ/wQM_oGR5bpeyVlk8z7JUAdb_quHniOqqG3bdt64sqik.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wZ/wZteNRroGeTHkmRZzWi4DLcbjdtN9mgBEU7plqZdH-g.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7bkbnePbYzVM7ZfNBf8GxyVf7m_ZL3cAjLd2NEhpNs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xC/xCIJq25fTm8VFaoVAx_47ChkOHhdZw5Z756uF8XCbXc.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xD/xDVQfe0cmwEeb-NqJAGwfauOMRqTEjKDMWuHYEgEegI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xF/xFKzR2zX4XI1wVSD6T-YMTXVZRjLmAShKEqk1wsP8kg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xX/xXWr5QK8YRUjPVX4IC-xdCVtgHMRNQp27mYcmlTJtUw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x_/x_xwdioU55LPgMkEBfJmj0kQWn0Fqm7N0eAqV3yxiXM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yZ/yZ8qSfZNzxUtATA9c_-yYW0lP1iVStbrIbOuGbfL9ZE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/z9/z9geVSdQW1rTKOVQu_EELjycarXOA2oXjN13plTezkM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zN/zN-py56vYO3TcsXz8GyNbL13xUdTND-N13rxoSjtdPY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zj/zjypYsPiWG45GTxGIl_C9B31lx8tIUhrs87LPKxiPxU.cache +1 -0
- data/spec/requests/search/search_request_spec.rb +116 -23
- data/spec/requests/shopping/cart_request_spec.rb +1 -1
- data/spec/requests/shopping/product_request_spec.rb +281 -61
- data/{app/views/auth/images/_show.js.erb → spec/requests/work/procedure_request_spec.rb} +0 -0
- data/spec/support/sign_in_support.rb +8 -11
- metadata +589 -12
- data/app/models/auth/concerns/search/autocompleted_concern.rb +0 -139
- data/app/views/auth/images/_form.html.erb +0 -17
- data/app/views/auth/images/edit.html.erb +0 -6
- data/app/views/auth/images/index.html.erb +0 -25
- data/app/views/auth/images/new.html.erb +0 -5
- data/app/views/auth/images/show.html.erb +0 -21
- data/lib/assets/javascripts/data.js +0 -126
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e0e0e81fba4206adc54d59022e756fbdeea1d46
|
4
|
+
data.tar.gz: 2ecb5c4c7d96c64d1a3987f0cbd952e4c8641644
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f81bb12a5ef0b516b59f63067856458e0d67eb7f33824ee3d736c70b8668deab09284f511e955585a4f61e6b572e0a703776705cadedc9638fb5fd8c0aba3ea9
|
7
|
+
data.tar.gz: be8bbf3fd3e795912add7f278860ee4f94bdac9c0100b86896e7f36d9b6e9aed050b70387d17885a458054923e427f96ee2f3a30fbf6dd675c600a488ce8211e
|
@@ -35,3 +35,11 @@ label{
|
|
35
35
|
.parallax-container {
|
36
36
|
height: 200px !important;
|
37
37
|
}
|
38
|
+
|
39
|
+
/* In order to place the tracking correctly */
|
40
|
+
/* for the barcode scanner overlay, from qagga */
|
41
|
+
canvas.drawing, canvas.drawingBuffer {
|
42
|
+
position: absolute;
|
43
|
+
left: 0;
|
44
|
+
top: 0;
|
45
|
+
}
|
@@ -144,6 +144,9 @@ class Auth::AuthenticatedController < Auth::ApplicationController
|
|
144
144
|
format.json do
|
145
145
|
render :nothing => true, :status => 204
|
146
146
|
end
|
147
|
+
format.js do
|
148
|
+
render 'destroy'
|
149
|
+
end
|
147
150
|
else
|
148
151
|
format.json do
|
149
152
|
render json: {
|
@@ -151,6 +154,9 @@ class Auth::AuthenticatedController < Auth::ApplicationController
|
|
151
154
|
errors: @model.errors
|
152
155
|
}.to_json
|
153
156
|
end
|
157
|
+
format.js do
|
158
|
+
render 'destroy'
|
159
|
+
end
|
154
160
|
end
|
155
161
|
end
|
156
162
|
end
|
@@ -37,6 +37,7 @@ module Auth::Concerns::Shopping::CartControllerConcern
|
|
37
37
|
|
38
38
|
@auth_shopping_cart.save
|
39
39
|
@auth_shopping_cart.prepare_cart
|
40
|
+
@auth_shopping_cart.process_items
|
40
41
|
respond_with @auth_shopping_cart
|
41
42
|
end
|
42
43
|
|
@@ -48,11 +49,9 @@ module Auth::Concerns::Shopping::CartControllerConcern
|
|
48
49
|
|
49
50
|
@auth_shopping_cart = add_owner_and_signed_in_resource(@auth_shopping_cart)
|
50
51
|
|
51
|
-
puts 'the auth shopping cart signed in resource is:'
|
52
|
-
puts @auth_shopping_cart.signed_in_resource
|
53
|
-
|
54
52
|
@auth_shopping_cart.save
|
55
53
|
@auth_shopping_cart.prepare_cart
|
54
|
+
@auth_shopping_cart.process_items
|
56
55
|
respond_with @auth_shopping_cart
|
57
56
|
end
|
58
57
|
|
@@ -67,7 +66,11 @@ module Auth::Concerns::Shopping::CartControllerConcern
|
|
67
66
|
## returns all the carts of the user.
|
68
67
|
## basically all his orders.
|
69
68
|
def index
|
70
|
-
|
69
|
+
query_clause = {:resource_id => lookup_resource.id.to_s}
|
70
|
+
query_clause.merge({:personality_id => @auth_shopping_cart_params[:personality_id]}) if @auth_shopping_cart_params[:personality_id]
|
71
|
+
@auth_shopping_carts = @auth_shopping_cart_class.where(query_clause)
|
72
|
+
@auth_shopping_carts = @auth_shopping_carts.to_a
|
73
|
+
@auth_shopping_carts.map{|c| c.prepare_cart}
|
71
74
|
respond_with @auth_shopping_carts
|
72
75
|
end
|
73
76
|
|
@@ -97,9 +100,9 @@ module Auth::Concerns::Shopping::CartControllerConcern
|
|
97
100
|
|
98
101
|
private
|
99
102
|
|
100
|
-
##
|
103
|
+
## and for add owner resource also , modify right now
|
101
104
|
def permitted_params
|
102
|
-
params.permit({cart: [:personality_id, :place_id, :discount_id,:name, :notes, {:add_cart_item_ids => []},{:remove_cart_item_ids => []}]},:id)
|
105
|
+
params.permit({cart: [:payment_stage, :resource_id,:personality_id, :place_id, :discount_id,:name, :notes, {:add_cart_item_ids => []},{:remove_cart_item_ids => []}]},:id)
|
103
106
|
end
|
104
107
|
|
105
108
|
end
|
@@ -40,7 +40,7 @@ module Auth::Concerns::Shopping::CartItemControllerConcern
|
|
40
40
|
|
41
41
|
check_for_create(@auth_shopping_cart_item)
|
42
42
|
@auth_shopping_cart_item = add_owner_and_signed_in_resource(@auth_shopping_cart_item)
|
43
|
-
|
43
|
+
|
44
44
|
@auth_shopping_cart_item.save
|
45
45
|
|
46
46
|
respond_with @auth_shopping_cart_item
|
@@ -52,7 +52,7 @@ module Auth::Concerns::Shopping::CartItemControllerConcern
|
|
52
52
|
@auth_shopping_cart_item.assign_attributes(@auth_shopping_cart_item_params)
|
53
53
|
@auth_shopping_cart_item = add_owner_and_signed_in_resource(@auth_shopping_cart_item)
|
54
54
|
@auth_shopping_cart_item.save
|
55
|
-
|
55
|
+
|
56
56
|
respond_with @auth_shopping_cart_item
|
57
57
|
end
|
58
58
|
|
@@ -89,11 +89,10 @@ module Auth::Concerns::Shopping::CartItemControllerConcern
|
|
89
89
|
##
|
90
90
|
##
|
91
91
|
############################################################
|
92
|
-
|
93
|
-
|
94
|
-
def create_package_items
|
92
|
+
|
93
|
+
def create_many_items
|
95
94
|
cart_items = []
|
96
|
-
params[:product_ids].each do |product_id|
|
95
|
+
params[:cart_item][:product_ids].each do |product_id|
|
97
96
|
cart_item = Auth.configuration.cart_item_class.constantize.new(product_id: product_id)
|
98
97
|
cart_item.resource_id = lookup_resource.id.to_s
|
99
98
|
cart_item.resource_class = lookup_resource.class.name.to_s
|
@@ -162,6 +161,8 @@ module Auth::Concerns::Shopping::CartItemControllerConcern
|
|
162
161
|
|
163
162
|
elsif action_name.to_s == "create_multiple"
|
164
163
|
params.permit({discount: [:id, {:product_ids => []}]})
|
164
|
+
elsif action_name.to_s == "create_many_items"
|
165
|
+
params.permit({:cart_item => [:product_ids]})
|
165
166
|
else
|
166
167
|
|
167
168
|
params.permit({cart_item: [:product_id,:discount_code,:quantity]},:id)
|
@@ -28,8 +28,8 @@ module Auth::Concerns::Shopping::PaymentControllerConcern
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def new
|
31
|
-
|
32
|
-
|
31
|
+
# puts "these are payment attributes"
|
32
|
+
# puts @auth_shopping_payment.attributes.to_s
|
33
33
|
@auth_shopping_payment = add_owner_and_signed_in_resource(@auth_shopping_payment)
|
34
34
|
@auth_shopping_payment.set_cart(@auth_shopping_payment.cart_id)
|
35
35
|
end
|
@@ -45,9 +45,9 @@ module Auth::Concerns::Shopping::PersonalityControllerConcern
|
|
45
45
|
respond_with @auth_shopping_personality
|
46
46
|
end
|
47
47
|
|
48
|
-
##
|
49
|
-
##
|
50
|
-
##
|
48
|
+
## will have to have this lookup resource part here.
|
49
|
+
## what if we want to create items for the user
|
50
|
+
##
|
51
51
|
def index
|
52
52
|
@auth_shopping_personalities = @auth_shopping_personality_class.find_personalities({:resource => lookup_resource}).page 1
|
53
53
|
respond_with @auth_shopping_personalities
|
@@ -81,7 +81,7 @@ module Auth::Concerns::Shopping::PersonalityControllerConcern
|
|
81
81
|
## this permitted params is overridden in the dummy app, and as a result throws unpermitted parameters for the daughter app parameters, even though they are subsequently permitted, since super is called first.
|
82
82
|
def permitted_params
|
83
83
|
|
84
|
-
params.permit({personality: [:date_of_birth, :fullname, :sex]},:id, :query_string)
|
84
|
+
params.permit({personality: [:date_of_birth, :fullname, :sex, :referred_by, :referrer_contact_number]},:id, :query_string)
|
85
85
|
|
86
86
|
end
|
87
87
|
|
@@ -9,10 +9,12 @@ module Auth::Concerns::Shopping::ProductControllerConcern
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def initialize_vars
|
12
|
-
puts "came to initialize vars"
|
12
|
+
#puts "came to initialize vars"
|
13
13
|
instantiate_shopping_classes
|
14
14
|
@auth_shopping_product_params = permitted_params.fetch(:product,{})
|
15
|
-
puts "
|
15
|
+
#puts "product params:"
|
16
|
+
#puts @auth_shopping_product_params.to_s
|
17
|
+
#puts "current signed in resource: #{current_signed_in_resource}"
|
16
18
|
@auth_shopping_product = params[:id] ? @auth_shopping_product_class.find_self(params[:id],current_signed_in_resource) : @auth_shopping_product_class.new(@auth_shopping_product_params)
|
17
19
|
end
|
18
20
|
|
@@ -22,7 +24,6 @@ module Auth::Concerns::Shopping::ProductControllerConcern
|
|
22
24
|
@auth_shopping_product = add_owner_and_signed_in_resource(@auth_shopping_product,{:owner_is_current_resource => true})
|
23
25
|
@auth_shopping_product.save
|
24
26
|
respond_with @auth_shopping_product
|
25
|
-
|
26
27
|
end
|
27
28
|
|
28
29
|
def update
|
@@ -30,6 +31,7 @@ module Auth::Concerns::Shopping::ProductControllerConcern
|
|
30
31
|
@auth_shopping_product = add_owner_and_signed_in_resource(@auth_shopping_product,{:owner_is_current_resource => true})
|
31
32
|
@auth_shopping_product.assign_attributes(@auth_shopping_product_params)
|
32
33
|
@auth_shopping_product.save
|
34
|
+
puts @auth_shopping_product.errors.full_messages
|
33
35
|
respond_with @auth_shopping_product
|
34
36
|
|
35
37
|
end
|
@@ -103,15 +105,14 @@ module Auth::Concerns::Shopping::ProductControllerConcern
|
|
103
105
|
|
104
106
|
end
|
105
107
|
|
106
|
-
|
107
|
-
## so let me modify that part first.
|
108
|
+
|
108
109
|
def permitted_params
|
109
|
-
|
110
|
+
bar_code_params = [:name,:price,:bundle_name,:create_from_product_id] + Auth::Shopping::BarCode.allow_params
|
111
|
+
params.permit({:product => bar_code_params},:id)
|
110
112
|
end
|
111
113
|
|
112
|
-
|
113
|
-
|
114
|
-
|
114
|
+
## so give a button called create product from this product
|
115
|
+
## it should be a partial with a form.
|
115
116
|
|
116
117
|
end
|
117
118
|
|
@@ -122,7 +122,7 @@ module Auth::Concerns::TokenConcern
|
|
122
122
|
proxy_resource_id = params[:proxy_resource_id] || session[:proxy_resource_id]
|
123
123
|
proxy_resource_class = params[:proxy_resource_class] || session[:proxy_resource_class]
|
124
124
|
|
125
|
-
|
125
|
+
|
126
126
|
proxy_resource_id = current_signed_in_resource.id.to_s if (current_signed_in_resource.is_admin? && proxy_resource_id.nil?)
|
127
127
|
|
128
128
|
proxy_resource_class = current_signed_in_resource.class.to_s if (current_signed_in_resource.is_admin? && proxy_resource_class.nil?)
|
@@ -183,6 +183,7 @@ module Auth::Concerns::TokenConcern
|
|
183
183
|
|
184
184
|
## this is used as a before_filter.
|
185
185
|
def is_admin_user
|
186
|
+
not_found("not authorized") unless current_signed_in_resource
|
186
187
|
not_found("You don't have sufficient privileges to complete that action") if !current_signed_in_resource.is_admin?
|
187
188
|
end
|
188
189
|
|
@@ -17,6 +17,7 @@ class Auth::ProfilesController < Auth::ApplicationController
|
|
17
17
|
@profile_resource = nil
|
18
18
|
@all_params = permitted_params.deep_symbolize_keys
|
19
19
|
|
20
|
+
## okay let's see how to switch to that user.
|
20
21
|
|
21
22
|
if collection = @all_params[:resource]
|
22
23
|
|
@@ -36,6 +37,7 @@ class Auth::ProfilesController < Auth::ApplicationController
|
|
36
37
|
## this method needs token authentication, or for the user to be authenticated.
|
37
38
|
## this method also needs an :id, hence the profile_resource is returned.
|
38
39
|
## so what if i sign in as one user,and send in the id of another user?, no because we use the find_resource method, which also considers the current_signed_in_Resource.
|
40
|
+
## now suppose we need to change something, so in show profiles, we will give this method, in the view, to update a signature
|
39
41
|
def show
|
40
42
|
@profile_resource
|
41
43
|
end
|
@@ -94,11 +96,14 @@ class Auth::ProfilesController < Auth::ApplicationController
|
|
94
96
|
## params[:proxy_resource_id] and params[:proxy_resource_class]
|
95
97
|
def set_proxy_resource
|
96
98
|
not_found("that user doesn't exist") unless @profile_resource
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
99
|
+
if params[:unset_proxy]
|
100
|
+
## this unsets the proxy user.
|
101
|
+
session[:proxy_resource_id] = nil
|
102
|
+
session[:proxy_resource_class] = nil
|
103
|
+
else
|
104
|
+
session[:proxy_resource_id] = @profile_resource.id.to_s
|
105
|
+
session[:proxy_resource_class] = @profile_resource.class.name.to_s
|
106
|
+
end
|
102
107
|
end
|
103
108
|
|
104
109
|
|
@@ -143,7 +148,7 @@ class Auth::ProfilesController < Auth::ApplicationController
|
|
143
148
|
end
|
144
149
|
## resource has to be passed as well.
|
145
150
|
## it is a plural, downcase like "users"
|
146
|
-
filters << [:resource,:api_key,:current_app_id,:id]
|
151
|
+
filters << [:resource,:api_key,:current_app_id,:id,:unset_proxy]
|
147
152
|
params.permit(filters)
|
148
153
|
end
|
149
154
|
|
@@ -0,0 +1,109 @@
|
|
1
|
+
class Auth::Shopping::BarCodesController < Auth::Shopping::ShoppingController
|
2
|
+
|
3
|
+
## for barcodes only SHOW and INDEX and NEW routes are defined.
|
4
|
+
## only these actions need an authenticated user to be present for them to be executed.
|
5
|
+
## NEW CAN BE ACCESSED BY ANY USER ,NOT NECESSARILY AN AUTHENTICATED USER OR ANYTHING.
|
6
|
+
CONDITIONS_FOR_TOKEN_AUTH = [:index,:show]
|
7
|
+
TCONDITIONS = {:only => CONDITIONS_FOR_TOKEN_AUTH}
|
8
|
+
##this ensures api access to this controller.
|
9
|
+
include Auth::Concerns::DeviseConcern
|
10
|
+
include Auth::Concerns::TokenConcern
|
11
|
+
before_filter :do_before_request , TCONDITIONS
|
12
|
+
before_filter :is_admin_user, {:only => [:index]}
|
13
|
+
|
14
|
+
def new
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
def index
|
19
|
+
page_number = params[:page_number].nil? ? 1 : params[:page_number]
|
20
|
+
page_size = params[:page_size].nil? ? 10 : params[:page_size]
|
21
|
+
## max page size.
|
22
|
+
page_size = 50 if page_size > 50
|
23
|
+
|
24
|
+
skips = page_size * (page_num - 1)
|
25
|
+
|
26
|
+
@bar_codes = Auth::Shopping::BarCode.all.skip(skips).limit(page_size)
|
27
|
+
|
28
|
+
|
29
|
+
respond_to do |format|
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
|
+
## then you pass in a parameter like that.
|
37
|
+
## if force_show is true, then it will
|
38
|
+
def show
|
39
|
+
|
40
|
+
begin
|
41
|
+
@bar_code = Auth::Shopping::BarCode.find(params[:id])
|
42
|
+
@bar_code.assign_attributes(get_model_params)
|
43
|
+
rescue Mongoid::Errors::DocumentNotFound
|
44
|
+
|
45
|
+
@bar_code = Auth::Shopping::BarCode.new
|
46
|
+
@bar_code.errors.add(:_id,"not found")
|
47
|
+
end
|
48
|
+
|
49
|
+
@bar_code.set_assigned_object if (@bar_code.errors.full_messages.empty?)
|
50
|
+
|
51
|
+
respond_to do |format|
|
52
|
+
format.js do
|
53
|
+
## render a partial which will deal with all these eventualities.
|
54
|
+
render :partial => "show"
|
55
|
+
end
|
56
|
+
format.html do
|
57
|
+
if get_model_params[:force_show]
|
58
|
+
render 'auth/shopping/bar_codes/show'
|
59
|
+
else
|
60
|
+
## now let me first make a show view.
|
61
|
+
if @bar_code.errors.empty?
|
62
|
+
unless @bar_code.assigned_to_object.primary_link.blank?
|
63
|
+
|
64
|
+
redirect_to @bar_code.assigned_to_object.primary_link
|
65
|
+
else
|
66
|
+
@bar_code.errors.add(:_id,"no primary link defined on the assigned object")
|
67
|
+
render 'auth/shopping/bar_codes/show'
|
68
|
+
end
|
69
|
+
else
|
70
|
+
render 'auth/shopping/bar_codes/show'
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
format.json do
|
75
|
+
|
76
|
+
if get_model_params[:force_show]
|
77
|
+
|
78
|
+
render :json => {bar_code: @bar_code}, status: 200
|
79
|
+
else
|
80
|
+
|
81
|
+
if @bar_code.errors.empty?
|
82
|
+
if @bar_code.assigned_to_object
|
83
|
+
unless @bar_code.assigned_to_object.primary_link.blank?
|
84
|
+
## it should have its primary link.
|
85
|
+
render :json => {redirect_to: @bar_code.assigned_to_object.primary_link}
|
86
|
+
else
|
87
|
+
@bar_code.errors.add(:_id,"no primary link defined on the assigned object")
|
88
|
+
render :json => {bar_code: @bar_code, errors: @bar_code.errors}, status: 422
|
89
|
+
end
|
90
|
+
else
|
91
|
+
render :json => {bar_code: @bar_code}, status: 200
|
92
|
+
end
|
93
|
+
else
|
94
|
+
render :json => {bar_code: @bar_code, errors: @bar_code.errors}, status: 422
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
def permitted_params
|
102
|
+
params.permit({bar_code: [:bar_code_tag,:force_show,:go_to_next_step]}, :id, :page_number, :page_size)
|
103
|
+
end
|
104
|
+
|
105
|
+
def get_model_params
|
106
|
+
permitted_params.fetch(:bar_code,{})
|
107
|
+
end
|
108
|
+
|
109
|
+
end
|
data/app/jobs/otp_job.rb
CHANGED
@@ -7,29 +7,41 @@ module Auth::Concerns::EsConcern
|
|
7
7
|
end
|
8
8
|
|
9
9
|
included do
|
10
|
-
|
10
|
+
include Mongoid::Elasticsearch
|
11
|
+
###########################################################
|
12
|
+
##
|
13
|
+
## PATCH BECAUSE ES 6.0 REMOVED MORE THAN ONE MAPPING TYPE PER INDEX, AND WE CANT HAVE SO MANY INDICES.
|
14
|
+
##
|
15
|
+
## the document type becomes the name of the collection singularized.
|
16
|
+
## this is used inside the mongoid-elasticsearch gem , instead of the conventional _type, to load the results back from es.
|
17
|
+
## the index_type is also set to this
|
18
|
+
## okay let me get this out of the way
|
19
|
+
## have to pass in the index type.
|
20
|
+
## we keep that as the same all throughout.
|
21
|
+
###########################################################
|
11
22
|
## the page to which the user will be taken if they click on the suggestion.
|
12
23
|
## REQUIRED
|
13
24
|
field :primary_link, type: String
|
14
25
|
|
15
|
-
|
16
26
|
## key -> display name
|
17
27
|
## value -> hash
|
18
28
|
## value_key -> :url -> the url
|
19
29
|
## value_key -> :data -> hash of optional data-attributes.
|
20
30
|
field :secondary_links, type: Hash, default: {}
|
21
31
|
|
22
|
-
|
23
32
|
## now let us configure that bitch to show this bitch.
|
24
33
|
## REQUIRED
|
25
34
|
## array of tags on which to do the autocomplete
|
26
35
|
field :tags, type: Array, default: []
|
27
36
|
|
37
|
+
## masked tags
|
38
|
+
field :masked_tags, type: Array, default: []
|
39
|
+
|
28
40
|
## OPTIONAL
|
29
41
|
## an optional description that will be shown below the result in the autocomplete.
|
30
42
|
field :autocomplete_description, type: String
|
31
43
|
|
32
|
-
AUTOCOMPLETE_INDEX_SETTINGS
|
44
|
+
AUTOCOMPLETE_INDEX_SETTINGS ||=
|
33
45
|
{
|
34
46
|
analysis: {
|
35
47
|
filter: {
|
@@ -67,7 +79,7 @@ module Auth::Concerns::EsConcern
|
|
67
79
|
}
|
68
80
|
}
|
69
81
|
|
70
|
-
AUTOCOMPLETE_INDEX_MAPPINGS
|
82
|
+
AUTOCOMPLETE_INDEX_MAPPINGS ||=
|
71
83
|
{
|
72
84
|
properties: {
|
73
85
|
tags: {
|
@@ -80,29 +92,86 @@ module Auth::Concerns::EsConcern
|
|
80
92
|
},
|
81
93
|
resource_id: {
|
82
94
|
type: "keyword"
|
95
|
+
},
|
96
|
+
document_type: {
|
97
|
+
type: "keyword"
|
83
98
|
}
|
84
99
|
}
|
85
100
|
}
|
86
101
|
|
87
|
-
|
102
|
+
###########################################################
|
103
|
+
##
|
104
|
+
##
|
105
|
+
## CONSTANTS FOR SECONDARY LINKS, TO BE USED IN THE IMPLEMENTING MODELS.
|
106
|
+
##
|
107
|
+
##
|
108
|
+
###########################################################
|
109
|
+
|
110
|
+
NEW ||= "Add New"
|
111
|
+
EDIT ||= "Edit"
|
112
|
+
SEE_ALL ||= "See All"
|
113
|
+
SEE_RELATED ||= "See Related"
|
114
|
+
|
115
|
+
###########################################################
|
116
|
+
##
|
117
|
+
## the primary link, masked tags and tags must all three be prsent, before the document can be saved.
|
118
|
+
##
|
119
|
+
###########################################################
|
120
|
+
validates_presence_of :primary_link
|
121
|
+
validates_presence_of :tags
|
122
|
+
|
123
|
+
before_validation do |document|
|
88
124
|
document.set_primary_link
|
89
125
|
document.set_secondary_links
|
90
126
|
document.set_autocomplete_description
|
91
127
|
document.set_autocomplete_tags
|
128
|
+
document.add_attributes_for_tags
|
92
129
|
end
|
93
130
|
|
131
|
+
## unless the document is embedded, it will be added to the index after save
|
132
|
+
## if the document is embedded, it can only be added to the es_index, through the controller create/update actions.
|
133
|
+
after_save do |document|
|
134
|
+
unless document.class.embedded?
|
135
|
+
document.es_update
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
field :public, type:String, default: "no"
|
94
140
|
|
141
|
+
def es_concern_attributes
|
142
|
+
["tags","autocomplete_description"]
|
143
|
+
end
|
95
144
|
|
96
|
-
field
|
145
|
+
## the tags field should be cleared and reassmebled
|
146
|
+
## its that simple.
|
97
147
|
|
148
|
+
def attributes_for_tags
|
149
|
+
[]
|
150
|
+
end
|
98
151
|
|
152
|
+
## this is all that is needed to add these tags.
|
153
|
+
def add_attributes_for_tags
|
154
|
+
self.attributes_for_tags.each do |k|
|
155
|
+
self.tags << self.send("#{k}").to_s
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
|
160
|
+
## so lets see if this even works.
|
99
161
|
def self.create_es_index(definition)
|
100
162
|
## check the presence of a resource_id and a resource_class
|
101
163
|
#raise "Please define a resource_id field on this model to use it with elasticsearch, this field should be a string" unless self.respond_to? :resource_id
|
102
164
|
#raise "Please define a resource_class field on this model as well." unless self.respond_to? :resource_class
|
103
165
|
definition ||= {}
|
166
|
+
## so we are going to overwrite the document here
|
167
|
+
## and we are adding a document_type.
|
168
|
+
##
|
169
|
+
#definition.merge!({:index_type => "pathofast_document"})
|
170
|
+
## now let me create only one index
|
171
|
+
## the problem is that does it somehow help to know what should be the type
|
172
|
+
## will have to modify the gem to set the default type as document or something
|
173
|
+
## then we can add the document type internally.
|
104
174
|
if Auth.configuration.use_es == true
|
105
|
-
include Mongoid::Elasticsearch
|
106
175
|
elasticsearch! (
|
107
176
|
definition
|
108
177
|
)
|
@@ -110,16 +179,19 @@ module Auth::Concerns::EsConcern
|
|
110
179
|
|
111
180
|
end
|
112
181
|
|
182
|
+
=begin
|
183
|
+
def as_indexed_json(options={})
|
184
|
+
{
|
185
|
+
tags: self.tags,
|
186
|
+
public: self.public,
|
187
|
+
document_type: Auth::OmniAuth::Path.pathify(self.class.name.to_s),
|
188
|
+
resource_id: self.resource_id,
|
189
|
+
resource_class: self.resource_class
|
190
|
+
}
|
191
|
+
end
|
192
|
+
=end
|
113
193
|
end
|
114
194
|
|
115
|
-
def as_indexed_json(options={})
|
116
|
-
{
|
117
|
-
tags: self.tags,
|
118
|
-
public: self.public,
|
119
|
-
resource_id: self.resource_id,
|
120
|
-
resource_class: self.resource_class
|
121
|
-
}
|
122
|
-
end
|
123
195
|
|
124
196
|
|
125
197
|
def set_autocomplete_tags
|
@@ -146,13 +218,18 @@ module Auth::Concerns::EsConcern
|
|
146
218
|
|
147
219
|
human_readable = self.created_at.strftime("%B %-d %Y")
|
148
220
|
self.tags << human_readable unless self.tags.include? human_readable
|
221
|
+
self.masked_tags << human_readable unless self.tags.include? human_readable
|
222
|
+
|
149
223
|
end
|
150
224
|
|
151
225
|
def clear_autocomplete_data
|
152
226
|
self.primary_link = nil
|
153
227
|
self.secondary_links.clear
|
154
228
|
self.autocomplete_description = nil
|
229
|
+
self.masked_tags.clear
|
155
230
|
self.tags.clear
|
156
231
|
end
|
157
232
|
|
233
|
+
|
234
|
+
|
158
235
|
end
|