Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Global Weather SOAP service ruby wrapper.
Add this line to your application's Gemfile:
gem 'global_weather'
And then execute:
$ bundle
Or install it yourself as:
$ gem install global_weather
This gem was tested on ruby 1.9.3p327
Basically GlobalWeather gem provides 2 classes Country (wraps GetCitiesByCountry soap method call) and Weather (wraps GetWeather method call)
To get cities by country (e.g. Germany)
country = GlobalWeather::Country.new 'Germany'
country.cities # returns an array of strings
In order to get current weather (e.g. country 'Germany', city 'Berlin')
weather = GlobalWeather::Weather.new 'Germany', 'Berlin'
puts weather.time[:UTC]
puts weather.temperature[:C]
puts weather.temperature[:F]
puts weather.pressure[:Hg]
puts weather.pressure[:hPa]
See full list of attributes
GlobalWeather::Weather::ATTRIBUTES
Can it be simplier?
Command
$ rake
or
$ rake test
will run all tests
There is only one client instance shared among all instances of GlobalWeather Weather and Country objects.
GlobalWeather::Client.configure do |config| config.log false config.proxy 'http://my_company_internal_proxy' end
options provided this way will be passed futher down to Savon.client. See full list of all at savon documentation
FAQs
Unknown package
We found that global_weather demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.