Dan Kubb - 2011-09-01T10:48:46-07:00 - details
Upgraded gem dependencies
Piotr Solnica - 2011-09-01T05:00:23-07:00 - details
Regenerate gemspec
| require 'veritas' | |
| require 'veritas-sql-generator' | |
| header_one = [ | |
| [ :id, Integer ], | |
| [ :name, String ], | |
| [ :age, Integer ] | |
| ] | |
| tuples_one = [ |
Dan Kubb - 2011-09-01T10:48:46-07:00 - details
Upgraded gem dependencies
Piotr Solnica - 2011-09-01T05:00:23-07:00 - details
Regenerate gemspec
| require 'rspec' | |
| describe true do | |
| it { should be(true) } | |
| it { should be_true } | |
| end | |
| describe 'true' do | |
| it { should_not be(true) } | |
| it { should be_true } |
| ruby-1.8.7-p334 :001 > c = Class.new String | |
| => #<Class:0xb76b7ee0> | |
| ruby-1.8.7-p334 :002 > c.name | |
| => "" | |
| ruby-1.9.2-p180 :001 > c = Class.new String | |
| => #<Class:0x9ad5a44> | |
| ruby-1.9.2-p180 :002 > c.name | |
| => nil |
| ruby-1.9.2-p180 :007 > u = User.new | |
| => #<User:0x9be5ec0> | |
| ruby-1.9.2-p180 :008 > u.dirty? | |
| => false | |
| ruby-1.9.2-p180 :009 > u.meta = {} | |
| => {} | |
| ruby-1.9.2-p180 :010 > u.dirty? | |
| => true | |
| ruby-1.9.2-p180 :011 > u.dirty_attributes | |
| => {:meta=>{}} |
| module DataMapper | |
| class Property | |
| class Array < Object | |
| end | |
| end | |
| end | |
| module DataMapper | |
| class Property |
Piotr Solnica - 2011-04-28T07:39:28-07:00 - details
Regenerated gemspec for 1.1.1
Piotr Solnica - 2011-04-28T07:32:00-07:00 - details
Version bump to 1.1.1
| @import compass/reset | |
| @import compass/css3/border-radius | |
| table | |
| border: none | |
| border-collapse: separate | |
| th, td | |
| padding: 5px | |
| thead | |
| background-color: #f2f6fa |
| #!/usr/bin/env ruby | |
| # | |
| # encoding: utf-8 | |
| require 'dm-sqlite-adapter' | |
| require 'dm-migrations' | |
| DataMapper::Logger.new($stdout, :debug) | |
| DataMapper.setup :default, "sqlite::memory:" |
| | AR 3.0.7 | DM 1.1.1 | SQ 3.22.0 | DIFF_AR_VS_DM | DIFF_SQ_VS_DM | | |
| -------------------------------------------------------------------------------------------------------------------------- | |
| Model#id x1000 | 0.004 | 0.000 | 0.000 | 13.79x | 0.64x | | |
| Model.new (instantiation) x10 | 0.000 | 0.000 | 0.000 | 26.88x | 31.38x | | |
| Model.new (setting attributes) x10 | 0.001 | 0.000 | 0.000 | 2.54x | 0.54x | | |
| Model.get specific (not cached) x10 | 0.004 | 0.006 | 0.004 | 0.77x | 0.70x | | |
| Model.get specific (cached) x10 | 0.004 | 0.001 | 0.004 | 5.70x | 4.77x | | |
| Model.first x10 | 0.021 | 0.005 | 0.004 | 4.35x | 0.79x | | |
| Model.all limit(100) |