
Product
Announcing Bun and vlt Support in Socket
Bringing supply chain security to the next generation of JavaScript package managers
higo
Advanced tools
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_missingIf 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.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.