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.
Meteoalarm serves as an API wrapper for meteoalarm.org, a platform delivering hydrometeorological warnings across the European region. This gem simplifies the process of retrieving warnings based on country, specific coordinates or area, along with a few additional options.
Add this line to your Gemfile:
gem 'meteoalarm'
And then execute:
bundle install
Or install it directly:
gem install meteoalarm
require 'meteoalarm'
# Get alarms for a specific country by its ISO 3166-1 A-2 code
Meteoalarm::Client.alarms('FR', **options) # Example: France
:latitude
and :longitude
: Check alarms for a specific coordinates.:area
: Check alarms for a specific area.:active_now
: Check currently active alarms.:date
: Check alarms by date.:expired
: Include expired alarms.require 'meteoalarm'
# Check alarms by coordinates
Meteoalarm::Client.alarms('FR', latitude: 48.84307, longitude: 2.33662)
# Check alarms by area
Meteoalarm::Client.alarms('FR', area: 'Paris')
# Check currently active alarms
Meteoalarm::Client.alarms('FR', active_now: true)
# Check alarms by date
Meteoalarm::Client.alarms('FR', date: Date.new(2024, 1, 21))
# Include expired alarms
Meteoalarm::Client.alarms('FR', expired: true)
# Or combine the options
Meteoalarm::Client.alarms('FR', area: 'Paris', active_now: true)
To incorporate Meteoalarm rake tasks into your project, include the following code in your Rakefile
:
require 'meteoalarm'
spec = Gem::Specification.find_by_name 'meteoalarm'
Dir.glob("#{spec.gem_dir}/lib/meteoalarm/tasks/*.rake").each { |f| import f }
By adding this code, you will gain access to the following rake tasks:
rake meteoalarm:countries
List all countries in Meteoalarm system
rake meteoalarm:areas
List all areas of given COUNTRY_CODE in Meteoalarm system
Your contributions are welcome and appreciated. If you find issues or have improvements, feel free to open an issue or submit a pull request.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that meteoalarm 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.