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
diff --git a/spec/integration/association_spec.rb b/spec/integration/association_spec.rb | |
index 953338c..bbad032 100644 | |
--- a/spec/integration/association_spec.rb | |
+++ b/spec/integration/association_spec.rb | |
@@ -370,6 +370,13 @@ if ADAPTER | |
Machine.first(:name => 'machine10').should_not be_nil | |
end | |
+ it 'should set and retrieve associations on not yet saved objects' do | |
+ e = Machine.create(:name => 'machine10') |
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
dirkjan@mrkrabs ~/Documents/projects/ruby1.8 $ date | |
Sat 2 Aug 2008 21:46:09 CEST | |
dirkjan@mrkrabs ~/Documents/projects/ruby1.8 $ irb | |
irb(main):001:0> Time.now.to_s | |
=> "Sat Aug 02 21:46:52 +0200 2008" | |
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
Running 470 tests...................................................... | |
In TestChannel::test_receive_causes_event_block: | |
./vm/test/test_channel.hpp:98: Error: Expected (chan->waiting->locate(state, 0) == state->globals.current_thread.get()), found ({ 0E 00 00 00 } != { 4C CE 71 05 }) | |
................................................................................................................................................................. | |
In TestInstructions::test_send_stack_with_splat: | |
vm/instructions.rb:2362: Error: Expected (task->stack->at(0) == Object::i2n(3)), found ({ 14 D4 01 06 } != { 0D 00 00 00 }) | |
. | |
In TestInstructions::test_send_super_stack_with_splat: | |
vm/instructions.rb:2564: Error: Expected (task->stack->at(0) == Object::i2n(3)), found ({ 24 D9 01 06 } != { 0D 00 00 00 }) | |
....Bus error |
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
dirkjan@mrkrabs ~/Documents/projects/dm-constraints $ spec spec/ | |
..F | |
1) | |
PostgresError in 'DataMapper::Constraints should not be able to create related objects with a failing foreign key constraint' | |
ERROR: insert or update on table "cows" violates foreign key constraint "stables_fk" | |
DETAIL: Key (stable_id)=(342523311) is not present in table "stables". | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.4/lib/dm-core/adapters/data_objects_adapter.rb:89:in `execute_non_query' | |
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
index 914a147..f8f5d0c 100644 | |
--- a/lib/dm-core/auto_migrations.rb | |
+++ b/lib/dm-core/auto_migrations.rb | |
@@ -8,9 +8,14 @@ module DataMapper | |
# | |
# @param Symbol repository_name the repository to be migrated | |
# @calls DataMapper::Resource#auto_migrate! | |
- def self.auto_migrate(repository_name = nil) | |
- DataMapper::Resource.descendants.each do |model| | |
- model.auto_migrate!(repository_name) |
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
# colors for ls, etc. | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/' | |
} | |
alias ls="ls -G -F" | |
if [[ ${EUID} == 0 ]] ; then | |
PS1='\[\033[01;31m\]\u@\h \[\033[01;34m\]\w\[\033[01;35m\]$(parse_git_branch)\[\033[01;34m\] \$ \[\033[00m\]' | |
else | |
PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\w\[\033[01;35m\]$(parse_git_branch)\[\033[01;34m\] \$ \[\033[00m\]' | |
fi |
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
static INTEGER from(native_int i); | |
static INTEGER from(char i); | |
static INTEGER from(unsigned char i); | |
static INTEGER from(short i); | |
static INTEGER from(unsigned short i); | |
static INTEGER from(int i); | |
static INTEGER from(unsigned int i); | |
static INTEGER from(long i); | |
static INTEGER from(unsigned long i); |
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
undefined method `to_const_path' for :deleted_at:Symbol | |
/Library/Ruby/Gems/1.8/gems/extlib-0.9.5/lib/extlib/inflection.rb:50:in `underscore' | |
/Users/dirkjan/Documents/projects/pep/gems/gems/dm-core-0.9.4/lib/dm-core/naming_conventions.rb:71:in `call' | |
/Users/dirkjan/Documents/projects/pep/gems/gems/dm-core-0.9.4/lib/dm-core/property.rb:579:in `fields' | |
/Users/dirkjan/Documents/projects/pep/gems/gems/dm-core-0.9.4/lib/dm-core/property.rb:290:in `call' | |
/Users/dirkjan/Documents/projects/pep/gems/gems/dm-core-0.9.4/lib/dm-core/property.rb:290:in `default' | |
/Users/dirkjan/Documents/projects/pep/gems/gems/dm-core-0.9.4/lib/dm-core/property.rb:290:in `[]' | |
/Users/dirkjan/Documents/projects/pep/gems/gems/dm-core-0.9.4/lib/dm-core/property.rb:290:in `field' | |
/Users/dirkjan/Documents/projects/pep/gems/gems/dm-core-0.9.4/lib/dm-core/adapters/data_objects_adapter.rb:374:in `original_property_to_column_name' | |
/Users/dirkjan/Documents/projects/pep/gems/gems/dm-aggregates-0.9.4/lib/dm-aggregates/adapters/data_objects_adap |
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
~ Controller class not found for controller `subnamespace/primary_controller' | |
~ Controller class not found for controller `subnamespace/primary_controller' - (Merb::ControllerExceptions::NotFound) | |
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/dispatch/request.rb:54:in `controller' | |
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/dispatch/dispatcher.rb:35:in `handle' | |
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/rack/application.rb:7:in `call' | |
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/rack/middleware/static.rb:22:in `call' | |
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/rack/handler/mongrel.rb:72:in `process' | |
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client' | |
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' | |
/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client' |
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
class Person | |
include DataMapper::Resource | |
include DataMapper::Audited | |
property :id, Serial | |
property :name, String | |
is_audited | |
end |
OlderNewer