Second commit updates the README. In particular, 'gem install cramp' did not initially work because mysqlplus does not install correctly by default on OS X.
First commit contains fix for the following error:
# rake --trace
(in /code/cramp)
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
/Users/me/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -I"lib:test" "/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/controller/base_test.rb" "test/controller/callback_test.rb" "test/controller/keep_alive_test.rb" "test/controller/multiple_rendering_test.rb" "test/controller/periodic_timer_test.rb" "test/controller/websocket_test.rb"
Loaded suite /Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
.........E.
Finished in 0.129752 seconds.
1) Error:
test_send_data_periodic_timer(PeriodicTimerTest):
ArgumentError: assertion message must be String or Proc, but Array was given.
test/controller/periodic_timer_test.rb:34:in `block in test_send_data_periodic_timer'
/code/cramp/lib/cramp/test_case.rb:40:in `call'
/code/cramp/lib/cramp/test_case.rb:40:in `block in get_body_chunks'
/code/cramp/lib/cramp/test_case.rb:22:in `call'
/code/cramp/lib/cramp/test_case.rb:22:in `block (2 levels) in get_body'
/code/cramp/lib/cramp/body.rb:42:in `call'
/code/cramp/lib/cramp/body.rb:42:in `block (2 levels) in schedule_dequeue'
/code/cramp/lib/cramp/body.rb:42:in `each'
/code/cramp/lib/cramp/body.rb:42:in `block in schedule_dequeue'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/eventmachine-0.12.10/lib/eventmachine.rb:996:in `call'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/eventmachine-0.12.10/lib/eventmachine.rb:996:in `block in run_deferred_callbacks'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/eventmachine-0.12.10/lib/eventmachine.rb:996:in `each'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/eventmachine-0.12.10/lib/eventmachine.rb:996:in `run_deferred_callbacks'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/code/cramp/lib/cramp/test_case.rb:25:in `get_body'
/code/cramp/lib/cramp/test_case.rb:35:in `get_body_chunks'
test/controller/periodic_timer_test.rb:32:in `test_send_data_periodic_timer'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.3/lib/active_support/testing/setup_and_teardown.rb:35:in `block in run'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.3/lib/active_support/callbacks.rb:418:in `_run_setup_callbacks'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.3/lib/active_support/testing/setup_and_teardown.rb:34:in `run'
11 tests, 22 assertions, 0 failures, 1 errors, 0 skips
Test run options: --seed 39404
rake aborted!
Command failed with status (1): [/Users/me/.rvm/rubies/ruby-1.9.2-p0/bin/ru...]
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:995:in `block in sh'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1010:in `call'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1010:in `sh'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1094:in `sh'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1029:in `ruby'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1094:in `ruby'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake/testtask.rb:117:in `block (2 levels) in define'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1112:in `verbose'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake/testtask.rb:102:in `block in define'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:636:in `block in execute'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:597:in `block in invoke_with_call_chain'
/Users/me/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:607:in `block in invoke_prerequisites'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:596:in `block in invoke_with_call_chain'
/Users/me/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2029:in `block (2 levels) in top_level'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2029:in `block in top_level'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2001:in `block in run'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/bin/rake:31:in `<top (required)>'
/Users/me/.rvm/gems/ruby-1.9.2-p0/bin/rake:19:in `load'
/Users/me/.rvm/gems/ruby-1.9.2-p0/bin/rake:19:in `<main>'
mes-MacBook-Pro:cramp me$ rake --trace
(in /code/cramp)
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
/Users/me/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -I"lib:test" "/Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/controller/base_test.rb" "test/controller/callback_test.rb" "test/controller/keep_alive_test.rb" "test/controller/multiple_rendering_test.rb" "test/controller/periodic_timer_test.rb" "test/controller/websocket_test.rb"
Loaded suite /Users/me/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
...........
Finished in 0.133171 seconds.
11 tests, 25 assertions, 0 failures, 0 errors, 0 skips
Test run options: --seed 50456
** Execute default
Second commit updates the README. In particular, 'gem install cramp' did not initially work because mysqlplus does not install correctly by default on OS X.
First commit contains fix for the following error: