Project

ubcbooker

0.0
No commit activity in last 3 years
No release in over 3 years
CLI tool to book project rooms in UBC
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.11.3
~> 10.0
~> 3.0

Runtime

 Project Readme

Ubcbooker

CLI tool to book project rooms in UBC

Demo

Installation

Install it as:

$ gem install ubcbooker

For use in your application, add this line to your Gemfile:

gem 'ubcbooker'

And then execute:

$ bundle

Usage

# Book a room in CS with the name 'Study Group' from 11am to 1pm on March 5th

$ ubcbooker -b cs -n 'Study Group' -d 03/05 -t 11:00-13:00

When you first run the command it will ask for your CWL account auth info. This is saved locally within keyring (if you're using linux) or keychain (if you're using osx) through keyring gem. Note that saving password is not supported on Windows at the moment.

Run ubcbooker -u to update the CWL auth info.

$ ubcbooker --help

Usage: ubcbooker [options]
    -b, --building BUILDING          Specify which department to book rooms from
    -d, --date DATE                  Specify date to book rooms for (MM/DD)
    -h, --help                       Show this help message
    -l, --list                       List supported departments
    -n, --name NAME                  Name of the booking
    -t, --time TIME                  Specify time to book rooms for (HH:MM-HH:MM)
    -u, --update                     Update username and password
    -v, --version                    Show version

ex. Book a room in CS from 11am to 1pm on March 5th with the name 'Study Group'
    $> ubcbooker -b cs -n 'Study Group' -d 03/05 -t 11:00-13:00

Currently this app supports project rooms in cs (Computer Science). Run ubcbooker -l to check the latest supported departments.

Feel free to send a PR that supports your department's rooms.

Development

After checking out the repo, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run bundle exec rake install.

Contributing

Bug reports and pull requests are welcome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Ubcbooker project’s codebase, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.