Pure Ruby implementation of Array#dig and Hash#dig for Ruby < 2.3.
A Ruby gem to parse HTML containing microformats2 and classic microformats that returns a collection of dynamically defined Ruby objects, a Ruby hash, or a JSON hash.
Flash hash implementation for Rack apps.
DSL for deserializing incoming JSON API payloads into custom hashes.
Have you ever needed to automatically convert JSON-style camelBack or CamelCase hash keys into more Rubyish snake_case? Plissken to the rescue. This gem recursively converts all camelBack or CamelCase keys in a hash structure to snake_case.
HashDot allows you to call hash properties with a dot the same way you would call, say, ActiveRecord relationships and attributes. More traversable and often faster than OpenStruct.
Diff tool for deep Ruby hash comparison
Classy Hash is a schema validator for Ruby Hashes. You provide a simple schema Hash, and Classy Hash will make sure your data matches, providing helpful error messages if it doesn't.
ScatterSwap is an integer hash function designed to have zero collisions, achieve avalanche, and be reversible.
The Dictionary class is a type of ordered Hash, which keeps it's contents in a customizable order.
Ruby wrappers to the google hash library
CarthageCache generate a hash key based on the content of your Cartfile.resolved and checks if there is a cache archive (a zip file of your Carthage/Build directory) associated to that hash. If there is one it will download it and install it in your project avoiding the need to run carthage bootstrap.
Store nested hashes and other types in ActiveRecord hstores
Provide equality comparison methods for objects based on their attributes by generating implementations for the ==, eql?, hash and inspect methods.
It supports hashes, arrays, nested hashes and arrays of hashes and all combinations thereof.
= id3lib-ruby id3lib-ruby provides a Ruby interface to the id3lib C++ library for easily editing ID3 tags (v1 and v2) of MP3 audio files. The class documentation starts at ID3Lib::Tag. == Features * Read and write ID3v1 and ID3v2 tags * Simple interface for adding, changing and removing frames * Quick access to common text frames like title and performer * Custom data frames like attached picture (APIC) * Pretty complete coverage of id3lib's features * UTF-16 support (warning: id3lib writes broken UTF-16 frames) * Windows binary gem available The CHANGES file contains a list of changes between versions. == Installation See INSTALL. == Online Information The home of id3lib-ruby is http://id3lib-ruby.rubyforge.org == Usage require 'rubygems' require 'id3lib' # Load a tag from a file tag = ID3Lib::Tag.new('talk.mp3') # Get and set text frames with convenience methods tag.title #=> "Talk" tag.album = 'X&Y' tag.track = '5/13' # Tag is a subclass of Array and each frame is a Hash tag[0] #=> { :id => :TPE1, :textenc => 0, :text => "Coldplay" } # Get the number of frames tag.length #=> 7 # Remove all comment frames tag.delete_if{ |frame| frame[:id] == :COMM } # Get info about APIC frame to see which fields are allowed ID3Lib::Info.frame(:APIC) #=> [ 2, :APIC, "Attached picture", #=> [:textenc, :mimetype, :picturetype, :description, :data] ] # Add an attached picture frame cover = { :id => :APIC, :mimetype => 'image/jpeg', :picturetype => 3, :description => 'A pretty picture', :textenc => 0, :data => File.read('cover.jpg') } tag << cover # Last but not least, apply changes tag.update! == Licence This library has Ruby's licence: http://www.ruby-lang.org/en/LICENSE.txt == Author Robin Stocker <robinstocker at rubyforge.org>
Allows you to deep sort YAML files that are mainly composed of \ nested hashes and string values. Great to sort your rails I18n YAML files. You can easily add it to a textmate bundle, rake task, or just use the included regular comand line tool.
Pluck multiple columns/attributes and return array of hashes. Support Rails 3, 4, 5. If you have a Rails 3 project, and want to pluck not only one column, feel free to use this gem and no need to worry about upgrading to Rails 4, 5 in the future will break this.
Fast XML to Ruby Hash converter
Recursively sort nested ruby Arrays and Hashes + deepmerge
Super simple conversion of hashes to plain Ruby objects. Great for consuming JSON API's.
Mash is an extended Hash that gives simple pseudo-object functionality that can be built from hashes and easily extended.
About Gibbler: Git-like hashes for Ruby objects
Extend ActiveRecord pluck to return hash instead of an array. Useful when plucking multiple columns.
A Ruby implementation of go-identicon by Damian Gryski RubyIdenticon creates an identicon, similar to those created by Github. A title and key are used by siphash to calculate a hash value that is then used to create a visual identicon representation. The identicon is made by creating a left hand side pixel representation of each bit in the hash value, this is then mirrored onto the right hand side to create an image that we see as a shape. The grid and square sizes can be varied to create identicons of differing size.
Median and percentile for Active Record, Mongoid, arrays, and hashes
LruHash class, a Hash with a max size, controlled by a LRU mechanism
A XKCP based native (C) binding to SHA3 (FIPS 202) cryptographic hashing algorithm.
This gem add the "deep merge" feature to class Hash. It means that if you want to merge hashes that contains other hashes (and so on...), those sub-hashes will be merged as well. This is very handy, for example for merging data taken from YAML files.
A weird hash with special semantics for regex keys
Flattens deeply-nested hashes into sparse hashes
A RBTree is a sorted associative collection that is implemented with a Red-Black Tree. It maps keys to values like a Hash, but maintains its elements in ascending key order. The interface is the almost identical to that of Hash. This is a fork of the original gem that fixes various bugs on Ruby 2.3+.
Simple gem that allows you to run multiple ActiveRecord::Relation using hash. Perfect for APIs.
The Keccak (SHA3) hash used by Ethereum. This does not implement the final FIPS202 standard, today known as SHA3 but rather an early version, commonly referred to as Keccak.
Scape localized search results from search engine using SerpApi.com and returns Hash, JSON, raw HTML
Tiny module that allows you to easily adapt from one hash structure to another with a simple declarative DSL.
Hash with case-insensitive, Symbol/String-indifferent key access
ColorNamer is a gem that allows you to name color from RGB value or from HTML hash. It will find the closest color and return a HTML hash, name and shade of that color.
Command-line arguments to hash
Load CSS and JS faster. Minifies, bundles, and optimizes CSS/JS assets ahead of time (e.g., on deploy), not at runtime. Loads popular third-party JS (like jQuery, YUI, and Dojo) from localhost in development, and auto-switches to Google's CDN in production. Lets you switch on LABjs mode to load more scripts in parallel. Can rewrite stylesheets to use CDN hosts (not just your web server) and cache-busting hashes for updated images.
Surus accelerates ActiveRecord with PostgreSQL specific types and functionality. It enables indexed searching of serialized arrays and hashes. It also can control PostgreSQL synchronous commit behavior. By relaxing PostgreSQL's durability guarantee, transaction commit rate can be increased by 50% or more.
A simple PO file to ruby hash parser . PO files are translation files generated by GNU/Gettext tool.
Declarative means to define object properties by passing a hash to the constructor, which will set the corresponding ivars.
Access nested Hash (JSON) with a string path
Addressabler extends the Addressable::URI class to provide information about, and manipulation of, specific parts of URI strings. It adds a `tld' method, a `domain' method, and a `subdomain' method. It also allows users to easily modify the URL's query values as a hash.
A version of Ruby's Struct class that creates classes whose instances are immutable. It works just as Struct, but there are no setters, and you can't use []=. As a bonus feature the constructor of classes inheriting from ImmutableStruct can take named parameters in the form of a hash.
Ruby utility library for network requests. Based on Faraday and Excon, provides a wrapper for XML/JSON parsing and error handling. All successful responses are returned as hash with key data, all errors in a JSONAPI-friendly hash with key errors.
This lib is a wrapper for get_ifaddrs C routine. The original routine returns a linked list that contains avaliable inet interfaces. This lib walks on list and return an hash that contains the interface names and sub-hashes with respectives ip addresses and netmasks.
Apache Log Regex is a Ruby port of Peter Hickman's Apache::LogRegex 1.4 Perl module. It provides functionalities to parse a line from an Apache log file into a hash.
Module to read from and write to the keys of a ruby Hash using methods