This file contains 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
group :data_mapper do | |
gem 'do_sqlite3', '>= 0.10.1' | |
gem "dm-core", :git => "git://github.com/datamapper/dm-core.git" | |
gem "dm-timestamps", :git => "git://github.com/datamapper/dm-more.git" | |
gem "dm-rails", :git => "git://github.com/datamapper/dm-rails.git" | |
end |
This file contains 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 RiakSerial < DataMapper::Types::Type | |
primitive String | |
serial true | |
end |
This file contains 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
5) Error: | |
test_destroyed_account_is_signed_out(AuthenticationTest): | |
NoMethodError: undefined method `destroy_all' for User:Class | |
23) Error: | |
test_should_not_regenerate_unlock_token_if_it_already_exists(LockableTest): | |
NoMethodError: undefined method `lock!' for #<User:0x107b26940> | |
46) Error: | |
test_forget_me_should_clear_remember_created_at(RememberableTest): |
This file contains 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
/Users/jc/.rvm/gems/ruby-1.8.7-p249%devisedev/bundler/gems/dm-core-37b4bd22b9e3842977cf83d32baba459607e900a-master/lib/dm-core/model.rb:234:in `inherited': undefined method `contexts' for []:Array (NoMethodError) | |
from /Users/jc/.rvm/gems/ruby-1.8.7-p249%devisedev/bundler/gems/dm-core-37b4bd22b9e3842977cf83d32baba459607e900a-master/lib/dm-core/model/relationship.rb:37:in `inherited' | |
from /Users/jc/.rvm/gems/ruby-1.8.7-p249%devisedev/bundler/gems/dm-core-37b4bd22b9e3842977cf83d32baba459607e900a-master/lib/dm-core/model/property.rb:31:in `inherited' | |
from ./test/models_test.rb:3 | |
from /Users/jc/.rvm/gems/ruby-1.8.7-p249%devisedev/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/dependencies.rb:205:in `load' | |
from /Users/jc/.rvm/gems/ruby-1.8.7-p249%devisedev/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/dependencies.rb:205:in `load' | |
from /Users/jc/.rvm/gems/ruby-1.8.7-p249%devisedev/bundler/gems/rails-16a5 |
This file contains 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
Started | |
.............User#update_attributes is deprecated, use User#update instead (/Users/jc/Gems/devise/lib/devise/models/authenticatable.rb:79:in `update_with_password') | |
F......User#update_attributes is deprecated, use User#update instead (/Users/jc/Gems/devise/lib/devise/models/authenticatable.rb:79:in `update_with_password') | |
....User#update_attributes is deprecated, use User#update instead (/Users/jc/Gems/devise/lib/devise/models/authenticatable.rb:79:in `update_with_password') | |
F......User#update_attributes is deprecated, use User#update instead (/Users/jc/Gems/devise/lib/devise/models/authenticatable.rb:79:in `update_with_password') | |
..DEPRECATION WARNING: RAILS_DEFAULT_LOGGER is deprecated! Use Rails.logger instead. (called from debug_log at /Users/jc/.rvm/gems/ruby-1.8.7-p249%devisedev/gems/webrat-0.7.0/lib/webrat/core/logging.rb:8) | |
.............E.....................................F.....................F..F.............................................................F.....FF.............E.....F...... |
This file contains 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
[jc@macbookpro ~/Gems/dm-more/dm-validations(master)]# bundle exec rake(in /Users/jc/Gems/dm-more/dm-validations) | |
Profiling enabled. | |
...............................................................................................................................................................................FFFF...........F.....................................................................................................................................................................................................................................................................................................................................................................................................................................................FFF...F...F...F...FFFF..............................F..F..F..F....F...F...F.............................................................................................. | |
Top 10 slowest examples: | |
0.0736640 Inferred validations allow overriding a single error mes |
This file contains 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
[jc@macbookpro ~/.rvm/gems/ruby-1.8.7-p249@rails3]# ls bundler/gems/ | |
mongoid-7c52c9062e8404a8881d39f6d2b48690383a9f58-master/ | |
mongoid-bceb0da0ddd24de0125298c0468a37d9373b301c-master | |
mongomapper-e2926ce7dcd74679ced491b7be58f4a921ef89ca-rails3/ | |
rails-16a5e918a06649ffac24fd5873b875daf66212ad-ed21f0c50270139ddb6993acfdaea4586ffd09a3/ | |
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/ | |
rails-a14268e1c46bfabe73a39c29e941ff2348db5bc5-master/ |
This file contains 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
require "rubygems" | |
require "mongoid" | |
class Person | |
include Mongoid::Document | |
field :name | |
before_validate :check_for_name | |
def check_for_name |
This file contains 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
# app/params/edit_account_params.rb | |
class EditAccountParams < ActiveParams::Base | |
attributes :first_name, | |
:last_name, | |
:email, | |
:password | |
validates_presence_of :first_name, :last_name | |
has_many :addresses do |
This file contains 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
--- | |
dependencies: | |
hassle: | |
group: | |
- :production | |
version: ">= 0" | |
ruby-debug: | |
group: | |
- :test | |
version: ">= 0" |