Skip to content

jcostello/Jupiter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jupiter

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.

Installation

Since is currently in development and its not in rubygems, to install you must:

clone the repository

git clone https://github.com/jcostello/Jupiter.git

install the dependencies through bundler

bundle install

build the gem

gem build jupiter.gemspec

and finaly you can install from the generated file

gem install jupiter.[version].gem

Usage

To 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

Contributing

  1. Fork it ( https://github.com/jcostello/jupiter/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Jupiter is a weather gem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages