Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
libCLImate, for Ruby
libCLImate is a portable, lightweight mini-framework that encapsulates the common aspects of Command-Line Interface boilerplate, including:
libCLImate.Ruby is the Ruby version.
Install via gem as in:
gem install libclimate-ruby
or add it to your Gemfile
.
Use via require, as in:
require 'libclimate'
In common with several other variants of libCLImate, libCLImate.Ruby revolves around a Climate
class
whose initialiser takes a block and acts as a lightweight DSL for concise definition of a command-line parsing instance, as in:
options = {}
climate = LibCLImate::Climate.new do |cl|
cl.add_flag('--debug', alias: '-d', help: 'runs in Debug mode') do
options[:debug] = true
end
cl.add_option('--verbosity', alias: '-v', help: 'specifies the verbosity', values: [ 'terse', 'quiet', 'silent', 'chatty' ]) do |o, sp|
options[:verbosity] = o.value
end
cl.add_alias('--verbosity=chatty', '-c')
cl.version = [ 0, 1, 0 ]
cl.info_lines = [
'libCLImate.Ruby examples',
:version,
"Illustrates use of libCLImate.Ruby's specification of flags, options, and specifications",
'',
]
cl.constrain_values = 1..2
cl.usage_values = "<dir-1> [ <dir-2> ]"
cl.value_names = [
"first directory",
"second directory",
]
end
Examples are provided in the examples
directory, along with a markdown description for each. A detailed list TOC of them is provided in EXAMPLES.md.
It is instructive to see how much more succinct they are than those (offering precisely the same functionality) presented in CLASP.Ruby.
Defect reports, feature requests, and pull requests are welcome on https://github.com/synesissoftware/libCLImate.Ruby.
libCLImate.Ruby depends on:
libCLImate.Ruby is released under the 3-clause BSD license. See LICENSE for details.
FAQs
Unknown package
We found that libclimate-ruby demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.