
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
ActiveRegulation is a library for commonly used record states.
Add this line to your application's Gemfile:
gem 'active_regulation'
And then execute:
$ bundle
Or install it yourself as:
$ gem install active_regulation
Modules:
activation
containment
expiration
quarantine
suspension
visibility
Attributes:
:inactivated_at
:contained_at
:expires_at
:invisible_at
:quarantined_at
:suspended_at
class User < ActiveRecord::Base
# Add one of the datetime attributes
# above to the corresponding table.
include ActiveRegulation::Containment
end
user.active? #=> true
user.inactive? #=> false
user.inactive!
user.active? #=> false
user.active!
user.active? #=> true
user.to_activation #=> 'Active'
User.active #=> retrieves all active records
User.inactive #=> retrieves all inactive records
Your contribution is welcome.
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that active_regulation 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
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
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.