This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql: | |
mysql-config: /usr/local/mysql/bin/mysql_config | |
nokogiri: | |
xml2-include: /opt/local/include/libxml2 | |
xml2-lib: /opt/local/lib | |
xslt-dir: /opt/local | |
iconv-dir: /opt/local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup new rubygem environment for merb 1.0.x | |
gem install extlib rspec rake memcache-client mongrel ruby-debug hpricot --no-rdoc --no-ri | |
gem install webrat --version=0.3.1 --no-rdoc --no-ri | |
gem install json_pure --version=1.1.6 --no-rdoc --no-ri |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# A one file test to show ... | |
require 'rubygems' | |
require 'dm-core' | |
require 'dm-validations' | |
# setup the logger | |
DataMapper::Logger.new(STDOUT, :debug) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Merb::BootLoader.before_app_loads do | |
# This will get executed after dependencies have been loaded but before your app's classes have loaded. | |
Date.add_format(:tranzaction_date, '%m/%d/%y') | |
class ::DataMapper::Validate::ValidationErrors | |
def each | |
errors.map.each do |k, v| | |
next if v.blank? | |
yield(k, v) | |
end |
NewerOlder