Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hval

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hval

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Hval 🐳

Hval is a Hash Validation gem.

Installation

Not available in rubygems (yet) so you can clone the repo and build the gem from source.

$ gem build hval.gemspec
$ gem install hval-0.1.0.gem

Usage

schema = {name: {type?: String, format?: /brush/}, age: {type?: Integer }
validator = Hval::Validator.new(schema)
validator.call({name: "guybrush", age: 45})
validator.valid?
=> true

Development

Hval is swimming under water, and will suffer a lot of changes. The gem approach is very naive and not fully tested, so if you use it be carefull. Critics, fixes, suggestions are more than welcome.

Todo

  • Return errors with messages and in a friendly format. Now, the return of the #call method return information about the result of the validation.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Hval project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

FAQs

Package last updated on 14 Aug 2017

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