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

debian_codename

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debian_codename

  • 2.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

DebianCodename

A minimalist mixin module for providing debian/ubuntu codename to version translation.

Installation

Add this line to your application's Gemfile:

gem 'debian_codename'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install debian_codename

Usage

find

Given a codename or a version string, find will return a hash with the codename, version string, and distribution name:

require 'debian_codename'

DebianCodename.find('groovy')
=> {:version=>"20.10", :codename=>"groovy", :distribution=>"ubuntu"}

DebianCodename.find('12')
=> {:version=>"12", :codename=>"bookworm", :distribution=>"debian"}

fast_find

Given a codename, fast_find will return the corresponding version string and vice-versa.

require 'debian_codename'

DebianCodename.fast_find('groovy')
=> "20.10"

DebianCodename.fast_find('20.10')
=> "groovy"

Errors

Raises DebianCodename::DebianCodenameError if no match is found.

Development

After checking out the repo, run bin/setup to install dependencies.

Run rake spec to run the tests.

Run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install.

FAQs

Package last updated on 02 Jul 2024

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