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.
Files changed (370) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/auth/overrides.scss +8 -0
  3. data/app/controllers/auth/authenticated_controller.rb +6 -0
  4. data/app/controllers/auth/concerns/shopping/cart_controller_concern.rb +9 -6
  5. data/app/controllers/auth/concerns/shopping/cart_item_controller_concern.rb +7 -6
  6. data/app/controllers/auth/concerns/shopping/payment_controller_concern.rb +2 -2
  7. data/app/controllers/auth/concerns/shopping/personality_controller_concern.rb +4 -4
  8. data/app/controllers/auth/concerns/shopping/product_controller_concern.rb +10 -9
  9. data/app/controllers/auth/concerns/token_concern.rb +2 -1
  10. data/app/controllers/auth/images_controller.rb +1 -1
  11. data/app/controllers/auth/profiles_controller.rb +11 -6
  12. data/app/controllers/auth/search_controller.rb +3 -0
  13. data/app/controllers/auth/shopping/bar_codes_controller.rb +109 -0
  14. data/app/jobs/otp_job.rb +1 -1
  15. data/app/models/auth/concerns/es_concern.rb +93 -16
  16. data/app/models/auth/concerns/shopping/bar_code_concern.rb +35 -9
  17. data/app/models/auth/concerns/shopping/cart_concern.rb +107 -10
  18. data/app/models/auth/concerns/shopping/cart_item_concern.rb +82 -7
  19. data/app/models/auth/concerns/shopping/discount_concern.rb +32 -1
  20. data/app/models/auth/concerns/shopping/lifecycle_of_state_concern.txt +26 -0
  21. data/app/models/auth/concerns/shopping/pay_u_money_concern.rb +4 -2
  22. data/app/models/auth/concerns/shopping/payment_concern.rb +19 -5
  23. data/app/models/auth/concerns/shopping/personality_concern.rb +61 -6
  24. data/app/models/auth/concerns/shopping/place_concern.rb +54 -1
  25. data/app/models/auth/concerns/shopping/product_concern.rb +143 -8
  26. data/app/models/auth/concerns/user_concern.rb +83 -1
  27. data/app/models/auth/image.rb +16 -5
  28. data/app/models/auth/shopping/bar_code.rb +98 -47
  29. data/app/models/auth/shopping/cart_item.rb +3 -0
  30. data/app/models/auth/shopping/personality.rb +3 -2
  31. data/app/models/auth/shopping/place.rb +3 -0
  32. data/app/models/auth/shopping/product.rb +3 -2
  33. data/app/views/auth/admin_create_users/search_results/_add_new_user.html.erb +3 -0
  34. data/app/views/auth/admin_create_users/search_results/_manage_user.html.erb +5 -0
  35. data/app/views/auth/images/_show.html.erb +16 -0
  36. data/app/views/auth/images/destroy.js.erb +1 -0
  37. data/app/views/auth/images/show.js.erb +1 -0
  38. data/app/views/auth/profiles/_admin_profile.html.erb +2 -0
  39. data/app/views/auth/profiles/_proxy_resource.html.erb +0 -5
  40. data/app/views/auth/profiles/search_results/_switch_to_user.html.erb +16 -0
  41. data/app/views/auth/profiles/set_proxy_resource.js.erb +6 -1
  42. data/app/views/auth/profiles/show.html.erb +14 -5
  43. data/app/views/auth/search/_search_result.html.erb +10 -4
  44. data/app/views/auth/search/authenticated_user_search.json +2 -2
  45. data/app/views/auth/search/authenticated_user_search_with_masking.json +15 -0
  46. data/app/views/auth/shopping/bar_codes/_barcode_input_field.html.erb +16 -0
  47. data/app/views/auth/shopping/bar_codes/_get_object_button.html.erb +21 -0
  48. data/app/views/auth/shopping/bar_codes/_scan.html.erb +12 -0
  49. data/app/views/auth/shopping/bar_codes/_show.html.erb +23 -0
  50. data/app/views/auth/shopping/bar_codes/_show.js.erb +16 -0
  51. data/app/views/auth/shopping/bar_codes/new.html.erb +3 -0
  52. data/app/views/auth/shopping/bar_codes/show.html.erb +1 -0
  53. data/app/views/auth/shopping/cart_items/search_results/_remove_item_from_cart.html.erb +7 -0
  54. data/app/views/auth/shopping/cart_items/search_results/_remove_item_from_wish_list.html.erb +3 -0
  55. data/app/views/auth/shopping/products/_create_from_product.html.erb +20 -0
  56. data/app/views/auth/shopping/products/search_results/_add_product.html.erb +3 -0
  57. data/app/views/auth/shopping/products/search_results/_edit_product.html.erb +3 -0
  58. data/app/views/layouts/auth/navbar/_acting_for_user.html.erb +19 -0
  59. data/config/initializers/devise.rb +1 -1
  60. data/config/initializers/time_hash.rb +2 -2
  61. data/lib/assets/javascripts/bar_code.js +70 -18
  62. data/lib/assets/javascripts/leanModal.js +3 -2
  63. data/lib/assets/javascripts/search.js +5 -2
  64. data/lib/assets/javascripts/spinner.js +1 -1
  65. data/lib/auth/engine.rb +20 -0
  66. data/lib/auth/rails/routes.rb +7 -11
  67. data/lib/auth/search/main.rb +10 -2
  68. data/lib/auth/version.rb +1 -1
  69. data/spec/dummy/app/assets/time_hashes.json +1 -1
  70. data/spec/dummy/app/models/shopping/cart.rb +9 -0
  71. data/spec/dummy/app/models/shopping/cart_item.rb +9 -11
  72. data/spec/dummy/app/models/shopping/personality.rb +9 -0
  73. data/spec/dummy/app/models/shopping/place.rb +9 -0
  74. data/spec/dummy/app/models/shopping/product.rb +9 -6
  75. data/spec/dummy/app/models/user.rb +10 -0
  76. data/spec/dummy/app/views/layouts/application.html.erb +1 -1
  77. data/spec/dummy/config/initializers/preinitializer.rb +1 -1
  78. data/spec/dummy/log/development.log +183 -0
  79. data/spec/dummy/log/test.log +114543 -0
  80. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-0/-0FH84k5qbcOcO7q6dItcLRdSEnxx6MiCDvyxJsvkQo.cache +1 -0
  81. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-7/-7DKhsuoLBdupVXPF_k7zNtDr__mo_87te9AIqFW_K4.cache +2 -0
  82. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-J/-JN5Wc6kQppvZw6Tgx5MfEy_WVMIgeq4CqCqLFtnDlU.cache +1 -0
  83. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-J/-JvQJpqOMZZ5p6yK32KC_te1l8JlmG7K5OWX8wSl1M4.cache +0 -0
  84. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-c/-cxwoSAB71cYtGi2Mt0eCvTkBl4YiVY3TN2lJVwRMTc.cache +1 -0
  85. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-k/-kQ2EH8AeUK01fXF7oW_ag1eKQEaOOGbaIJ-PFSk5TE.cache +0 -0
  86. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-z/-zgfq4oAUXx-FshRXKVd4szl6sl6t-SA7rUDj6ngwfs.cache +1 -0
  87. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/01/01RN47Wk75g4hWKB9KjAujvSZjX9FJvhcipI6JenujM.cache +1 -0
  88. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0Y/0YeFekbBzPfCnVzsje8CrWY89XR2shtu1ke8Nu6vSzo.cache +0 -0
  89. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/16/16tPLrXtFSyIZDbcNkP-IpJFvN3ulDVpJYnz0b3g7NI.cache +0 -0
  90. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/19/19gI3__zyZzQ7LQeozis7e1AzgNM8GZ4hDrg_8UQaZ4.cache +0 -0
  91. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1F/1FGPi9nwerl2xqQzN3MLkyKSPzpbnrhRQ9VinGBcs0E.cache +3 -0
  92. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1F/1FvBFD3jV2Df9U2Y7eaZ0lQTJJ18_EadeZ2WxB93Mtg.cache +1 -0
  93. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1Z/1Z79eTYT4t733p8ELTIx1wetBTnyxNNk3wIMFXloO1M.cache +2 -0
  94. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1_/1_mWw6lknf4ASpsYczaGoa4GLpZKs2yL_0--tv2-Fi4.cache +0 -0
  95. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2d/2dLMthgCTTaOlqI-hExDdUY_0ah5imocMIky_TQf7Bo.cache +1 -0
  96. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3X/3XDiUnSRh49k1EFokrHBk_3Hs_AHpF6vyA4tAUQj5xE.cache +3 -0
  97. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3X/3XZhRWfxpEESCszP6I6YCRrMrMztS8yFpH8TwBtnsYs.cache +1 -0
  98. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3u/3uyLmt6fQCxieft1OlSxDMqA6BdmqwG787MpgfvjrNE.cache +1 -0
  99. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4P/4PCTIkeJVNId70b3SwoBz4BnDvdnqQJvU2FbROHRbVQ.cache +1 -0
  100. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4f/4fs1GL0KugXi1v9nB4hlhhUZxpSoynpykzOy0UhnRy8.cache +1 -0
  101. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4p/4p3xQC4pcOyDno3fhpxSy4goO0uuZpW-4c3ZnQU0k_Y.cache +1 -0
  102. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4s/4sckZ0TedyVm0i70xpE5IVpFE4hrt_WmBNNlC-qLM2M.cache +3 -0
  103. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/51/51f1FDIFZ2SGhyQ6WuNdRelZQceJIb_5LDOSiQ7QkyU.cache +0 -0
  104. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5H/5HKrnfHvwweeybIfbvntPxgdhl3bvFVxtBobE0wNr9M.cache +1 -0
  105. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5_/5_rNjsUQIG1kvx0Ea14xFiVUNZw-fQiCKFADtCUISl8.cache +4 -0
  106. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5h/5hRRBO2bk0pdN92ehqH4rgT-gyufccm9SzEajBx4j4w.cache +0 -0
  107. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5q/5qnoYyiLapR2HyyDv7CTXiMk4oWDFmYvvA6pRbM0Jjg.cache +1 -0
  108. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5u/5u7YTIbDiB_1yihXZcIpRTigKdITuUBCtCXjdeDLbQQ.cache +1 -0
  109. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6N/6NWh4Lq6KngobEaZUmcIXQ7aRF8Epb-t04JDYzkKBnY.cache +1 -0
  110. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6R/6RgJ9I_dgmxqLtTOcWY9RnQ0hbm2bpeHVIPRTf0lStE.cache +1 -0
  111. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6q/6qUF4H480zGnNqgMSfnXgiUXAeNMbUuAgYbXyb4iUzg.cache +1 -0
  112. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6s/6sn6iDWCCFqtxL5QB58dZOYcC3wxXaVAxLRbj0ZHJss.cache +3 -0
  113. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7e/7em68JtxqHgoeWlKhWFwQulaZjC7p4CS6wlJzkz9GQ4.cache +1 -0
  114. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7p/7p1SrKUS7nrrFrWkVlPMIFF9H9tmozMLbvKwdZSuUYI.cache +3 -0
  115. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/88/88cOdcip_WVCkMmcVXscvLrCOkUZY6UN78kDZ7WwU9M.cache +0 -0
  116. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8G/8GtUCAGcgJ4teJtXj5Ernjc2oR146ipR58e9D8SmD0o.cache +1 -0
  117. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8O/8OJIxJ5B_M1zJumiXlmOnF5sM0KAY2rDg65zAADX8h8.cache +1 -0
  118. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8O/8OQefGugbgbcTfJDnbbciNA-03xrjL_ivQZaTx6jxYA.cache +1 -0
  119. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8i/8i7yma4r59iJZNZqxMWHFy5PPmFvYeRRV8YyAb-pDsM.cache +1 -0
  120. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8m/8mCKdXYbETWcbVlm9r5S4DH_7NdmUWk0xvQpG1NfnKI.cache +1 -0
  121. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/95/95IhppspBdHbJte9Eb-TFJyul3tMedfwa7PCnzYvtUw.cache +1 -0
  122. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9U/9Un3o6p8MK8rQLqzenk1pB_7hXQFh8oRV2e9H0gvVEE.cache +1 -0
  123. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9n/9ndgTI40F07w8FjASG_cWEWvFc-WFcAnQ0RTHKffLs0.cache +3 -0
  124. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9o/9o8JxdyqOsc4w86Kf7lJ3_sPDgaz8jn67FjJdDPhDkI.cache +0 -0
  125. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9x/9xDDSh_d9R_KIIGZRTcuBWS8bGETaC_Bf_SfWRRek0w.cache +1 -0
  126. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AP/AP8CMZvWwmd-jMLMU5sL0okrcR5WUB0YCEh3AuALxiE.cache +1 -0
  127. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Al/Al9KSjn0Oy17EA5EUfl2Iu6WMk0I9Xh_ayWe9vF8_HQ.cache +3 -0
  128. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/An/AnzKitD9vM6_RjoLfJYBOh2jBnN_qdGB1u2EJiCCRoc.cache +2 -0
  129. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Au/AuF_Lg8psMkag-Ebg2QLqzwaoKLe0m7I7BZ_SEvLjmk.cache +0 -0
  130. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Az/Az8kOr4kewFFaqsiiQE0WYSJ59i9wo9_z_F1TY9F7M8.cache +0 -0
  131. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Az/AzjCF36ZnCtfao-Xf_39oM5Iqw_-WxScCsNjdwTzkDg.cache +3 -0
  132. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/B3/B3Cy78DXJF2UnoGhRjHucuqZDrClomUgdGvqtBbjWgo.cache +1 -0
  133. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BL/BLDosj0uYMnLDG_bKFv9uDRMQvYC-TqPXqt0LWDiHJw.cache +1 -0
  134. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BS/BSbNP_jWCJotqEhogYhxJWnVd8eNlQU5M0_ICj5vphs.cache +0 -0
  135. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Bd/BdDviGeLCnTSYiQXIcujXrRaHo6H0MR4-knE2YeeCgg.cache +1 -0
  136. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CO/COnlHVpKyQNDJUEMrL03OCrulthhbMGrK5LnzfqxKzc.cache +0 -0
  137. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CO/COog0ADFfcxxSQGirlDPnIplRoK0YS1sX_zi0EI_jLM.cache +1 -0
  138. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CX/CXWRi2s11uUfdM1WvjHt1MZgUR2ZOZy8kIkxDXGgLew.cache +1 -0
  139. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/D2/D2rHtyO5uRykEy1sDjURZRsMFNRnctr_a4-sN6N_k3s.cache +2 -0
  140. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DL/DLkERcNQXfP_jrGt04K3gIoyAQUwRAhsa8CGBbHeyr8.cache +4 -0
  141. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DR/DRUjSXaqukziuV073e2FWRUrvpczn174K8tnKOVnjCo.cache +4 -0
  142. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Dl/DlKAR44lUzqNCP74OxzxIKtHkZ8RxvRFNSHCSDAD0dg.cache +3 -0
  143. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Dx/Dx7LY1s3Kt1d0QNsJS7QbwHBQXDat_Tejg6sFqggwpg.cache +2 -0
  144. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/E1/E1sjzr7XlSJWVjX4wWthYeyuomO5VUcCix93RBDloFw.cache +0 -0
  145. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/EU/EU_udYe_J7iEcJIrPz3ryODOZ324JYpOQgZz6Bmr3NY.cache +1 -0
  146. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/EW/EW0mRGtnT3pbtHOhXnmfGFACMcet5Ga3wX7LvUZSub4.cache +2 -0
  147. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/EY/EYtmNrxNv87V8eN1qeSFVNgVV-kJy6OybUTRAuQqbJw.cache +1 -0
  148. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Eh/EhDV9llU_Uji55N2N5hSisrVZB3F7ApMRgcaVy6DdSE.cache +0 -0
  149. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Eh/EhjkY9IvaTEQL2wcumd5kltyaR7e-C6rBM8JWCVXPTU.cache +1 -0
  150. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ei/Ei5n29SVP8SdmUMAMaA0umz86XuCUBuLpZ0BNQuQccs.cache +3 -0
  151. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/F-/F-iArOgmgGF6z7buN7lXd0PD67cLzUqAyHI_dg5Ir-M.cache +1 -0
  152. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/FR/FR7UgZsBXuOsZrTFw1Xbx07dvYP7DQ7HbJv0wrz4hq0.cache +0 -0
  153. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/G6/G64cowLHOfM_Yrt8O7KSbFiOMRqTgfEQm1PPxAQhbAg.cache +3 -0
  154. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/G9/G9GcQSjBnO1nXjttmifoSI6ITmGuq7IwKnZBRYNRa8Q.cache +0 -0
  155. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/GM/GMONcamN3RqysGKy4uYJgymCpqehQhPzSIm0464hTGw.cache +1 -0
  156. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Gf/GfuRghtVELfVYMujLNC574fvyKsMJzdWTtbEQlH7X6Q.cache +0 -0
  157. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/H7/H7MvptNvTitndXYMJeMFbOLKPfS5xVM4KK16q3rWRf8.cache +0 -0
  158. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HE/HEMtPwPwyE2DNUimuj0RWr9XjDw566AWGpPxO-q44qI.cache +0 -0
  159. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HT/HTDa4jVpwYRkpWV8TUTUHnOXUZlDxlNvENOx9HDpt_A.cache +1 -0
  160. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Hk/Hk4rKlg0YdT2T70kfxEdLJnLqt6-L_368Ls0wL_eUfk.cache +0 -0
  161. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/IH/IHdTxEINLD9EP_9WBZtShsz0L4wyvHvmWajj3bS0JO4.cache +0 -0
  162. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/II/IIhHECBYzW6R7KaHyb0vvWJRLzmrr2eRu2gYR23zXII.cache +1 -0
  163. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ih/Ihlbo_G-ptum1z1TUDzAJtCaXb5dcjawZ_JC_6IV8Ck.cache +0 -0
  164. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ij/IjA5E1ckNNxW7LS_WlHj3kq6rCzNkQm4GJXKbz16OH8.cache +1 -0
  165. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Iu/IuKXt-cdB0MWFj7mqA38Bor_psTeajaMBFLmvDVMoBg.cache +0 -0
  166. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/J0/J0VM7NzIgMpeH6e1g-iV1jukVtOeuJaEJBD8fwv-hJc.cache +0 -0
  167. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/JO/JOw5gbzb3UZHNCcvfkgx62jvLeTOtTeJr2n-KkMAje0.cache +0 -0
  168. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jh/Jh2yzmSNK2NI9-ZN_AUECyg0NmxfsW0BrXDpAu8Q0Sc.cache +1 -0
  169. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jk/JkTWRfXEtbewdT9C_84ZUCKfOJgW8vAYojqbIakKuUM.cache +0 -0
  170. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jo/JoYrlbw390oHMUGn2ukrbkCBic7MwB6h0xh45pDUZ-o.cache +1 -0
  171. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jw/JwL3nARIMhyKb8g84VXSKO065zMFWQ5_Hpo1yKLmgBU.cache +1 -0
  172. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/K-/K-Z1865camwlbx6a_H9hvyUUNY5MvULTQRPGNNIN7O4.cache +1 -0
  173. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kd/KdjXvRD1FkAOT5gHV5oggXZChzNk7YulQwZcHQXIZRg.cache +5 -0
  174. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kg/Kg29pENl85d6oqEm08etqgE0i_wBEOgHSrC8RNQgxH0.cache +0 -0
  175. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kn/KnApnugr93z2u-bP7o4MoBYpzMfTsQCkE0BfaGmFh1M.cache +1 -0
  176. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kt/Ktn9Bwh3ABbc0iZw75mn8jHdQ-c2wrSOOwr7bgKec2M.cache +0 -0
  177. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/L-/L-9gOP-Eu8WWrqHhquHTuF-FYNyqPW_XADPX3zHfbA4.cache +1 -0
  178. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LX/LXdz5pGMYqMa6LDg6Cd1tUlmH5YsGjx8qWmEUw10p4s.cache +0 -0
  179. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/La/LaLV7_h7bNXlIUdOYVJOJjuimbOMcNM6Lk2AQfHZj5k.cache +1 -0
  180. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lb/LbpuXJvUMRSl-rkNmtrS76DOvfjCCL7sPX0Dik1Jj20.cache +0 -0
  181. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lo/Lox5RGiMyRaI-gtEuR734T6Yxs3SO8CYVkpLobvm6Ec.cache +1 -0
  182. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ML/MLGXPOc_o7QJhMTPIl-dolby9B6HGGATmZfvQUmKE9g.cache +1 -0
  183. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mr/Mr2unC__UmyhRSGG3ZJT5qgD_hLYsJZcby3qcYkghJQ.cache +0 -0
  184. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mv/MveaXKvyHsP7lUjRxWRNMfujogq7KoFeXny94FaZnMA.cache +1 -0
  185. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mz/MzRPdnRytqqYhJPaFID_20uq3exdwqTkj_JaNSeaIrA.cache +0 -0
  186. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/N-/N-efI87sYEJx9N5TgWUNVb9DZhfdxLIayZwS1QyrBBI.cache +0 -0
  187. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/N1/N1Ge-O_OfxqfdKJ8hS-hCM1m2PpxNrluFlt0h4T-ViM.cache +0 -0
  188. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/NA/NA1MvZyw6XbQUarkgAWb2vb2tED9CbMfX6bVAEOaby4.cache +1 -0
  189. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/O3/O3YH4rYrH4zTrSfm8r9yEjsegPVRCq-EPPgN9kVKt98.cache +0 -0
  190. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OG/OGKM_vNfjdFZ8-_i9xxsqvL9JKeY8ZeB0crBJ5mnxbM.cache +1 -0
  191. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Oa/OaT2un4nlNDSN4mabpQGtzAZD_MhRbyuiW2JQ2O4AQQ.cache +1 -0
  192. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Oj/OjYY-CX9a8_IYn3rdKI_zP4DaXsicVSsnDnHSNPWiDU.cache +0 -0
  193. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/P2/P20MUUHVNDibXLvOGOQXPtteMwoQE9ZdPOWt6E-8AXo.cache +1 -0
  194. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/P8/P8F3AFFdVIHJ1wRbNKIsKfDLRej3I46QD4ZrK2pvdH8.cache +3 -0
  195. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PM/PMj3Wq0fic3iWDi9IWDFNRkrS6OZfFX9CPFql0BEKzI.cache +2 -0
  196. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PS/PSD-YJcPLEoTyXjJwxPwUH1adb_OEG6-EVhYFavC9Y8.cache +0 -0
  197. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pp/PpzbEkwo1VQQqREU6mIpmE91gLIWhbSaKvZAzHmRzT4.cache +2 -0
  198. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pz/PzYpfB-Mt_GZoI1BoK5JTEtoMNYz5eRyWjrqQ0Jwbrc.cache +1 -0
  199. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/QA/QAtOVdWly1g9_legRdZ1TiU1wt9exnZClfFs1KFInHw.cache +0 -0
  200. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Qm/Qm0bT-XviwzpPFa1cH4PKQlarnMXVAYLEhEHAMQfS0M.cache +0 -0
  201. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/R-/R-P6hKBc_Kiub4PGDIV6GLWVPWKG5Hkb4pMibGZ4_mQ.cache +0 -0
  202. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/R8/R8wQU1MrYoCOeoLDkm0JCDvph7JSzV4qMnnfQQHWJ_0.cache +1 -0
  203. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/RV/RVEELwrJy-0osxsK6bOgrdv0BJMXVeV0Kj1JU1ufudo.cache +1 -0
  204. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ro/Ro69Fy-gnadW6JbSAyOUEhPcix9r3dsDlAbMbmsvO9w.cache +0 -0
  205. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/S9/S9VEgZtqRTQ01SX2jqwEmScpSkKiR6K6ps4b-47Yr1Y.cache +0 -0
  206. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SJ/SJF1Y7x3bL3Lns0svNhFk_d4TC8gD1GbBFCIa6SKE5g.cache +0 -0
  207. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SW/SWX0OIIfUckgfme5kpkBIgwgFSzKmarqkqsot0WKiEY.cache +1 -0
  208. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/TF/TFaZrdlbQz3NOtg2lMK89mjniknuNuNyi5MAyAAAihQ.cache +1 -0
  209. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Tf/Tf2bgX5zezBb7fVsJ0UWYnQjW7LdkJVAb7g4PR5SLLo.cache +2 -0
  210. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/U9/U90dV2vsbo5vLV-5nrMkYT1KZihPlwFGwtCpnmWUnkw.cache +0 -0
  211. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UA/UAIqUPfpgzUhqoW8Rpu-gyok0pe2qyGCmDZ75Ce8E1w.cache +0 -0
  212. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UF/UF7abP4ooRBx6NIfQ3QY-qUwEkD9FDzQqw84LtV251s.cache +0 -0
  213. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Uj/UjX8tjTZ-d5_6rIWttVCX-9zs45IlzjMl9w8jkIv5B4.cache +0 -0
  214. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Um/UmQ-TyyaNDZxmO_pyhLdwHNew2KSxQ6jWT9MtngyqrY.cache +1 -0
  215. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ut/UtN8NDRYbBYRbFtmdWKRK6rTi4gEFbOg8DvQ4cH7S7g.cache +1 -0
  216. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Uv/UvqiGDl3Je-eTM9pIFPThYrDwUvoNnoodzISPqx3urk.cache +0 -0
  217. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VD/VDcsfdncrgnBziuB6ube7SE7djY03TqwY1IukD_TN7Y.cache +0 -0
  218. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VT/VTEXyTvUoTTHn_xvcwk_W3pBeA77AFVfMgdcEixTUwY.cache +0 -0
  219. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VV/VV9jOPgrtgb0lMap4TpHaQGCX5ABH7jZS77u8CA_HWg.cache +1 -0
  220. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VZ/VZ-BzU4prW2vUnpfToRif74ofzzuXEMrLsM78MMFqXM.cache +0 -0
  221. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/W6/W6SS3z2NFrVIRIAHNlkS5HjKsqISu52qRQ-CLtMVu6c.cache +1 -0
  222. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/WG/WGLNLZMgDpHpL_77HvgUU4OLdXxlgxrFnDNtxvAH8UU.cache +2 -0
  223. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ws/WsVVpxbu--lln_NCf67Z2SL1ZFzAYK3oUKs58bs9Lng.cache +1 -0
  224. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wy/WyuMagtVlhoZnbDJ1XWdzEZ5nEc3TtAakFgn3GtUlRw.cache +0 -0
  225. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/X0/X0TyY3kU86SBdTp0_SP0Dk_7A_6t2P95BfblJp21nL8.cache +0 -0
  226. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/X0/X0clyU7eLOTqHoVL8gmWxsUZtKT2sXmrR5RcEQKI61k.cache +2 -0
  227. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/X3/X3smAVji-ukCfsZEDAxoOZLpw8mT4Mj-fAbNVG9-9bQ.cache +0 -0
  228. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/XK/XKkVQq7H-pGpBPALp_h89EWR48ZkGLlIejmAdKCoN9c.cache +1 -0
  229. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xf/Xf2mUbhZ10q_EATP_OsSnLhGXGHw4eC9XdiAdTnJ74c.cache +1 -0
  230. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xp/Xp2pCnEav3eX2i1dS8VwmKs841_3_A4tCrEKFN_4mB0.cache +0 -0
  231. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Y-/Y-SMBXniQNM_PK59g6qkh3Rs7vutjQPID8cPZYUyvc8.cache +1 -0
  232. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Y6/Y6zCPRDYjMX91hrNtDDz50vO3yX5zn4_6xTguk_s_4g.cache +1 -0
  233. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/YZ/YZ2FiKO-bbueEZ9CsbkJp3EFqkuwboncJhgKPeyRV4Q.cache +0 -0
  234. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Yq/YqAdyNJ-WDhKGz9PNesXYBSfjIH6516EdP9_2Qf1BnU.cache +1 -0
  235. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Yw/YwQziXwjTffRGAoRXdMaBeiQLd8LYcVIWuO344bgy3c.cache +0 -0
  236. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Z7/Z7FRIezQTNsL3aMk8NTXpPXzR7pEVVbPNHRTdohmpDw.cache +1 -0
  237. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ZZ/ZZiJaLJKT2joy06fP2oWL9qzj_sRH-H1tItfKcz2JW0.cache +1 -0
  238. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zb/ZbhOpgGTFv1aWxq09Ry2MiXqW11OTYAoXvFLPyF0zzY.cache +0 -0
  239. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zl/Zl-FTV4vKa2r3nBU7NRBdlkyRgcIo7NOyqsfaqdX_fg.cache +3 -0
  240. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zp/ZpIypz91h5jOpIv5_XWneCig0eXbO5hjU-1E8lk0L0c.cache +2 -0
  241. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zp/Zpo6cFyzVk3NjXX0p68zdmGprgxAX_ZHnNzvJY6ailg.cache +3 -0
  242. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_G/_GnUMQowqX9t3laGvl0HnAxZF2Vhf0sq7-oURM0wcko.cache +0 -0
  243. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_O/_O_7M8DxgHDGuIwgUtHu0Lc0mKcY8R5kxUxufQ97uX8.cache +1 -0
  244. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/__/__iX6Xzd89n2HuWT3iV4OrHtr8Qkn_Mn9hNWlWKneS4.cache +0 -0
  245. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_o/_oxoPWAnCwMi7IIf6T6dbEYFq3VKRvMfszDCgD0aPyM.cache +1 -0
  246. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/a9/a91uMBM_EHoG9dpZfGzpn7yE8kmrsX0VjOhWT1QskaE.cache +1 -0
  247. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aH/aHVHr_-0u4GYkc7Jj2NHqoe39XO3ajwlxFXQuYK_6U8.cache +1 -0
  248. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aL/aLiHncFxecbABwNN02qPqA_83asIyWD3VseIFDc9G04.cache +1 -0
  249. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aP/aPGhkB2WKuHyPS7Sevt1IEJx0wDJxfXe1ruloXqj3xk.cache +3 -0
  250. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ae/aeggiw7BQrQEDe_h9KrnAKMR-cLCOwguVWnbA4t7RDI.cache +1 -0
  251. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ar/arjoC4qFoPftvjtnTFvVOcqgyMTEO3R7eZfUBlCD2tQ.cache +1 -0
  252. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bA/bAxW4suoIwrYp_k94dRFVbm2hReYVmuPmC2zMBfvJc8.cache +1 -0
  253. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bH/bHvyfESjIDel6qhGMnn7WQqdoNXoXBEHGqe6xaPpyLk.cache +1 -0
  254. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bK/bKWcVsqtCUYRj-dQ71E6Zv6VWGnb16tnJxXGQ_nQ2H8.cache +0 -0
  255. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bV/bVVKMfnewO_Cw5cF4DuWLGesLrgquE6waHtskIGuc4o.cache +1 -0
  256. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bg/bgJeD0vSue1KUNM2KWqqSCTroUqhxlReXxzTmTOruxg.cache +0 -0
  257. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bq/bqc2uPWm4pGI7w9V5UTKsOJNWo37Cp3H2n8zfUa2oI4.cache +0 -0
  258. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cT/cTO6k7QA5M17ZMkAffV0ovTZiBXhT3VseIrOM1mBCs8.cache +0 -0
  259. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cY/cYK6npQK2KyeCzT46f6dwDF47WuLzAllkdR0ppOrkno.cache +1 -0
  260. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/d6/d6MwJNJNxNFBkdXmYs_KvTpl1AS_VRd3tfEYNDmb2MM.cache +3 -0
  261. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/db/dbGJxjhVLPsmOZwdy_nsIdlFbXeARv23LF7R7HE7AbA.cache +3 -0
  262. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/do/doQ0zNGC703aNZz7U4-e7z7ZXn4QyE64ue9z0_UU_58.cache +0 -0
  263. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dt/dt3vYLBhkenGITkPM7hggTYSZ9Hczn1N-WDFbFvGtb8.cache +0 -0
  264. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dv/dvCaWZlq_sdjkF_n9x4vzz1pn8wnFCfYRirZppk3Z9s.cache +0 -0
  265. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/e7/e72aQlUn5CdiF0uDsIyuUXiO7WBe9TYk4k7jLmFPN-s.cache +4 -0
  266. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eL/eLKgQlMwf_H5A0vmly3GTNk49y8YtPV4hchufXVaCAA.cache +1 -0
  267. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eU/eUSALCij0-yOA98jJNYVgFhMfa_g9zrJGgGrqSPMNOE.cache +1 -0
  268. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eY/eY4_uLXSqnPVEpB1HuS1W_OXHHms0pInZYoefPvW9t0.cache +1 -0
  269. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fE/fEkHgB81i850dFiDLA-P41dzG7lzwscPfbEkn7xzBqI.cache +2 -0
  270. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fX/fXTENvNKMpfQV-32mpv0geVR4aYDdU2ImdLVu382RWc.cache +0 -0
  271. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fx/fxKS5cKjNaBTqhsiLrQBnUHwIcET_TjiQkZvcuDSqFM.cache +0 -0
  272. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/g1/g1QcK14XjciA06BjnzcyJedMlbZDV8GtpMPMpDoJ_D8.cache +1 -0
  273. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gN/gN3fIJJNplV9pq-YkQCSKwGtQ4H_JtNrBkWtKzZzdjA.cache +0 -0
  274. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gs/gsdTj_I53MqRV9SgY7YcukVGxAcOhrNBajAbBBJtgm4.cache +3 -0
  275. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gz/gz9XMd1uQwG02m-0et5AwJeE6DpmAOTNj-FgkXfw9PY.cache +1 -0
  276. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/h5/h5o0be8vpn_GFYP1jmOvODXBI6GpPxfLPzdzbu2A8R8.cache +1 -0
  277. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hM/hM29fgLy6zOyClGR9oUlM-vriwUnBZ3ENjM_1FShFj0.cache +1 -0
  278. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hh/hhNmdTfVeFvrSn9CamPVmpsxNS7URxFj1ohmNXOW8jA.cache +1 -0
  279. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iA/iA1lfqJxNFLKFbXNgUxFyE_uyPQALWH8yftLiPABhAk.cache +1 -0
  280. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iy/iy5i5tFHzesBHcv_hzO9VSwlALBRNJtKqW3rzcUUVfs.cache +1 -0
  281. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jA/jAzwo-XbTDn_mb6gbd2hvQFdB6IHcwlsrSI61jMFRu8.cache +2 -0
  282. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jG/jGHmiJ0efPNx91nEHDL8zBy8A_3GAb6TNKCsumIxMrc.cache +1 -0
  283. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jN/jNB7bLvZDDgxEJ_aot5rRrTN522lDkV6rqfjpkHs34o.cache +1 -0
  284. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jY/jYIoBdBuCwWF0O3ZLZ_EM4w3zGd0YwfjUo1wQ6Hk_jw.cache +1 -0
  285. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jl/jlO2h1zPkO-NwYpMj7YVvbgoFwRaZVi74w-hYlzaq7E.cache +1 -0
  286. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jx/jxImfB_67hcaN57hzR-IPAEv5ubIsQkfWmfK_CsytAw.cache +0 -0
  287. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kR/kR9ffWXZJsevw9pRleOgcr8pz_b4cX8VqpoVJziGP08.cache +1 -0
  288. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kb/kbQd6EO8oXIIwwsb4-N_3QzKr0c0gVc70-x8cTHGg7k.cache +0 -0
  289. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/l0/l0jQk5kPfmG2Um5fNC7YyixCMowwMaCuMBWVoBN4vcc.cache +1 -0
  290. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lH/lHYhwn18H2WfEhHHt2MgLxWFbUSjTZNHCP_z8TzYWhk.cache +0 -0
  291. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lm/lmDtF24A1oDE4KDlhClswZcy-oE971KdFw1_2LsqrYc.cache +0 -0
  292. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lm/lmT75XgXB63O5BEdE3m1rUMJggEyXHS7NEjv_Xcamf8.cache +0 -0
  293. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m2/m2bWBtIVM9G04E_j5Y1PoqBs0JUi0F7wSt_EvaaJ0YA.cache +3 -0
  294. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m9/m9caH9jq8YVbDxqaDFU2qPGFCA8QzRAbrM-m_N612rk.cache +0 -0
  295. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mA/mAkIP0ixRggjgv0ed1oDSByEf5ldee3HPDs6biQDBG0.cache +1 -0
  296. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mC/mCNBQdFEOLMGILmOJ9Pdrh4Rq8w_ffW-BhFukaDrCDw.cache +1 -0
  297. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mD/mDrzK83Mv14TV-9pCfS9oQcDShVXUn78mCV722HcUh8.cache +0 -0
  298. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mS/mSnLUa5l014-UgliBXGIHIZC1prxoOKofJbsj2sCBRE.cache +0 -0
  299. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mU/mUA-YJ9L2yS2PLx0FZvs9bldWItm_fJ41z2i7eEU9n8.cache +1 -0
  300. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/me/meNq1c2Ux0zYwqV1yg5T058zxFQ7BAyVqzWjbJUQ7-0.cache +0 -0
  301. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ng/ng-yExNasiyVV3qEjC6hdXxyCJcIzKh99lCCgYftkb0.cache +1 -0
  302. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nh/nhXndES7hwXIbsUG1fIqnNOs9H0iOsFH16ruuVjhjT0.cache +1 -0
  303. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nl/nlr8DeeQYRxoxJMWJBxg5TCR5jmL9hudYAGLgeMyZKE.cache +3 -0
  304. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/np/npScNprHGrz4ZbVC8rgR94Ba8XY5FFB6-Xe7PXWRtr8.cache +0 -0
  305. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/o-/o-aAn-G67pIxAaTUZuMvKFo1CedVzW9074NWHXyv6co.cache +1 -0
  306. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oA/oA6uToU4uvloVCwdiAKR-A8gH07qUO_Fw71BIFr8oOk.cache +0 -0
  307. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oA/oACljI4tPgKAxbx0yS9MCF9h463HW7iacP0ZVHMtOJQ.cache +0 -0
  308. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/o_/o_yQ4ys9tqU8fvuSWSOYuWAaQIPkJoBlYSPV69Lag6w.cache +1 -0
  309. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oj/ojtV124ntJUZXjJmJDBZQtTlTU1WAFNDP4eAdQ2uYhc.cache +0 -0
  310. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/om/omi8Qenrtp3NJkZWBLrBCYgsKSkb50JHMsGYF0kMsfY.cache +0 -0
  311. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/p7/p7ycjdV_4JeHQfXQz054I1rzH2KG6qFl3RFGjPr8e2I.cache +3 -0
  312. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pETf6QxnSG7a4CvbVRha9eQ-DG9ZaZjNWBlCjHJ7Mh4.cache +0 -0
  313. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pK/pKBNPsUYs8eweHKaWGgVFQEIpB8R4LZy2gGx82jvZ2A.cache +1 -0
  314. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pk/pkSt9DiSQNeoWbdCFjKARchGczKSlGnlq2tk4sRHGl0.cache +1 -0
  315. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q9/q9RgoV0PuVwQOOCdlt8z76egko-gThe0NIZRNJ7Vb8g.cache +0 -0
  316. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qI/qI2emnzqHyl9ZOJxm4FkD25KQXXq4jE2m0hry2BLlvE.cache +1 -0
  317. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qM/qMN4jfYXHrhlIqCS9VjreBGlWhvaZKK1c4aLux4Myb0.cache +0 -0
  318. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qQ/qQHGSJufUk5KZIUb_vR0RUtxfx0ddvyFiFTn3umUXSE.cache +1 -0
  319. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ql/qlSEBPTiGY1jz6bXssCmY--dFFJ_ejUfXZ6wDao8eGE.cache +0 -0
  320. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qp/qpml4e-70MECbnFjH9p2a0GPu_Vs4AMQqUyCwLNb00g.cache +0 -0
  321. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rE/rEWpl1AjQCLMdTcBJFp2KnwQ2XvWMlZ3fvJpbKcVHFc.cache +0 -0
  322. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rH/rHg5QaB0HvhIvuf3A530JZnAklQ2pIvI63VjwnHGFjE.cache +0 -0
  323. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rj/rjYHromYrCChcwPZfMIpJR5lH1v6AV4rFJ7PSpbmaRs.cache +1 -0
  324. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rk/rkQrgOdLddxqSCHuuxJ2JiioX_mFGyRh9i2bbYmWUuc.cache +0 -0
  325. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ry/rytY_Me7_DHvkuv3QVK6EghzfZGPIFqA3c-TCEYML2k.cache +1 -0
  326. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/s9/s9SjWUk4UAt4reHYFo6HUET6atAbvuzJx7jFkFzBImk.cache +1 -0
  327. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/t1/t1ExmbhOJG5KqGz-Vy75ivtHe2bJmXlsRBK3-pmJy84.cache +3 -0
  328. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tE/tEH8M7eQdOfPeisqPSQ4lj-q8XDMFAhWNXkDLWE75c8.cache +1 -0
  329. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tr/trCq7BhEHskeDpAD6mednS1kRw8S3HDqwXgPTdUl9U8.cache +3 -0
  330. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/u6/u6tVe0hsmtnXDuqgzg5jZvaEmCZFL4sgGePf0or0R6Y.cache +1 -0
  331. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uW/uWZCdrJIObhls-KkZZvQocyeDM0XbJDae-HmnBBA5J8.cache +1 -0
  332. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uY/uYYzv5Mfd8qRUalE9i8llXbnvhzj-7mN5xO9dHrKPIo.cache +0 -0
  333. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uZ/uZXV7w43ovUs_9uVjX1p9gZQ5Fsw-MRRVTeZMcEx0dM.cache +0 -0
  334. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uc/uckgWS0BcCc6LNAFlF7PElu4xSY8W4syiG8A2HNXQAY.cache +0 -0
  335. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ud/udiGVbD0CReFDUTw71vBR2mgCFU8Q6kaG6UdVL4yT7c.cache +3 -0
  336. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uk/ukBqlR6stAs77HT4RK2EWYBIImXBMh4nBX-cTGc9KWQ.cache +0 -0
  337. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uo/uoDesdHy_rZZLzkR-dDs3fEEjg9NP94xaBMFoDkjB88.cache +1 -0
  338. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uo/uowxYUAV2RR9N3pfi_QyInIDyJfFdx0t9XbKszTnF2Q.cache +1 -0
  339. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/v5/v56UY4h_wtUEkSk217QvUGhLmMRwfFxUp7-OGLFpSWc.cache +3 -0
  340. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vN/vNulvOY1ZW1InlcztpORT8uhYn7jm-czph0IoRG4ziA.cache +1 -0
  341. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vZ/vZIA-1XhCjniB8BUpZbXiAu9iMRvS8S4ZhjhoFD69Jg.cache +1 -0
  342. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/w1/w1Gjto-nSo5bbwhqv__siTCg-BlCBKsDGAfIm3jVOMk.cache +1 -0
  343. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/w3/w3GO9wDvtd1y3U8_5qBRTyyAZMudF_CGwEODvjyMLWw.cache +1 -0
  344. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/w4/w4gJNAGhrqxs0B4MwhyC_ir8k__4On1dFcPc2DpEusY.cache +0 -0
  345. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wE/wEoQYuJaRPsMw9VmtT3GbtfTi7-HZlHSCV6FpH4DCKM.cache +3 -0
  346. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wQ/wQM_oGR5bpeyVlk8z7JUAdb_quHniOqqG3bdt64sqik.cache +0 -0
  347. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wZ/wZteNRroGeTHkmRZzWi4DLcbjdtN9mgBEU7plqZdH-g.cache +1 -0
  348. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7bkbnePbYzVM7ZfNBf8GxyVf7m_ZL3cAjLd2NEhpNs.cache +1 -0
  349. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xC/xCIJq25fTm8VFaoVAx_47ChkOHhdZw5Z756uF8XCbXc.cache +3 -0
  350. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xD/xDVQfe0cmwEeb-NqJAGwfauOMRqTEjKDMWuHYEgEegI.cache +1 -0
  351. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xF/xFKzR2zX4XI1wVSD6T-YMTXVZRjLmAShKEqk1wsP8kg.cache +0 -0
  352. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xX/xXWr5QK8YRUjPVX4IC-xdCVtgHMRNQp27mYcmlTJtUw.cache +1 -0
  353. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x_/x_xwdioU55LPgMkEBfJmj0kQWn0Fqm7N0eAqV3yxiXM.cache +0 -0
  354. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yZ/yZ8qSfZNzxUtATA9c_-yYW0lP1iVStbrIbOuGbfL9ZE.cache +0 -0
  355. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/z9/z9geVSdQW1rTKOVQu_EELjycarXOA2oXjN13plTezkM.cache +0 -0
  356. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zN/zN-py56vYO3TcsXz8GyNbL13xUdTND-N13rxoSjtdPY.cache +1 -0
  357. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zj/zjypYsPiWG45GTxGIl_C9B31lx8tIUhrs87LPKxiPxU.cache +1 -0
  358. data/spec/requests/search/search_request_spec.rb +116 -23
  359. data/spec/requests/shopping/cart_request_spec.rb +1 -1
  360. data/spec/requests/shopping/product_request_spec.rb +281 -61
  361. data/{app/views/auth/images/_show.js.erb → spec/requests/work/procedure_request_spec.rb} +0 -0
  362. data/spec/support/sign_in_support.rb +8 -11
  363. metadata +589 -12
  364. data/app/models/auth/concerns/search/autocompleted_concern.rb +0 -139
  365. data/app/views/auth/images/_form.html.erb +0 -17
  366. data/app/views/auth/images/edit.html.erb +0 -6
  367. data/app/views/auth/images/index.html.erb +0 -25
  368. data/app/views/auth/images/new.html.erb +0 -5
  369. data/app/views/auth/images/show.html.erb +0 -21
  370. data/lib/assets/javascripts/data.js +0 -126
@@ -255,7 +255,7 @@ module Auth::Concerns::Shopping::PaymentConcern
255
255
  ## called in show action of controller.
256
256
  ## return[Array]
257
257
  def set_payment_receipt
258
- puts "CAME TO SET PAYMENT RECEIPT ------------------------"
258
+ #puts "CAME TO SET PAYMENT RECEIPT ------------------------"
259
259
  self.payment_receipt = {:current_payment => [], :cart => {}}
260
260
  Auth.configuration.cart_item_class.constantize.where(:accepted_by_payment_id => self.id.to_s).each do |c_item|
261
261
  puts "THIS ITEM IS C_ITEM: #{c_item.id.to_s}"
@@ -263,8 +263,8 @@ module Auth::Concerns::Shopping::PaymentConcern
263
263
  end
264
264
  set_cart(self.cart_id) if self.cart.nil?
265
265
  self.payment_receipt[:cart] = self.cart.prepare_receipt
266
- puts self.payment_receipt.to_s
267
- puts "finished set payment receipt."
266
+ #puts self.payment_receipt.to_s
267
+ #puts "finished set payment receipt."
268
268
  end
269
269
 
270
270
  ##res : 59a5405c421aa90f732c9059
@@ -601,8 +601,9 @@ module Auth::Concerns::Shopping::PaymentConcern
601
601
  ## validation
602
602
  def payment_satisfies_minimum_payment_requirement
603
603
  self.cart.prepare_cart
604
- puts "the minimum payment amoutn is:"
605
- puts self.cart.cart_minimum_payable_amount
604
+ #puts "the minimum payment amoutn is:"
605
+ #puts self.cart.cart_minimum_payable_amount
606
+ ## what if self.cart.payment_stage.
606
607
  return if (self.refund == true || self.discount)
607
608
  self.errors.add("amount","payment amount is not sufficient") if (self.cart.cart_minimum_payable_amount.nil? || (self.cart.cart_minimum_payable_amount > self.amount))
608
609
  end
@@ -625,6 +626,19 @@ module Auth::Concerns::Shopping::PaymentConcern
625
626
  super(options).merge({:payment_receipt => self.payment_receipt,:cash_change => self.cash_change})
626
627
  end
627
628
 
629
+ def is_approved?
630
+ puts "the payment status is: #{self.payment_status}"
631
+ self.payment_status == 1
632
+ end
633
+
634
+ def is_pending?
635
+ self.payment_status.nil?
636
+ end
637
+
638
+ def is_disapproved?
639
+ self.payment_status == 0
640
+ end
641
+
628
642
  end
629
643
 
630
644
 
@@ -14,7 +14,7 @@ module Auth::Concerns::Shopping::PersonalityConcern
14
14
  index: Auth::Concerns::EsConcern::AUTOCOMPLETE_INDEX_SETTINGS
15
15
  },
16
16
  mappings: {
17
- Auth::OmniAuth::Path.pathify(Auth.configuration.personality_class) => Auth::Concerns::EsConcern::AUTOCOMPLETE_INDEX_MAPPINGS
17
+ "document" => Auth::Concerns::EsConcern::AUTOCOMPLETE_INDEX_MAPPINGS
18
18
  }
19
19
  }
20
20
  }
@@ -30,7 +30,14 @@ module Auth::Concerns::Shopping::PersonalityConcern
30
30
 
31
31
  field :sex, type: String
32
32
 
33
+ field :referred_by, type: String
33
34
 
35
+ field :referrer_contact_number, type: String
36
+
37
+ validates_presence_of :age
38
+ validates_presence_of :sex
39
+ validates_presence_of :fullname
40
+ validates_presence_of :date_of_birth
34
41
  ##################################################################
35
42
  ##
36
43
  ##
@@ -89,23 +96,71 @@ module Auth::Concerns::Shopping::PersonalityConcern
89
96
  self.age = ((Time.now - birth_time)/1.year).to_i
90
97
  end
91
98
 
92
-
93
- ######################################################################
99
+ #################################################################
94
100
  ##
95
101
  ##
96
102
  ## AUTOCOMPLETE METHODS.
97
103
  ##
98
104
  ##
99
- ######################################################################
105
+ #################################################################
106
+
107
+ def set_primary_link
108
+ self.primary_link = Rails.application.routes.url_helpers.send(Auth::OmniAuth::Path.show_or_update_or_delete_path(Auth.configuration.personality_class),self.id.to_s)
109
+ end
110
+
111
+ def set_secondary_links
112
+ unless self.secondary_links["See All Carts"]
113
+
114
+ end
115
+
116
+ unless self.secondary_links["See Latest Cart"]
117
+
118
+ end
119
+
120
+ unless self.secondary_links["See Pending Carts"]
121
+
122
+ end
123
+
124
+ unless self.secondary_links["Edit Information"]
125
+
126
+ end
127
+ end
128
+
129
+ def set_autocomplete_tags
130
+ self.tags = []
131
+ self.tags << "Personality"
132
+ end
133
+
134
+ def set_autocomplete_description
135
+
136
+ end
137
+
138
+
139
+
140
+
141
+ ################################################################
142
+ ##
143
+ ##
144
+ ## CLASS METHODS.
145
+ ##
146
+ ##
147
+ ################################################################
100
148
 
101
149
  ## @param[Hash] options : can contain a :resource key. which should be the resource(user) to which all the personalities belong.
102
150
  module ClassMethods
103
151
  def find_personalities(options)
104
152
  conditions = {:resource_id => nil, :parent_id => nil}
105
153
  conditions[:resource_id] = options[:resource].id.to_s if options[:resource]
106
- puts "conditions are:"
107
- puts conditions.to_s
108
154
  Auth.configuration.personality_class.constantize.where(conditions)
109
155
  end
110
156
  end
157
+
158
+ #############################################################
159
+ ##
160
+ ##
161
+ ## UTILITY METHODS.
162
+ ##
163
+ ##
164
+ #############################################################
165
+
111
166
  end
@@ -7,6 +7,7 @@ module Auth::Concerns::Shopping::PlaceConcern
7
7
 
8
8
  included do
9
9
 
10
+ =begin
10
11
  INDEX_DEFINITION = {
11
12
  index_options: {
12
13
  settings: {
@@ -88,8 +89,19 @@ module Auth::Concerns::Shopping::PlaceConcern
88
89
  }
89
90
  }
90
91
  }
92
+ =end
91
93
 
92
-
94
+ INDEX_DEFINITION = {
95
+ index_options: {
96
+ settings: {
97
+ index: Auth::Concerns::EsConcern::AUTOCOMPLETE_INDEX_SETTINGS
98
+ },
99
+ mappings: {
100
+ "document" => Auth::Concerns::EsConcern::AUTOCOMPLETE_INDEX_MAPPINGS
101
+ }
102
+ }
103
+ }
104
+
93
105
 
94
106
  field :nearest_address, type: String
95
107
 
@@ -121,6 +133,47 @@ module Auth::Concerns::Shopping::PlaceConcern
121
133
  address
122
134
  end
123
135
 
136
+
137
+ #################################################################
138
+ ##
139
+ ##
140
+ ## AUTOCOMPLETE METHODS.
141
+ ##
142
+ ##
143
+ #################################################################
144
+
145
+ def set_primary_link
146
+ self.primary_link = Rails.application.routes.url_helpers.send(Auth::OmniAuth::Path.show_or_update_or_delete_path(Auth.configuration.place_class),self.id.to_s)
147
+ end
148
+
149
+ def set_secondary_links
150
+ unless self.secondary_links["See All Carts"]
151
+
152
+ end
153
+
154
+ unless self.secondary_links["See Latest Cart"]
155
+
156
+ end
157
+
158
+ unless self.secondary_links["See Pending Carts"]
159
+
160
+ end
161
+
162
+ unless self.secondary_links["Edit Information"]
163
+
164
+ end
165
+ end
166
+
167
+ def set_autocomplete_tags
168
+ self.tags = []
169
+ self.tags << "Place"
170
+ end
171
+
172
+ def set_autocomplete_description
173
+
174
+ end
175
+
176
+
124
177
  module ClassMethods
125
178
  def find_places(options)
126
179
  conditions = {:resource_id => nil, :parent_id => nil}
@@ -5,16 +5,24 @@ module Auth::Concerns::Shopping::ProductConcern
5
5
  include Auth::Concerns::ChiefModelConcern
6
6
  include Auth::Concerns::OwnerConcern
7
7
  include Auth::Concerns::EsConcern
8
-
8
+ include Mongoid::Autoinc
9
+
10
+
11
+ ## include the bar code concern if enable_bar_code_api is enabled.
12
+
13
+ if Auth.configuration.enable_barcode_api == true
14
+ include Auth::Concerns::Shopping::BarCodeConcern
15
+ end
9
16
 
10
17
  included do
11
18
 
12
19
  embeds_many :cycles, :class_name => "Auth::Work::Cycle", :as => :product_cycles
13
20
 
14
21
  embeds_many :instructions, :class_name => "Auth::Work::Instruction", :as => :product_instructions
15
-
16
- INDEX_DEFINITION =
22
+
23
+ INDEX_DEFINITION ||=
17
24
  {
25
+ index_name: Auth.configuration.brand_name.downcase,
18
26
  index_options:
19
27
  {
20
28
  settings:
@@ -23,7 +31,7 @@ module Auth::Concerns::Shopping::ProductConcern
23
31
  },
24
32
  mappings:
25
33
  {
26
- Auth::OmniAuth::Path.pathify(Auth.configuration.product_class) => Auth::Concerns::EsConcern::AUTOCOMPLETE_INDEX_MAPPINGS.deep_merge(
34
+ "document" => Auth::Concerns::EsConcern::AUTOCOMPLETE_INDEX_MAPPINGS.deep_merge(
27
35
  {
28
36
  properties: {
29
37
  bundle_name: {
@@ -46,9 +54,7 @@ module Auth::Concerns::Shopping::ProductConcern
46
54
  field :name, type: String
47
55
  ## a product can only belong to one bunch.
48
56
  field :bunch, type: String
49
- ##PERMITTED
50
- ##the number of this product that are being added to the cart
51
- ##permitted
57
+
52
58
  field :quantity, type: Float, default: 1
53
59
  ## for WORKFLOW
54
60
  #field :location_information, type: Hash, default: {}
@@ -73,13 +79,81 @@ module Auth::Concerns::Shopping::ProductConcern
73
79
  self.public = "yes"
74
80
  end
75
81
 
82
+ after_initialize do |document|
83
+
84
+ if ((document.new_record?) && (document.create_from_product_id))
85
+
86
+ begin
87
+ create_from_product = Auth.configuration.product_class.constantize.find(self.create_from_product_id)
88
+ unless create_from_product.product_code.blank?
89
+
90
+ document.attrs_to_copy_from_prod_to_prod.each do |attr|
91
+ document.send("#{attr}=",create_from_product.send("#{attr}"))
92
+ end
93
+ end
94
+ rescue Mongoid::Errors::DocumentNotFound => e
95
+ puts e.to_s
96
+ end
97
+ end
98
+ end
99
+
100
+ ###########################################################
101
+ ##
102
+ ##
103
+ ## THE WHOLE MATTER OF PRODUCT TYPE CODES.
104
+ ##
105
+ ##
106
+ ###########################################################
107
+
108
+ ## this is automatically assigned to whatever is the calculated hashid, only if it is not already set, so that is is done, in the write attribute hook.
109
+ field :product_code, type: String
110
+
111
+ field :auto_incrementing_number, type: Integer
112
+
113
+ increments :auto_incrementing_number
114
+
115
+ field :unique_hash_id, type: String
116
+
117
+ ## first lets do the specs
118
+
119
+ attr_accessor :create_from_product_id
120
+
121
+ ############################################################
122
+
123
+ end
124
+
125
+ def write_attribute(field,value)
126
+ super(field,value)
127
+ if field.to_s == "auto_incrementing_number"
128
+ if self.auto_incrementing_number_changed?
129
+ unless self.unique_hash_id
130
+ hashids = Hashids.new(Auth.configuration.hashids_salt,0,Auth.configuration.hashids_alphabet)
131
+ self.unique_hash_id = hashids.encode(self.auto_incrementing_number)
132
+ ## check if the option that create from product id is ticked, then assign that otherwise give it its own new product code
133
+ if self.create_from_product_id
134
+
135
+ else
136
+ self.product_code = self.unique_hash_id if (self.product_code.blank?)
137
+ end
138
+ end
139
+ end
140
+ end
141
+ end
142
+
143
+
144
+ def attrs_to_copy_from_prod_to_prod
145
+ ["product_code","name","description","price"]
76
146
  end
77
147
 
78
148
 
149
+ =begin
79
150
  def as_indexed_json(options={})
151
+ puts "super is:"
152
+ puts super
80
153
  super.merge({bundle_name: bundle_name})
81
154
  end
82
-
155
+ =end
156
+
83
157
  ## so we have completed the rolling n minutes.
84
158
  def add_to_previous_rolling_n_minutes(minutes,origin_epoch,cycle_to_add)
85
159
 
@@ -145,5 +219,66 @@ module Auth::Concerns::Shopping::ProductConcern
145
219
  end
146
220
  minutes
147
221
  end
222
+
223
+ ## here need to add this action links to the products.
224
+ ## it is basically a form to add a cart item
225
+ ## that should be added hereitself.
226
+ ##
227
+ def set_secondary_links
228
+ ## this can be done both as a user and as an admin.
229
+ ## what if the admin assigns it for himself.
230
+ ## these checks have to be established for everyone.
231
+ unless self.secondary_links["Order Now"]
232
+ self.secondary_links["Order Now"] = {
233
+ :partial => "auth/shopping/products/show/action_links.html.erb",
234
+ :instance_name_in_locals => "product",
235
+ :other_locals => {}
236
+ }
237
+ end
238
+
239
+ unless self.secondary_links["Edit Product"]
240
+ self.secondary_links["Edit Product"] = {
241
+ :url => Rails.application.routes.url_helpers.send(Auth::OmniAuth::Path.edit_path(Auth.configuration.product_class),self.id.to_s)
242
+ }
243
+ end
244
+
245
+ unless self.secondary_links["See All Products"]
246
+ ## for this the url is ===> index path.
247
+ self.secondary_links["See All Products"] = {
248
+ :url => Rails.application.routes.url_helpers.send(Auth::OmniAuth::Path.create_or_index_path(Auth.configuration.product_class),{})
249
+ }
250
+
251
+ end
252
+
253
+ unless self.secondary_links["See Related Products"]
254
+ self.secondary_links["See All Products"] = {
255
+ :url => Rails.application.routes.url_helpers.send(Auth::OmniAuth::Path.create_or_index_path(Auth.configuration.product_class),{})
256
+ }
257
+
258
+ end
259
+
260
+ unless self.secondary_links["Add New Product"]
261
+ self.secondary_links["Add New Product"] = {
262
+ :partial => "auth/shopping/products/search_results/add_product.html.erb",
263
+ :instance_name_in_locals => "product",
264
+ :other_locals => {}
265
+ }
266
+ end
267
+
268
+ end
269
+
270
+
271
+ def set_autocomplete_tags
272
+ self.tags = []
273
+ self.tags << "product"
274
+ end
275
+
276
+ def set_autocomplete_description
277
+ self.autocomplete_description = self.name + " - " + self.description
278
+ end
279
+
280
+ def set_primary_link
281
+ self.primary_link = Rails.application.routes.url_helpers.send(Auth::OmniAuth::Path.show_or_update_or_delete_path(Auth.configuration.product_class),self.id.to_s)
282
+ end
148
283
 
149
284
  end
@@ -10,15 +10,18 @@ module Auth::Concerns::UserConcern
10
10
  included do
11
11
 
12
12
  INDEX_DEFINITION = {
13
+ index_name: Auth.configuration.brand_name.downcase,
13
14
  index_options: {
14
15
  settings: {
15
16
  index: Auth::Concerns::EsConcern::AUTOCOMPLETE_INDEX_SETTINGS
16
17
  },
17
18
  mappings: {
18
- Auth::OmniAuth::Path.pathify(Auth.configuration.user_class) => Auth::Concerns::EsConcern::AUTOCOMPLETE_INDEX_MAPPINGS
19
+ "document" => Auth::Concerns::EsConcern::AUTOCOMPLETE_INDEX_MAPPINGS
19
20
  }
20
21
  }
21
22
  }
23
+ ## so now first let me change the mapping name, and also shift the as_indexed_json def to the respective model everywhere
24
+
22
25
 
23
26
  include GlobalID::Identification
24
27
 
@@ -41,6 +44,7 @@ module Auth::Concerns::UserConcern
41
44
  before_save do |document|
42
45
  ## set the document resource id if its not already set.
43
46
  document.resource_id = document.id.to_s unless document.resource_id
47
+ document.resource_class = document.class.name.to_s unless document.resource_class
44
48
 
45
49
  ##if the additional login param changes, for eg. during an update, then set the additional login param status to pending immediately before saving itself, so that it is transactional type of thing.
46
50
  if document.additional_login_param_changed? && !document.additional_login_param.blank?
@@ -81,6 +85,8 @@ module Auth::Concerns::UserConcern
81
85
  #######################################################
82
86
 
83
87
  field :resource_id, type: String
88
+ field :resource_class, type: String
89
+
84
90
 
85
91
  ########################################################
86
92
  # FIELDS FOR ALLOWING THE ADMIN TO CREATE USERS, AND ALSO REQUEST
@@ -252,6 +258,7 @@ module Auth::Concerns::UserConcern
252
258
 
253
259
  ## okay so this will be modified in the simple token authentication part.
254
260
  attr_accessor :authentication_token
261
+ attr_accessor :es
255
262
  field :encrypted_authentication_token, type: String
256
263
 
257
264
  field :authentication_token_expires_at, type: Integer
@@ -771,4 +778,79 @@ module Auth::Concerns::UserConcern
771
778
 
772
779
  end
773
780
 
781
+ ################################################################
782
+ ##
783
+ ##
784
+ ## OWNERSHIP.
785
+ ##
786
+ ##
787
+ ################################################################
788
+ def is_owner?(object)
789
+ raise "object does not have a resource id field" unless ((object.respond_to? :resource_id) || (object.respond_to? :resource_class))
790
+ return true if ((object.resource_class == self.resource_class) && (object.resource_id == self.resource_id))
791
+ return false
792
+ end
793
+
794
+ ################################################################
795
+ ##
796
+ ##
797
+ ## AUTOCOMPLETE CONCERN PART.
798
+ ##
799
+ ##
800
+ ################################################################
801
+
802
+
803
+ ## so the user's will have to give a unique id,
804
+ ## what if they want you to check that ?
805
+ def set_autocomplete_tags
806
+ if self.new_record?
807
+ self.tags << "user"
808
+ self.tags << self.name
809
+ self.tags << self.email
810
+ self.tags << self.additional_login_param
811
+ end
812
+ end
813
+
814
+ def set_primary_link
815
+ self.primary_link = Rails.application.routes.url_helpers.profile_path(:id => self.id.to_s, :resource => self.class.name.pluralize.downcase)
816
+ end
817
+
818
+ ## ill take it from here onwards.
819
+
820
+ ## now first we are going to test it with the ui.
821
+ ## and we are going to test it with one admin and one non admin account
822
+ ## before that, we are going to
823
+ def set_secondary_links
824
+ unless self.secondary_links["Add New Account"]
825
+ self.secondary_links["Add New User"] = {
826
+ :partial => "auth/admin_create_users/search_results/add_new_user.html.erb",
827
+ :instance_name_in_locals => "user",
828
+ :other_locals => {}
829
+ }
830
+ end
831
+ unless self.secondary_links["Manage This Account"]
832
+ self.secondary_links["Manage This User"] = {
833
+ :partial => "auth/admin_create_users/search_results/manage_user.html.erb",
834
+ :instance_name_in_locals => "user",
835
+ :other_locals => {}
836
+ }
837
+ end
838
+ unless self.secondary_links["Set Unset Proxy"]
839
+ self.secondary_links["Set Unset Proxy"] = {
840
+ :partial => "auth/profiles/search_results/switch_to_user.html.erb",
841
+ :instance_name_in_locals => "user",
842
+ :other_locals => {}
843
+ }
844
+ end
845
+
846
+ ## switch to the user, and see all associated people.
847
+
848
+ unless self.secondary_links["See All Associated People"]
849
+ self.secondary_links["See All Associated People"] = {
850
+ :url => Rails.application.routes.url_helpers.send(Auth::OmniAuth::Path.create_or_index_path(Auth.configuration.personality_class))
851
+ }
852
+ end
853
+
854
+ end
855
+
774
856
  end