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

ruby-dap

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ruby-dap

  • 0.1.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Gem Version Documentation

Ruby Debug Adapter Protocol

This gem provides models, parsers, and formatters for the Debug Adapter Protocol.

Updating Definitions

The converter script can be used to convert TypeScript definitions from the DAP specification to Ruby classes. To regenerate the Ruby classes, set PRETEND = false in the file and run echo <spec> | ruby convert.rb - or ruby convert.rb <spec-file>. If the input contains multiple files, convert.rb expects them to be separated with \n\n// ---\n\n. All of the specs can be extracted at once by running the following in the browser JavaScript console:

$('.language-typescript').toArray().map(x => {
    let t = x.innerText;
    x = $(x);
    let s = [];
    for (x = x.prev('p, ul'); x.length; x = x.prev('p, ul'))
        s.unshift(...x.text().split('\n').filter(x => x.indexOf('Values: ') != 0));
    if (!s.length) return t;
    return s.map(x => '// ' + x).join('\n') + '\n' + t;
}).join('\n\n// ---\n\n')

FAQs

Package last updated on 13 Oct 2020

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