Public Gists by dkubb

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
gist: 119752 Strip whitespace from sourc...
Gravatar
Thu May 28 20:09:02 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
require 'pathname'
Gravatar
Sun May 10 13:51:41 -0700 2009
1
2
3
rake spec results:
 
    MySQL
Gravatar
Sat May 09 12:44:14 -0700 2009
1
2
3
[dankubb@laptop.autopilot] extlib (next) % rake spec --trace
(in /Users/dankubb/Programming/ruby/open-source/dm/extlib)
rake aborted!
Gravatar
Wed Feb 11 14:13:45 -0800 2009
1
2
3
# Here is a list of all the dm-core runtime deps.
 
$ gem dep dm-core --remote
gist: 62293 Update DataMapper sake tasks
Gravatar
Wed Feb 11 13:58:35 -0800 2009
1
2
3
NOTE: run all the commands prefixed with "$" from the command-line.
 
0) Make sure sake is installed:
Gravatar
Sat Feb 07 23:42:41 -0800 2009
1
2
3
require 'pp'
require 'rubygems'
 
gist: 59274 Moved to http://github.com/...
Gravatar
Thu Feb 05 23:48:27 -0800 2009
1
This repository has moved to http://github.com/dkubb/dm-ambition
Gravatar
Thu Jan 29 17:13:49 -0800 2009
1
2
3
# limit/offset using Enumerable#slice
 
collection[0, 20] # LIMIT 0, 20
Gravatar
Wed Jan 28 22:32:00 -0800 2009
1
2
3
# As an exercise, come up with a ruby-way to specify
# a set of search conditions for this SQL:
 
Gravatar
Thu Jan 22 11:10:37 -0800 2009
1
2
3
header = nil
 
FasterCSV.foreach(FILE) do |row|
Gravatar
Sat Jan 10 23:51:13 -0800 2009
1
2
3
include 'dm-is-list'
 
class Node
gist: 31187 Uninstall all versions of d...
Gravatar
Tue Dec 02 09:28:21 -0800 2008
1
2
gem list '\A(?:(?:d[mo])[_-]|data_?(?:mapper|objects)|extlib)' --no-versions \
  | xargs sudo gem uninstall -aIx
Gravatar
Thu Nov 27 23:41:08 -0800 2008
1
2
3
# Embedded Value for DataMapper (http://martinfowler.com/eaaCatalog/embeddedValue.html)
 
class Address
gist: 28403 Strips trailing whitespace ...
Gravatar
Sun Nov 23 23:22:01 -0800 2008
1
2
3
#!/usr/bin/env ruby
 
# strip trailing whitespace from specifically named files, and files with specific extensions