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

asdf-discover

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asdf-discover

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

asdf-discover

A gem that provides an executable to populate asdf's .tool-versions file.

Changelog

Changelog following https://keepachangelog.com

Installation

$ gem install asdf-discover

Usage

Run asdf-discover in a project directory.

Languages / Versions Discovered

LanuageFile
Gogo.mod
Ruby.ruby-version
Ruby.rvmrc
node.js.nvmrc
node.js.node-version

TODO

  • If a version comes from multiple sources, list them all (currently displays the first found)

  • There seems to be 2 ways to find a version:

    • The contents of a file (e.g. .ruby-version)
    • A line in a file (e.g. go.mod)

    Consider a DSL for adding more:

    class GoMod
      include Asdf::Searcher
    
      scan_file "go.mod", for: /go ([0-9.]+)$/
    end
    
    class DotRubyVersion
      include Asdf::Searcher
    
      file_contents ".ruby-version"
    end
    

Development

After checking out the repo, run bundle install. Then, run rake spec to run the tests.

You can run the binary locally with: ruby -Ilib ./exe/asdf-discover path/to/directory

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jmks/asdf-discover.

License

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

FAQs

Package last updated on 02 Nov 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