New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rspec-networking

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rspec-networking

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

RSpec::Networking

Gem codecov

RSpec matchers for IP and MAC Addresses

Install

gem install rspec-networking

Usage

require "rspec/networking"

expect(obj).to be_an_ip_address

# check version
expect(obj).to be_an_ip_address.v4

# check for localhost
expect(obj).to be_an_ip_address.localhost

# compose with other matchers
expect(data).to include(addr: an_ip_address)



###  match a MAC address  ###
expect(obj).to be_a_mac_address

expect(obj).to be_a_mac_address.broadcast
expect(obj).to be_a_mac_address.multicast
expect(obj).to be_a_mac_address.unicast

# check manufacturer or specific device
expect(obj).to be_a_mac_address.from("xerox")
expect(obj).to be_a_mac_address.for(device)

# compose with other matchers
expect(data).to include(addr: a_mac_address)

Resources


Contributing

Yes please :)

  1. Fork it
  2. Create your feature branch (git checkout -b my-feature)
  3. Ensure the tests pass (bundle exec rspec)
  4. Commit your changes (git commit -am 'awesome new feature')
  5. Push your branch (git push origin my-feature)
  6. Create a Pull Request

FAQs

Package last updated on 31 Aug 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc