ruby_koans.git
13 years agoUpdated koan directory from src. cinci-day-of-ruby-2010
Jim Weirich [Fri, 27 Aug 2010 13:44:10 +0000 (09:44 -0400)]
Updated koan directory from src.

13 years agoAdded autotest support to RubyKoans
Rene Mendoza [Fri, 27 Aug 2010 01:14:26 +0000 (20:14 -0500)]
Added autotest support to RubyKoans

13 years agoColor support for Ruby Koans
Rene Mendoza [Fri, 27 Aug 2010 01:01:37 +0000 (20:01 -0500)]
Color support for Ruby Koans

13 years agoAdded autotest support and added colorized output of tests
Rene Mendoza [Wed, 25 Aug 2010 22:58:14 +0000 (17:58 -0500)]
Added autotest support and added colorized output of tests

13 years agoTweeks on the color module
Jim Weirich [Fri, 27 Aug 2010 13:25:10 +0000 (09:25 -0400)]
Tweeks on the color module

13 years agoRenamed method
Jim Weirich [Fri, 27 Aug 2010 13:11:51 +0000 (09:11 -0400)]
Renamed method

13 years agoUpdated koans with changed from src.
Jim Weirich [Thu, 26 Aug 2010 11:58:28 +0000 (07:58 -0400)]
Updated koans with changed from src.

13 years agoUpdated comment
Jim Weirich [Thu, 26 Aug 2010 11:57:28 +0000 (07:57 -0400)]
Updated comment

13 years agoDisable colorization when the NO_COLOR env variable is defined.
Jim Weirich [Thu, 26 Aug 2010 11:55:04 +0000 (07:55 -0400)]
Disable colorization when the NO_COLOR env variable is defined.

13 years agoRemoved method missing from color module.
Jim Weirich [Thu, 26 Aug 2010 11:53:22 +0000 (07:53 -0400)]
Removed method missing from color module.

13 years agoAdded colors to output (based on renemendoza's patch).
Jim Weirich [Thu, 26 Aug 2010 11:45:31 +0000 (07:45 -0400)]
Added colors to output (based on renemendoza's patch).

13 years agoUpdated koans from new regex section.
Jim Weirich [Sun, 22 Aug 2010 06:03:17 +0000 (02:03 -0400)]
Updated koans from new regex section.

13 years agoFixed spelling of repetition.
Jim Weirich [Sun, 22 Aug 2010 05:55:02 +0000 (01:55 -0400)]
Fixed spelling of repetition.

13 years agoMerge branch 'master' of git://github.com/JEG2/ruby_koans into numeric
Jim Weirich [Sun, 22 Aug 2010 05:36:28 +0000 (01:36 -0400)]
Merge branch 'master' of git://github.com/JEG2/ruby_koans into numeric

* 'master' of git://github.com/JEG2/ruby_koans:
  Adding Regular Expression koans.
  Fixing a bug that was causing some number Koans to be presolved.

13 years agoAdding Regular Expression koans.
James Edward Gray II [Sun, 22 Aug 2010 03:11:06 +0000 (22:11 -0500)]
Adding Regular Expression koans.

13 years agoFixing a bug that was causing some number Koans to be presolved.
James Edward Gray II [Sat, 21 Aug 2010 20:34:54 +0000 (15:34 -0500)]
Fixing a bug that was causing some number Koans to be presolved.

13 years agoTypo fix: changed "parenthesis" to "parentheses"
Jonathan Castello [Sat, 21 Aug 2010 18:32:57 +0000 (11:32 -0700)]
Typo fix: changed "parenthesis" to "parentheses"

13 years agoWhite space fixes
Jim Weirich [Sat, 21 Aug 2010 13:01:10 +0000 (09:01 -0400)]
White space fixes

13 years agoMerge branch 'master' of http://github.com/Twisol/ruby_koans into twisol
Jim Weirich [Sat, 21 Aug 2010 12:55:49 +0000 (08:55 -0400)]
Merge branch 'master' of github.com/Twisol/ruby_koans into twisol

* 'master' of http://github.com/Twisol/ruby_koans:
  With 'test_in_ruby_1_8_single_characters_are_represented_by_strings', changed the name to use '1.9', since it's in an in_ruby_version("1.9") block. (Confused me for a good while.)

13 years agoWith 'test_in_ruby_1_8_single_characters_are_represented_by_strings', changed the...
Jonathan Castello [Sat, 21 Aug 2010 08:33:13 +0000 (01:33 -0700)]
With 'test_in_ruby_1_8_single_characters_are_represented_by_strings', changed the name to use '1.9', since it's in an in_ruby_version("1.9") block. (Confused me for a good while.)

13 years agoUpdated README (tweeks words, whitespace cleanup)
Jim Weirich [Tue, 17 Aug 2010 12:41:18 +0000 (08:41 -0400)]
Updated README (tweeks words, whitespace cleanup)

13 years agoUpdated the koans directory.
Jim Weirich [Mon, 16 Aug 2010 20:57:13 +0000 (16:57 -0400)]
Updated the koans directory.

13 years agoNow supporting Test::Unit as well under Ruby 1.9.
Jim Weirich [Mon, 16 Aug 2010 20:56:42 +0000 (16:56 -0400)]
Now supporting Test::Unit as well under Ruby 1.9.

13 years agoAdded support for minitest under Ruby 1.9.
Jim Weirich [Mon, 16 Aug 2010 20:53:56 +0000 (16:53 -0400)]
Added support for minitest under Ruby 1.9.

13 years agoMake method_missing public in the test framework for Ruby 1.9.
Jim Weirich [Mon, 16 Aug 2010 19:40:54 +0000 (15:40 -0400)]
Make method_missing public in the test framework for Ruby 1.9.

13 years agoSetup load path in path_to_enlightenment, so -I not needed in Rakefile.
Jim Weirich [Mon, 16 Aug 2010 19:39:46 +0000 (15:39 -0400)]
Setup load path in path_to_enlightenment, so -I not needed in Rakefile.

13 years agoUPdated koans to match latest source.
Jim Weirich [Mon, 16 Aug 2010 19:06:12 +0000 (15:06 -0400)]
UPdated koans to match latest source.

13 years agoAnswers now Ruby 1.9 compliant
Jim Weirich [Mon, 16 Aug 2010 19:05:20 +0000 (15:05 -0400)]
Answers now Ruby 1.9 compliant

13 years agoAdded current directory to rake runner.
Jim Weirich [Mon, 16 Aug 2010 19:03:44 +0000 (15:03 -0400)]
Added current directory to rake runner.

13 years agoMinor change to comment about regular expressions.
Jim Weirich [Mon, 16 Aug 2010 18:59:04 +0000 (14:59 -0400)]
Minor change to comment about regular expressions.

13 years agoUpdated require with yucky File.dirname(__FILE__) hacks.
Jim Weirich [Mon, 16 Aug 2010 18:40:37 +0000 (14:40 -0400)]
Updated require with yucky File.dirname(__FILE__) hacks.

13 years agoReworded question.
Jim Weirich [Mon, 16 Aug 2010 17:59:58 +0000 (13:59 -0400)]
Reworded question.

14 years agoRemoved unneeded check for no args.
Jim Weirich [Tue, 20 Apr 2010 20:26:57 +0000 (16:26 -0400)]
Removed unneeded check for no args.

14 years agoAdded constants to koans path to enlightenment.
Jim Weirich [Tue, 20 Apr 2010 20:26:18 +0000 (16:26 -0400)]
Added constants to koans path to enlightenment.

14 years agoUpdates source to be consistent with the _n_ changes.
Jim Weirich [Tue, 20 Apr 2010 20:25:19 +0000 (16:25 -0400)]
Updates source to be consistent with the _n_ changes.

14 years agoAdded about_constants
Jim Weirich [Tue, 20 Apr 2010 20:17:34 +0000 (16:17 -0400)]
Added about_constants

14 years agoModified to be less dependent on exact method and constant counts.
Jim Weirich [Tue, 20 Apr 2010 20:17:24 +0000 (16:17 -0400)]
Modified to be less dependent on exact method and constant counts.

14 years agoAdded a numeric fill in method (_n_)
Jim Weirich [Tue, 20 Apr 2010 20:16:55 +0000 (16:16 -0400)]
Added a numeric fill in method (_n_)

14 years agoGenerated new koans directory.
Jim Weirich [Fri, 15 Jan 2010 14:53:28 +0000 (09:53 -0500)]
Generated new koans directory.

14 years agoAdded swap example to parallel assignments
Jim Weirich [Fri, 15 Jan 2010 14:51:50 +0000 (09:51 -0500)]
Added swap example to parallel assignments

14 years agoRenamed if test to avoid method name conflict.
Jim Weirich [Fri, 15 Jan 2010 14:46:17 +0000 (09:46 -0500)]
Renamed if test to avoid method name conflict.

14 years agoAdded [1,1,3] case for triangles.
Jim Weirich [Fri, 15 Jan 2010 14:39:48 +0000 (09:39 -0500)]
Added [1,1,3] case for triangles.

14 years agoUse .values rather than .keys in values test (http://www.pivotaltracker.com/story...
Jim Weirich [Thu, 14 Jan 2010 19:31:30 +0000 (14:31 -0500)]
Use .values rather than .keys in values test (pivotaltracker.com/story/show/2177802)

14 years agoFixed misspelling of "multiple" (http://www.pivotaltracker.com/story/show/2072574) codemash-2010
Jim Weirich [Sun, 3 Jan 2010 11:27:59 +0000 (06:27 -0500)]
Fixed misspelling of "multiple" (pivotaltracker.com/story/show/2072574)

14 years agoRenamed explict to explicit (http://www.pivotaltracker.com/story/show/2070657)
Jim Weirich [Sun, 3 Jan 2010 03:25:05 +0000 (22:25 -0500)]
Renamed explict to explicit (pivotaltracker.com/story/show/2070657)

14 years agoRenamed test (http://www.pivotaltracker.com/story/show/2072574)
Jim Weirich [Sun, 3 Jan 2010 03:22:24 +0000 (22:22 -0500)]
Renamed test (pivotaltracker.com/story/show/2072574)

14 years agoAddd comments to gen and regen tasks.
Jim Weirich [Sun, 3 Jan 2010 03:21:49 +0000 (22:21 -0500)]
Addd comments to gen and regen tasks.

14 years agoSome minor reformatting.
Jim Weirich [Sun, 3 Jan 2010 03:21:33 +0000 (22:21 -0500)]
Some minor reformatting.

14 years agoUpdated try ruby link
Jim Weirich [Sun, 3 Jan 2010 03:21:12 +0000 (22:21 -0500)]
Updated try ruby link

14 years agoAdded pivotal tracker address to readme.
Jim Weirich [Sun, 3 Jan 2010 03:20:54 +0000 (22:20 -0500)]
Added pivotal tracker address to readme.

14 years agoAdded tracker information to readme.
Jim Weirich [Thu, 31 Dec 2009 18:37:51 +0000 (13:37 -0500)]
Added tracker information to readme.

14 years agoUpdated tryruby link to tryruby.org.
Jim Weirich [Thu, 24 Dec 2009 07:33:08 +0000 (02:33 -0500)]
Updated tryruby link to tryruby.org.

14 years agoFixed typo in tribute to Ara Howard.
Jim Weirich [Thu, 24 Dec 2009 07:27:02 +0000 (02:27 -0500)]
Fixed typo in tribute to Ara Howard.

14 years agoUpdated first test to properly fail on the first run.
Jim Weirich [Wed, 23 Dec 2009 03:31:55 +0000 (22:31 -0500)]
Updated first test to properly fail on the first run.

14 years agoUpdated Readme with ref to about_asserts.
Jim Weirich [Wed, 23 Dec 2009 03:26:04 +0000 (22:26 -0500)]
Updated Readme with ref to about_asserts.

14 years agoFixed typos in Greed Rules.
Jim Weirich [Wed, 23 Dec 2009 03:25:47 +0000 (22:25 -0500)]
Fixed typos in Greed Rules.

14 years agoAdded ref to Little Lisper.
Jim Weirich [Mon, 21 Dec 2009 21:57:46 +0000 (16:57 -0500)]
Added ref to Little Lisper.

14 years agoFixed rules typos.
Jim Weirich [Mon, 21 Dec 2009 21:45:33 +0000 (16:45 -0500)]
Fixed rules typos.

14 years agoChanged minor constant count change.
Jim Weirich [Mon, 21 Dec 2009 21:37:06 +0000 (16:37 -0500)]
Changed minor constant count change.

14 years agoFixed broken assert in src, so that it is still broken in koan
Jim Weirich [Mon, 21 Dec 2009 21:36:48 +0000 (16:36 -0500)]
Fixed broken assert in src, so that it is still broken in koan

14 years agoAdded Main readme to koan directory.
Jim Weirich [Mon, 21 Dec 2009 21:31:42 +0000 (16:31 -0500)]
Added Main readme to koan directory.

14 years agoCleaned up src directory
Jim Weirich [Mon, 21 Dec 2009 21:31:11 +0000 (16:31 -0500)]
Cleaned up src directory

14 years agoUpdated Rakfile to copy the main readme into the koan directory. Removed SOURCE direc...
Jim Weirich [Mon, 21 Dec 2009 21:30:50 +0000 (16:30 -0500)]
Updated Rakfile to copy the main readme into the koan directory. Removed SOURCE directory reference.

14 years agoIgnoring the dist directory
Jim Weirich [Mon, 21 Dec 2009 21:30:07 +0000 (16:30 -0500)]
Ignoring the dist directory

14 years agoMerged src directory with existing koans.
Jim Weirich [Mon, 21 Dec 2009 21:17:32 +0000 (16:17 -0500)]
Merged src directory with existing koans.

14 years agoAdded back require rake/rdoctask
Jim Weirich [Mon, 21 Dec 2009 20:07:03 +0000 (15:07 -0500)]
Added back require rake/rdoctask

14 years agoNew Rakefile
Jim Weirich [Mon, 21 Dec 2009 20:03:28 +0000 (15:03 -0500)]
New Rakefile

14 years agoAdded src directory
Jim Weirich [Mon, 21 Dec 2009 20:03:20 +0000 (15:03 -0500)]
Added src directory

14 years agorename file to match the name of its Koan class
Bret Pettichord [Tue, 13 Oct 2009 04:46:33 +0000 (23:46 -0500)]
rename file to match the name of its Koan class

14 years agoAdd preceding bang to make first test fail
Ken Barker [Fri, 9 Oct 2009 22:06:47 +0000 (18:06 -0400)]
Add preceding bang to make first test fail

Seems in-line with the other koans at this point
to require the student remove the bang.

14 years agofix url for tryruby
Corey Haines [Wed, 7 Oct 2009 18:47:15 +0000 (13:47 -0500)]
fix url for tryruby

14 years agoRemoved duplicated array assignment tests from about_arrays.rb which are also in...
RFelix [Sat, 22 Aug 2009 11:57:10 +0000 (12:57 +0100)]
Removed duplicated array assignment tests from about_arrays.rb which are also in about_array_assignment.rb

14 years agore-wrote a bit of explanation of red/green/refactor
Robert Osborne [Sat, 27 Jun 2009 23:21:02 +0000 (19:21 -0400)]
re-wrote a bit of explanation of red/green/refactor

14 years agofixed typoo in def test_any_ruby_expression_my_be_interpolated
Robert Osborne [Mon, 29 Jun 2009 00:11:51 +0000 (20:11 -0400)]
fixed typoo in def test_any_ruby_expression_my_be_interpolated

14 years agomethod name test_if_then_else_statements was duplicated, overwriting the first def.
Robert Osborne [Tue, 30 Jun 2009 01:08:36 +0000 (21:08 -0400)]
method name test_if_then_else_statements was duplicated, overwriting the first def.

14 years agoEdited GREED_RULES
Robert Osborne [Wed, 1 Jul 2009 02:21:26 +0000 (22:21 -0400)]
Edited GREED_RULES

14 years agoFix typo
capitalist [Tue, 10 Feb 2009 19:35:10 +0000 (12:35 -0700)]
Fix typo

14 years agoFixed typo and faulty expectation.
capitalist [Tue, 10 Feb 2009 21:41:51 +0000 (14:41 -0700)]
Fixed typo and faulty expectation.

There are three twos = 200 and one five = 50 => so this should be 250

Also, here's my score method - I feel like I over complicated this:
# def score(dice)
#   #count em up
#   results = dice.inject(Hash.new) {|h, die| h[die] = h[die] ? h[die] + 1 : 1; h }
#
#   #convert to scores
#   score = results.keys.inject(0) do |s,k|
#     s += \
#     case k
#     when 1
#       results[k] >= 3 ? 1000 + (results[k]-3)*100  : results[k] * 100
#     when 2..4,6
#       results[k] >= 3 ? 100*k : 0
#     when 5
#       results[k] >= 3 ? 500 + (results[k]-3)*50  : results[k] * 50
#     else
#       0
#     end
#   end
# end

14 years agoMerge branch 'master' of git://github.com/caius/ruby_koans into caius/master
Marc Peabody [Thu, 8 Oct 2009 14:35:50 +0000 (10:35 -0400)]
Merge branch 'master' of git://github.com/caius/ruby_koans into caius/master

14 years agohash keys and values must assert against sorted arrays - thanks gregmalcolm
Marc Peabody [Thu, 8 Oct 2009 14:16:57 +0000 (10:16 -0400)]
hash keys and values must assert against sorted arrays - thanks gregmalcolm

15 years agoCleanup of "cross method" test on the Bulldog, by removing the unfinished test and...
unknown [Wed, 18 Mar 2009 01:57:25 +0000 (21:57 -0400)]
Cleanup of "cross method" test on the Bulldog, by removing the unfinished test and also Bulldog.growl method, which becomes obsolete.

15 years agoI renamed the class to AboutTriangleAssignment2 as this was messing with the testing...
unknown [Wed, 18 Mar 2009 01:43:05 +0000 (21:43 -0400)]
I renamed the class to AboutTriangleAssignment2 as this was messing with the testing order.
Using the same class name as the other Triangle Assignment was affecting the testing order, causing this assignment to show up before about_exceptions.

15 years agoProvided an alternative test_hash_keys_and_values function.
unknown [Wed, 18 Mar 2009 01:38:05 +0000 (21:38 -0400)]
Provided an alternative test_hash_keys_and_values function.

Asserts on hash.keys or hash.values can not be relied on as the order is random (I had an expected values of [:two, :one] when I got to that test).

15 years agoAssigning a variable so the test passes when correct code is added.
Caius Durling [Sat, 7 Feb 2009 02:13:34 +0000 (02:13 +0000)]
Assigning a variable so the test passes when correct code is added.

15 years agoEnsuring method names unique.
Jonathan Lim [Tue, 27 Jan 2009 22:46:11 +0000 (06:46 +0800)]
Ensuring method names unique.
Ensuring that later class method definitions don't mess with earlier tests.
Renaming test to reflect that other objects are not affected by singleton methods on objects.

Signed-off-by: edgecase <github@theedgecase.com>
15 years agoFixing scores
Jonathan Lim [Tue, 27 Jan 2009 21:36:31 +0000 (05:36 +0800)]
Fixing scores

Signed-off-by: edgecase <github@theedgecase.com>
15 years agoadding attribution and another tweak to the wording
Joe O'Brien [Mon, 26 Jan 2009 20:41:59 +0000 (15:41 -0500)]
adding attribution and another tweak to the wording

15 years agosmall formatting tweak
Joe O'Brien [Mon, 26 Jan 2009 20:28:25 +0000 (15:28 -0500)]
small formatting tweak

15 years agono comment
Joe O'Brien [Mon, 26 Jan 2009 20:26:31 +0000 (15:26 -0500)]
no comment

15 years agoalmost finished with the readme. At what point do we begin splitting them into chapters
Joe O'Brien [Mon, 26 Jan 2009 20:23:13 +0000 (15:23 -0500)]
almost finished with the readme. At what point do we begin splitting them into chapters

15 years agostill tweaking readme
Joe O'Brien [Mon, 26 Jan 2009 18:22:49 +0000 (13:22 -0500)]
still tweaking readme

15 years agomoving files around a bit
Joe O'Brien [Mon, 26 Jan 2009 17:11:46 +0000 (12:11 -0500)]
moving files around a bit

15 years agochanging readme to get formatted on GH; adding license
Joe O'Brien [Mon, 26 Jan 2009 17:05:37 +0000 (12:05 -0500)]
changing readme to get formatted on GH; adding license

15 years agomoving to a new repo
Joe O'Brien [Mon, 26 Jan 2009 16:56:38 +0000 (11:56 -0500)]
moving to a new repo

15 years agofirst commit
Joe O'Brien [Mon, 26 Jan 2009 16:50:41 +0000 (11:50 -0500)]
first commit