we_bridge_rails_engine_langs 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/lib/we_bridge_rails_engine_langs/version.rb +1 -1
  3. data/spec/controllers/langs_controller_spec.rb +159 -0
  4. data/spec/dummy/README.rdoc +28 -0
  5. data/spec/dummy/Rakefile +6 -0
  6. data/spec/dummy/app/assets/javascripts/application.js +16 -0
  7. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  8. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  9. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  10. data/spec/dummy/app/views/layouts/application.html.builder +14 -0
  11. data/spec/dummy/bin/bundle +3 -0
  12. data/spec/dummy/bin/rails +4 -0
  13. data/spec/dummy/bin/rake +4 -0
  14. data/spec/dummy/bin/setup +29 -0
  15. data/spec/dummy/config.ru +4 -0
  16. data/spec/dummy/config/application.rb +28 -0
  17. data/spec/dummy/config/boot.rb +5 -0
  18. data/spec/dummy/config/database.yml +25 -0
  19. data/spec/dummy/config/environment.rb +5 -0
  20. data/spec/dummy/config/environments/development.rb +41 -0
  21. data/spec/dummy/config/environments/production.rb +79 -0
  22. data/spec/dummy/config/environments/test.rb +42 -0
  23. data/spec/dummy/config/initializers/assets.rb +11 -0
  24. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  25. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  26. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  27. data/spec/dummy/config/initializers/inflections.rb +16 -0
  28. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  29. data/spec/dummy/config/initializers/session_store.rb +3 -0
  30. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  31. data/spec/dummy/config/locales/en.yml +23 -0
  32. data/spec/dummy/config/routes.rb +56 -0
  33. data/spec/dummy/config/secrets.yml +22 -0
  34. data/spec/dummy/db/development.sqlite3 +0 -0
  35. data/spec/dummy/db/schema.rb +37 -0
  36. data/spec/dummy/db/test.sqlite3 +0 -0
  37. data/spec/dummy/log/development.log +14982 -0
  38. data/spec/dummy/log/test.log +5059 -0
  39. data/spec/dummy/public/404.html +67 -0
  40. data/spec/dummy/public/422.html +67 -0
  41. data/spec/dummy/public/500.html +66 -0
  42. data/spec/dummy/public/favicon.ico +0 -0
  43. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/-r2NdbmeHjG9kw2B254pCTdOZcae_JHpZFt7NU5AzaQ.cache +2 -0
  44. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/0EBhwLEB92W_Nljz0gfxjxGIKOa0AubHV6SJ9cRyQo0.cache +1 -0
  45. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/0GmvJaIEVVrA2egzd20zq0CTE17zZJTF9yo-13MhsYA.cache +1 -0
  46. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/1vPmNRE4j7K1LnuI2qp-g570qUkk9Y_DKxfx0NUdb_0.cache +0 -0
  47. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2P4fvsq5BF7FJD7EVdOrdCJ55f8_rKYLJKfm8Wh2IxA.cache +1 -0
  48. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/3mxRK2O64Cv7wZv6cje5NWFYE6NBxV_-sb8uM7ZWnaI.cache +0 -0
  49. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/3xcYL1hdeXtqxCrzRy0QBERJ9mR3YHR8gPiVgMyw7ZM.cache +0 -0
  50. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/46iMP6GFtIuFIaMehDugsyqNfNJt0HlfU_TzlqP8ALg.cache +1 -0
  51. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5wPfKe_LbNv8jWFRtlMGbaihZJZrmJDx_9mxRapZbr4.cache +1 -0
  52. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5z6VbGXjBtgZ99myUKrJtPQGLZj1wGJjA5AGaULqAEg.cache +1 -0
  53. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6lxPDcsVIfoUxE-zYzFyF9sEcyW_B2imt_60Ws6NDyA.cache +1 -0
  54. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6miANPfRSik4W9LMazVv92IOaYZY1YV-nVY7z08gJuo.cache +0 -0
  55. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6pJvawezahf0FHhaZBqYxZ2fEcOVkB-cVuxdyVK1ny8.cache +0 -0
  56. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/7GOo-V3NKU5PSz263wB429sdrStxByTtPxxGONW3W0k.cache +1 -0
  57. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/7HjraUn0WNbz8qOOpMjsMaKZGLfz1foWzcjIZEmKFEM.cache +1 -0
  58. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/7pi7QPLMJluqPbujJ-cwsQGzjOsUgyBANOMMZVjgzIg.cache +1 -0
  59. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/8Mu3bUOBOsdkC_jkoOfQnZrhK4lbcIyi-rjCf_bgiHo.cache +0 -0
  60. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/8Spa8UcJ3Wg6ckoo1W7hrxE0I1Qas16pZJw8alBTPuQ.cache +1 -0
  61. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9cSXtVkpOJnMeFA1Hm_kPnzWOutfhckOzKp_7B3L624.cache +0 -0
  62. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9dxARGjDJAhXm5OoLgAk5GA_lmfJrjfVYyuQVXuIyu0.cache +1 -0
  63. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/BX99bxykRFGJ6rAdKuw8nIGCvzZdcBMHi60_Jebbu24.cache +2 -0
  64. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Bp7M3F6p5wWe8KIcJtRVnVfzrZ5yyfgBzprHTyW2ZWI.cache +1 -0
  65. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/CFq87ndwDTfJrc3mtDHm7xdDM4crwzQonaYBcyo4UiE.cache +1 -0
  66. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/COOQBHlo2Bi3S8iqKBRYLZ5q1_O_AZxUu-SEvBYYdAY.cache +2 -0
  67. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/DOh6CU8fZabywKNp1aekEaTCdtXJ3GjPNB3X_KorWMk.cache +0 -0
  68. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/EUIwo0uuwEAdCas-OfbZxcAPFakxldMiZdtEXWDhncU.cache +0 -0
  69. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/GLhIxDnkib6UyIrg6PeLC1sOgu7ug2ghkdiX3OOQaac.cache +0 -0
  70. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/GRE3LGMVfR-w8lanmacNoJi3Z4Eu2Os4NtTkuNaw9nU.cache +1 -0
  71. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/HLI69Qlv-VBaX7zdJEhfWrqQQBeb_iF9-UpboTZnOWk.cache +2 -0
  72. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/HZs47S2eBEZYaLOllfrBD621iqfzdgRRM9wMVaDc_-Y.cache +0 -0
  73. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/IIAv3ICt1cco1JByxY6PwkSZDeXu_irR-OnkQ2tIBK0.cache +0 -0
  74. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/IuCG78xkVMvPh9RfvQaIQYVBioJiHnQOEuNbay8s5y4.cache +2 -0
  75. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/IzdRjYxmxS2DOvwWinUF4ZVbMsw5vAmj-Oqg0_GKbWc.cache +1 -0
  76. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/K1RGSBtDUgL_1LQf-Zlw5CesHGKLB2szuljMnJ5YkU8.cache +1 -0
  77. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/LKisW46s25KkYo3x4tZD3XXikXD_4wayGnacB7NH5qM.cache +1 -0
  78. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/M1J1nWS9-u8SpBKkfw_2ACokkyV4f8LbaJ0WybWTGYs.cache +2 -0
  79. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/O3J1zGaenWgQPtMrxXeUODKC9L5FexejuMc0DklNcGA.cache +0 -0
  80. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/OUK8gij9G6wV_xk_21FZXPgQ4z3R4PJFzUymiNSW-80.cache +0 -0
  81. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Q2cOVbqA3q7Zmo0Ge5GeJR4wae0QPrrCRKMNLZRz81A.cache +0 -0
  82. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/QBnH11srYJccNO8BNqtvltfm8XSnivOLEy48vqKg4YE.cache +0 -0
  83. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/QiFBZRuhiaiLv-1h0agj6fpezgG4OrFejzyzb6L_v28.cache +0 -0
  84. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/QpWuorh1I-tn5eLOozy5eaM7eifauFRtR8ndQaL9zTM.cache +0 -0
  85. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/RDykkQjCrbsxGGKROnp00P2IJAsiFav2IpGCBJVou-Q.cache +0 -0
  86. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/RLTG_UOrltMMje29mEnRmkJp9HvinJV9y_c6kKydAeU.cache +1 -0
  87. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ROOqAx6f6rqjdYXEVXshBdFfJPXobAohBEuwLeyK00g.cache +0 -0
  88. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/S80Rz5tqFC3gSNUiYjnMmmIem-QCWtfPwL4MP7NW7Og.cache +2 -0
  89. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/T2Tg6g4iE3ztZOWb5T_nE8wnwasihsHULgMd3GOA0fw.cache +0 -0
  90. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/UChYUEha8TBZIGf1WV06p6g_Tg2rD7rMCA6YOHD5HSE.cache +0 -0
  91. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/V5LP2XMWk7OOvdh8EQo3PNUtYCsMj1p2ljsHTzQTyOc.cache +0 -0
  92. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/VOp0pIv_pTt1jyD5JQn5Ee721CyQFQTGdnz4ODw38i4.cache +0 -0
  93. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/VSIMw5QyyaEzLwopknTs-Xms2CN2a5TC7e70knXWZj0.cache +2 -0
  94. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/VwU0n7_wrplANIjncKiEU_zojC7TEoN1OW3HbKcXlb8.cache +1 -0
  95. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/W5cl6Aq2nJk_p-IOmk4EFKu2Fv4geh6W49nKtOG_5p8.cache +1 -0
  96. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/XhWH4ykJXBYj8s5QMqtvL8dV7v-VvLGtmuXNzGbDPVU.cache +1 -0
  97. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Yego37AT5J2NZuDIH6fsR7BJJ0tAOGyKURdVm1IpUMQ.cache +1 -0
  98. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/YmSTXtOVRQMqr162IPeFmBaXNwg95uFQ01hYg1GvsA4.cache +0 -0
  99. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Z_UaLgn5UcJvwr_9kwKpCX-EbhRzvjl7LdgGFKbAfnk.cache +1 -0
  100. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/_1V0-kqtB7Vy95oSSlXSI2CP0wEoDNLhgAA4GIXq5Ig.cache +1 -0
  101. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/_76-Q4QdKVrHHYyeaiPZsfWB_Gs2OkwscfduQRzW6WE.cache +0 -0
  102. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/_EXvb5qDtLQiAm6L_NNr_R3gHE6pzstkPejRXT98gtM.cache +3 -0
  103. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/aR47qZRGqj7tJsA0qChpHXxZjG9tXSstPxCdvgE93MI.cache +2 -0
  104. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/b3JWbmbLfcjrqzIPsjy0ACaZ1gkrf1oUN6F4uYexzSk.cache +1 -0
  105. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/bxlVXDnovk9K6b5tCitJ3IAwrWUCz8gGHXOvBKp12_A.cache +0 -0
  106. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/c6KHF2EDk_H3CbCZ-7PwBbMsogJUtaWvAe11XOIe1ko.cache +0 -0
  107. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/dQOnDS4073BumBcgMG02PTbYxYP9LQYk-RRFTJvYz1U.cache +1 -0
  108. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/dV35Y1JfI98MATKxb6eQqjPyv-mCb18BySrr2M3eLaY.cache +0 -0
  109. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/e7XUrdnGlzdQ_GcSwKzqmc5E5A3tay3sJr3jPFtLyyo.cache +0 -0
  110. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eLa2kDREOFTp0GgMDTaCH0MFtZJg_ycuwGMtAUz3qbk.cache +2 -0
  111. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eRN3EalTiDg_JEKECnQR5y0FfGnahwXt2mljADotdYY.cache +1 -0
  112. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eWXjMeKcdt3xwXZ5pLUd_-2_hbrbwlnISAZly7q-38k.cache +0 -0
  113. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/e_kiNmJgb8xrBjR8PU1ulvQUtC_srl2i3O8bbAFK9Kg.cache +1 -0
  114. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ffvynTuPbLjQS_lNy_SzHHkz7zd3T6EPIdmMCS2VaLI.cache +0 -0
  115. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/fzBy9pRbu-LmHuAW8GJE6IeagN-L_Dp3-h4YG7G9rpU.cache +0 -0
  116. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gT9g14OeA5NorqlE0zUnwFE7ihXsyhTMy91g87XIfts.cache +1 -0
  117. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/iOLI66x5VuShIxlOWJTeRa4a76gM5orN5W1Dw9GJasY.cache +1 -0
  118. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ihg4Km1mmmENk0iEA-srD18wrDe8FwXXTzxJgOIAQPA.cache +1 -0
  119. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/kC2NmGMvqpKgmcmCRiLOl4-ktMAzqlI6GX0KPAeMxyE.cache +1 -0
  120. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/leds3qK8keqSnkGWDDU0SrOwcyIB84aX0Pmc1hM2jV4.cache +1 -0
  121. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/lmCg2lfbcx7Vz8nN0zq0YebKfOchmAJnrngqUWSq-_8.cache +2 -0
  122. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/m0pcAp5aP062KjKC22aF18PVxOIV7NnjjIHsqofPObI.cache +1 -0
  123. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/m19brstP2jgn3FYFVLRBv2sthySPo3kJiAoNtE9knYQ.cache +1 -0
  124. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/m4CVZTpWVigUOW4tlrT55YuHid1oLV9znJY6nMVLW7w.cache +1 -0
  125. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/nKTQyQpRkbVG0_hld15HTeMD7XsayuZ2RlzOrTHMaGs.cache +2 -0
  126. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/o8adGpBzVqwIsQw_Sucy55fB9M9qHtsAGsRpQdoAy8Q.cache +2 -0
  127. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/oIWj8AQS_dEuRW5owGPwOm07urEl4alxC_fIwWHRMnI.cache +2 -0
  128. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/pZDYMkvlex7ulyxO59AqsUBppXXDqBtCoA7JY4r5q28.cache +1 -0
  129. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/pgk67XPJpGrU5kmUgVKeR0KQ0kZ0yyVYVaz0cNq2cnI.cache +0 -0
  130. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/qQNuBekhZ1LAbGY14UrG95oItuDNsiv82Yvjjtntb88.cache +0 -0
  131. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/qiNWLe6JgbEK6EuFOsiJ_45j_ufwRczuO-Q8KACEfbA.cache +0 -0
  132. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/r-7WtLsoeJ8x8NVwYyXPL1ddAHb_KAPez6bQs8iterw.cache +0 -0
  133. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/rZa2Q57RqokN1pV1sMx2Ny6l1BKXpClyBYZ2k73CvF8.cache +0 -0
  134. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/rylfYJv07FOrZ2ppMNtqi_lWDSP6mszYcjpznydQGd0.cache +1 -0
  135. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/s5V-xoscMS8Ix9DpGeVhgvH7wm-c571Rwg-Hk0eS_TE.cache +1 -0
  136. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/syCRj5OPid7XLQBW4PxF5RetmsRrv8eyhkqh8lcKE88.cache +1 -0
  137. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/tAI5I32oqGYmii5uTINFh3baLUTw_juPamOrgKxd7ww.cache +0 -0
  138. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/tUKEQvttd_dP6jrHRGzkm-rk6kFtZHxpDbnfSHgkK_I.cache +1 -0
  139. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/uIUXxosf9rVYmZ5IhfCJS2-hhgIcvR8OBJV02SsJVbE.cache +0 -0
  140. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/uLBPfSXL1If70IS15SdWx_LvrADSlOi984lef8dZdys.cache +3 -0
  141. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/uUc4NwxgOSRo3XhEAyvQev8Jiyk5V0lLNPiAdGQt9kE.cache +2 -0
  142. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/vfWfDasGA6cjnB6MWg68fCyFS1P7in1xpww5lwLhqNM.cache +1 -0
  143. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/xQd5OmIQOPUMxeMEINcX0I1E_dgLYiwehxinzvApCSE.cache +0 -0
  144. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/yV4URVYGH-NaiFpmvaaeSreHPCFsi468lWYdFojG69o.cache +1 -0
  145. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zl1NV0n6DrSOMbvfkSgK5JQ_IDSEwcm8Fy8Ep9L10o8.cache +1 -0
  146. data/spec/factories/langs.rb +6 -0
  147. data/spec/helpers/langs_helper_spec.rb +15 -0
  148. data/spec/models/lang_spec.rb +11 -0
  149. data/spec/rails_helper.rb +54 -0
  150. data/spec/routing/langs_routing_spec.rb +39 -0
  151. data/spec/spec_helper.rb +92 -0
  152. data/spec/views/langs/edit.html.builder_spec.rb +14 -0
  153. data/spec/views/langs/index.html.builder_spec.rb +14 -0
  154. data/spec/views/langs/new.html.builder_spec.rb +14 -0
  155. data/spec/views/langs/show.html.builder_spec.rb +11 -0
  156. metadata +308 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5dac4a451905f41913bb6f4abdead80dab8e7f5
4
- data.tar.gz: 93353f998c09adb5572a62b59a76b38acef5f451
3
+ metadata.gz: baef0aa79c5c4852d16c90d40dd0657b29ce4f45
4
+ data.tar.gz: b681b7d1a061c01840a39a6ddd3d5a9ee787e9e2
5
5
  SHA512:
6
- metadata.gz: ac16f77b236767b9478f005317132162538e914dc973b771c99ec2e71956c2a78b8434cadd4dd6828f81a6dc68ecc239e87843dbc4174f8ea5ff0a446831d34b
7
- data.tar.gz: 0f2a545a02fb945f021285b6af00ba75838a1ebeff2b01ed832421a86ca9e97c3f94d5dbb3cf6ab98e57a00645e29a252510c196d51ee30d6ea89a9c7dccb5fb
6
+ metadata.gz: 077283603733756b5c27bf73f272b0f5ee07ebcf0428efcff4135934d85f42eaba38f17f9ec391a6473c0be16e1a9a534774ea944c645b510022cb24a92f4ed4
7
+ data.tar.gz: f084436a59c8afeb3858d3adcec3de4c9ffe6819698d0dada117d7861ad1c7a719d0e4dcb464e192ac085c98103694b3fda746df2bda088e7974056581cd204f
@@ -1,3 +1,3 @@
1
1
  module WeBridgeRailsEngineLangs
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -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 LangsController, type: :controller do
22
+
23
+ # This should return the minimal set of attributes required to create a valid
24
+ # Lang. As you add validations to Lang, be sure to
25
+ # adjust the attributes here as well.
26
+ let(:valid_attributes) {
27
+ {code: 'ja'}
28
+ }
29
+
30
+ let(:invalid_attributes) {
31
+ {code: nil}
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
+ # LangsController. Be sure to keep this updated too.
37
+ let(:valid_session) { {} }
38
+
39
+ describe "GET #index" do
40
+ it "assigns all langs as @langs" do
41
+ lang = Lang.create! valid_attributes
42
+ get :index, {}, valid_session
43
+ expect(assigns(:records)).to eq([lang])
44
+ end
45
+ end
46
+
47
+ describe "GET #show" do
48
+ it "assigns the requested lang as @lang" do
49
+ lang = Lang.create! valid_attributes
50
+ get :show, {:id => lang.to_param}, valid_session
51
+ expect(assigns(:record)).to eq(lang)
52
+ end
53
+ end
54
+
55
+ describe "GET #new" do
56
+ it "assigns a new lang as @lang" do
57
+ get :new, {}, valid_session
58
+ expect(assigns(:record)).to be_a_new(Lang)
59
+ end
60
+ end
61
+
62
+ describe "GET #edit" do
63
+ it "assigns the requested lang as @lang" do
64
+ lang = Lang.create! valid_attributes
65
+ get :edit, {:id => lang.to_param}, valid_session
66
+ expect(assigns(:record)).to eq(lang)
67
+ end
68
+ end
69
+
70
+ describe "POST #create" do
71
+ context "with valid params" do
72
+ it "creates a new Lang" do
73
+ expect {
74
+ post :create, {Lang.table_name => valid_attributes}, valid_session
75
+ }.to change(Lang, :count).by(1)
76
+ end
77
+
78
+ it "assigns a newly created lang as @lang" do
79
+ post :create, {Lang.table_name => valid_attributes}, valid_session
80
+ expect(assigns(:record)).to be_a(Lang)
81
+ expect(assigns(:record)).to be_persisted
82
+ end
83
+
84
+ it "redirects to the created lang" do
85
+ post :create, {Lang.table_name => valid_attributes}, valid_session
86
+ expect(response).to redirect_to(lang_path(id: Lang.last))
87
+ end
88
+ end
89
+
90
+ context "with invalid params" do
91
+ it "assigns a newly created but unsaved lang as @lang" do
92
+ post :create, {Lang.table_name => invalid_attributes}, valid_session
93
+ expect(assigns(:record)).to be_a_new(Lang)
94
+ end
95
+
96
+ it "re-renders the 'new' template" do
97
+ post :create, {Lang.table_name => invalid_attributes}, valid_session
98
+ expect(response).to redirect_to(new_lang_path)
99
+ end
100
+ end
101
+ end
102
+
103
+ describe "PUT #update" do
104
+ context "with valid params" do
105
+ let(:new_attributes) {
106
+ valid_attributes.merge(code: :en)
107
+ }
108
+
109
+ it "updates the requested lang" do
110
+ lang = Lang.create! valid_attributes
111
+ put :update, {:id => lang.to_param, Lang.table_name => new_attributes}, valid_session
112
+ lang.reload
113
+ expect(lang.code.to_s).to eq('en')
114
+ end
115
+
116
+ it "assigns the requested lang as @lang" do
117
+ lang = Lang.create! valid_attributes
118
+ put :update, {:id => lang.to_param, Lang.table_name => valid_attributes}, valid_session
119
+ expect(assigns(:record)).to eq(lang)
120
+ end
121
+
122
+ it "redirects to the lang" do
123
+ lang = Lang.create! valid_attributes
124
+ put :update, {:id => lang.to_param, Lang.table_name => valid_attributes}, valid_session
125
+ expect(response).to redirect_to(lang)
126
+ end
127
+ end
128
+
129
+ context "with invalid params" do
130
+ it "assigns the lang as @lang" do
131
+ lang = Lang.create! valid_attributes
132
+ put :update, {:id => lang.to_param, Lang.table_name => invalid_attributes}, valid_session
133
+ expect(response).to redirect_to(edit_lang_path(id: lang.id))
134
+ end
135
+
136
+ it "re-renders the 'edit' template" do
137
+ lang = Lang.create! valid_attributes
138
+ put :update, {:id => lang.to_param, Lang.table_name => invalid_attributes}, valid_session
139
+ expect(response).to redirect_to(edit_lang_path(id: lang.id))
140
+ end
141
+ end
142
+ end
143
+
144
+ describe "DELETE #destroy" do
145
+ it "destroys the requested lang" do
146
+ lang = Lang.create! valid_attributes
147
+ expect {
148
+ delete :destroy, {:id => lang.to_param}, valid_session
149
+ }.to change(Lang, :count).by(-1)
150
+ end
151
+
152
+ it "redirects to the langs list" do
153
+ lang = Lang.create! valid_attributes
154
+ delete :destroy, {:id => lang.to_param}, valid_session
155
+ expect(response).to redirect_to(langs_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,5 @@
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ protect_from_forgery with: :exception
5
+ 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,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
@@ -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_langs"
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