Skip to content

Instantly share code, notes, and snippets.

@elizabrock
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elizabrock/16fa48db8c9a1ec3b557 to your computer and use it in GitHub Desktop.
Save elizabrock/16fa48db8c9a1ec3b557 to your computer and use it in GitHub Desktop.
Cal Grading Script Output
~/Projects/cal-grader[master !*]$ ./grade_cal.rb
Kyle McCormick
[✓] Updating student_code/kyle_mccormick
Luke Lancaster
[✓] Updating student_code/luke_lancaster
Austin Erlandson
[✓] Updating student_code/austin_erlandson
Ed Dean
[✓] Updating student_code/ed_dean
Andy Meagher
[✓] Updating student_code/andy_meagher
Margaret Clinard
[✓] Updating student_code/margaret_clinard
Erin
[✓] Updating student_code/erin
Brennan Willingham
[✓] Updating student_code/brennan_willingham
Molly Black
[✓] Updating student_code/molly_black
Devin Readel
[✓] Updating student_code/devin_readel
Brandon R. Howard
[✓] Updating student_code/brandon_r._howard
ayumi
[✓] Updating student_code/ayumi
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 7 (delta 5), reused 7 (delta 5), pack-reused 0
Unpacking objects: 100% (7/7), done.
From github.com:ayumi-b/Ruby-Cal
e771beb..a26a9c1 master -> origin/master
David Shoup
[✓] Updating student_code/david_shoup
Jacob Lewis
[✓] Updating student_code/jacob_lewis
Adedotun Olusoga
[✓] Updating student_code/adedotun_olusoga
Tyler Black
[✓] Updating student_code/tyler_black
Allison Higginbotham
[✓] Updating student_code/allison_higginbotham
Eric Brengle
[✓] Updating student_code/eric_brengle
Bryan Finlayson
[✓] Updating student_code/bryan_finlayson
Brandon Espinoza
[✓] Updating student_code/brandon_espinoza
Eliza Brock
[✓] Updating student_code/eliza_brock
Katye Russell
[✓] Updating student_code/katye_russell
Matthew Reuther
[✓] Updating student_code/matthew_reuther
Grading Kyle McCormick
[✓] a single month passed
[✓] more months passed
[✓] a single year passed
[✓] more years passed
Grading Luke Lancaster
[✓] a single month passed
[✓] more months passed
[✓] a single year passed
/Users/elizabrock/Projects/cal-grader/student_code/luke_lancaster/lib/year.rb:60:in `block in create_month_rows': undefined method `rstrip' for nil:NilClass (NoMethodError)
from /Users/elizabrock/Projects/cal-grader/student_code/luke_lancaster/lib/year.rb:51:in `each_line'
from /Users/elizabrock/Projects/cal-grader/student_code/luke_lancaster/lib/year.rb:51:in `create_month_rows'
from /Users/elizabrock/Projects/cal-grader/student_code/luke_lancaster/lib/year.rb:72:in `block in create_year_string'
from /Users/elizabrock/Projects/cal-grader/student_code/luke_lancaster/lib/year.rb:71:in `times'
from /Users/elizabrock/Projects/cal-grader/student_code/luke_lancaster/lib/year.rb:71:in `create_year_string'
from /Users/elizabrock/Projects/cal-grader/student_code/luke_lancaster/lib/year.rb:31:in `to_s'
from cal.rb:26:in `<main>'
[x] more years failed!
Grading Austin Erlandson
[x] a single month failed!
[?] more months skipped
[x] a single year failed!
[?] more years skipped
Grading Ed Dean
[✓] a single month passed
[✓] more months passed
[x] a single year failed!
[?] more years skipped
Grading Andy Meagher
[✓] a single month passed
[✓] more months passed
[✓] a single year passed
[x] more years failed!
Grading Margaret Clinard
[✓] a single month passed
[✓] more months passed
[✓] a single year passed
/Users/elizabrock/Projects/cal-grader/student_code/margaret_clinard/lib/year.rb:38:in `block in display_months': undefined method `ljust' for nil:NilClass (NoMethodError)
from /Users/elizabrock/Projects/cal-grader/student_code/margaret_clinard/lib/year.rb:31:in `each'
from /Users/elizabrock/Projects/cal-grader/student_code/margaret_clinard/lib/year.rb:31:in `each_slice'
from /Users/elizabrock/Projects/cal-grader/student_code/margaret_clinard/lib/year.rb:31:in `display_months'
from /Users/elizabrock/Projects/cal-grader/student_code/margaret_clinard/lib/year.rb:13:in `display'
from cal.rb:29:in `<main>'
[x] more years failed!
Grading Erin
[✓] a single month passed
[✓] more months passed
[✓] a single year passed
[✓] more years passed
Grading Brennan Willingham
[✓] a single month passed
[✓] more months passed
[✓] a single year passed
[✓] more years passed
Grading Molly Black
[✓] a single month passed
[✓] more months passed
[x] a single year failed!
[?] more years skipped
Grading Devin Readel
[✓] a single month passed
[✓] more months passed
[x] a single year failed!
[?] more years skipped
Grading Brandon R. Howard
[✓] a single month passed
[✓] more months passed
[✓] a single year passed
[✓] more years passed
Grading ayumi
cal.rb:3:in `require_relative': cannot load such file -- /Users/elizabrock/Projects/cal-grader/student_code/ayumi/helper.rb (LoadError)
from cal.rb:3:in `<main>'
[x] a single month failed!
[?] more months skipped
cal.rb:3:in `require_relative': cannot load such file -- /Users/elizabrock/Projects/cal-grader/student_code/ayumi/helper.rb (LoadError)
from cal.rb:3:in `<main>'
[x] a single year failed!
[?] more years skipped
Grading David Shoup
ruby: No such file or directory -- cal.rb (LoadError)
[x] a single month failed!
[?] more months skipped
ruby: No such file or directory -- cal.rb (LoadError)
[x] a single year failed!
[?] more years skipped
Grading Jacob Lewis
[✓] a single month passed
[✓] more months passed
[✓] a single year passed
[✓] more years passed
Grading Adedotun Olusoga
/Users/elizabrock/Projects/cal-grader/student_code/adedotun_olusoga/lib/month.rb:70: warning: found = in conditional, should be ==
[✓] a single month passed
/Users/elizabrock/Projects/cal-grader/student_code/adedotun_olusoga/lib/month.rb:70: warning: found = in conditional, should be ==
/Users/elizabrock/Projects/cal-grader/student_code/adedotun_olusoga/lib/month.rb:70: warning: found = in conditional, should be ==
/Users/elizabrock/Projects/cal-grader/student_code/adedotun_olusoga/lib/month.rb:70: warning: found = in conditional, should be ==
/Users/elizabrock/Projects/cal-grader/student_code/adedotun_olusoga/lib/month.rb:70: warning: found = in conditional, should be ==
/Users/elizabrock/Projects/cal-grader/student_code/adedotun_olusoga/lib/month.rb:70: warning: found = in conditional, should be ==
[x] more months failed!
/Users/elizabrock/Projects/cal-grader/student_code/adedotun_olusoga/lib/month.rb:70: warning: found = in conditional, should be ==
[x] a single year failed!
[?] more years skipped
Grading Tyler Black
[✓] a single month passed
[✓] more months passed
[x] a single year failed!
[?] more years skipped
Grading Allison Higginbotham
[✓] a single month passed
[✓] more months passed
[x] a single year failed!
[?] more years skipped
Grading Eric Brengle
cal.rb:3:in `<main>': undefined method `require_realtive' for main:Object (NoMethodError)
[x] a single month failed!
[?] more months skipped
cal.rb:3:in `<main>': undefined method `require_realtive' for main:Object (NoMethodError)
[x] a single year failed!
[?] more years skipped
Grading Bryan Finlayson
[✓] a single month passed
[x] more months failed!
[✓] a single year passed
[x] more years failed!
Grading Brandon Espinoza
cal.rb:7:in `<main>': uninitialized constant Month (NameError)
[x] a single month failed!
[?] more months skipped
cal.rb:7:in `<main>': uninitialized constant Month (NameError)
[x] a single year failed!
[?] more years skipped
Grading Eliza Brock
[✓] a single month passed
[✓] more months passed
[✓] a single year passed
[✓] more years passed
Grading Katye Russell
[✓] a single month passed
[✓] more months passed
[x] a single year failed!
[?] more years skipped
Grading Matthew Reuther
[x] a single month failed!
[?] more months skipped
[x] a single year failed!
[?] more years skipped
~/Projects/cal-grader[master !*]$
~/Projects/cal-grader[master !*]$ ./grade_cal.rb --no-clone; open "http://yahoo.com"
Grading Kyle McCormick
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[✓] a single year passed
[✓] more years passed
[✓] all years passed
[✓] rake passed
Grading Luke Lancaster
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[✓] a single year passed
[✓] more years passed
[✓] all years passed
MiniTest::Unit::TestCase is now Minitest::Test. From /Users/elizabrock/Projects/cal-grader/student_code/luke_lancaster/test/test_month_integration.rb:3:in `<top (required)>'
[✓] rake passed
Grading Austin Erlandson
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[✓] a single year passed
[✓] more years passed
[✓] all years passed
[✓] rake passed
Grading Ed Dean
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[x] a single year failed!
[?] more years skipped
[?] all years skipped
[?] rake skipped
Grading Andy Meagher
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[✓] a single year passed
[✓] more years passed
[✓] all years passed
[✓] rake passed
Grading Margaret Clinard
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[✓] a single year passed
/Users/elizabrock/Projects/cal-grader/student_code/margaret_clinard/lib/year.rb:38:in `block in display_months': undefined method `ljust' for nil:NilClass (NoMethodError)
from /Users/elizabrock/Projects/cal-grader/student_code/margaret_clinard/lib/year.rb:31:in `each'
from /Users/elizabrock/Projects/cal-grader/student_code/margaret_clinard/lib/year.rb:31:in `each_slice'
from /Users/elizabrock/Projects/cal-grader/student_code/margaret_clinard/lib/year.rb:31:in `display_months'
from /Users/elizabrock/Projects/cal-grader/student_code/margaret_clinard/lib/year.rb:13:in `display'
from cal.rb:29:in `<main>'
[x] more years failed!
[?] all years skipped
[?] rake skipped
Grading Erin
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[✓] a single year passed
[✓] more years passed
[✓] all years passed
/Users/elizabrock/.rvm/gems/ruby-2.2.2/gems/bundler-1.9.4/lib/bundler/runtime.rb:34:in `block in setup': You have already activated minitest 5.6.1, but your Gemfile requires minitest 5.6.0. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
from /Users/elizabrock/.rvm/gems/ruby-2.2.2/gems/bundler-1.9.4/lib/bundler/runtime.rb:19:in `setup'
from /Users/elizabrock/.rvm/gems/ruby-2.2.2/gems/bundler-1.9.4/lib/bundler.rb:122:in `setup'
from /Users/elizabrock/.rvm/gems/ruby-2.2.2/gems/bundler-1.9.4/lib/bundler/setup.rb:18:in `<top (required)>'
from /Users/elizabrock/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `require'
from /Users/elizabrock/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
from /Users/elizabrock/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:39:in `require'
from /Users/elizabrock/Projects/cal-grader/student_code/erin/test/helper.rb:3:in `<top (required)>'
from /Users/elizabrock/Projects/cal-grader/student_code/erin/test/test_cal_month_integration.rb:1:in `require_relative'
from /Users/elizabrock/Projects/cal-grader/student_code/erin/test/test_cal_month_integration.rb:1:in `<top (required)>'
from /Users/elizabrock/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/elizabrock/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/elizabrock/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>'
from /Users/elizabrock/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each'
from /Users/elizabrock/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in <main>'
from /Users/elizabrock/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select'
from /Users/elizabrock/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `<main>'
rake aborted!
Command failed with status (1): [ruby -I"lib" "/Users/elizabrock/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rake/rake_test_loader.rb" "test/test_*.rb" ]
/Users/elizabrock/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `eval'
/Users/elizabrock/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => default => test
(See full trace by running task with --trace)
[x] rake failed!
Grading Brennan Willingham
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[✓] a single year passed
[✓] more years passed
[✓] all years passed
[✓] rake passed
Grading Molly Black
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[✓] a single year passed
[✓] more years passed
[✓] all years passed
[✓] rake passed
Grading Devin Readel
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[x] a single year failed!
[?] more years skipped
[?] all years skipped
[?] rake skipped
Grading Brandon R. Howard
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[✓] a single year passed
[✓] more years passed
[✓] all years passed
[✓] rake passed
Grading ayumi
/Users/elizabrock/Projects/cal-grader/student_code/ayumi/lib/month.rb:69:in `days_print': bad value for range (ArgumentError)
from /Users/elizabrock/Projects/cal-grader/student_code/ayumi/lib/month.rb:106:in `to_s'
from cal.rb:18:in `<main>'
[x] a single month failed!
[?] more months skipped
[?] all months skipped
cal.rb:12:in `<main>': undefined method `to_y_s' for #<Year:0x007fb8da833840 @year="2012"> (NoMethodError)
[x] a single year failed!
[?] more years skipped
[?] all years skipped
[?] rake skipped
Grading David Shoup
ruby: No such file or directory -- cal.rb (LoadError)
[x] a single month failed!
[?] more months skipped
[?] all months skipped
ruby: No such file or directory -- cal.rb (LoadError)
[x] a single year failed!
[?] more years skipped
[?] all years skipped
[?] rake skipped
Grading Jacob Lewis
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[✓] a single year passed
[✓] more years passed
[✓] all years passed
[✓] rake passed
Grading Adedotun Olusoga
/Users/elizabrock/Projects/cal-grader/student_code/adedotun_olusoga/lib/month.rb:70: warning: found = in conditional, should be ==
[✓] a single month passed
/Users/elizabrock/Projects/cal-grader/student_code/adedotun_olusoga/lib/month.rb:70: warning: found = in conditional, should be ==
/Users/elizabrock/Projects/cal-grader/student_code/adedotun_olusoga/lib/month.rb:70: warning: found = in conditional, should be ==
/Users/elizabrock/Projects/cal-grader/student_code/adedotun_olusoga/lib/month.rb:70: warning: found = in conditional, should be ==
/Users/elizabrock/Projects/cal-grader/student_code/adedotun_olusoga/lib/month.rb:70: warning: found = in conditional, should be ==
/Users/elizabrock/Projects/cal-grader/student_code/adedotun_olusoga/lib/month.rb:70: warning: found = in conditional, should be ==
[x] more months failed!
[?] all months skipped
/Users/elizabrock/Projects/cal-grader/student_code/adedotun_olusoga/lib/month.rb:70: warning: found = in conditional, should be ==
[x] a single year failed!
[?] more years skipped
[?] all years skipped
[?] rake skipped
Grading Tyler Black
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[x] a single year failed!
[?] more years skipped
[?] all years skipped
[?] rake skipped
Grading Allison Higginbotham
[✓] a single month passed
[✓] more months passed
[Restored]
Last login: Sat May 2 21:25:47 on ttys006
You have new mail.
~/Projects/cal-grader[master !*]$ mvim .
~/Projects/cal-grader[master !*]$ gst
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: cal_turnin.csv
modified: grade_cal.rb
modified: lib/test_helper.rb
no changes added to commit (use "git add" and/or "git commit -a")
~/Projects/cal-grader[master !*]$ ./grade_cal.rb
Allison Higginbotham
[✓] Updating student_code/allison_higginbotham
Eric Brengle
[✓] Updating student_code/eric_brengle
Bryan Finlayson
[✓] Updating student_code/bryan_finlayson
Brandon Espinoza
[✓] Updating student_code/brandon_espinoza
Eliza Brock
[✓] Updating student_code/eliza_brock
Katye Russell
[✓] Updating student_code/katye_russell
Matthew Reuther
[✓] Updating student_code/matthew_reuther
Grading Kyle McCormick
[✓] a single month passed
[✓] more months passed
^C./grade_cal.rb:63:in ``'Interrupted. Exiting...
: Interrupt
from ./grade_cal.rb:63:in `try_command'
from ./grade_cal.rb:49:in `block (2 levels) in try_rake'
from ./grade_cal.rb:45:in `each'
from ./grade_cal.rb:45:in `block in try_rake'
from /Users/elizabrock/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/csv.rb:1739:in `each'
from /Users/elizabrock/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/csv.rb:1122:in `block in foreach'
from /Users/elizabrock/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/csv.rb:1273:in `open'
from /Users/elizabrock/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/csv.rb:1121:in `foreach'
from ./grade_cal.rb:28:in `try_rake'
from ./grade_cal.rb:85:in `<main>'
<internal:prelude>:2:in `new': Interrupt
from <internal:prelude>:2:in `<class:Thread>'
from <internal:prelude>:1:in `<compiled>'
~/Projects/cal-grader[master !*]$ ./grade_cal.rb --no-clone
Grading Allison Higginbotham
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[x] a single year failed!
[?] more years skipped
[?] all years skipped
[?] rake skipped
Grading Eric Brengle
cal.rb:3:in `<main>': undefined method `require_realtive' for main:Object (NoMethodError)
[x] a single month failed!
[?] more months skipped
[?] all months skipped
cal.rb:3:in `<main>': undefined method `require_realtive' for main:Object (NoMethodError)
[x] a single year failed!
[?] more years skipped
[?] all years skipped
[?] rake skipped
Grading Bryan Finlayson
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[✓] a single year passed
[✓] more years passed
[✓] all years passed
[✓] rake passed
Grading Brandon Espinoza
cal.rb:7:in `<main>': uninitialized constant Month (NameError)
[x] a single month failed!
[?] more months skipped
[?] all months skipped
cal.rb:7:in `<main>': uninitialized constant Month (NameError)
[x] a single year failed!
[?] more years skipped
[?] all years skipped
[?] rake skipped
Grading Eliza Brock
[✓] a single month passed
[✓] more months passed
[✓] all months passed
[✓] a single year passed
[✓] more years passed
[✓] all years passed
[✓] rake passed
Grading Katye Russell
[✓] a single month passed
[✓] more months passed
[✓] all months passed
cal.rb:28:in `<main>': uninitialized constant Year (NameError)
[x] a single year failed!
[?] more years skipped
[?] all years skipped
[?] rake skipped
Grading Matthew Reuther
[x] a single month failed!
[?] more months skipped
[?] all months skipped
[x] a single year failed!
[?] more years skipped
[?] all years skipped
[?] rake skipped
You have new mail in /var/mail/elizabrock
~/Projects/cal-grader[master !*]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment