A mirror of dcurooms found at https://github.com/theycallmemac/dcurooms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. # changelog
  2. ---
  3. __entry:__ 10-12-2017
  4. __contributor:__ theycallmemac
  5. ---
  6. - README.md
  7. - created a README markdown file in the intial commit.
  8. - made some further ammendments to this.
  9. - LICENSE
  10. - added GNU General Public License v3.0 to the repo
  11. - book_lab.py, book_room.py, check_availability.py, booking.sh
  12. - uploaded previously existing files to new repo.
  13. - free_now.py, booking.sh
  14. - created free_now.py and added support for this in the shell script.
  15. - CHANGELOG.md
  16. - created a markdown file to document the changes to the code.
  17. ---
  18. ---
  19. __entry:__ 11-12-2017
  20. __contributor:__ theycallmemac
  21. ---
  22. - README.md
  23. - changed to include information on setup and how to run the script.
  24. - setup.py
  25. - added to install dcurooms script with it's dependencies.
  26. - changed license info in the script
  27. - scripts/dcurooms
  28. - dcurooms script added with the previous 'free_now.py' capabilities.
  29. - book_lab.py, book_room.py, check_availability.py, booking.sh, free_now.py, booking.sh
  30. - removed with a view to add their functionaltiies to dcurooms script.
  31. ---
  32. ---
  33. __entry:__ 13-12-2017
  34. __contributor:__ theycallmemac
  35. ---
  36. - scripts/dcurooms
  37. - now at v0.2.0 follwoing a number of minor changes.
  38. - changed the "-f"/"--free" option to "-n"/"--now". This is the purposes of clarity in the command name.
  39. - script now supports a "-f" or "--free" option which specificially displays rooms that are free as opposed to just the status of all rooms. This option checks the info returned from "-n"/"--now".
  40. - changed license info which was incorrect.
  41. - rewrote the get_current_time function to calculate the current week as opposed to it being hardcoded into the program.
  42. - README.md
  43. - added to long command information
  44. - gave usage example to check for free rooms rather than all rooms
  45. ---
  46. ---
  47. __entry:__ 14-12-2017
  48. __contributor:__ theycallmemac
  49. ---
  50. - .gitignore
  51. - created to ignore .pyc and .txt files
  52. - also ignores egg-info aswell as build and dist directories
  53. - scripts/dcurooms
  54. - created, just import dcurooms.py script
  55. - scripts/dcurooms.py
  56. - now at v0.2.1 following a number of fixes changes.
  57. - import specific tools rather than entire libraries.
  58. - functions return information ready for concatenation.
  59. - fixed error for wen the hour returned from get_current_time was greater or equal to 23.
  60. - ```__init__.py```
  61. - added one in each directory for the unittests
  62. - helps navigate around the project
  63. - tests/test_free_now.py
  64. - created unittest to check the return values of dcurooms
  65. - tests for exit code
  66. - tests if output is empty (indicating free) or a hardcoded string.
  67. ---
  68. ---
  69. __entry:__ 16-12-2017
  70. __contributor:__ theycallmemac
  71. ---
  72. - scripts/dcurooms.py
  73. - now at v0.3.0 due to some minor changes in what the tool can do and it's usage.
  74. - can now look up specific rooms on any given week and timeslot.
  75. - can also lookup a whole builing when provided with this info too.
  76. - the "-f"/"--free" command now replaced with "-a"/"--available" command. This is due to a feature I plan for the next minor update.
  77. - bugs most definitely persist in this new addition. Fixes on the way soon.
  78. - README.md
  79. - added information on the new lookup commands.
  80. - changed info on previous commands listed.
  81. - setup.py
  82. - added url to setup script.
  83. - tests/test_available_now.py
  84. - tests the -anc options rather that the previous -fnc options.
  85. - renamed file and changed some names around the test.
  86. - fixed issue #2
  87. ---
  88. ---
  89. __entry:__ 19-12-2017
  90. __contributor:__ theycallmemac
  91. ---
  92. - scripts/dcurooms.py
  93. - now at v0.4.0 because of some rewrites and added functionality
  94. - lookup option now supports a lookup when available option, given as "-la"/"--lookup --available"
  95. - search_dictionary function added and repetitive lines of code removed.
  96. - now gives error message when room entered which either doesn't exist or is not yet supported by the tool, this fixes #4
  97. - now at v0.4.1 due to some fixes
  98. - found that issue #7 pertained to more than just what was detailed initially
  99. - tool no longer returns any IndexErrors instead returns a message as to what you entered wrong.
  100. - this fixes #7
  101. -
  102. - README.md
  103. - added information on the new lookup when available command
  104. - tests/test_available_now.py
  105. - removed unnecessary lines
  106. - changed information and created txt file based on new option names from v0.3.0
  107. ---
  108. ---
  109. __entry:__ 20-12-2017
  110. __contributor:__ theycallmemac
  111. ---
  112. - scripts/dcurooms.py
  113. - now at v0.4.2
  114. - Refactored script from 214 lines to 149 lines, removing large blocks of repetitive code
  115. - this refactoring fixes issue #8
  116. ---
  117. ---
  118. __entry:__ 21-12-2017
  119. __contributor:__ theycallmemac
  120. ---
  121. - scripts/dcurooms.py
  122. - made dcurooms compatible with python3.x, thus closing issue #6
  123. - this was done by using MechanicalSoup instead of mechanize as the former supports python2 and python3
  124. - script also decides between http.cookiejar and cookielib bepending on which major version of python the script was installed with.
  125. - setup.py
  126. - included more info on the versions of python that the dcurooms script supports
  127. ---
  128. ---
  129. __entry:__ 24-12-2017
  130. __contributor:__ theycallmemac
  131. ---
  132. - scripts/dcurooms.py
  133. - closes #3, milestone 1.0.0 reached
  134. - supports the booking of rooms in the Henry Grattan Building and labs in the School of Computing.
  135. - requires your gmail username and password to send lab booking on behalf of your email.
  136. - supports both python2 and python3
  137. ---
  138. ---
  139. __entry:__ 25-12-2017
  140. __contributor:__ theycallmemac
  141. ---
  142. - scripts/dcurooms.py
  143. - fixed some errors persisting within the booking code, incorrect parameters etc
  144. - tests/test_available_now.py
  145. - made changes to test, giving exit status of 0 rather than 1.
  146. - now run from projects home dir rather from within the test dir
  147. - this is for the purposes of TravisCI
  148. - .travis.yml
  149. - added continuous integration in the from of TravisCI
  150. - sets python as the language, building for 3.4, 3.5 and 3.6 only
  151. - installs requirements using the txt file found in the home dir
  152. - runs tests
  153. - hope to build for 2.7 soon
  154. - requirements.txt
  155. dependencies used by dcurooms to be installed using TravisCI
  156. ---
  157. ---
  158. __entry:__ 03-01-2018
  159. __contributor:__ theycallmemac
  160. ---
  161. - tests/test_builder.py
  162. - created test_builder.py
  163. - tests the return value of the build_timetable function in dcurooms.py
  164. - also tests the validity of the url built
  165. - tests/test_lookup.py
  166. - created test_lookup.py
  167. - tests the output of an incorrect entry
  168. - also checks the output is nothing when the room is indeed free
  169. - .travis.yml
  170. - added new test_builder.py test to scripts section
  171. - added new test_lookup.py test too
  172. ---
  173. ---
  174. __entry:__ 04-01-2018
  175. __contributor:__ theycallmemac
  176. ---
  177. - setup.py, scripts/dcurooms.py, tests/test_lookup.py, tests/test_available_now.py, tests/test_builder.py
  178. - all scripts named here were formatted to conform with pep8
  179. - this was done using autopep8
  180. ---
  181. ---
  182. __entry:__ 07-01-2018
  183. __contributor:__ theycallmemac
  184. ---
  185. - setup.py
  186. - added extra scripts for running tool
  187. - .travis.tml
  188. - removed old test
  189. - index.py, builders.py, controls.py, checks.py
  190. - split functions among different files.
  191. - Fixes almost all issues found using codeclimate
  192. - much cleaner (in ways), but can be better, I hope to added some more tests following on from this.
  193. - README.md
  194. - added codeclimate staus badge
  195. ---