![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Small module to help with DSL evaluation. Notably, it produces a human-friendly backtrace error showing the original user-provided source code if there's a syntax error.
Example usage:
DslEvaluator.configure do |config|
config.backtrace.reject_pattern = "/lib/lono"
config.logger = Lono.logger
config.on_exception = :exit
config.root = Lono.root
end
class Dsl
include DslEvaluator
def build
path = "/path/to/user/provided/dsl/file.rb"
evaluate_file(path) # from DslEvaluator module
end
end
For other libraries where printing the code and context lines around the code is useful, you can use DslEvaluator.print_code
.
The print_code
method understands "polymorphic" arguments.
call_line = ufo_config_call_line
DslEvaluator.print_code(call_line)
path = "replace with path to file"
line_number = "replace with line number. usually can get the exception.message"
DslEvaluator.print_code(path, line_number)
Add this line to your application's Gemfile:
gem 'dsl_evaluator'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install dsl_evaluator
Bug reports and pull requests are welcome on GitHub at https://github.com/tongueroo/dsl_evaluator.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that dsl_evaluator demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.