
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
.. role:: ruby(code) :language: ruby
.. role:: sh(code) :language: sh
.. image:: https://travis-ci.org/ct-clearhaus/asrt.png?branch=master :alt: Build Status :target: https://travis-ci.org/ct-clearhaus/asrt
.. image:: https://codeclimate.com/github/ct-clearhaus/asrt.png :alt: Code Climate :target: https://codeclimate.com/github/ct-clearhaus/asrt
.. image:: https://coveralls.io/repos/ct-clearhaus/asrt/badge.png?branch=master :alt: Coveralls :target: https://coveralls.io/r/ct-clearhaus/asrt
.. image:: http://img.shields.io/license/MIT.png?color=green :alt: MIT License :target: http://opensource.org/licenses/MIT
This gem <https://rubygems.org/gems/asrt>
_ simply gives you :ruby:asrt
so
you can do assertions like this:
.. code-block:: ruby
def funny(input)
asrt input.is_a?(String), 'Me only eat strings.'
input.strip + ' is funny'
end
Why use :ruby:asrt
rather than :ruby:assert
? Well, it's short and you may
like to use some other assert stuff for your unit tests.
.. code-block:: sh
gem install asrt
In your Gemfile
may want to have :ruby:gem 'asrt'
.
Dependencies ............
None.
Fork <https://github.com/ct-clearhaus/asrt/fork>
_bundle install && bundle exec rake test
bundle exec rake test
again, preferably against Ruby 1.9.3, 2.0.0 and
2.1.0 (Travis <https://travis-ci.org/ct-clearhaus/asrt/pull_requests>
_
will do that).FAQs
Unknown package
We found that asrt 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
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.