Public Gists by dkubb

Gravatar
Wed Oct 28 18:18:19 -0700 2009
1
2
3
#!/usr/bin/env ruby -Ku
 
# encoding: utf-8
Gravatar
Wed Oct 28 13:03:46 -0700 2009
1
2
3
Collection#union
----------------
 
Gravatar
Fri Oct 23 17:01:38 -0700 2009
1
2
3
#!/usr/bin/env ruby -Ku
 
# encoding: utf-8
Gravatar
Wed Oct 21 15:51:03 -0700 2009
1
2
3
#!/usr/bin/env ruby -Ku
 
# encoding: utf-8
Gravatar
Wed Sep 23 13:14:01 -0700 2009
1
2
3
class Account
  include DataMapper::Resource
 
Gravatar
Sun Sep 20 14:00:56 -0700 2009
1
2
3
#!/usr/bin/env ruby -Ku
 
require 'rubygems'
Gravatar
Wed Sep 16 23:20:29 -0700 2009
1
2
3
class User < ActiveRecord::Base
  include DataMapper::Resource
end
Gravatar
Wed Sep 16 15:36:01 -0700 2009
1
2
3
diff --git a/lib/dm-core/adapters/data_objects_adapter.rb b/lib/dm-core/adapters/data_objects_adapter.rb
index ed5bd99..8bd90ef 100644
--- a/lib/dm-core/adapters/data_objects_adapter.rb
Gravatar
Tue Sep 15 23:02:22 -0700 2009
1
2
3
Subject: DataMapper 0.10.0 Released
 
I'd like to announce the DataMapper 0.10.0 Release.
gist: 183147 DataMapper RC2 release anno...
Gravatar
Tue Sep 08 11:58:53 -0700 2009
1
2
3
Subject: DataMapper 0.10.0 RC2
 
After a bit longer wait than I would prefer, I'd like to announce the DataMapper 0.10.0 Release Candidate 2.
Gravatar
Tue Sep 08 11:45:28 -0700 2009
1
2
3
# Uninstall old gems
gem list '\A(?:(?:d[mo])[_-]|data_?(?:mapper|objects))' \
  | egrep '\b0\.10\.0\b' \
Gravatar
Tue Sep 08 09:44:34 -0700 2009
1
2
3
post '/user/permissions' do
  require_permission_to 'administer permissions'
  params[:permissions].each do |role_id, permission_ids|
Gravatar
Sat Sep 05 14:28:38 -0700 2009
1
2
3
#!/usr/bin/env ruby -KU
 
require 'rubygems'
gist: 170779 Base Model example
Gravatar
Wed Aug 19 19:31:28 -0700 2009
1
2
3
module BaseModel
  def self.included(model)
    model.class_eval <<-RUBY, __FILE__, __LINE__ + 1
gist: 152102 DataMapper public API
Gravatar
Wed Jul 22 09:24:37 -0700 2009
1
2
3
== Interfaces
 
=== Finder Interface
Gravatar
Wed Jun 24 20:04:52 -0700 2009
1
2
3
require 'dm-core'
require 'dm-types'
 
Gravatar
Fri Jun 19 09:33:40 -0700 2009
1
2
3
I am pleased to announce the release of DataMapper 0.10.0 Release Candidate 1.
 
For the impatient, here are the command line instructions to install it:
gist: 132496 DataMapper 0.10.0 RC1 -- in...
Gravatar
Fri Jun 19 01:03:14 -0700 2009
1
2
3
REQUIRED
--------
 
Gravatar
Fri Jun 12 11:00:27 -0700 2009
1
2
3
Interfaces
==========
 
Gravatar
Tue Jun 09 01:37:57 -0700 2009
1
2
3
    SELECT humans.id
         , humans.first_name
         , humans.middle_name