github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

mbleigh / mash

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 75
    • 9
  • Source
  • Commits
  • Network (9)
  • Issues (2)
  • Downloads (4)
  • Wiki (2)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (4)
    • v0.1.1
    • v0.1.0
    • v0.0.6
    • v0.0.5
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Mash is a Hash with the ability to read, write, and test for the presence of arbitrary attributes using method calls. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Regenerated gemspec for version 0.1.1 
mbleigh (author)
Thu Nov 12 10:48:05 -0800 2009
commit  31e4bcb37258f7dec7ad6e768b023246f1292411
tree    7e5a97ca8c36c94bff287a1fd305a3d18c97de9b
parent  a49d44a7f1bbc331a404c117dae831ac091c1063
mash /
name age
history
message
file .gitignore Sat Apr 12 09:06:20 -0700 2008 Initial import. [mbleigh]
file History.txt Tue Apr 29 18:06:06 -0700 2008 Updated to 0.0.5 [mbleigh]
file Manifest.txt Sat Apr 12 09:06:20 -0700 2008 Initial import. [mbleigh]
file README.txt Tue Apr 29 06:25:19 -0700 2008 Update to README. [mbleigh]
file Rakefile Thu Nov 12 05:52:40 -0800 2009 Adding Jeweler. [mbleigh]
file VERSION Thu Nov 12 10:48:05 -0800 2009 Version bump to 0.1.1 [mbleigh]
directory lib/ Sat Aug 02 04:54:31 -0700 2008 Make Mash[] work too [judofyr]
file mash.gemspec Thu Nov 12 10:48:05 -0800 2009 Regenerated gemspec for version 0.1.1 [mbleigh]
directory spec/ Tue Jul 22 06:44:46 -0700 2008 Mash#initialize should accept a default block [judofyr]
README.txt
= Mash (Mocking Hash)

http://github.com/mbleigh/mash

== DESCRIPTION:

Mash is an extended Hash that gives simple pseudo-object functionality
that can be built from hashes and easily extended. It is designed to
be used in RESTful API libraries to provide easy object-like access 
to JSON and XML parsed hashes.

== SYNOPSIS:
  
  mash = Mash.new
  mash.name? # => false
  mash.name # => nil
  mash.name = "My Mash"
  mash.name # => "My Mash"
  mash.name? # => true
  mash.inspect # => <Mash name="My Mash">
  
  mash = Mash.new
  # use bang methods for multi-level assignment
  mash.author!.name = "Michael Bleigh"
  mash.author # => <Mash name="Michael Bleigh">

== INSTALL:

Gem:

Mash is hosted on the GitHub gem repository, so if you haven't already:

  gem sources -a http://gems.github.com/  
  sudo gem install mbleigh-mash
  
Git:

  git clone git://github.com/mbleigh/mash.git
  
== RESOURCES

If you encounter any problems or have ideas for new features 
please report them at the Lighthouse project for Mash: 

http://mbleigh.lighthouseapp.com/projects/10112-mash

== LICENSE:

Copyright (c) 2008 Michael Bleigh (http://mbleigh.com/) 
and Intridea Inc. (http://intridea.com/), released under the MIT license

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server