we_bridge_rails_engine_orgs 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (300) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +4 -0
  5. data/CODE_OF_CONDUCT.md +13 -0
  6. data/Gemfile +34 -0
  7. data/Gemfile.lock +251 -0
  8. data/LICENSE.txt +21 -0
  9. data/MIT-LICENSE +20 -0
  10. data/README.md +41 -0
  11. data/README.rdoc +3 -0
  12. data/Rakefile +37 -0
  13. data/app/assets/javascripts/org_activities.js +2 -0
  14. data/app/assets/javascripts/org_branches.js +2 -0
  15. data/app/assets/javascripts/org_director_types.js +2 -0
  16. data/app/assets/javascripts/org_directors.js +2 -0
  17. data/app/assets/javascripts/org_member_tags.js +2 -0
  18. data/app/assets/javascripts/org_member_types.js +2 -0
  19. data/app/assets/javascripts/org_members.js +2 -0
  20. data/app/assets/javascripts/orgs.js +2 -0
  21. data/app/assets/stylesheets/org_activities.css +4 -0
  22. data/app/assets/stylesheets/org_branches.css +4 -0
  23. data/app/assets/stylesheets/org_director_types.css +4 -0
  24. data/app/assets/stylesheets/org_directors.css +4 -0
  25. data/app/assets/stylesheets/org_member_tags.css +4 -0
  26. data/app/assets/stylesheets/org_member_types.css +4 -0
  27. data/app/assets/stylesheets/org_members.css +4 -0
  28. data/app/assets/stylesheets/orgs.css +4 -0
  29. data/app/assets/stylesheets/scaffold.css +56 -0
  30. data/app/controllers/org_activities_controller.rb +8 -0
  31. data/app/controllers/org_branch_types_controller.rb +9 -0
  32. data/app/controllers/org_branches_controller.rb +9 -0
  33. data/app/controllers/org_director_types_controller.rb +8 -0
  34. data/app/controllers/org_directors_controller.rb +8 -0
  35. data/app/controllers/org_member_tags_controller.rb +8 -0
  36. data/app/controllers/org_member_types_controller.rb +8 -0
  37. data/app/controllers/org_members_controller.rb +8 -0
  38. data/app/controllers/orgs_controller.rb +8 -0
  39. data/app/helpers/org_activities_helper.rb +2 -0
  40. data/app/helpers/org_branches_helper.rb +2 -0
  41. data/app/helpers/org_director_types_helper.rb +2 -0
  42. data/app/helpers/org_directors_helper.rb +2 -0
  43. data/app/helpers/org_member_tags_helper.rb +2 -0
  44. data/app/helpers/org_member_types_helper.rb +2 -0
  45. data/app/helpers/org_members_helper.rb +2 -0
  46. data/app/helpers/orgs_helper.rb +2 -0
  47. data/app/mailers/.keep +0 -0
  48. data/app/models/.keep +0 -0
  49. data/app/models/org.rb +11 -0
  50. data/app/models/org_activity.rb +8 -0
  51. data/app/models/org_activity_text.rb +7 -0
  52. data/app/models/org_branch.rb +9 -0
  53. data/app/models/org_branch_member_mapping.rb +4 -0
  54. data/app/models/org_branch_text.rb +8 -0
  55. data/app/models/org_branch_type.rb +11 -0
  56. data/app/models/org_branch_type_text.rb +9 -0
  57. data/app/models/org_director_type.rb +11 -0
  58. data/app/models/org_director_type_text.rb +8 -0
  59. data/app/models/org_member.rb +28 -0
  60. data/app/models/org_member_tag.rb +8 -0
  61. data/app/models/org_member_tag_mapping.rb +5 -0
  62. data/app/models/org_member_tag_text.rb +7 -0
  63. data/app/models/org_member_text.rb +22 -0
  64. data/app/models/org_member_type.rb +11 -0
  65. data/app/models/org_member_type_text.rb +8 -0
  66. data/app/models/org_text.rb +7 -0
  67. data/app/views/.keep +0 -0
  68. data/app/views/common/_edit.html.builder +2 -0
  69. data/app/views/common/_index.html.builder +1 -0
  70. data/app/views/common/_new.html.builder +1 -0
  71. data/app/views/common/_show.html.builder +1 -0
  72. data/app/views/org_activities/edit.html.builder +1 -0
  73. data/app/views/org_activities/index.html.builder +1 -0
  74. data/app/views/org_activities/new.html.builder +1 -0
  75. data/app/views/org_activities/show.html.builder +9 -0
  76. data/app/views/org_branch_types/edit.html.builder +1 -0
  77. data/app/views/org_branch_types/index.html.builder +1 -0
  78. data/app/views/org_branch_types/new.html.builder +1 -0
  79. data/app/views/org_branch_types/show.html.builder +9 -0
  80. data/app/views/org_branches/edit.html.builder +1 -0
  81. data/app/views/org_branches/index.html.builder +1 -0
  82. data/app/views/org_branches/new.html.builder +1 -0
  83. data/app/views/org_branches/show.html.builder +9 -0
  84. data/app/views/org_director_types/_form.html.builder +14 -0
  85. data/app/views/org_director_types/edit.html.builder +1 -0
  86. data/app/views/org_director_types/index.html.builder +1 -0
  87. data/app/views/org_director_types/new.html.builder +1 -0
  88. data/app/views/org_director_types/show.html.builder +9 -0
  89. data/app/views/org_directors/edit.html.builder +1 -0
  90. data/app/views/org_directors/index.html.builder +1 -0
  91. data/app/views/org_directors/new.html.builder +1 -0
  92. data/app/views/org_directors/show.html.builder +9 -0
  93. data/app/views/org_member_tags/edit.html.builder +1 -0
  94. data/app/views/org_member_tags/index.html.builder +1 -0
  95. data/app/views/org_member_tags/new.html.builder +1 -0
  96. data/app/views/org_member_tags/show.html.builder +9 -0
  97. data/app/views/org_member_types/edit.html.builder +1 -0
  98. data/app/views/org_member_types/index.html.builder +1 -0
  99. data/app/views/org_member_types/new.html.builder +1 -0
  100. data/app/views/org_member_types/show.html.builder +9 -0
  101. data/app/views/org_members/edit.html.builder +1 -0
  102. data/app/views/org_members/index.html.builder +1 -0
  103. data/app/views/org_members/new.html.builder +1 -0
  104. data/app/views/org_members/show.html.builder +9 -0
  105. data/app/views/orgs/edit.html.builder +1 -0
  106. data/app/views/orgs/index.html.builder +1 -0
  107. data/app/views/orgs/new.html.builder +1 -0
  108. data/app/views/orgs/show.html.builder +13 -0
  109. data/bin/console +14 -0
  110. data/bin/rails +12 -0
  111. data/bin/setup +7 -0
  112. data/config/routes.rb +11 -0
  113. data/db/migrate/20150812025526_create_orgs.rb +122 -0
  114. data/db/migrate/20150814183339_create_org_branches_table.rb +31 -0
  115. data/lib/tasks/we_bridge_rails_engine_orgs_tasks.rake +4 -0
  116. data/lib/we_bridge_rails_engine_orgs/engine.rb +13 -0
  117. data/lib/we_bridge_rails_engine_orgs/version.rb +3 -0
  118. data/lib/we_bridge_rails_engine_orgs.rb +7 -0
  119. data/spec/controllers/org_activities_controller_spec.rb +159 -0
  120. data/spec/controllers/org_branches_controller_spec.rb +159 -0
  121. data/spec/controllers/org_director_types_controller_spec.rb +159 -0
  122. data/spec/controllers/org_directors_controller_spec.rb +159 -0
  123. data/spec/controllers/org_member_tags_controller_spec.rb +159 -0
  124. data/spec/controllers/org_member_types_controller_spec.rb +159 -0
  125. data/spec/controllers/org_members_controller_spec.rb +159 -0
  126. data/spec/controllers/orgs_controller_spec.rb +159 -0
  127. data/spec/dummy/README.rdoc +28 -0
  128. data/spec/dummy/Rakefile +6 -0
  129. data/spec/dummy/app/assets/javascripts/application.js +16 -0
  130. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  131. data/spec/dummy/app/controllers/application_controller.rb +8 -0
  132. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  133. data/spec/dummy/app/views/layouts/application.html.builder +14 -0
  134. data/spec/dummy/bin/bundle +3 -0
  135. data/spec/dummy/bin/rails +4 -0
  136. data/spec/dummy/bin/rake +4 -0
  137. data/spec/dummy/bin/setup +29 -0
  138. data/spec/dummy/config/application.rb +28 -0
  139. data/spec/dummy/config/boot.rb +5 -0
  140. data/spec/dummy/config/database.yml +25 -0
  141. data/spec/dummy/config/environment.rb +5 -0
  142. data/spec/dummy/config/environments/development.rb +41 -0
  143. data/spec/dummy/config/environments/production.rb +79 -0
  144. data/spec/dummy/config/environments/test.rb +42 -0
  145. data/spec/dummy/config/initializers/assets.rb +11 -0
  146. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  147. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  148. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  149. data/spec/dummy/config/initializers/inflections.rb +16 -0
  150. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  151. data/spec/dummy/config/initializers/provider_settings.rb +2 -0
  152. data/spec/dummy/config/initializers/session_store.rb +3 -0
  153. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  154. data/spec/dummy/config/locales/en.yml +23 -0
  155. data/spec/dummy/config/omniauth.yml +63 -0
  156. data/spec/dummy/config/omniauth.yml.org +63 -0
  157. data/spec/dummy/config/routes.rb +56 -0
  158. data/spec/dummy/config/secrets.yml +22 -0
  159. data/spec/dummy/config.ru +4 -0
  160. data/spec/dummy/db/development.sqlite3 +0 -0
  161. data/spec/dummy/db/schema.rb +305 -0
  162. data/spec/dummy/db/test.sqlite3 +0 -0
  163. data/spec/dummy/log/development.log +12006 -0
  164. data/spec/dummy/log/test.log +154 -0
  165. data/spec/dummy/public/404.html +67 -0
  166. data/spec/dummy/public/422.html +67 -0
  167. data/spec/dummy/public/500.html +66 -0
  168. data/spec/dummy/public/favicon.ico +0 -0
  169. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/0BZmBV4GBBP2mXT-Bq5KS4qdbAh_4G6nOtgCtrH4rNE.cache +1 -0
  170. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/1RRK_DyUgv8T2sFbYEG6n6-JvG3xMvlZCTYWyE_cCXU.cache +0 -0
  171. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/1bGL2UVgPNGIpbmIxMm7Zhqz1S3_5E_-hemJChBQYKI.cache +0 -0
  172. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2fgp297hCEN9mggAbqDhssSSfNQbXHLAGYHRcoeNyMQ.cache +2 -0
  173. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
  174. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5sfZJfc-8-coZsxWhnG7QNi9QbTQm3LuCvHanza6jVY.cache +0 -0
  175. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6jIW5_LzHTeo0nHF3f7SOdaqy3yT35x4obLjMhvkbRQ.cache +2 -0
  176. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/86j6jf2oNNPSVkHMTuUJoZzGYHNEvWwMfSIAh-Q_wiI.cache +0 -0
  177. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/8NqLvJ5MoVa0NPxGOKngFS4ZRsnGK6IQfHkl-U1MUrI.cache +1 -0
  178. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/C8MAmSRXsJWbTeXMvLqOrrhN_KnBi0ut8iX91fZnhLg.cache +1 -0
  179. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/DiLk-rAzABNB75ElsvKdP_Eh-V_KblIbr3U3QclyF0o.cache +0 -0
  180. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/E8HcM2aVb1dScqT08oJRlNyfgM0-iVkTDyQcN7cddF4.cache +0 -0
  181. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/FBJ-onmDShvDUhlQ7Jacn1hS_Nju3dClO7O861-e8q8.cache +0 -0
  182. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Fwk7r3eAJYuVAYg8_pGI1Vj1UZbV-jPP93SpN8tJyPs.cache +1 -0
  183. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/GTfNHEYnjfZXZHTGQSuEEiuCakM6lcHxCCLoBYzvdew.cache +0 -0
  184. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/HI4BM29XxjwMtmmewg36qsoObiRYy2V2GI09aG1y_EE.cache +1 -0
  185. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/HamVqV58DQAmEiKhvw9Ng_7mraOj8HKyOMsDQM19PxM.cache +0 -0
  186. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/JigkThideDLksj6ZrufTx6bLVyJBmNDbaouRbMbZdIA.cache +0 -0
  187. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/N_o3GYuVrQiNLiqimWjkHB5CJHSCC7K3Hno-XiBGa7A.cache +1 -0
  188. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/OAgB7vSwYbsD10H3ox3vY1aEH-zUkcjF8v9YwW6EJbY.cache +0 -0
  189. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
  190. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/QYjdvCmvd_aP40208t6tH0TukGVp8vqM6esnnFq0cOA.cache +1 -0
  191. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/R7QFe2khKmUZgHX-_me15tkaeNQw9v3-d_dThxjrU8s.cache +1 -0
  192. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/S8xObcvQGG6uj1eqGy7IvL5j3qNf9tunwD6OjNQIB_8.cache +1 -0
  193. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/SDsevrzzr3Ytog2iS84FzNXGgIU7sSQkTWTIIum4coo.cache +0 -0
  194. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/UDhlEjeIR7r4grFS_AeYBTYse5F7Ojju8yu0mScz6Ic.cache +2 -0
  195. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/UEflM8eWRGnUEhwM2m8ZvJv1Xc807SwOZ_gUoQRxdT4.cache +1 -0
  196. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/VFEdJXCIVpXWqIFcfWoPj_KqrOCNWZ7fppjVRBFQmag.cache +0 -0
  197. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Vs2R-eMvzDzqjlKluRmPf0JVhvWU7R94DRz7Jphhnzg.cache +1 -0
  198. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/XBt_bibQOuIG9ocaYQmJsmtJgd5BcrZ4jQ68t-439zQ.cache +0 -0
  199. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/XDmpnnquS4XMFZuvuyM7io3FX2wkqXIzkTerm72ZDdo.cache +1 -0
  200. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Z9_T0XrFi2IVgHl_2slv4wpbdSa0EhpECdvLA25u9O0.cache +1 -0
  201. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/a1JHimmgPvl2EuwWDMR4OlNpJV4TufqgTpOi7Sy0TsI.cache +1 -0
  202. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/a6-MgFZdmmAL52ip1yli2iaKu4zRihIVZZPsQUaxpqI.cache +1 -0
  203. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/axFrxpUG59UHCdeJI4Kl3eOyLcRfl9uCRRi6NAgMaI4.cache +0 -0
  204. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/bme2_XB4XKGqohc1KW9Gqe-LXNbANY7bwm9oZGHaTwI.cache +3 -0
  205. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/c1nFo3JnHLdXWKWgLVt9jmiCmEQ2ndPoUTjNv1M1OkI.cache +0 -0
  206. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/cnXDDro8GJGKj_nlcBqX9sLGgT-w0JARPjWS5VCIRSw.cache +1 -0
  207. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/dDi4KC6wzIbiwfTi_E35Zl4Z_lErkg6q_6FK30kZLTo.cache +1 -0
  208. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eN4oUfIofrNhih1pDOVXB84IYQMEcgduHwZPSqnwIjw.cache +1 -0
  209. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gDicoS8YCD-tJz--CXIF0afhT0rq6D_LLCh0GE7G2HI.cache +1 -0
  210. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gDw6ULoqC7Ox2nerE01WVLVgc9XbR1WbPL-VjhbPkCA.cache +0 -0
  211. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gRVM3WJ-shebeFmALsY4niZWEYbbzCrGP9LisSCLifg.cache +1 -0
  212. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gVx-CmBVKIeSliU7Zb8RSFta76qvQCx1VUJhqedZdz4.cache +1 -0
  213. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/jDLYA3YpFOlifBm6AHj2J8jeacy_iljBTonj_mhod6I.cache +2 -0
  214. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/nawE49iR8fvD7PVmDVPX_qvJCAobi3MSVVgcnibd_oQ.cache +1 -0
  215. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ndmZMkzdU4-m13TcmfViszPUFu-0O_xNyv1lTqtHhkQ.cache +1 -0
  216. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/oMnDzGezNNiIYic9SdXkm-yjJdYaCl7m2bHnlaFl9wg.cache +1 -0
  217. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/pzdXCzT9_-bzrPIElwqWhFt9ELoAUNtEizmWb1Tgufk.cache +0 -0
  218. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/qQhBmQ4Iwrq-oIoV6CDEB9cTt4CUDyDE6u4t9-Nz1aY.cache +1 -0
  219. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/qzfkRg1kuNevdpfIf5kcR1-9Q4buHB1dxcl03OT5iao.cache +0 -0
  220. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/s7AiRxV9LdOVAylAE38RiKCstOIGXxlkhZ15nV8_GfY.cache +0 -0
  221. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/t3Nl1ub-k4CMd3OQC_Hmp23_aD9smrJFrL0FzajnCMk.cache +2 -0
  222. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/u6G1NYM-f-jAFL4fAGAvCvyNa2T448YXFBCB2r6LPvA.cache +0 -0
  223. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/uBJ2DBMKAov-3rDsEAsHb0PVg0dOFcff9i0e4ESOs6c.cache +0 -0
  224. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/wHu7ynIgCKw1GeI1xvWayqO05ZrBt_eukD-Fx249ZZ0.cache +1 -0
  225. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/wdVqCI5gqjc-qNnqeJ80WppA6paXIB4-ovEETxHP91k.cache +0 -0
  226. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/xVM8A6y2-lU8UBw4lpLNUNMKB-LwwH01oZBu8TjnnSY.cache +0 -0
  227. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/xz0KN1Vpbne-X0aKg8iepHDn2X6_soUrkNmrQwCgPpQ.cache +1 -0
  228. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ysBC3QUuPfkgfYV3nBpTw_znt9DtKC5I7erWmLCPTCM.cache +1 -0
  229. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zd_YJiP9IEPD6jymqPu1CaH2XP0-m5SZBe9uLiYqMLI.cache +1 -0
  230. data/spec/dummy/tmp/pids/server.pid +1 -0
  231. data/spec/factories/org_activities.rb +6 -0
  232. data/spec/factories/org_branches.rb +6 -0
  233. data/spec/factories/org_director_types.rb +6 -0
  234. data/spec/factories/org_directors.rb +6 -0
  235. data/spec/factories/org_member_tags.rb +6 -0
  236. data/spec/factories/org_member_types.rb +6 -0
  237. data/spec/factories/org_members.rb +6 -0
  238. data/spec/factories/orgs.rb +6 -0
  239. data/spec/helpers/org_activities_helper_spec.rb +15 -0
  240. data/spec/helpers/org_branches_helper_spec.rb +15 -0
  241. data/spec/helpers/org_director_types_helper_spec.rb +15 -0
  242. data/spec/helpers/org_directors_helper_spec.rb +15 -0
  243. data/spec/helpers/org_member_tags_helper_spec.rb +15 -0
  244. data/spec/helpers/org_member_types_helper_spec.rb +15 -0
  245. data/spec/helpers/org_members_helper_spec.rb +15 -0
  246. data/spec/helpers/orgs_helper_spec.rb +15 -0
  247. data/spec/models/org_activity_spec.rb +5 -0
  248. data/spec/models/org_branch_spec.rb +5 -0
  249. data/spec/models/org_director_spec.rb +5 -0
  250. data/spec/models/org_director_type_spec.rb +5 -0
  251. data/spec/models/org_member_spec.rb +5 -0
  252. data/spec/models/org_member_tag_spec.rb +5 -0
  253. data/spec/models/org_member_type_spec.rb +5 -0
  254. data/spec/models/org_spec.rb +5 -0
  255. data/spec/omniauth.yml +63 -0
  256. data/spec/rails_helper.rb +54 -0
  257. data/spec/routing/org_activities_routing_spec.rb +39 -0
  258. data/spec/routing/org_branches_routing_spec.rb +39 -0
  259. data/spec/routing/org_director_types_routing_spec.rb +39 -0
  260. data/spec/routing/org_directors_routing_spec.rb +39 -0
  261. data/spec/routing/org_member_tags_routing_spec.rb +39 -0
  262. data/spec/routing/org_member_types_routing_spec.rb +39 -0
  263. data/spec/routing/org_members_routing_spec.rb +39 -0
  264. data/spec/routing/orgs_routing_spec.rb +39 -0
  265. data/spec/spec_helper.rb +2 -0
  266. data/spec/views/org_activities/edit.html.builder_spec.rb +14 -0
  267. data/spec/views/org_activities/index.html.builder_spec.rb +14 -0
  268. data/spec/views/org_activities/new.html.builder_spec.rb +14 -0
  269. data/spec/views/org_activities/show.html.builder_spec.rb +11 -0
  270. data/spec/views/org_branches/edit.html.builder_spec.rb +14 -0
  271. data/spec/views/org_branches/index.html.builder_spec.rb +14 -0
  272. data/spec/views/org_branches/new.html.builder_spec.rb +14 -0
  273. data/spec/views/org_branches/show.html.builder_spec.rb +11 -0
  274. data/spec/views/org_director_types/edit.html.builder_spec.rb +14 -0
  275. data/spec/views/org_director_types/index.html.builder_spec.rb +14 -0
  276. data/spec/views/org_director_types/new.html.builder_spec.rb +14 -0
  277. data/spec/views/org_director_types/show.html.builder_spec.rb +11 -0
  278. data/spec/views/org_directors/edit.html.builder_spec.rb +14 -0
  279. data/spec/views/org_directors/index.html.builder_spec.rb +14 -0
  280. data/spec/views/org_directors/new.html.builder_spec.rb +14 -0
  281. data/spec/views/org_directors/show.html.builder_spec.rb +11 -0
  282. data/spec/views/org_member_tags/edit.html.builder_spec.rb +14 -0
  283. data/spec/views/org_member_tags/index.html.builder_spec.rb +14 -0
  284. data/spec/views/org_member_tags/new.html.builder_spec.rb +14 -0
  285. data/spec/views/org_member_tags/show.html.builder_spec.rb +11 -0
  286. data/spec/views/org_member_types/edit.html.builder_spec.rb +14 -0
  287. data/spec/views/org_member_types/index.html.builder_spec.rb +14 -0
  288. data/spec/views/org_member_types/new.html.builder_spec.rb +14 -0
  289. data/spec/views/org_member_types/show.html.builder_spec.rb +11 -0
  290. data/spec/views/org_members/edit.html.builder_spec.rb +14 -0
  291. data/spec/views/org_members/index.html.builder_spec.rb +14 -0
  292. data/spec/views/org_members/new.html.builder_spec.rb +14 -0
  293. data/spec/views/org_members/show.html.builder_spec.rb +11 -0
  294. data/spec/views/orgs/edit.html.builder_spec.rb +14 -0
  295. data/spec/views/orgs/index.html.builder_spec.rb +14 -0
  296. data/spec/views/orgs/new.html.builder_spec.rb +14 -0
  297. data/spec/views/orgs/show.html.builder_spec.rb +11 -0
  298. data/spec/we_bridge_rails_engine_orgs_spec.rb +11 -0
  299. data/we_bridge_rails_engine_orgs.gemspec +43 -0
  300. metadata +690 -0
@@ -0,0 +1,159 @@
1
+ require 'rails_helper'
2
+
3
+ # This spec was generated by rspec-rails when you ran the scaffold generator.
4
+ # It demonstrates how one might use RSpec to specify the controller code that
5
+ # was generated by Rails when you ran the scaffold generator.
6
+ #
7
+ # It assumes that the implementation code is generated by the rails scaffold
8
+ # generator. If you are using any extension libraries to generate different
9
+ # controller code, this generated spec may or may not pass.
10
+ #
11
+ # It only uses APIs available in rails and/or rspec-rails. There are a number
12
+ # of tools you can use to make these specs even more expressive, but we're
13
+ # sticking to rails and rspec-rails APIs to keep things simple and stable.
14
+ #
15
+ # Compared to earlier versions of this generator, there is very limited use of
16
+ # stubs and message expectations in this spec. Stubs are only used when there
17
+ # is no simpler way to get a handle on the object needed for the example.
18
+ # Message expectations are only used when there is no simpler way to specify
19
+ # that an instance is receiving a specific message.
20
+
21
+ RSpec.describe OrgsController, type: :controller do
22
+
23
+ # This should return the minimal set of attributes required to create a valid
24
+ # Org. As you add validations to Org, be sure to
25
+ # adjust the attributes here as well.
26
+ let(:valid_attributes) {
27
+ skip("Add a hash of attributes valid for your model")
28
+ }
29
+
30
+ let(:invalid_attributes) {
31
+ skip("Add a hash of attributes invalid for your model")
32
+ }
33
+
34
+ # This should return the minimal set of values that should be in the session
35
+ # in order to pass any filters (e.g. authentication) defined in
36
+ # OrgsController. Be sure to keep this updated too.
37
+ let(:valid_session) { {} }
38
+
39
+ describe "GET #index" do
40
+ it "assigns all orgs as @orgs" do
41
+ org = Org.create! valid_attributes
42
+ get :index, {}, valid_session
43
+ expect(assigns(:orgs)).to eq([org])
44
+ end
45
+ end
46
+
47
+ describe "GET #show" do
48
+ it "assigns the requested org as @org" do
49
+ org = Org.create! valid_attributes
50
+ get :show, {:id => org.to_param}, valid_session
51
+ expect(assigns(:org)).to eq(org)
52
+ end
53
+ end
54
+
55
+ describe "GET #new" do
56
+ it "assigns a new org as @org" do
57
+ get :new, {}, valid_session
58
+ expect(assigns(:org)).to be_a_new(Org)
59
+ end
60
+ end
61
+
62
+ describe "GET #edit" do
63
+ it "assigns the requested org as @org" do
64
+ org = Org.create! valid_attributes
65
+ get :edit, {:id => org.to_param}, valid_session
66
+ expect(assigns(:org)).to eq(org)
67
+ end
68
+ end
69
+
70
+ describe "POST #create" do
71
+ context "with valid params" do
72
+ it "creates a new Org" do
73
+ expect {
74
+ post :create, {:org => valid_attributes}, valid_session
75
+ }.to change(Org, :count).by(1)
76
+ end
77
+
78
+ it "assigns a newly created org as @org" do
79
+ post :create, {:org => valid_attributes}, valid_session
80
+ expect(assigns(:org)).to be_a(Org)
81
+ expect(assigns(:org)).to be_persisted
82
+ end
83
+
84
+ it "redirects to the created org" do
85
+ post :create, {:org => valid_attributes}, valid_session
86
+ expect(response).to redirect_to(Org.last)
87
+ end
88
+ end
89
+
90
+ context "with invalid params" do
91
+ it "assigns a newly created but unsaved org as @org" do
92
+ post :create, {:org => invalid_attributes}, valid_session
93
+ expect(assigns(:org)).to be_a_new(Org)
94
+ end
95
+
96
+ it "re-renders the 'new' template" do
97
+ post :create, {:org => invalid_attributes}, valid_session
98
+ expect(response).to render_template("new")
99
+ end
100
+ end
101
+ end
102
+
103
+ describe "PUT #update" do
104
+ context "with valid params" do
105
+ let(:new_attributes) {
106
+ skip("Add a hash of attributes valid for your model")
107
+ }
108
+
109
+ it "updates the requested org" do
110
+ org = Org.create! valid_attributes
111
+ put :update, {:id => org.to_param, :org => new_attributes}, valid_session
112
+ org.reload
113
+ skip("Add assertions for updated state")
114
+ end
115
+
116
+ it "assigns the requested org as @org" do
117
+ org = Org.create! valid_attributes
118
+ put :update, {:id => org.to_param, :org => valid_attributes}, valid_session
119
+ expect(assigns(:org)).to eq(org)
120
+ end
121
+
122
+ it "redirects to the org" do
123
+ org = Org.create! valid_attributes
124
+ put :update, {:id => org.to_param, :org => valid_attributes}, valid_session
125
+ expect(response).to redirect_to(org)
126
+ end
127
+ end
128
+
129
+ context "with invalid params" do
130
+ it "assigns the org as @org" do
131
+ org = Org.create! valid_attributes
132
+ put :update, {:id => org.to_param, :org => invalid_attributes}, valid_session
133
+ expect(assigns(:org)).to eq(org)
134
+ end
135
+
136
+ it "re-renders the 'edit' template" do
137
+ org = Org.create! valid_attributes
138
+ put :update, {:id => org.to_param, :org => invalid_attributes}, valid_session
139
+ expect(response).to render_template("edit")
140
+ end
141
+ end
142
+ end
143
+
144
+ describe "DELETE #destroy" do
145
+ it "destroys the requested org" do
146
+ org = Org.create! valid_attributes
147
+ expect {
148
+ delete :destroy, {:id => org.to_param}, valid_session
149
+ }.to change(Org, :count).by(-1)
150
+ end
151
+
152
+ it "redirects to the orgs list" do
153
+ org = Org.create! valid_attributes
154
+ delete :destroy, {:id => org.to_param}, valid_session
155
+ expect(response).to redirect_to(orgs_url)
156
+ end
157
+ end
158
+
159
+ end
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
@@ -0,0 +1,16 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ // require turbolinks
16
+ //= require_tree .
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,8 @@
1
+ require 'we_bridge/exceptions'
2
+ class ApplicationController < ActionController::Base
3
+ # Prevent CSRF attacks by raising an exception.
4
+ # For APIs, you may want to use :null_session instead.
5
+ protect_from_forgery with: :exception
6
+ include WeBridgeRailsEngineUsers::ApplicationController
7
+ include WeBridge::Exceptions
8
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,14 @@
1
+ markup do |m|
2
+ m << "<!DOCTYPE html>"
3
+ m.html do
4
+ m.head do
5
+ m.title "Dummy"
6
+ m << stylesheet_link_tag('application', media: 'all', 'data-turbolinks-track' => true)
7
+ m << javascript_include_tag('application', 'data-turbolinks-track' => true )
8
+ m << csrf_meta_tags
9
+ end
10
+ m.body do
11
+ m << yield
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../config/boot'
3
+ require 'rake'
4
+ Rake.application.run
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+
4
+ # path to your application root.
5
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
+
7
+ Dir.chdir APP_ROOT do
8
+ # This script is a starting point to setup your application.
9
+ # Add necessary setup steps to this file:
10
+
11
+ puts "== Installing dependencies =="
12
+ system "gem install bundler --conservative"
13
+ system "bundle check || bundle install"
14
+
15
+ # puts "\n== Copying sample files =="
16
+ # unless File.exist?("config/database.yml")
17
+ # system "cp config/database.yml.sample config/database.yml"
18
+ # end
19
+
20
+ puts "\n== Preparing database =="
21
+ system "bin/rake db:setup"
22
+
23
+ puts "\n== Removing old logs and tempfiles =="
24
+ system "rm -f log/*"
25
+ system "rm -rf tmp/cache"
26
+
27
+ puts "\n== Restarting application server =="
28
+ system "touch tmp/restart.txt"
29
+ end
@@ -0,0 +1,28 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require(*Rails.groups)
6
+ require "we_bridge_rails_engine_orgs"
7
+
8
+ module Dummy
9
+ class Application < Rails::Application
10
+ # Settings in config/environments/* take precedence over those specified here.
11
+ # Application configuration should go into files in config/initializers
12
+ # -- all .rb files in that directory are automatically loaded.
13
+
14
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
15
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
16
+ # config.time_zone = 'Central Time (US & Canada)'
17
+
18
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
19
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
20
+ # config.i18n.default_locale = :de
21
+
22
+ # Do not swallow errors in after_commit/after_rollback callbacks.
23
+ config.active_record.raise_in_transactional_callbacks = true
24
+ end
25
+ end
26
+
27
+ # require 'we_bridge/html_builder'
28
+ # WeBridge::HtmlBuilder.register_template_handler
@@ -0,0 +1,5 @@
1
+ # Set up gems listed in the Gemfile.
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
+ $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ #
7
+ default: &default
8
+ adapter: sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ development:
13
+ <<: *default
14
+ database: db/development.sqlite3
15
+
16
+ # Warning: The database defined as "test" will be erased and
17
+ # re-generated from your development database when you run "rake".
18
+ # Do not set this db to the same as development or production.
19
+ test:
20
+ <<: *default
21
+ database: db/test.sqlite3
22
+
23
+ production:
24
+ <<: *default
25
+ database: db/production.sqlite3
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -0,0 +1,41 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
+
12
+ # Show full error reports and disable caching.
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send.
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger.
20
+ config.active_support.deprecation = :log
21
+
22
+ # Raise an error on page load if there are pending migrations.
23
+ config.active_record.migration_error = :page_load
24
+
25
+ # Debug mode disables concatenation and preprocessing of assets.
26
+ # This option may cause significant delays in view rendering with a large
27
+ # number of complex assets.
28
+ config.assets.debug = true
29
+
30
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
+ # yet still be able to expire them through the digest params.
32
+ config.assets.digest = true
33
+
34
+ # Adds additional error checking when serving assets at runtime.
35
+ # Checks for improperly declared sprockets dependencies.
36
+ # Raises helpful error messages.
37
+ config.assets.raise_runtime_errors = true
38
+
39
+ # Raises error for missing translations
40
+ # config.action_view.raise_on_missing_translations = true
41
+ end
@@ -0,0 +1,79 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # Code is not reloaded between requests.
5
+ config.cache_classes = true
6
+
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both threaded web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
14
+ config.consider_all_requests_local = false
15
+ config.action_controller.perform_caching = true
16
+
17
+ # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
+ # Add `rack-cache` to your Gemfile before enabling this.
19
+ # For large-scale production use, consider using a caching reverse proxy like
20
+ # NGINX, varnish or squid.
21
+ # config.action_dispatch.rack_cache = true
22
+
23
+ # Disable serving static files from the `/public` folder by default since
24
+ # Apache or NGINX already handles this.
25
+ config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
26
+
27
+ # Compress JavaScripts and CSS.
28
+ config.assets.js_compressor = :uglifier
29
+ # config.assets.css_compressor = :sass
30
+
31
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
32
+ config.assets.compile = false
33
+
34
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
35
+ # yet still be able to expire them through the digest params.
36
+ config.assets.digest = true
37
+
38
+ # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
39
+
40
+ # Specifies the header that your server uses for sending files.
41
+ # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
42
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
43
+
44
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
45
+ # config.force_ssl = true
46
+
47
+ # Use the lowest log level to ensure availability of diagnostic information
48
+ # when problems arise.
49
+ config.log_level = :debug
50
+
51
+ # Prepend all log lines with the following tags.
52
+ # config.log_tags = [ :subdomain, :uuid ]
53
+
54
+ # Use a different logger for distributed setups.
55
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
56
+
57
+ # Use a different cache store in production.
58
+ # config.cache_store = :mem_cache_store
59
+
60
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
61
+ # config.action_controller.asset_host = 'http://assets.example.com'
62
+
63
+ # Ignore bad email addresses and do not raise email delivery errors.
64
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
65
+ # config.action_mailer.raise_delivery_errors = false
66
+
67
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
68
+ # the I18n.default_locale when a translation cannot be found).
69
+ config.i18n.fallbacks = true
70
+
71
+ # Send deprecation notices to registered listeners.
72
+ config.active_support.deprecation = :notify
73
+
74
+ # Use default logging formatter so that PID and timestamp are not suppressed.
75
+ config.log_formatter = ::Logger::Formatter.new
76
+
77
+ # Do not dump schema after migrations.
78
+ config.active_record.dump_schema_after_migration = false
79
+ end
@@ -0,0 +1,42 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static file server for tests with Cache-Control for performance.
16
+ config.serve_static_files = true
17
+ config.static_cache_control = 'public, max-age=3600'
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Randomize the order test cases are executed.
35
+ config.active_support.test_order = :random
36
+
37
+ # Print deprecation notices to the stderr.
38
+ config.active_support.deprecation = :stderr
39
+
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
42
+ end
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,2 @@
1
+ require 'we_bridge_rails_engine_users'
2
+ WeBridgeRailsEngineUsers::ProviderSettings.reload!
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"