Ruby Gem to convert year and semester to the term codes used at UofM
Nothing special. Add this line to your application's Gemfile:
gem 'term_coder'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install term_coder
To get termcode from year and semester:
code = TermCoder.from_year_name(1999, "Winter")
To get year and semester (as a Hash) from term code:
info = TermCoder.from_code(1220)