ruby_koans.git
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