![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
This gem allows you to quickly convert YML files into a Config
object where the attributes can be accessed using dot, hash symbol or hash string notation.
Add this line to your application's Gemfile:
gem 'quandl-config'
And then execute:
$ bundle
Or install it yourself as:
$ gem install quandl-config
yml
file with the same file name as your class. For example:class: A::B::C
file name: config/a/b/c.yml
Quandl::Configurable
class. This adds a configuration class method.class A::B::C
extend Quandl::Configurable
end
pry
pry> A::B::C.configuration
=> #<Quandl::Config language="spanish", hello="hola">
class A::B::Special
extend Quandl::Configurable
def self.file_name
'database_zip_uploader'
end
end
class A::B::C
include Quandl::Configurable
end
That's ok. Quandl::Config
will find your config file if it's in a config
folder in the root of your app. See also the How do I override default values? for more information.
You can override default values by adding a configuration_options
method to your class/instance. The options available to be overwritten are:
root_path
- Override this when you want to change the default path to your configuration files root folder. (default: your project path)environment
- Override this when you are not using a rails project and don't set the environment via ENV['RAILS_ENV']
class A::B::Special
extend Quandl::Configurable
def self.configuration_options
{
root_path: Pathname.new('~/configs/my_project'),
environment: ENV['MY_PROJECT']
}
end
end
quandl-config utilizes an internal caching schema to save previously loaded configurations so that they don't load twice. You may need to restart your server in certain cases depending on how quandl-config was used in your project.
Additionally if you have included
via include Quandl::Configurable
you can use the following method to reset the internal config. This however will not work when extending
the module.
Quandl::Config.clear_internal_cache
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that quandl-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.