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

umuro / active_record_like

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 16
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • edge
    • master ✓
  • Tags (0)
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.

ActiveRecord now delegates persistance to other mediums. Potentially your ActiveRecords might be coming from XML, LDAP, Memcache or even C# libraries! See sample_active_record_like to see it in action. — Read more

  cancel

http://conceptspace.wikidot.com/active-record-like

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

This URL has Read+Write access

Removed CLI dependency for 'tt' command. 
umuro (author)
Sun Apr 26 08:09:52 -0700 2009
commit  3b169fca464b7297310d41e2dfcd231b8615c52d
tree    94e9fca48345f1c31fc0b56dc54893230e5d04b1
parent  9e43eb14b499bb4520134712875053a31fb31476
active_record_like /
name age
history
message
file .gitignore Tue Feb 24 05:56:38 -0800 2009 ActiveRecordLike with Cache as storage example [umuro]
file MIT-LICENSE Tue Feb 24 05:56:38 -0800 2009 ActiveRecordLike with Cache as storage example [umuro]
file README Sun Mar 15 20:55:30 -0700 2009 README [umuro]
file Rakefile Tue Feb 24 05:56:38 -0800 2009 ActiveRecordLike with Cache as storage example [umuro]
file init.rb Tue Feb 24 05:56:38 -0800 2009 ActiveRecordLike with Cache as storage example [umuro]
file install.rb Tue Feb 24 05:56:38 -0800 2009 ActiveRecordLike with Cache as storage example [umuro]
directory lib/ Sun Apr 26 08:09:52 -0700 2009 Removed CLI dependency for 'tt' command. It was... [umuro]
directory tasks/ Tue Feb 24 05:56:38 -0800 2009 ActiveRecordLike with Cache as storage example [umuro]
directory test/ Mon Mar 16 05:47:36 -0700 2009 Windows compatibility tested [umuro]
file uninstall.rb Tue Feb 24 05:56:38 -0800 2009 ActiveRecordLike with Cache as storage example [umuro]
README
ActiveRecordLike
================

You can delegate persistance to other mediums instead of SQL. Be it XML, Memcache, LDAP, even a C# object, whatever.
ActiveRecordLike gets a storage adapter and uses it instead of SQL unlike the ActiveRecord itself.
You can adapt, scaffold and show anything at all.

Unit tests include an example CacheAdapter where the ActiveRecords are going to the cache as the storage directly. 
Using CacheAdapter as an example you can write new storage adapters.

I actually used this library to scaffold objects returned by a C# library!

Copyright (c) 2009 [Umur Ozkul <umur.ozkul@gmail.com>], released under the MIT license

Requirements for parent project
===============================
git submodule add git://github.com/umuro/active_record_base_without_table.git 
vendor/plugins/active_record_base_without_table
git submodule add git://github.com/assaf/uuid.git vendor/plugins/uuid

environment.rb:
  config.gem "haml", :version => '2.0.9'
  config.gem "thoughtbot-shoulda", :lib => "shoulda", :version => '2.9.1', :source=>"http://gems.github.com"
  config.gem "thoughtbot-factory_girl", :lib => "factory_girl", :version => '1.2.0', :source=>"http://gems.github.com"
  config.gem "macaddr", :version => '1.0.0' # For ActiveRecordLike"
  config.gem "treetop", :version => '1.2.4' # For ActiveRecordLike"
  config.gem  'patternmatching',  :version=>'0.2.5' 
  config.gem 'mocha', :version=>'0.9.5'
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