nyauth 0.6.2 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -0
  3. data/app/controllers/concerns/nyauth/client_concern.rb +1 -0
  4. data/app/controllers/concerns/nyauth/session_concern.rb +6 -7
  5. data/app/controllers/nyauth/base_controller.rb +1 -1
  6. data/app/controllers/nyauth/passwords_controller.rb +1 -0
  7. data/app/helpers/nyauth/application_helper.rb +3 -3
  8. data/app/views/layouts/nyauth/base.html.erb +18 -0
  9. data/lib/generators/nyauth/views_generator.rb +1 -0
  10. data/lib/nyauth/engine.rb +0 -1
  11. data/lib/nyauth/version.rb +1 -1
  12. data/spec/dummy/app/views/layouts/nyauth/base.html.erb +27 -0
  13. data/spec/dummy/db/development.sqlite3 +0 -0
  14. data/spec/dummy/db/test.sqlite3 +0 -0
  15. data/spec/dummy/log/development.log +294 -0
  16. data/spec/dummy/log/test.log +19906 -0
  17. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/0AWhJVsvbBJ7AYsQOdeszwX0r8EYUsLI-TdEoXooEiU.cache +0 -0
  18. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/0FM3SWeCI4Oi5LiwzwOUyBmGt2gTYa5t6pQhj3BUd44.cache +1 -0
  19. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/0FNbCt5AIaVZJMMrIgqoOYWUQuJaCklpTcmG9qfV_To.cache +0 -0
  20. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2Bw1g-qty-VZ1rpU3goctGGmKNhK9sAjr8o-V1zEQ4Q.cache +1 -0
  21. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2NBqGhntP-vkXcqELAsDTzmnheGw93xJN_VGA0pgaRE.cache +2 -0
  22. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
  23. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6uBj736Z-58LtocrFKZzz1uajY_Qstrhw74pYT_7pYs.cache +0 -0
  24. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/8LrPqRwiyYmz_nQwqetts1NQav6TpjysEihoYs4rmUU.cache +1 -0
  25. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/8ZAzeQyvCKjeGynGYasYUe63iBbXWOVrdvfYjJZW0Ag.cache +1 -0
  26. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9cX46CMJX34PwdWf-3bhmb2MWLXv-AvRyCcAxzR1nts.cache +1 -0
  27. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/CNXGLOU1u3FFzGFDMg_4iNcdCDd2iAmoOaiRROni8Tk.cache +2 -0
  28. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/JxXbJi3TlIsr7SQgg5gjpneDczsdO_61PF8VDHMFKnY.cache +1 -0
  29. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/M7oa-ssP0ThBOv3o2FcsdNgXY3vxnpfs-rW3tIOkwkU.cache +2 -0
  30. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +3 -0
  31. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/P-tRtEJV1hmm3XX_s2vzlv7IJIreLP2uLe1efVaBG_U.cache +1 -0
  32. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/PzgqYXi74GpSYH3ITrTcSekNeLaMg0lwZmmGl7pgVKc.cache +0 -0
  33. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/R-7n9gCGLZNfO_G1fkWy8NVWfz9ujBIZbalZ459zinE.cache +0 -0
  34. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/TA-AV2GWUU1Auzz1rvQ4P-Nj0W5noq_k16mU7em555A.cache +1 -0
  35. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/WI0rScq4mjMPfUxQAE2IRkoyOQ4bKZMJpzKUSRYB02c.cache +1 -0
  36. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/cWck8-Qn-uyFSH6bSSy7_WAg0GwCPplw6v6aPo4MErM.cache +1 -0
  37. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/e04WqbGeGkl5YDRLb2aAhsmEMX8R5KBGDRY18mXYt10.cache +1 -0
  38. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/jR95W7cPuwSgjFdmxZItZ_zI5Qxlv9P32kWThGArg4o.cache +0 -0
  39. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/oSl3Gtq7JNslsiewWXls1TEn9LQquDmmnRMx2qqr7OE.cache +1 -0
  40. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/q70-CclrhEXo50ncdKKzHoR3J7t9X5UMS4mKYIwtu2M.cache +0 -0
  41. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/qqF6JapxqwrrevcaGIMpUVdokC81Ba5WqzbUKMFZ5ZQ.cache +1 -0
  42. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/xNxWjlD2nQ_nHrl6FvGZ5mhn4F5A5XJAlz029Se49y4.cache +2 -0
  43. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-4qrDnXnR_pbziS1hESm-dFiw4z8STO3F5jDY2Dof48.cache +1 -0
  44. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0AWhJVsvbBJ7AYsQOdeszwX0r8EYUsLI-TdEoXooEiU.cache +0 -0
  45. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2PF9ETuL8pb0m6Z85iXuHRxblp6ZRN8d3r-6FZzrPFQ.cache +2 -0
  46. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/32tM06w1B-F8-loEa4MszRHJ7C1nvYTtymKnswm3P8A.cache +1 -0
  47. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3QNY3YfGJCFjyeyJ2kAnfDPp7NeHJheTG7x_Gfc6dB8.cache +1 -0
  48. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4NR1wYbIwZm9OYpxxxmVaixkFa7sTMzlWYaC1De98ek.cache +1 -0
  49. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
  50. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9cX46CMJX34PwdWf-3bhmb2MWLXv-AvRyCcAxzR1nts.cache +1 -0
  51. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CNXGLOU1u3FFzGFDMg_4iNcdCDd2iAmoOaiRROni8Tk.cache +2 -0
  52. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CqVOmJrrmL5OyHuPvAnzMW7_qI7B6ZjAnRhKfYVAcBI.cache +1 -0
  53. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ESia7kFxwW-gfSxuZJYFKw7ooVxP3ouqlm0WKpn-cIs.cache +0 -0
  54. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/NJzkUidXfvM3WTqpWBCg67ADrqCpFix-U5OORkMUeoM.cache +1 -0
  55. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +3 -0
  56. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/TA-AV2GWUU1Auzz1rvQ4P-Nj0W5noq_k16mU7em555A.cache +1 -0
  57. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ctUXkHPESbkQeCYFr8hl8yLE3kn8jmcUb1NOiOdBSvo.cache +2 -0
  58. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/e04WqbGeGkl5YDRLb2aAhsmEMX8R5KBGDRY18mXYt10.cache +1 -0
  59. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fiLTh3BLPt8IVe66lHDqAwycPFB6ExP1gpXT3eWb9i8.cache +0 -0
  60. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/h7MY9FBilZ_gxsOc9cHLqH7vxICQOhLd5TMKmZuzI7c.cache +0 -0
  61. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jlNGBh1Z1I9qDwcgvcRkqdKvFBKENBlfE3S-7DgqYQo.cache +0 -0
  62. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m0W9mpBvLJ9B7BBUEwznJdArxMDOwdNi7P-sGaTEh4U.cache +0 -0
  63. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oSl3Gtq7JNslsiewWXls1TEn9LQquDmmnRMx2qqr7OE.cache +1 -0
  64. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rsE5dQcOjn63R-ZIq1iyLKjPfyQsvAzRbAYTmWH5erE.cache +1 -0
  65. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tCKRW3hCMRwAupohHKhqPwNAqRn4TUj43zKNA-itJvQ.cache +0 -0
  66. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uWaD5Vs5btQ3NjdrC2Kvkmzr4qesvLCzcQZ3HohPfGI.cache +1 -0
  67. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x0QxvzgEOluqS41GBK4T4CWRknwR0jTO4x5SRYo-IAM.cache +1 -0
  68. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xNxWjlD2nQ_nHrl6FvGZ5mhn4F5A5XJAlz029Se49y4.cache +2 -0
  69. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/0FM3SWeCI4Oi5LiwzwOUyBmGt2gTYa5t6pQhj3BUd44.cache +1 -0
  70. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/8ZAzeQyvCKjeGynGYasYUe63iBbXWOVrdvfYjJZW0Ag.cache +1 -0
  71. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/cWck8-Qn-uyFSH6bSSy7_WAg0GwCPplw6v6aPo4MErM.cache +1 -0
  72. data/spec/dummy/tmp/capybara/capybara-201602151820216634758582.html +18 -0
  73. data/spec/factories/users.rb +1 -1
  74. data/spec/helpers/nyauth/application_helper_spec.rb +4 -4
  75. data/spec/lib/generators/nyauth/tmp/app/views/layouts/nyauth/base.html.erb +18 -0
  76. data/spec/lib/generators/nyauth/tmp/app/views/layouts/nyauth/mailer.html.erb +1 -0
  77. data/spec/lib/generators/nyauth/tmp/app/views/layouts/nyauth/mailer.text.erb +1 -0
  78. data/spec/lib/generators/nyauth/views_generator_spec.rb +3 -0
  79. data/spec/rails_helper.rb +0 -2
  80. data/spec/support/controllers/nyauth/session_concern.rb +6 -6
  81. metadata +126 -3
@@ -0,0 +1 @@
1
+ "%X�p5����9~]~BK�����s��}^���%
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=20dc61d487894008d82ef10168d7e63049dbc89d233d956c5a427de28870a236:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery_ujs.js;TTF
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"0processors:type=text/css&file_type=text/css;TTI"9file-digest://app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI")file-digest://app/assets/stylesheets;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery.js?type=application/javascript&pipeline=self&id=723396026b5c49969b5d76c3274d30fb060784e68ecbe287a89c440b9a63583e:ET
@@ -0,0 +1 @@
1
+ "%�RH���=kՎ�!1�d/_ -�����6^�
@@ -0,0 +1 @@
1
+ "%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash}I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"8file-digest://app/assets/javascripts/application.js;TTI"$file-digest://app/assets/images;TTI"+file-digest://app/assets/images/jquery;TTI")file-digest://app/assets/javascripts;TTI"0file-digest://app/assets/javascripts/jquery;TTI")file-digest://app/assets/stylesheets;TTI"0file-digest://app/assets/stylesheets/jquery;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/jquery-rails-4.0.4/vendor/assets/javascripts;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery.js;TTI"/file-digest://app/assets/images/jquery_ujs;TTI"4file-digest://app/assets/javascripts/jquery_ujs;TTI"4file-digest://app/assets/stylesheets/jquery_ujs;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery_ujs;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery_ujs.js;TTF
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=73d0cb4152472e5c0046b281b486abca3bf2ca7a9a756e54ca92010f0cc323b5:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery.js;TTF
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"9file-digest://app/assets/stylesheets/application.css;TTI")file-digest://app/assets/stylesheets;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery_ujs.js?type=application/javascript&pipeline=self&id=75410336289998c49acf1e0d415aae7386789a6d9107ef4a48b58e4f59c5039b:ET
@@ -0,0 +1 @@
1
+ "%Ѱč@�����6H�uZoX�Z�gbh0W��V
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=b55fbc3feab0f487151077bf32eb7c089d2a32abe2e0f060c1e0eab2669c8231:ET
@@ -0,0 +1 @@
1
+ "%����"m�J���S��E�j!�/�d�]�/[���
@@ -0,0 +1 @@
1
+ "%��B�����șo�$'�A�d��L���xR�U
@@ -0,0 +1 @@
1
+ "%z?��p}-�dO�G��9���9v�Y�fZ�
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=f654be786ec921ba8205e4f65cb9aa5a1731269176f260d6ac798113e48c017d:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash}I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery.js;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery_ujs.js;TTI"$file-digest://app/assets/images;TTI"+file-digest://app/assets/images/jquery;TTI")file-digest://app/assets/javascripts;TTI"0file-digest://app/assets/javascripts/jquery;TTI")file-digest://app/assets/stylesheets;TTI"0file-digest://app/assets/stylesheets/jquery;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/jquery-rails-4.0.4/vendor/assets/javascripts;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery;TTI"/file-digest://app/assets/images/jquery_ujs;TTI"4file-digest://app/assets/javascripts/jquery_ujs;TTI"4file-digest://app/assets/stylesheets/jquery_ujs;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/jquery-rails-4.0.4/vendor/assets/javascripts/jquery_ujs;TTF
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=44660aa66e2f95b1ef870d2a9f9297176f88502cdd25dfe4c1b5a4e11d1f6ea0:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery.js;TT
@@ -0,0 +1 @@
1
+ I"�/Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery_ujs.js?type=application/javascript&pipeline=self&id=a0f9e45a54ee412a443daa77f178aadedc83217effa320bbede0370b4ff5aecf:ET
@@ -0,0 +1 @@
1
+ "%����"m�J���S��E�j!�/�d�]�/[���
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=834e3f85b955ec993b944de0ce06ad629f365b6485dcedd76005d2eaf7050969:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"0processors:type=text/css&file_type=text/css;TTI"9file-digest://app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI")file-digest://app/assets/stylesheets;TT
@@ -0,0 +1 @@
1
+ "%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"8file-digest://app/assets/javascripts/application.js;TTI"$file-digest://app/assets/images;TTI"+file-digest://app/assets/images/jquery;TTI")file-digest://app/assets/javascripts;TTI"0file-digest://app/assets/javascripts/jquery;TTI")file-digest://app/assets/stylesheets;TTI"0file-digest://app/assets/stylesheets/jquery;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/jquery-rails-4.1.0/vendor/assets/javascripts;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery.js;TTI"/file-digest://app/assets/images/jquery_ujs;TTI"4file-digest://app/assets/javascripts/jquery_ujs;TTI"4file-digest://app/assets/stylesheets/jquery_ujs;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery_ujs;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery_ujs.js;TT
@@ -0,0 +1 @@
1
+ "%�U7��r��� ����ڥ�2�)d*�d��/po�
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=a20e4b9a73d71d8ad2925e116985547fb924b36972d53582f4b3a51568775c99:ET
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash{
3
+ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"9file-digest://app/assets/stylesheets/application.css;TTI")file-digest://app/assets/stylesheets;TT
@@ -0,0 +1 @@
1
+ "%Ѱč@�����6H�uZoX�Z�gbh0W��V
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery_ujs.js;TT
@@ -0,0 +1 @@
1
+ "%��B�����șo�$'�A�d��L���xR�U
@@ -0,0 +1 @@
1
+ "%z?��p}-�dO�G��9���9v�Y�fZ�
@@ -0,0 +1 @@
1
+ I"�/Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery.js?type=application/javascript&pipeline=self&id=628b22b783d3b0236165d9f72472fbe969ed5c54bf7e07ee156058c9f6357606:ET
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=df14db43f458a1ab376f991b959cb1d8e9d752bad3de024ecb8e68eb00865077:ET
@@ -0,0 +1 @@
1
+ "%���h��;����*���b(��n��Gn��L
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery.js;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery_ujs.js;TTI"$file-digest://app/assets/images;TTI"+file-digest://app/assets/images/jquery;TTI")file-digest://app/assets/javascripts;TTI"0file-digest://app/assets/javascripts/jquery;TTI")file-digest://app/assets/stylesheets;TTI"0file-digest://app/assets/stylesheets/jquery;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/jquery-rails-4.1.0/vendor/assets/javascripts;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery;TTI"/file-digest://app/assets/images/jquery_ujs;TTI"4file-digest://app/assets/javascripts/jquery_ujs;TTI"4file-digest://app/assets/stylesheets/jquery_ujs;TTI"�file-digest:///Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery_ujs;TT
@@ -0,0 +1 @@
1
+ "%X�p5����9~]~BK�����s��}^���%
@@ -0,0 +1 @@
1
+ "%�RH���=kՎ�!1�d/_ -�����6^�
@@ -0,0 +1 @@
1
+ "%����"m�J���S��E�j!�/�d�]�/[���
@@ -0,0 +1,18 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <link rel="stylesheet" media="all" href="/assets/application-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css" data-turbolinks-track="true" />
6
+ <script src="/assets/application-1ab1556889f209b0d5a019bbd2f6b04b6e6fceae7d52a16ac9091f7954909fe6.js" data-turbolinks-track="true"></script>
7
+
8
+ </head>
9
+ <body>
10
+
11
+ updated password
12
+ <a href="/secret_page">Secret page(URL helper on application)</a>
13
+ <a class="pure-menu-link" rel="nofollow" data-method="delete" href="/session">Sign out</a>
14
+
15
+
16
+
17
+ </body>
18
+ </html>
@@ -2,7 +2,7 @@ FactoryGirl.define do
2
2
  factory :user, class: 'User' do
3
3
  sequence(:email) { |n| "user#{n}@example.com" }
4
4
  password { 'password' }
5
- nickname { Faker::Name.name }
5
+ sequence(:nickname) { |n| "Nick Name#{n}" }
6
6
 
7
7
  trait :without_nickname do
8
8
  nickname nil
@@ -34,7 +34,7 @@ RSpec.describe Nyauth::ApplicationHelper do
34
34
 
35
35
  context 'when nyauth_client_name is admin' do
36
36
  let(:nyauth_client_name) { :admin }
37
- it { is_expected.to eq nil }
37
+ it { is_expected.to be_blank }
38
38
  end
39
39
 
40
40
  context 'when nyauth_client_name is user' do
@@ -48,7 +48,7 @@ RSpec.describe Nyauth::ApplicationHelper do
48
48
 
49
49
  context 'when nyauth_client_name is admin' do
50
50
  let(:nyauth_client_name) { :admin }
51
- it { is_expected.to eq nil }
51
+ it { is_expected.to be_blank }
52
52
  end
53
53
 
54
54
  context 'when nyauth_client_name is user' do
@@ -76,7 +76,7 @@ RSpec.describe Nyauth::ApplicationHelper do
76
76
 
77
77
  context 'when nyauth_client_name is admin' do
78
78
  let(:nyauth_client_name) { :admin }
79
- it { is_expected.to eq nil }
79
+ it { is_expected.to be_blank }
80
80
  end
81
81
 
82
82
  context 'when nyauth_client_name is user' do
@@ -91,7 +91,7 @@ RSpec.describe Nyauth::ApplicationHelper do
91
91
 
92
92
  context 'when nyauth_client_name is admin' do
93
93
  let(:nyauth_client_name) { :admin }
94
- it { is_expected.to eq nil }
94
+ it { is_expected.to be_blank }
95
95
  end
96
96
 
97
97
  context 'when nyauth_client_name is user' do
@@ -0,0 +1,18 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Nyauth</title>
5
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+ <% if flash[:notice] %>
11
+ <%= flash[:notice] %>
12
+ <% end %>
13
+ <% if flash[:alert] %>
14
+ <%= flash[:alert] %>
15
+ <% end %>
16
+ <%= yield %>
17
+ </body>
18
+ </html>
@@ -22,6 +22,9 @@ describe Nyauth::ViewsGenerator, type: :generator do
22
22
  assert_file 'app/views/nyauth/reset_password_requests/new.html.erb'
23
23
  assert_file 'app/views/nyauth/reset_passwords/edit.html.erb'
24
24
  assert_file 'app/views/nyauth/sessions/new.html.erb'
25
+ assert_file 'app/views/layouts/nyauth/base.html.erb'
26
+ assert_file 'app/views/layouts/nyauth/mailer.html.erb'
27
+ assert_file 'app/views/layouts/nyauth/mailer.text.erb'
25
28
  end
26
29
  end
27
30
  end
data/spec/rails_helper.rb CHANGED
@@ -39,6 +39,4 @@ RSpec.configure do |config|
39
39
  DatabaseRewinder.clean
40
40
  Rails.cache.clear
41
41
  end
42
-
43
- Faker::Config.locale = :en
44
42
  end
@@ -1,6 +1,6 @@
1
1
  RSpec.shared_examples 'Nyauth::SessionConcern' do
2
2
  describe '#sign_in' do
3
- subject { controller.sign_in(user) }
3
+ subject { controller.__send__(:sign_in, user) }
4
4
 
5
5
  context 'as user' do
6
6
  let(:options) { { as: :user } }
@@ -10,19 +10,19 @@ RSpec.shared_examples 'Nyauth::SessionConcern' do
10
10
  it '#signed_in? should change result from false to true 'do
11
11
  expect {
12
12
  subject
13
- }.to change { controller.signed_in?(options) }.from(false).to(true)
13
+ }.to change { controller.__send__(:signed_in?, options) }.from(false).to(true)
14
14
  end
15
15
 
16
16
  it '#signed_in?(as: :admin) should not change result from false'do
17
17
  expect {
18
18
  subject
19
- }.not_to change { controller.signed_in?(as: :admin) }.from(false)
19
+ }.not_to change { controller.__send__(:signed_in?, as: :admin) }.from(false)
20
20
  end
21
21
 
22
22
  it '#current_authenticated should change from result nil to user 'do
23
23
  expect {
24
24
  subject
25
- }.to change { controller.current_authenticated }.from(nil).to(user)
25
+ }.to change { controller.__send__(:current_authenticated) }.from(nil).to(user)
26
26
  end
27
27
  end
28
28
 
@@ -31,13 +31,13 @@ RSpec.shared_examples 'Nyauth::SessionConcern' do
31
31
  it '#signed_in? should not change result from false'do
32
32
  expect {
33
33
  subject
34
- }.not_to change { controller.signed_in?(options) }.from(false)
34
+ }.not_to change { controller.__send__(:signed_in?, options) }.from(false)
35
35
  end
36
36
 
37
37
  it '#current_authenticated should not change result from nil'do
38
38
  expect {
39
39
  subject
40
- }.not_to change { controller.current_authenticated }.from(nil)
40
+ }.not_to change { controller.__send__(:current_authenticated) }.from(nil)
41
41
  end
42
42
  end
43
43
  end