Skip to content

Instantly share code, notes, and snippets.

View solnic's full-sized avatar

Peter Solnica solnic

View GitHub Profile
require 'dm-core'
require 'dm-types'
require 'dm-migrations'
DataMapper::Logger.new($stdout, :debug)
DataMapper.setup :default, "sqlite::memory::"
class Calendar
include DataMapper::Resource
has n, :events
require 'dm-core'
require 'dm-types'
require 'dm-migrations'
require 'dm-validations'
DataMapper::Logger.new($stdout, :debug)
DataMapper.setup :default, "sqlite::memory::"
class Person
include DataMapper::Resource
#!/usr/bin/env ruby
#
# encoding: utf-8
require 'dm-migrations'
require 'dm-validations'
DataMapper::Logger.new $stdout, :debug
DataMapper.setup :default, "sqlite::memory:"
@solnic
solnic / TODO.markdown
Created March 25, 2011 13:02
This gist shows the status of EmbeddedValue development in dm-core and my notes
  • Integration Model shared specs for Resource/EV:

    • DataMapper::Model::Core
    • DataMapper::Model::Property
    • DataMapper::Model::Hook
    • DataMapper::Model::Relationship
  • Integration Resource shared specs for Resource/EV:

  • DataMapper::Resource::Attributes
We couldn’t find that file to show.
#!/usr/bin/env ruby
#
# encoding: utf-8
require 'dm-core'
require 'dm-migrations'
DataMapper::Logger.new $stdout, :debug
DataMapper.setup :default, "sqlite::memory:"
require 'dm-core'
require 'benchmark'
class User
include DataMapper::Resource
property :id, Serial
property :admin, Boolean
end
#!/bin/sh
#
# Startup script for the Jenkins Continuous Integration server
# (via Jakarta Tomcat Java Servlets and JSP server)
#
# chkconfig: - 85 15
# description: Jakarta Tomcat Java Servlets and JSP server
# processname: tomcat
# pidfile: /var/run/jenkins.pid
#!/usr/bin/env ruby
#
# encoding: utf-8
require 'dm-migrations'
DataMapper::Logger.new $stdout, :debug
DataMapper.setup :default, "sqlite::memory:"
class A
bundle install
Updating http://github.com/datamapper/dm-migrations.git
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using addressable (2.2.5)
Using bundler (1.0.12)
Using dm-core (1.1.0) from source at /home/jenkins/jobs/dm-core/workspace
Using dm-migrations (1.1.0) from http://github.com/datamapper/dm-migrations.git (at master)
Using git (1.2.5)
Using jeweler (1.5.2)