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

hashery

Package Overview
Dependencies
Maintainers
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hashery

  • 2.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
7
Created
Source

Hashery

Gem Version Build Status Fork Me Report Issue Gittip

Homepage · Development · Report Issue · Chat

Description

Among Ruby Facets most common additions were an assortment of Hash-like classes. To better support this collection of libraries it was deemed prudent to create a new project specifically for them. Hence the Facets Hashery.

Included in this collection are the widely used OrderedHash, the related but more featured Dictionary class, a number of open classes similar to the standard OpenStruct, some variations of the standard Hash class and a few other yummy morsels.

Usage

For instruction on usage, please see the individual library files included in this collection and read the demo documents which give examples of almost all features.

Core Extensions

Hashery adds four core extensions of Ruby's Hash class: #retrieve, #rekey, #rekey! and Hash.create. The first is simply an alias for #[]. The later two have proven too useful over the years to omit. And the last is a convenience class method for populating a new hash with another hash upon initialization. All of these are sorely missing for Ruby itself, which is why they are provided here.

Installation

To install with RubyGems simply open a console and type:

$ sudo gem install hashery

Or add it as a dependency to your project's Gemfile:

gem "hashery"

Tarball packages are available for manual site installations via Ruby Setup.

Authors

Developers who have contributed code to the project include:

  • Kirk Haines
  • Joshua Hull
  • Robert Klemme
  • Jan Molic
  • George Moschovitis
  • Jeena Paradies
  • Erik Veenstra

Contributing

Don't be a lump on a log. See an issue? Have a suggestion? Want to help? Well git in there!

Communicating

The project is hosted on Github so the easiest means of communication is via the Issues page. For more direct communication you can try the #rubyworks IRC channel on irc.freenode.net.

    IRC

Testing

Hashery uses QED and Lemon test frameworks. The QED framework to create well tested high-level documentation. Run the QED specs via:

$ qed -Ilib demo/

Lemon is used to create low-level unit tests. Run these via the Rubytest:

$ rubytest -Ilib -Itest test/

Patches

Hashery's repository is hosted on GitHub. If you'd like to offer up a fix or feature, fork the repo and submit a pull request (preferably in a topic branch). I assume you have heard all the talk about proper practices, so I won't bug you with it yet again.

Donations

Yes, we FOSS programmers need to eat too! ;-) No seriously, any help you can offer goes a long way toward continued development of Rubyworks projects, including Hashery. Hop over to our Gittips page, or see the upper right-hand corner on the Rubyworks homepage. Thanks!

Copyrights

Copyright (c) 2010 Rubyworks

Licensed under the BSD-2-Clause license.

See LICENSE.txt file for further details.

Some libraries included in the Hashery have special copyrights attributing specific authors. Please see each library script for specifics and the NOTICE.txt file for an overview.

FAQs

Package last updated on 01 May 2016

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