
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
MyAppConfig = StaticConfig.build do
first do
env_yaml 'my_app_config'
file Rails.root.join('config/my_app.yml'), :section => Rails.env
end
env 'MY_APP'
end
Now you have an object MyAppConfig that you can use anywhere.
For instance, if your config/my_app.yml
looks like this:
development:
user:
selected:
color: orange
You could get orange
by doing this:
MyAppConfig.user.selected.color
You could override it at runtime by setting the environment variable
MY_APP_USER_SELECTED_COLOR
.
You can also override the entire config/my_app.yml
file by storing
some yaml in an environment variable called my_app_config
.
To get your config to reload on each request in Rails, add this:
Rails.application.config.to_prepare do
MyAppConfig.reload!
end
FAQs
Unknown package
We found that static_config 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
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.