appt 0.0.1.beta.2 → 0.0.1.beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/Rakefile +34 -37
  4. data/app/assets/javascripts/appt/application.js +2 -2
  5. data/app/assets/stylesheets/appt/application.scss +1 -0
  6. data/app/assets/stylesheets/appt/calendar.scss +20 -0
  7. data/app/controllers/appt/appointment_types_controller.rb +7 -0
  8. data/app/controllers/appt/base_controller.rb +1 -0
  9. data/app/controllers/appt/calendars_controller.rb +56 -6
  10. data/app/controllers/appt/external_calendars_controller.rb +72 -0
  11. data/app/controllers/appt/home_controller.rb +2 -1
  12. data/app/helpers/appt/application_helper.rb +39 -20
  13. data/app/helpers/appt/calendars_helper.rb +5 -4
  14. data/app/mailers/base_mailer.rb +2 -1
  15. data/app/models/appt/appointment.rb +5 -4
  16. data/app/models/appt/appointment_type.rb +6 -0
  17. data/app/models/appt/block.rb +8 -4
  18. data/app/models/appt/calendar.rb +38 -4
  19. data/app/models/appt/calendar_event.rb +40 -5
  20. data/app/models/appt/external_calendar.rb +40 -0
  21. data/app/views/appt/blocks/_table.html.haml +26 -0
  22. data/app/views/appt/calendars/_form.html.haml +12 -0
  23. data/app/views/appt/calendars/_table.html.haml +17 -0
  24. data/app/views/appt/calendars/edit.html.haml +6 -0
  25. data/app/views/appt/calendars/index.html.haml +6 -0
  26. data/app/views/appt/calendars/new.html.haml +6 -0
  27. data/app/views/appt/calendars/show.html.haml +14 -0
  28. data/app/views/appt/external_calendars/_form.html.haml +7 -0
  29. data/app/views/appt/external_calendars/_table.html.haml +10 -0
  30. data/app/views/appt/external_calendars/edit.html.haml +6 -0
  31. data/app/views/appt/external_calendars/index.html.haml +7 -0
  32. data/app/views/appt/external_calendars/new.html.haml +6 -0
  33. data/app/views/appt/external_calendars/show.html.haml +26 -0
  34. data/app/views/appt/shared/_navbar.html.haml +2 -1
  35. data/config/initializers/user_class_extensions.rb +1 -0
  36. data/config/routes.rb +9 -7
  37. data/config/secrets.yml +1 -0
  38. data/db/migrate/20150804002016_create_appt_calendars.rb +16 -9
  39. data/db/migrate/20150804003348_create_appt_blocks.rb +16 -8
  40. data/db/migrate/20150804003846_create_appt_appointments.rb +17 -8
  41. data/db/migrate/20150804234748_create_appt_appointment_types.rb +13 -0
  42. data/db/migrate/20150805114046_create_appt_external_calendars.rb +10 -0
  43. data/lib/appt.rb +27 -23
  44. data/lib/appt/configuration.rb +29 -28
  45. data/lib/appt/engine.rb +6 -5
  46. data/lib/appt/icalendar_expander.rb +61 -0
  47. data/lib/appt/version.rb +4 -3
  48. data/lib/bootstrap_month_calendar.rb +5 -4
  49. data/lib/tasks/appt_tasks.rake +5 -4
  50. data/lib/workhours_serializer.rb +2 -5
  51. data/test/appt_test.rb +8 -7
  52. data/test/controllers/appt/appointment_types_controller_test.rb +14 -0
  53. data/test/controllers/appt/calendars_controller_test.rb +14 -13
  54. data/test/controllers/appt/external_calendars_controller_test.rb +14 -0
  55. data/test/dummy/README.rdoc +28 -28
  56. data/test/dummy/Rakefile +7 -6
  57. data/test/dummy/app/assets/javascripts/application.js +14 -14
  58. data/test/dummy/app/assets/stylesheets/application.css +16 -16
  59. data/test/dummy/app/controllers/application_controller.rb +6 -5
  60. data/test/dummy/app/helpers/application_helper.rb +3 -2
  61. data/test/dummy/app/views/layouts/application.html.erb +14 -14
  62. data/test/dummy/bin/bundle +3 -3
  63. data/test/dummy/bin/rails +4 -4
  64. data/test/dummy/bin/rake +4 -4
  65. data/test/dummy/bin/setup +29 -29
  66. data/test/dummy/config.ru +5 -4
  67. data/test/dummy/config/application.rb +29 -29
  68. data/test/dummy/config/boot.rb +6 -5
  69. data/test/dummy/config/database.yml +28 -28
  70. data/test/dummy/config/environment.rb +6 -5
  71. data/test/dummy/config/environments/development.rb +52 -41
  72. data/test/dummy/config/environments/production.rb +80 -79
  73. data/test/dummy/config/environments/test.rb +43 -42
  74. data/test/dummy/config/initializers/assets.rb +12 -11
  75. data/test/dummy/config/initializers/backtrace_silencers.rb +8 -7
  76. data/test/dummy/config/initializers/cookies_serializer.rb +4 -3
  77. data/test/dummy/config/initializers/filter_parameter_logging.rb +5 -4
  78. data/test/dummy/config/initializers/inflections.rb +17 -16
  79. data/test/dummy/config/initializers/mime_types.rb +5 -4
  80. data/test/dummy/config/initializers/session_store.rb +4 -3
  81. data/test/dummy/config/initializers/wrap_parameters.rb +15 -14
  82. data/test/dummy/config/locales/en.yml +33 -33
  83. data/test/dummy/config/routes.rb +6 -6
  84. data/test/dummy/config/secrets.yml +22 -22
  85. data/test/dummy/db/schema.rb +72 -35
  86. data/test/dummy/db/seeds.rb +18 -0
  87. data/test/dummy/log/bullet.log +7 -0
  88. data/test/dummy/log/development.log +14702 -0
  89. data/test/dummy/log/test.log +1135 -0
  90. data/test/dummy/public/404.html +67 -67
  91. data/test/dummy/public/422.html +67 -67
  92. data/test/dummy/public/500.html +66 -66
  93. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/16dl9CdObHclmKoFXc2zQh9rW-KLDulBg9znI-eRIRA.cache +1 -0
  94. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/2__llMaILi6GIGs0Ud--MoJ_q52Ma04wDCAakl-ciVQ.cache +0 -0
  95. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/3W93pks8dviNiXPZszlyU0a3-UE6-QNPnwd9of1laVI.cache +1 -0
  96. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/3d_B_YYvHmtlJ8mBxPSIBB0RqOS74VO_QtWUQbk-ngk.cache +0 -0
  97. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/56CdkjUr49A5C7KcR5h5IUt4XeVO74F-GwfY4sHbEOA.cache +0 -0
  98. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/6FuEXiynto7KSfrY1ziT5WzWMq6hqDNBQ9hesvk27Jc.cache +0 -0
  99. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/6PmV7DYX7QXLP7g1r1YFHkKv4UbAtm5zuucs8dxjv1o.cache +1 -0
  100. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/72B7YeiVJA3FGFbsBjK8CYoJnnMXeFdsSF7O6hq2K6g.cache +1 -0
  101. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/78b7p_RRYPNiUO4wEIFyW53LAs9D_l0gSZDbEJLEZ78.cache +0 -0
  102. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/7xkYVoPwhhEGUvpD0XjXgu2MkVVn8JtOjsWHqSrYZVg.cache +1 -0
  103. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/8K4zfT11J6ORkijFMakOfQQ1Gnf_fGTeHQWrWXlW_OQ.cache +0 -0
  104. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/91oKKpcrF9-IEZyOEK8YhZDdHg_FhrVa0z2jeUFRBPE.cache +0 -0
  105. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/98-R4wiwBf7qvdPOM9Au_WrsfFKGiA7vdNxCrpLyvDE.cache +0 -0
  106. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/9LPwJ1u8ZBJDRotUp4C7ICJ2fzAgnQaHh6iTxAElgh4.cache +0 -0
  107. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/9yZNL-Dnn_jptlcXDI-O7p8Y4NwxlDYxgJuHKBgM1dU.cache +1 -0
  108. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/AtCeTliTtRQr_XhEIFKbNI8STS4puMdjFmx5o5stjnQ.cache +1 -0
  109. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/BylU07F4ZHT9Ar6X_KvUvW1CNMNdU_KJtYjXT0czATA.cache +1 -0
  110. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/C1Zy92VD2Xpzq7HBuHvD3xeputd7_lQSxPo2UtX1W5Q.cache +0 -0
  111. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/CQpbYts2MA51RR2I9ERmDY0dY30z00jELh2xuJovD3Q.cache +1 -0
  112. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/D5WYJAXL5-u3RVbFGxwq7J2gD4sYZVwQPWhJFofAipo.cache +0 -0
  113. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Dw-DuyBJusMgXWmVGSVfGsRU-RosOLzzxTIiyATsTbc.cache +0 -0
  114. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/DzY9vPV5Lh7Ii_ihokzMXw1Dy9c6tL3YS2-Cdw5j-wg.cache +1 -0
  115. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/EpURBuSSQ_bzmVbeiAI6QNKn23FF3uC_sHlP8Y6K1hc.cache +0 -0
  116. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/GVsdL_8CB04VraAQejZ5yHyWYoODwJ-PiDyw_VnWw90.cache +0 -0
  117. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/GruhA1tMkU4vAvUkmmWXlXslzc8SIG2Ng8iLkGbkfa4.cache +0 -0
  118. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/HRAwJVW86bSUGC4rLf3pfE-T00Qcf7IfP0o352fIXg0.cache +1 -0
  119. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/HWqpPokMZX7-F8pZ_R0Pz2DIwcLaS3lzlbPmJaQn8yw.cache +0 -0
  120. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/J26Jo3IqNb_QKailyi1A62-8sg-FnDwUKNVaVr0jKjk.cache +0 -0
  121. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/JRQfyuYiAcF7KmqYR-FhZqhm9TBHg7yW5wXHi8vZztA.cache +1 -0
  122. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/KIlEFNTqcscnUTymCqB5vGCVIMvbAk7aS26txbx88VY.cache +1 -0
  123. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/LAtwVyUTpAWlgERdMnu98Evv9p_sjFGeyTLEM7DXCgQ.cache +1 -0
  124. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/LKGqJkoPsV6hUu21PAZb_xrc14OELdJKzVlQjt0Uzm0.cache +1 -0
  125. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/MFWF_Cz7iSxrlrFqm0HESTvCJk_XcgbgHPT3YOoClJA.cache +0 -0
  126. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/MGxUMp74x2lSe7bOz9rIqbFB6pcCBojXlH8-vKPVbuU.cache +0 -0
  127. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/MaXf6MpY4KWsBmX5Sovz40v_wIgRigE8PUz9KsV_xGc.cache +0 -0
  128. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/NEzFaE5Y7t-wiP_ly0OaKcuXFf8SzzdVf2ZhvlEnckA.cache +0 -0
  129. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/NFZcSv_g5zKRMCYnX8jIyPP5OXXL8818m75c2QJoK_c.cache +0 -0
  130. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/NdGQ0O17pVnmrEIkOOewA2SPFXQ7so_qk9ZEZdMTaYg.cache +0 -0
  131. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/NePX2QhdKEwt6UcpUKh1Pt4kUEiQ3ADOXTuJXkBAY7M.cache +1 -0
  132. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/OfqWg5SoCpHOR8XVJbnf1o17iJTyVdOkcu0aWJ4necw.cache +0 -0
  133. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/PY5erDfbWJ7v0MpSQl6Lx9C1DZnjATDPKdzjs3v02GU.cache +1 -0
  134. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/PjzOCx9qa-CNgtm8PFv0lCcRexooD6MlBF4XZ-PHXdo.cache +0 -0
  135. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/QC4SCuhZeFrJrutxIeNamdltRIB8x8cTZPdLVXlOkX4.cache +1 -0
  136. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Q_AVKunF7KBB-iiZ8P_9wjqUOo6o-HDzPosGrGrxpXs.cache +0 -0
  137. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/QpYeSirw33TrEHJwSyW8u_CY183Suu4Wmpvgip4FhAY.cache +1 -0
  138. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/RbfwLchr_l-LtAM7gk9onOTVY3qQyChUrzo6w9q6an8.cache +1 -0
  139. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/V5nnfAivxLHBkF21PAP624OS99Df1EJxTAWTttoUXlQ.cache +1 -0
  140. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/VMnt2oNeViJzWKWH0s9aqRNfvO7GqoUCfH15SBKUkxM.cache +0 -0
  141. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/VapeKF0n0myzk8VN-BNMW4qCe93e1879mkEkocG7ymI.cache +0 -0
  142. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/X3gNcJy85CGLFf_W10hnLOZHvBy2qxA3IHDoCTMBsy4.cache +1 -0
  143. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Y4rbu-IcL54gklNHGlgaxcqs_iQgE2smBZ6ZPmEDK78.cache +1 -0
  144. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Z-lByEJf_u2hqGATHTwdLzdLpDqqMFenWI01JXE_PGE.cache +1 -0
  145. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ZhqD-EKl_U1S1mkDWYcW423a3-49GhN9ekGaoghKGJc.cache +1 -0
  146. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Ztm_GA835w0FeRS-Mjfk45ssKFydDebau0-mMccLv4Q.cache +1 -0
  147. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/aext7yQ1tC6DW30jToxnq87sklGqlhlZWflZ3Dgdczw.cache +0 -0
  148. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/bPhvH2L4lJk0dVvrsLBlvdcJhdKt8x9RhIzM6TdZK1I.cache +1 -0
  149. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/bWdBbSJ-8yTmfQhuCNtVgHTr_5t1BjhrJF-6dvot9K8.cache +1 -0
  150. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/bfJcyXtvEs7I6u_NHWVqANdUOsjdtyCsl3kQf8slSNg.cache +1 -0
  151. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/cGOON7qWTmVb0CU79sYn4JdFiT71tIfJW7nkEExmOiE.cache +0 -0
  152. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/dV3jTWklLN0vWvAwOalDF3-iO8_1ZaSXyPBftH7Zajk.cache +0 -0
  153. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/dc2uLeO68ChQlyAv515rJm6cJuH3yluSicQfKTnXBTE.cache +1 -0
  154. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/eDvdPBf0aDgNvfIkB1-dvQYfVuHbG2Pbo3Uk8Sg0nag.cache +0 -0
  155. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/enqaXWMrpgXgsGodQZKC1uRgauDSUxbos0J9o_4Yt3I.cache +1 -0
  156. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/fFt3rC4wH8cMsnvQUcAT1rx2FX9b-j4fhn4Z1fkT42s.cache +0 -0
  157. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/gvlm0vmUeN9tRyyRNaWCztvTq2pafE3NVjBLMHBBCUY.cache +1 -0
  158. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/j51wtYtrCUs4R5RtoLM6BFDLJCGtwjPyVxvrghVwCKc.cache +0 -0
  159. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/kNc92xE_8hJB758tIoM9xUiF1HcJPTCZRORiBxs7hKI.cache +1 -0
  160. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/kmN-qohaDNpU8X8rq03ju50g_o09-49trJ9W95bEsBk.cache +0 -0
  161. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ktLG9BYQe4im4JsFUtf3V14tWGTv6nt9hTAyreqDHQw.cache +1 -0
  162. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/l5JxjRujcL8oPdN99DJBnVM7PObhk9VgvPZ0pK61X8E.cache +0 -0
  163. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/lGMutj_qyEaM3x1QdjTK93OeQ6DKvCcTj5jLLlwUUEA.cache +1 -0
  164. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/lX3IvOvo4Uc0-CbzNwocsDA5YA0pCFzyidNNAILARLQ.cache +1 -0
  165. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/mQhyR98m5F6JlyhPFEQMkBs19ycMnZxAfTppltk7yZs.cache +1 -0
  166. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/mjELJvJ-Mfd-MkPOrFfwf-qBOAkrHQSicYOdbeMDTAU.cache +1 -0
  167. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/nqWnjOVamRDs6M_szDI7UFPQL7qwt1kjpphbw3OlaVM.cache +1 -0
  168. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/oxSZRmCfjRs_xcXVLwHDP97lPMXLnUy1XzE2iSDJmf4.cache +1 -0
  169. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/pvDSvxSg9ZUtIpHcDvJNLuGL1PY-c4i3QgtpBz_MDKU.cache +0 -0
  170. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/q2LCL-IdFXv0QYy7zINFVS9AZiy-zevl9KzahK1HhPQ.cache +0 -0
  171. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/qQIozQLMZWLon-Z_PsiNtWElU9NXdgorUh-69NwsjLk.cache +0 -0
  172. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/qtCrDrCCgh5_kcZlXTWOotnUExoY1A08cXu69IsWxjQ.cache +1 -0
  173. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/rk9iZYWQrjxawGjUdnPbzE0wP8PgCK4ZrUsqRnYQo_s.cache +0 -0
  174. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/s0DvAZOohy3BLrrBdYLBFaTI1zuPYmLSp8_0p-kpaSg.cache +0 -0
  175. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/sXytxfuO9aNBLY8A1RLWrFxw-ltOmIjBtVBRlxJp94Y.cache +0 -0
  176. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/sh0H7OdNcHH0toZiNOxTWcleR3PMgENZ5jEsxV2IOfM.cache +0 -0
  177. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/stB1cMvEiJ0p6wwgTu85fkuQJlVGVsNJ9BIY6CcV-Xc.cache +0 -0
  178. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/tdTD0IXwaELTmpKcXyGiDGPX1MOOqLshrcTAejT0-rg.cache +2 -0
  179. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/trNThGe9QEdWorvOlYHuY-q7ZowRU0pBL9h_C7tmow8.cache +1 -0
  180. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/tvuuof25WSYmy6ovpL7o74pHKBKk3lX0Mvgi_mjP8Pc.cache +0 -0
  181. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/uGHVhvpno292scQRlBP4c4DWSWtTy_f3s-vB6KMISXM.cache +0 -0
  182. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/uK5XBFLkyQv9ciZDP-xaEFCFHM7TAfaO8W0PaXaUHoU.cache +1 -0
  183. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ue89xOUCuBT_QFBZrwyGU4542ZeJjwzBgvqa-3IDM1Y.cache +1 -0
  184. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/vk1Ef3fC_iwVqn_zrfaSbgSI0fC3c54G80iYq2iMOuY.cache +1 -0
  185. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/vqklEDA4aB8n_x061GyuUp5MQNfIWoox_-dh-7C_Qgw.cache +0 -0
  186. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/vxQDA-heflbDCBbymrvO6u3R1Qro8P4s-UWDDloBfNc.cache +0 -0
  187. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/w0iqNBPl2PXb1i9rQK9jbyX22ZSipTNJcMsqUpHYihA.cache +1 -0
  188. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/w_fIw1xAo2ncIjDFQSCpbj-24IIjj6ghtW6_lSR02bk.cache +0 -0
  189. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/zDnd-vkdSFnhkbJL00kKfvnxK2PQ7MM3tszAsQWtIZI.cache +1 -0
  190. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/zJpXEKLmLBLsx2vRnaVOJJ6ourdoqR0t0AF7rvG1gVk.cache +0 -0
  191. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/zZi6jm7vzlkFBhziu-76n61qUzU4_TvtHZ4G9WlK_UA.cache +0 -0
  192. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/z_n6U0juStmQsvliwcmAyoAL_c79T35cAp1aAKG7OFQ.cache +1 -0
  193. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/zjeDxrvxlto6suepUXrhQ_zbjzxXIhih-z3jT4QgiQA.cache +1 -0
  194. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/zn9cgZG1VFaoAT1Fpb7IwJ0pPPAJ23OycKdf1JOcFT8.cache +1 -0
  195. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/zrnmM9rBa9CBCEP1mA8bx-cFFCz_zaX3jPoj0MYDfyk.cache +1 -0
  196. data/test/integration/navigation_test.rb +10 -10
  197. data/test/models/appt/appointment_test.rb +10 -9
  198. data/test/models/appt/appointment_type_test.rb +10 -0
  199. data/test/models/appt/block_test.rb +10 -9
  200. data/test/models/appt/calendar_event_test.rb +10 -9
  201. data/test/models/appt/calendar_test.rb +10 -9
  202. data/test/models/appt/external_calendar_test.rb +10 -0
  203. data/test/support/ics/all-day.ics +39 -0
  204. data/test/support/ics/free-busy.ics +34 -0
  205. data/test/support/ics/multi-day.ics +40 -0
  206. data/test/support/ics/recurrence.ics +40 -0
  207. data/test/support/ics/singular.ics +38 -0
  208. data/test/test_helper.rb +23 -22
  209. data/test/unit/icalendar_expander_test.rb +95 -0
  210. metadata +394 -125
  211. data/README.rdoc +0 -3
  212. data/test/dummy/db/development.sqlite3 +0 -0
  213. data/test/dummy/db/test.sqlite3 +0 -0
  214. data/test/fixtures/appt/appointments.yml +0 -11
  215. data/test/fixtures/appt/blocks.yml +0 -11
  216. data/test/fixtures/appt/calendars.yml +0 -7
@@ -1,42 +1,43 @@
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
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
43
+
@@ -1,11 +1,12 @@
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 )
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 )
12
+
@@ -1,7 +1,8 @@
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!
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!
8
+
@@ -1,3 +1,4 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.action_dispatch.cookies_serializer = :json
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
4
+
@@ -1,4 +1,5 @@
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]
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]
5
+
@@ -1,16 +1,17 @@
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
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
17
+
@@ -1,4 +1,5 @@
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
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
5
+
@@ -1,3 +1,4 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.session_store :cookie_store, key: '_dummy_session'
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
4
+
@@ -1,14 +1,15 @@
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
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
15
+
@@ -1,33 +1,33 @@
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
- activerecord:
24
- models:
25
- appt/appointment:
26
- one: Appointment
27
- other: Appointments
28
- appt/block:
29
- one: Block
30
- other: Blocks
31
- appt/calendar:
32
- one: Calendar
33
- other: Calendars
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
+ activerecord:
24
+ models:
25
+ appt/appointment:
26
+ one: Appointment
27
+ other: Appointments
28
+ appt/block:
29
+ one: Block
30
+ other: Blocks
31
+ appt/calendar:
32
+ one: Calendar
33
+ other: Calendars
@@ -1,6 +1,6 @@
1
- Rails.application.routes.draw do
2
-
3
- mount Appt::Engine => "/appt"
4
-
5
- root to: redirect("/appt")
6
- end
1
+ Rails.application.routes.draw do
2
+ mount Appt::Engine => '/appt'
3
+
4
+ root to: redirect('/appt')
5
+ end
6
+
@@ -1,22 +1,22 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- development:
14
- secret_key_base: c160fa6f997be1a4028057ce367fc4440005e48f471628d65a0ff709fddea0853603a9ffa7c86edb2e1d9120183dc9f83075bd5c932c869603b4b3c104dacd56
15
-
16
- test:
17
- secret_key_base: ff43b8276ce8d2b7bfdffa4283c0a7eadc8e1b4f90e5e6ca8417d5bc116f4040dc70f5387589dafa6f5fdf37c0ea06ee30e5ed5155e771299f4e3217d0ec914c
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: c160fa6f997be1a4028057ce367fc4440005e48f471628d65a0ff709fddea0853603a9ffa7c86edb2e1d9120183dc9f83075bd5c932c869603b4b3c104dacd56
15
+
16
+ test:
17
+ secret_key_base: ff43b8276ce8d2b7bfdffa4283c0a7eadc8e1b4f90e5e6ca8417d5bc116f4040dc70f5387589dafa6f5fdf37c0ea06ee30e5ed5155e771299f4e3217d0ec914c
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -1,35 +1,72 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 20150804003846) do
15
-
16
- # These are extensions that must be enabled in order to support this database
17
- enable_extension "plpgsql"
18
-
19
- create_table "appt_appointments", force: :cascade do |t|
20
- t.datetime "created_at", null: false
21
- t.datetime "updated_at", null: false
22
- end
23
-
24
- create_table "appt_blocks", force: :cascade do |t|
25
- t.datetime "created_at", null: false
26
- t.datetime "updated_at", null: false
27
- end
28
-
29
- create_table "appt_calendars", force: :cascade do |t|
30
- t.string "name"
31
- t.datetime "created_at", null: false
32
- t.datetime "updated_at", null: false
33
- end
34
-
35
- end
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20150805114046) do
15
+
16
+ # These are extensions that must be enabled in order to support this database
17
+ enable_extension "plpgsql"
18
+
19
+ create_table "appt_appointment_types", force: :cascade do |t|
20
+ t.string "name", null: false
21
+ t.integer "duration_minutes"
22
+ t.integer "before_minutes"
23
+ t.integer "after_minutes"
24
+ t.datetime "created_at", null: false
25
+ t.datetime "updated_at", null: false
26
+ end
27
+
28
+ create_table "appt_appointments", force: :cascade do |t|
29
+ t.integer "calendar_id"
30
+ t.date "day", null: false
31
+ t.string "start", null: false
32
+ t.string "end", null: false
33
+ t.string "email"
34
+ t.string "firstname"
35
+ t.string "lastname"
36
+ t.string "phone"
37
+ t.datetime "created_at", null: false
38
+ t.datetime "updated_at", null: false
39
+ end
40
+
41
+ create_table "appt_blocks", force: :cascade do |t|
42
+ t.string "name"
43
+ t.integer "calendar_id"
44
+ t.date "day", null: false
45
+ t.string "start", null: false
46
+ t.string "end", null: false
47
+ t.integer "external_calendar_id"
48
+ t.string "external_id"
49
+ t.datetime "created_at", null: false
50
+ t.datetime "updated_at", null: false
51
+ end
52
+
53
+ create_table "appt_calendars", force: :cascade do |t|
54
+ t.string "name"
55
+ t.text "availability"
56
+ t.string "timezone_name"
57
+ t.integer "resolution_minutes"
58
+ t.integer "min_hours"
59
+ t.integer "max_days"
60
+ t.integer "lock_hours"
61
+ t.datetime "created_at", null: false
62
+ t.datetime "updated_at", null: false
63
+ end
64
+
65
+ create_table "appt_external_calendars", force: :cascade do |t|
66
+ t.string "url"
67
+ t.string "name"
68
+ t.datetime "created_at", null: false
69
+ t.datetime "updated_at", null: false
70
+ end
71
+
72
+ end