Sha256: ec7592ebac40ef4e11727985a7a0393683861cf4b0c6aefcf094c9ce2131084e
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
# Crimp Creating an md5 hash of a number, string, array, or hash in Ruby ![mighty-boosh-four-way-crimp-o](https://f.cloud.github.com/assets/180050/2148112/b44fd6fa-93de-11e3-9f9a-ad941f069b5c.gif) Shamelessly copied from [this Stack Overflow answer](http://stackoverflow.com/a/6462589/3243663). ## Installation Add this line to your application's Gemfile: gem 'crimp' And then execute: $ bundle Or install it yourself as: $ gem install crimp ## Usage ```rb require 'crimp' Crimp.stringify({:a => {:b => 'b', :c => 'c'}, :d => 'd'}) # => [\"aSymbol=>[\\\"bSymbol=>b\\\", \\\"cSymbol=>c\\\"]Array\", \"dSymbol=>d\"]Array" Crimp.signature({:a => {:b => 'b', :c => 'c'}, :d => 'd'}) # => "68d07febc4f47f56fa6ef5de063a77b1" ``` ## Contributing 1. Fork it ( http://github.com/<my-github-username>/crimp/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crimp-0.0.1 | README.md |