Closed JesseEmond closed 8 years ago
Had a quick look, looks good to me. I will take a detailed look tonight. @42races, can you review this pull request as well.
@coderhs I was wondering if you had time to take a detailed look? Not that it is pressing, but I would rather point to this repo in my dependencies rather than my fork. No rush, merely waiting for a followup whenever you will have time. Thanks! :smile:
@JesseEmond sorry about the delay, merging this request, and will release the new gem soon. Probably tomorrow.
As per issue #23, this adds support for the 3 API calls to get the weather for several cities at once:
cities
: from a list of city IDsrectangle_zone
: from a bounding boxcircle_zone
: from a point and a count of cities to returnThese only apply to
Current
, so I added class methods inapi.rb
(SeveralCitiesClassMethods
) and then extendCurrent
to get them.I added an optional parameter to
retrieve
andsend_request
to add the possibility to "force" a different URL than the one specified by the class (in this case, the 3 URLs are different than the usualCurrent
base URL).I figured I would bump up the version number to
0.12.0
, as this adds to the API.Please let me know if I should change anything or if you have ideas on how to improve this PR. Thank you!