Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Ruby module for automatic file require based on convention :)
Okey, before you even think about use this gem, let's say this gem only for lazy ones...
the basic idea is to have an easy to use relative require system and a namespace based Constant loading logic
The fun part is , that this stuffs can be used in gems (modules), because it do not depend on the Dir.pwd or any kind of absolute path or the File expand_path tricks that based on the application position.
The end goal is to make an easy ruby file loader for apps and gems.
load relative directory (not based on Dir.pwd but the caller files position) if you pass multiple string as argument it will be joined by file separator that the OS use
require 'loader'
# load all ruby file that was not loaded already
# from that relative folder
require_relative_directory "folder_name"
# for recursive use try the following
require_relative_directory_r "folder_name/path/etc"
require 'loader'
Loader.autoload
optionally you can tell the project root folder if you work with in a gem.
require 'loader'
Loader.autoload(File.dirname(__FILE__))
If you like the basic idea that the app should not do any kind of Eager Load and become slow, you can use the constant based autoload function
FAQs
Unknown package
We found that loader 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.