Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

establishing persistence issues with scorekeeper #40

Open
jongross opened this issue Dec 21, 2011 · 0 comments
Open

establishing persistence issues with scorekeeper #40

jongross opened this issue Dec 21, 2011 · 0 comments

Comments

@jongross
Copy link

I cloned a new copy, did a bundle install, and fire things up to see how the example scorekeeper worked, but I am struggling to get things functional.

I did a

DB=scorekeeper rake db:migrate 

and sqlite shows a valid schema when I hit the resulting database file to check things out.

I fire the app up, and it joins the channel, and I type this:

!points foo +1

and these logs are thrown:

Example (Stem): << :jonger!~jong@jonger.olympus.f5net.com PRIVMSG #t :!points foo +1
undefined method `include?' for nil:NilClass
/usr/local/rvm/gems/ruby-1.9.3-head/gems/dm-core-1.2.0/lib/dm-core/resource.rb:332:in `block in attributes='
/usr/local/rvm/gems/ruby-1.9.3-head/gems/dm-core-1.2.0/lib/dm-core/resource.rb:329:in `each'
/usr/local/rvm/gems/ruby-1.9.3-head/gems/dm-core-1.2.0/lib/dm-core/resource.rb:329:in `attributes='
/usr/local/rvm/gems/ruby-1.9.3-head/gems/dm-core-1.2.0/lib/dm-core/resource.rb:748:in `initialize'
/usr/local/rvm/gems/ruby-1.9.3-head/gems/dm-validations-1.2.0/lib/dm-validations.rb:129:in `new'
/usr/local/rvm/gems/ruby-1.9.3-head/gems/dm-validations-1.2.0/lib/dm-validations.rb:129:in `create'
/Users/jong/f5/autumn/leaves/scorekeeper/controller.rb:44:in `parse_change'
/Users/jong/f5/autumn/leaves/scorekeeper/controller.rb:22:in `points_command'
/Users/jong/f5/autumn/libs/leaf.rb:636:in `command_exec'
/Users/jong/f5/autumn/libs/leaf.rb:622:in `command_parse'
/Users/jong/f5/autumn/libs/leaf.rb:220:in `block in irc_privmsg_event'
/usr/local/rvm/gems/ruby-1.9.3-head/gems/dm-core-1.2.0/lib/dm-core.rb:263:in `block in repository'
/usr/local/rvm/gems/ruby-1.9.3-head/gems/dm-core-1.2.0/lib/dm-core/repository.rb:114:in `scope'
/usr/local/rvm/gems/ruby-1.9.3-head/gems/dm-core-1.2.0/lib/dm-core.rb:263:in `repository'
/usr/local/rvm/gems/ruby-1.9.3-head/gems/dm-core-1.2.0/lib/dm-core/core_ext/kernel.rb:20:in `repository'
/Users/jong/f5/autumn/libs/leaf.rb:315:in `database'
/Users/jong/f5/autumn/libs/leaf.rb:218:in `irc_privmsg_event'
/usr/local/rvm/gems/ruby-1.9.3-head/gems/facets-2.9.2/lib/core/facets/kernel/respond.rb:29:in `respond'
/Users/jong/f5/autumn/libs/stem.rb:490:in `block (2 levels) in broadcast'
Example (Stem): >> PRIVMSG #t :Listener Scorekeeper::Controller raised an exception -- check the logs for details.

Almost as if the database isn't being finalized?

Any ideas what I'm doing wrong?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant