
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Let's say you need an object that consists of a single function:
require 'others'
x = others(foo: 42) do |*args|
@foo + args[1]
end
assert(x.bar(10) == 52)
You can also do this in a class:
require 'others'
class Foo
def foo(a)
a + 1
end
others do |*args|
args[1] + 10
end
end
x = Foo.new
assert(x.foo(10) == 11)
assert(x.bar(42) == 52)
For example, you can create a decorator that intercepts all method calls and logs them:
logger = others(base: original_object) do |*args, &block|
puts "Method #{args[0]} called with #{args[1..-1].inspect}"
@base.__send__(*args, &block)
end
It also supports forwarding blocks:
x = others(foo: 42) do |*args|
@foo + args.last.call # this is the block, as the last argument
end
puts x.bar { 12 } # => 54
Read these guidelines. Make sure your build is green before you contribute your pull request. You will need to have Ruby 3.2+ and Bundler installed. Then:
bundle update
bundle exec rake
If it's clean and you don't see any error messages, submit your pull request.
FAQs
Unknown package
We found that others 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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.