Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
= watcher
== DESCRIPTION:
Watcher provides advanced integrated exception handling and logging functionality to your Ruby programs.
This is useful both in the development stage of a program, and while in production use, for instance on a server, as Watcher can be directed to email generated log files to a specified user in the event of errors or warnings.
By combining exception handling and detailed logging facilities, Watcher greatly reduces code-bloat and potential program flow logic flaws, as Watcher eliminates the necessity to write a tremendous amount of boiler-plate code in the form of "begin, rescue, ensure, end" blocks.
Watcher also provides a very flexible exception handling capability, allowing a programmer to easily direct Watcher what actions to take in the event of an exception. These failure actions may include any combination of logging the failure, invoking a Proc object, retrying the code, and allowing the exception to propagate up the call-stack by re-raising the exception. Exceptions that are re-raised in a child call-stack are caught by the parent call-stack, and are then dealt with by the programmer determined rules of the parent call-stack. All this happens while Watcher ensures the logs are properly maintained for the various actions taken.
== FEATURES/PROBLEMS:
== SYNOPSIS:
$watcher = Watcher.create(:output => log_file)
$watcher.debug("starting #{File.basename($0)}") do
params = {:tries => 2, :failure => :error, :proc => lambda { |e| write_config(config_path) }} msg = "ensuring existance of config file [#{config_path}]" $watcher.verbose(msg, params) do raise "file not found" unless File.file?(File.expand_path(config_path)) end
fsc = FileSystemChecker.new(:config_path => config_path) fsc.check_file_systems(:all => all_flag, :remount => remount_flag) end
if email_flag and ($watcher.errors > 0 or $watcher.warnings > 0) $watcher.send_email(email, 'FAIL: Required filesystems are not mounted') end
== REQUIREMENTS:
hoe
newgem
== INSTALL:
$ sudo gem install
== LICENSE:
(The Simplified BSD License)
Copyright (c) 2008 Karrick McDermott All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
FAQs
Unknown package
We found that watcher 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.