
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Versitle configuration management. Pull data from ENV or config files. Simplest use case:
Qonf works well with or without Rails. If using Rails, Qonf will assume config files are in Rails.root/config
directory. Otherwise, you'll need to set the root yourself:
Qonf.configure do
self.base_dir = "./config"
end
Qonf also allows you to use environment based keys, these will come preconfigured for Rails or could be set by other ruby applications:
Qonf.configure do
self.env = "staging" # hash under this key will be merged into top-level hash
self.environments = %w{test staging production} # these will be removed from hash if they are top-level keys
end
So, if you config is as follows:
# config/names.json
{
"test": {
"name": "Test data"
},
"staging": {
"name": "Bob Jones"
}
}
Qonf.get(:names,:name) # Bob Jones
Config files can be either json or yml. They are addressed by name and must live in the base_dir
path (for Rails, this is Rails.root/config
)
# config/qonf.json
{
"host": "http://google.com"
}
Qonf.host # "http://google.com"
YAML can also be used:
# config/redis.yml
development:
host: localhost
Qonf.get(:redis,:host) # "localhost"
Add this line to your application's Gemfile:
gem 'qonf'
And then execute:
$ bundle
Or install it yourself as:
$ gem install qonf
Tests are maintained by RSpec. To run test cases:
bundle exec rake test
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that qonf 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.