Jupiter is the king of the gods and the god of sky and thunder in myth. Jupiter assumed atmospheric qualities; he is the wielder of lightning and the master of weather
This AWESOME gem allow you to get the current forecast for any city of the world.
Since is currently in development and its not in rubygems, to install you must:
clone the repository
git clone https://github.com/jcostello/Jupiter.gitinstall the dependencies through bundler
bundle installbuild the gem
gem build jupiter.gemspecand finaly you can install from the generated file
gem install jupiter.[version].gemTo use it you only have to:
Include the gem
require 'jupiter'and ask the forecast for the city you want
Jupiter.forecast_for_today("Buenos Aires")In case of a mispell of the city name a CityNotFoundException will be raiced
By default, the gem use Imperial system, to use Metric system you have to tell the gem before ask for the forecast
Jupiter.system = "Metric"In case of a mispell of the system, the last setted or the default system will be used
- Fork it ( https://github.com/jcostello/jupiter/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request