ruby_open_weather_map
ruby_open_weather_map copied to clipboard
A ruby wrapper for open weather map
Thanks for this library! It does look like there are no updates since 2017? I've tried to improve upon the design of a openweather client with https://github.com/dblock/open-weather-ruby-client, which provides a...
This gem depends on JSON 1.x. Unfortunately, it now has a known vulnerability (https://www.ruby-lang.org/en/news/2020/03/19/json-dos-cve-2020-10663/) and update is strongly recommended. Please update the dependency to 2.3.0.
- using global define for the API URL - changed protocol from http to https
```rb OpenWeather::Forecast.city("Cochin") objc[1871]: +[__NSPlaceholderDictionary initialize] may have been in progress in another thread when fork() was called. objc[1871]: +[__NSPlaceholderDictionary initialize] may have been in progress in another thread when fork()...
`merge!` usage in `find.rb` seem to be leaving the options with the request parameters, affecting subsequent api calls
http://openweathermap.org/history
Create method for finding current weather by [zipcode](http://openweathermap.org/current#zip). **api.rb** ``` #Zip format : 33704,US #Usage: OpenWeather::Current.zip('33704,Us') def zip(zip, options ={}) new(options.merge(zip: zip)).retrieve end ```