Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Rubygems:
gem install higo
Gemfile:
gem 'higo'
Detailed usage examples can be found in the /examples
directory. Supports reading from ruby objects and text files, JSON support coming soon.
Documentation can be found here.
Higo creates configuration objects dynamically. It also plays nice with methods you define. It can be subclassed or included as a module. Define settings in the block, pass values from a relative, dynamic file or URL path. All the same.
require 'higo'
class Configurable < Higo::Configurable
configure do |conf|
conf.greatness = 'pending'
conf.host = Hostname.new
end
end
The configure
block returns an instance of Higo::Configurable
. The values themselves held instance variables.
No need to define accessors ahead of time. Higo
creates getter greatness()
, setter host=(val)
and predicate methods host?
.
Higo
enables the developer to create flexible
configuration objects. It returns a Higo::Configurable
object with
getter, setter and predicate methods based on the values passed to the block.
Flexible meant two things (to me, at least). First, knowledge of the configuration values should not depend on static methods definition. Second, I prefer configuration that accepts multiple formats (like text, YAML)that could come from from remote sources.
I settled on the name after finding that fig, figgy
were taken. Sure I could've named it figy
, but that would be too confusing. So I settled on Higo
.
Note-if you already defined method_missing
in your class Higo
will honor that and that is likely not what you
want. Higo might not be right for you at this stage.
method_missing
If you are developing against this gem (yay!), run bundle exec rake -T
for list of rake tasks.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that higo demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.