Skip to content

Commit 7a9c102

Browse files
committed
Adding rake file etc
1 parent d647510 commit 7a9c102

8 files changed

+570
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea
2+

Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "https://rubygems.org"
2+
3+
gem "rake"
4+
gem "rspec", "~>2.0"

Rakefile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This Rakefile has all the right settings to run the tests inside each lab
2+
gem 'rspec', '~>2'
3+
require 'rspec/core/rake_task'
4+
5+
task :default => :spec
6+
7+
desc "run tests for this lab"
8+
RSpec::Core::RakeTask.new do |task|
9+
lab = Rake.application.original_dir
10+
task.pattern = "#{lab}/*_spec.rb"
11+
task.rspec_opts = [ "-I#{lab}", "-I#{lab}/solution", '-f documentation', '-r ./rspec_config']
12+
task.verbose = false
13+
end

advanced_setup.html

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<html>
2+
<head>
3+
<title>Test-First Teaching: learn_ruby: learn_ruby</title>
4+
<link href="assets/style.css" media="screen" rel="stylesheet" type="text/css" />
5+
</head>
6+
<body>
7+
<div class="header">
8+
<h1><a href="http://testfirst.org">TestFirst.org</a></h1>
9+
<h2>the home of test-first teaching</h2>
10+
</div>
11+
<div class="nav">
12+
<h2><a href="index.html">learn_ruby</a></h2>
13+
<b>Labs:</b>
14+
<ul>
15+
<li><a href="00_hello/index.html">00 Hello</a></li>
16+
<li><a href="01_temperature/index.html">01 Temperature</a></li>
17+
<li><a href="02_calculator/index.html">02 Calculator</a></li>
18+
<li><a href="03_simon_says/index.html">03 Simon Says</a></li>
19+
<li><a href="04_pig_latin/index.html">04 Pig Latin</a></li>
20+
<li><a href="05_silly_blocks/index.html">05 Silly Blocks</a></li>
21+
<li><a href="06_performance_monitor/index.html">06 Performance Monitor</a></li>
22+
<li><a href="07_hello_friend/index.html">07 Hello Friend</a></li>
23+
<li><a href="08_book_titles/index.html">08 Book Titles</a></li>
24+
<li><a href="09_timer/index.html">09 Timer</a></li>
25+
<li><a href="10_temperature_object/index.html">10 Temperature Object</a></li>
26+
<li><a href="11_dictionary/index.html">11 Dictionary</a></li>
27+
<li><a href="12_rpn_calculator/index.html">12 Rpn Calculator</a></li>
28+
<li><a href="13_xml_document/index.html">13 Xml Document</a></li>
29+
<li><a href="14_array_extensions/index.html">14 Array Extensions</a></li>
30+
<li><a href="15_in_words/index.html">15 In Words</a></li>
31+
</ul>
32+
</div>
33+
<h1>learn_ruby</h1>
34+
<div class="content"><h1>Advanced Setup</h1>
35+
36+
<h2>Pulling changes</h2>
37+
38+
<p>If you've been working for a while and then notice that the course repository has changed and you want the new stuff:</p>
39+
40+
<ul>
41+
<li><p>View the "status" and make sure you have nothing modified</p>
42+
43+
<pre><code> git status
44+
</code></pre></li>
45+
<li><p>Pull the changes</p>
46+
47+
<pre><code> git pull origin master
48+
</code></pre></li>
49+
</ul>
50+
51+
52+
<h2>Forking (not cloning)</h2>
53+
54+
<p>To save a copy of your own solutions in your own github repo, you'll have to "fork" the course on Github. This will give you a new git url of your very own, which you can then clone as above. For instance, if your github name is <code>ladyhaha</code>, your clone command is</p>
55+
56+
<pre><code> git clone git://github.com/ladyhaha/learn_ruby.git
57+
</code></pre>
58+
59+
<p>To pull changes into this new repo is a little tricky and you should probably ask for help before doing it, but here's the instructions.</p>
60+
61+
<ul>
62+
<li><p>Add a reference to the original remote repository</p>
63+
64+
<pre><code> git remote add ultrasaurus git://github.com/ultrasaurus/learn_ruby
65+
</code></pre></li>
66+
<li><p>Pull down the remote repository's master branch. This creates a local branch called <code>ultrasaurus/master</code></p>
67+
68+
<pre><code> git pull origin master
69+
</code></pre></li>
70+
<li><p>Now merge the <code>ultrasaurus/master</code> stuff into your <code>master</code> branch</p>
71+
72+
<pre><code> git merge ultrasaurus/master
73+
</code></pre></li>
74+
<li><p>Finally push your own <code>master</code> branch back to your <code>origin</code> remote github repository.</p>
75+
76+
<pre><code> git push origin master
77+
</code></pre></li>
78+
</ul>
79+
80+
81+
<p>If you want to understand all these magical git incantations, watch this great screencast: <a href="http://blip.tv/file/4094854">http://blip.tv/file/4094854</a> (more at <a href="http://www.gitcasts.com">http://www.gitcasts.com</a>)</p>
82+
</div>
83+
<div class="footer"><a href="http://testfirst.org">TestFirst.org</a></div>
84+
</body>
85+
</html>

assets/style.css

+113
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
/* Solarized Palette http://ethanschoonover.com/solarized */
2+
/* Font Stacks http://www.artsiteframework.com/guide/fontstacks.php */
3+
body {
4+
background-color: white;
5+
font-family: Optima, Candara, "Trebuchet MS", sans-serif;
6+
margin: 0px;
7+
font-size: 15px;
8+
line-height: 19px; }
9+
10+
a, a:visited {
11+
color: #268bd2; }
12+
13+
a:hover {
14+
text-decoration: underline; }
15+
16+
a {
17+
text-decoration: none; }
18+
19+
.content {
20+
padding: 0 2em 0 18em;
21+
min-height: 30em;
22+
min-width: 20em;
23+
max-width: 44em;
24+
margin: 1em auto; }
25+
.content h1, .content h2, .content h3 {
26+
font-family: "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
27+
margin-left: -1em; }
28+
.content h1 {
29+
text-shadow: #999 1px 1px 1px;
30+
padding: .5em .25em;
31+
margin-top: 1em; }
32+
.content h2 {
33+
margin-top: 1em;
34+
border-bottom: #268bd2 1px dotted; }
35+
.content pre {
36+
overflow-x: auto; }
37+
38+
.header, .footer {
39+
font-size: 80%;
40+
padding: .25em;
41+
background-color: #f2f2f2; }
42+
43+
.header {
44+
border-bottom: 1px solid #002b36;
45+
text-align: left; }
46+
.header h1 {
47+
color: #800000;
48+
margin: 0 0 -8px 0;
49+
padding: 0;
50+
font: 30px/48px Optima, Candara, "Trebuchet MS", sans-serif;
51+
letter-spacing: 0; }
52+
.header h2 {
53+
margin: 0 0 4px 13px;
54+
padding: 0;
55+
font: 10pt Optima, Candara, "Trebuchet MS", sans-serif;
56+
color: #686868;
57+
letter-spacing: 0;
58+
font-variant: small-caps; }
59+
.header a, .header a:visited {
60+
color: #800000;
61+
text-decoration: none; }
62+
.header a:hover {
63+
color: #37030B;
64+
text-decoration: none; }
65+
66+
.footer {
67+
border-top: 1px solid #002b36;
68+
text-align: center; }
69+
70+
.nav {
71+
float: left;
72+
margin: 1em;
73+
padding: 0 1em 1em;
74+
width: 14em;
75+
font-size: 75%; }
76+
77+
.nav {
78+
background: -webkit-gradient(linear, left bottom, left top, color-stop(0.15, white), color-stop(0.85, #f2f2f2));
79+
background: -moz-linear-gradient(center bottom, white 15%, #f2f2f2 85%);
80+
-moz-border-radius: 10px;
81+
border-radius: 10px;
82+
border: 1px solid black; }
83+
84+
.rspec_file > .tests {
85+
position: relative; }
86+
.rspec_file > .tests a.raw_file {
87+
float: right;
88+
position: absolute;
89+
right: 0;
90+
padding: 2px 4px;
91+
margin: 3px;
92+
border: 1px solid #666;
93+
background: #ddd; }
94+
95+
pre {
96+
font-family: "Lucida Sans Typewriter Regular", "lucida console", monaco, "andale mono", "bitstream vera sans mono", consolas, "DejaVu Sans Mono", Courier, "Courier New", monospace;
97+
background-color: #e9e9ff;
98+
padding: .5em 1em;
99+
border: 1px solid #93a1a1; }
100+
101+
code {
102+
font-family: "Lucida Sans Typewriter Regular", "lucida console", monaco, "andale mono", "bitstream vera sans mono", consolas, "DejaVu Sans Mono", Courier, "Courier New", monospace;
103+
background-color: #efefff; }
104+
105+
pre > code {
106+
background-color: #e9e9ff; }
107+
108+
li > p:nth-child(0) {
109+
margin: 0; }
110+
111+
ul li ul li {
112+
margin-top: .1em;
113+
margin-bottom: 1em; }

0 commit comments

Comments
 (0)