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

metronome-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metronome-client

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Metronome::Ruby

A simple ruby client for Metronome

Installation

Add this line to your application's Gemfile:

gem 'metronome-client'

And then execute:

$ bundle

Or install it yourself as:

$ gem install metronome-client

Usage

Configure with an authentication token

require 'metronome'
Metronome.configure('http://url', token: 'token')

Once the client is configured,

Jobs

puts Metronome::Job.all
#<Flexirest::ResultIterator:0x007fdddb39d558>
puts Metronome::Job.find('cloud-app-engineering-security-dev-plugins-observatoryhttp')
#<Metronome::Job:0x007fdddb34cc70>

Runs


puts Metronome::Run.all(job_id: j.id)
#<Flexirest::ResultIterator:0x007feb06307cf0>
puts Metronome::Run.find(job_id: 'id_one', run_id: 'id')
#<Metronome::Run:0x007fdddb34cc70>

Metrics

puts Metronome::Metric.all
#<Metronome::Metric:0x007ff1810c8648>

Development

After checking out the repo, run bundle install to install dependencies. Then, run bundle exec rake test to run the tests.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/cduranleau/metronome-ruby.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 22 Nov 2017

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