rubylabs 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +15 -6
- data/Rakefile +3 -0
- data/VERSION +1 -1
- data/lib/bitlab.rb +593 -328
- data/lib/demos.rb +20 -9
- data/lib/elizalab.rb +660 -507
- data/lib/hashlab.rb +289 -192
- data/lib/introlab.rb +33 -38
- data/lib/iterationlab.rb +117 -61
- data/lib/marslab.rb +608 -475
- data/lib/randomlab.rb +227 -121
- data/lib/recursionlab.rb +197 -140
- data/lib/rubylabs.rb +936 -390
- data/lib/sievelab.rb +32 -24
- data/lib/spherelab.rb +308 -220
- data/lib/tsplab.rb +634 -312
- data/test/bit_test.rb +4 -4
- data/test/tsp_test.rb +18 -0
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
== Description
|
2
2
|
|
3
|
-
RubyLabs is a collection of modules used for
|
4
|
-
<em>{Explorations in Computing: An Introduction to Computer Science}[http://www.cs.uoregon.edu]</em>.
|
3
|
+
RubyLabs is a collection of modules used for lab exercises in the textbook
|
4
|
+
<em>{Explorations in Computing: An Introduction to Computer Science}[http://www.cs.uoregon.edu/eic]</em>.
|
5
5
|
There is one module for each chapter in the text:
|
6
6
|
|
7
7
|
<b>IntroLab[link:classes/RubyLabs/IntroLab.html]</b>:: A quick introduction to Ruby, with an exercise leading to the definition of a method to convert temperatures from Fahrenheit to Celsius.
|
@@ -18,13 +18,22 @@ There is one module for each chapter in the text:
|
|
18
18
|
|
19
19
|
The main *RubyLabs* module has some common methods (e.g. min and max) used throughout the book.
|
20
20
|
|
21
|
-
==
|
21
|
+
== Installation
|
22
22
|
|
23
|
-
|
23
|
+
Install the gem:
|
24
|
+
gem install rubylabs -n .
|
25
|
+
|
26
|
+
Run the setup script (RubyLabs will be included with each new IRB session):
|
27
|
+
ruby ./lab-setup.rb
|
28
|
+
|
29
|
+
Projects that generate interactive visualizations require ActiveState Tcl, which needs to be downloaded from http://www.activestate.com/activetcl/downloads (install it in the default location for your operating system).
|
24
30
|
|
25
31
|
== Documentation
|
26
32
|
|
27
|
-
|
33
|
+
Additional instructions for installing and trouble-shooting are in a lab manual available from http://www.cs.uoregon.edu/eic.
|
34
|
+
|
35
|
+
== Feedback
|
36
|
+
|
37
|
+
Send e-mail with the word RubyLabs in the subject line to conery (at) cs.uoregon.edu.
|
28
38
|
|
29
|
-
== Questions
|
30
39
|
|
data/Rakefile
CHANGED
@@ -60,5 +60,8 @@ Rake::RDocTask.new do |rdoc|
|
|
60
60
|
rdoc.title = "rubylabs #{version}"
|
61
61
|
rdoc.rdoc_files.include('README*')
|
62
62
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
63
|
+
# rdoc.rdoc_files.include('lib/rubylabs.rb')
|
64
|
+
# rdoc.rdoc_files.include('lib/bitlab.rb')
|
65
|
+
# rdoc.rdoc_files.include('lib/tsplab.rb')
|
63
66
|
end
|
64
67
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.1
|