Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quake

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quake

  • 0.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Quake

Quake is a library exposing the U.S. Geological Survey's real-time earthquake data. As described on USGS' Earthquake Hazards Program, "earthquake information is extracted from a merged catalog of earthquakes located by the USGS and contributing networks. Earthquakes will be broadcast within a few minutes for California events, and within 30-minutes for worldwide events".

Installation

via Gem:

[sudo|rvm] gem install quake

via Bundler:

gem "quake"

Basic Usage

Fetch all the earthquakes from the past week:

events = Quake::Event.last_week

Fetch all the earthquakes from the past day:

events = Quake::Event.last_day

Fetch all the earthquakes from the past hour:

events = Quake::Event.last_hour

Fetch all the earthquakes from the past [week|day|hour] with minimum and/or maximum magnitudes:

events = Quake::Event.last_week :min_magnitude => 3
events = Quake::Event.last_week :max_magnitude => 4
events = Quake::Event.last_week :min_magnitude => 3, :max_magnitude => 4

Fetch all the earthquakes from the past [week|day|hour] with a minimum and/or maximum magnitude at or near a location (in km):

	events = Quake::Event.last_week :min_magnitude => 2, :epicenter => "37.156, -117.3723"
	events = Quake::Event.last_week :min_magnitude => 2, :epicenter => "37.156, -117.3723", :distance => 100

Questions or Problems?

If you have any issues, please add them to GitHub or fork the project and send a pull request (with tests of course). The tests are very straight forward, nothing more than minitest; yay for simplicity!

FAQs

Package last updated on 20 Aug 2011

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc