Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 15 commits
  • 6 files changed
  • 0 commit comments
  • 2 contributors
View
53 chapter1.html
@@ -17,7 +17,7 @@
<p><strong><a href="chapter1.html">&lt;Chapter 1 |</a> <a href=
"toc.html">TOC |</a> <a href="chapter2.html">Chapter 2&gt;</a></strong></p>
- <h1 class="title">Day 1</h1>
+ <h1 class="title">Day 1 - Git, GitHub, RVM, Pik, Gem, Heroku, Bundle (the basics)</h1>
<hr>
<p>To become a Ruby professional, here are some tools that I suggest you
@@ -269,7 +269,7 @@ <h1 class="title">Day 1</h1>
<h2>Using RVM (for *nix)</h2>
- <p><b>Credit:</b> <a href="https://github.com/punjab">Punjab</a></p>
+ <p><b>Credit:</b> <a href="https://github.com/punjab">Arvinder Singh Kang</a></p>
<p>One of the problems that many newbies in a language face while following
a book or tutorial is the problem of dealing with different versions of the
@@ -489,12 +489,59 @@ <h1 class="title">Day 1</h1>
jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) Client VM 1.6.0_29) [Windows 7-x86-java]
</pre>
+<h2>What's a Ruby Gem?</h2>
+<p>To solve various problems with Ruby, you might develop your own libraries. Also, you might want to open-source your libraries to get help from the Ruby community and have many developers working on the same.</p>
+
+<p>A gem is a packaged Ruby application or library. RubyGems is the standard way to distribute Ruby applications and libraries and is available to you after you have downloaded and installed Ruby 1.9+.</p>
+
+<h2>What's Heroku?</h2>
+<p>Heroku (pronounced her-OH-koo) is a cloud application platform - a new way of building and deploying web apps.</p>
+
+<h3>Create an account on Heroku</h3>
+
+<p>Please ensure that you are connected to the internet and then create an account on Heroku (obviously do this only once) if you don't have one - <a href="http://heroku.com/signup">http://heroku.com/signup</a>.</p>
+
+<p>On your local machine, open a new command window to install the Heroku gem file. Type:</p>
+<pre>gem install heroku
+</pre>
+
+<p>Next, create a new folder, say <code>rackheroku</code>. Assuming that you have Git installed, open a Bash shell in that folder. You now need to identify yourself to Git (you need to do this only once). With the bash shell still open type in the following:</p>
+<pre>git config --global user.name "Your name here"
+git config --global user.email "Your email id"
+</pre>
+
+<p>Git does not allow accented characters in user name. This will set the info stored when you commit to a Git repository. Git has now been set up.</p>
+
+<p>The first step in using Git is to create your SSH Key. This will be used to secure communications between your machine and other machines, and to identify your source code changes. (If you already have an SSH key for other reasons, you can use it here, there is nothing Git-specific about this.)</p>
+
+<p>To create our ssh key, open a new command window and type:</p>
+<pre>$ ssh-keygen -C "username@email.com" -t rsa
+</pre>
+<p>(with your own email address, of course).</p>
+
+<p>Accept the default key file location. When prompted for a passphrase, make one up and enter it. If you feel confident that your own machine is secure, you can use a blank passphrase, for more convenience and less security. Note where it told you it stored the file. On my Windows box, it was stored in "C:\Documents and Settings\A\.ssh\". Memorize your passphrase carefully. If you forget it, you will NOT be able to recover it.</p>
+<p>Open the public file id_rsa.pub with a text editor. The text in there is your "public SSH key".</p>
+
+<p>Upload your public key (do it only once):</p>
+<pre>$ heroku keys:add
+</pre>
+<p>You'll be prompted for your username and password the first time you run a heroku command; they'll be saved on ~/.heroku/credentials so you won't be prompted on future runs. It will also upload your public key to allow you to push and pull code.</p>
+
+<h2>Install Bundle</h2>
+<p>In the already open command window, we will install bundler. Type:</p>
+<pre>gem install bundler
+</pre>
+
+<p>Close the command window.</p>
+<p>Bundle allows you to bundle your gems (both pure-ruby and native) with your application.</p>
+
+
<h2>Exercise 1</h2>
<p>Please create and post the URL of your GitHub repo in the relevant
forum, when the course starts.</p>
- <h3>Using Git &amp; GitHub eBook (Updated 15th Sept. 2011)</h3>
+ <h2>Using Git &amp; GitHub eBook (Updated 15th Sept. 2011)</h2>
<p>For a more detailed look at Git and GitHub, you could consider buying
the <a href="http://rubylearning.com/blog/using-git-github-ebook/">Using
View
10 chapter3.html
@@ -250,7 +250,13 @@ <h1 class="title">Day 3</h1>
</pre>
<h2>Exercise 3</h2>
-<p>WIP...</p>
+<p>Using what we have learned here, count and display number of times the word "the" is used on <a href="http://satishtalim.github.com/webruby/chapter3.html">http://satishtalim.github.com/webruby/chapter3.html</a>.<br />Bonus points: Use each of the following for separate solutions:</p>
+<ul>
+<li>net/http library and URI</li>
+<li>open-uri</li>
+<li>Hpricot</li>
+<li>Nokogiri</li>
+</ul>
<p>
<strong>
@@ -260,7 +266,7 @@ <h1 class="title">Day 3</h1>
</strong>
</p>
<div id="footer">
- <p>&copy; 2006-2012&nbsp;<strong>RubyLearning.org - Programming for the Web with Ruby</strong>&nbsp;&nbsp;Page Updated: 21st Jan. 2012</p>
+ <p>&copy; 2006-2012&nbsp;<strong>RubyLearning.org - Programming for the Web with Ruby</strong>&nbsp;&nbsp;Page Updated: 22nd Jan. 2012</p>
</div>
</div>
View
5 chapter4.html
@@ -21,11 +21,6 @@
<h1 class="title">Day 4</h1>
<h2>Creating one's own Ruby Gem</h2>
-<h3>What's a Ruby Gem?</h3>
-<p>To solve various problems with Ruby, you might develop your own libraries. Also, you might want to open-source your libraries to get help from the Ruby community and have many developers working on the same.</p>
-
-<p>A gem is a packaged Ruby application or library. RubyGems is the standard way to distribute Ruby applications and libraries and is available to you after you have downloaded and installed Ruby 1.9+.</p>
-
<h3>Let us create a simple Ruby library</h3>
<p>Let's first create a simple library that extends the <code>String</code> class and store this in a file called <code>my_string_extend.rb</code> in the folder <code>my_string_extend/lib</code>. The <em>lib</em> folder will contain the Ruby code related to the library:</p>
<pre># my_string_extend.rb
View
43 chapter6.html
@@ -19,48 +19,7 @@
</p>
<h1 class="title">Day 7</h1>
<h2>Deploying Pure Rack Apps to Heroku</h2>
-<h3>What's Heroku?</h3>
-<p>Heroku (pronounced her-OH-koo) is a cloud application platform - a new way of building and deploying web apps.</p>
-
-<h4>Create an account on Heroku</h4>
-
-<p>Please ensure that you are connected to the internet and then create an account on Heroku (obviously do this only once) if you don't have one - <a href="http://heroku.com/signup">http://heroku.com/signup</a>.</p>
-
-<p>On your local machine, open a new command window to install the Heroku gem file. Type:</p>
-<pre>gem install heroku
-</pre>
-
-<p>Next, create a new folder, say <code>rackheroku</code>. Assuming that you have Git installed, open a Bash shell in that folder. You now need to identify yourself to Git (you need to do this only once). With the bash shell still open type in the following:</p>
-<pre>git config --global user.name "Your name here"
-git config --global user.email "Your email id"
-</pre>
-
-<p>Git does not allow accented characters in user name. This will set the info stored when you commit to a Git repository. Git has now been set up.</p>
-
-<p>The first step in using Git is to create your SSH Key. This will be used to secure communications between your machine and other machines, and to identify your source code changes. (If you already have an SSH key for other reasons, you can use it here, there is nothing Git-specific about this.)</p>
-
-<p>To create our ssh key, open a new command window and type:</p>
-<pre>$ ssh-keygen -C "username@email.com" -t rsa
-</pre>
-<p>(with your own email address, of course).</p>
-
-<p>Accept the default key file location. When prompted for a passphrase, make one up and enter it. If you feel confident that your own machine is secure, you can use a blank passphrase, for more convenience and less security. Note where it told you it stored the file. On my Windows box, it was stored in "C:\Documents and Settings\A\.ssh\". Memorize your passphrase carefully. If you forget it, you will NOT be able to recover it.</p>
-<p>Open the public file id_rsa.pub with a text editor. The text in there is your "public SSH key".</p>
-
-<p>Upload your public key (do it only once):</p>
-<pre>$ heroku keys:add
-</pre>
-<p>You'll be prompted for your username and password the first time you run a heroku command; they'll be saved on ~/.heroku/credentials so you won't be prompted on future runs. It will also upload your public key to allow you to push and pull code.</p>
-
-<h4>Install Bundle</h4>
-<p>In the already open command window, we will install bundler. Type:</p>
-<pre>gem install bundler
-</pre>
-
-<p>Close the command window.</p>
-<p>Bundle allows you to bundle your gems (both pure-ruby and native) with your application.</p>
-
-<h4>Deploy your app to Heroku</h4>
+<h3>Deploy your app to Heroku</h3>
<p>In order for Heroku to know what to do with your Rack app, create a <code>config.ru</code> (ru stands for Rack up) in the <code>rackheroku</code> folder. The contents are:</p>
<pre>require './my_app'
run MyApp.new
View
18 index.html
@@ -46,7 +46,7 @@ <h1 class="title">Programming for the Web with Ruby</h1>
<div id="text-table-of-contents">
<ul>
-<li><a href="chapter1.html">DAY 1</a></li>
+<li><a href="chapter1.html">Day 1 - Git, GitHub, RVM, Pik, Gem, Heroku, Bundle (the basics)</a></li>
<li>Using Git
<ul>
<li>What's Version Control</li>
@@ -89,6 +89,13 @@ <h1 class="title">Programming for the Web with Ruby</h1>
<li>Using pik</li>
</ul>
</li>
+<li>What's a Ruby Gem?</li>
+<li>What's Heroku?
+ <ul>
+ <li>Create an account on Heroku</li>
+ </ul>
+</li>
+<li>Install Bundle</li>
<li>Exercise 1</li>
<li><a href="chapter2.html">DAY 2</a></li>
<li>Creating a simple webpage using HTML5, CSS and JavaScript
@@ -145,7 +152,6 @@ <h1 class="title">Programming for the Web with Ruby</h1>
<li><a href="chapter4.html">DAY 4</a></li>
<li>Creating one's own Ruby Gem
<ul>
- <li>What's a Ruby Gem?</li>
<li>Let us create a simple Ruby library</li>
<li>Steps for publishing our gem</li>
</ul>
@@ -192,13 +198,7 @@ <h1 class="title">Programming for the Web with Ruby</h1>
<li><a href="chapter6.html">DAY 7</a></li>
<li>Deploying Pure Rack Apps to Heroku
<ul>
- <li>What's Heroku?
- <ul>
- <li>Create an account on Heroku</li>
- <li>Install Bundle</li>
- <li>Deploy your app to Heroku</li>
- </ul>
- </li>
+ <li>Deploy your app to Heroku</li>
</ul>
</li>
<li><a href="chapter7.html">DAY 8</a></li>
View
20 toc.html
@@ -13,14 +13,14 @@
<body>
<div id="content">
-<h1 class="title">Intermediate Ruby Tutorial</h1>
+<h1 class="title">Programming for the Web with Ruby</h1>
<div id="table-of-contents">
<h2>Course Contents</h2>
<div id="text-table-of-contents">
<ul>
-<li><a href="chapter1.html">DAY 1</a></li>
+<li><a href="chapter1.html">Day 1 - Git, GitHub, RVM, Pik, Gem, Heroku, Bundle (the basics)</a></li>
<li>Using Git
<ul>
<li>What's Version Control</li>
@@ -63,6 +63,13 @@ <h1 class="title">Intermediate Ruby Tutorial</h1>
<li>Using pik</li>
</ul>
</li>
+<li>What's a Ruby Gem?</li>
+<li>What's Heroku?
+ <ul>
+ <li>Create an account on Heroku</li>
+ </ul>
+</li>
+<li>Install Bundle</li>
<li>Exercise 1</li>
<li><a href="chapter2.html">DAY 2</a></li>
<li>Creating a simple webpage using HTML5, CSS and JavaScript
@@ -119,7 +126,6 @@ <h1 class="title">Intermediate Ruby Tutorial</h1>
<li><a href="chapter4.html">DAY 4</a></li>
<li>Creating one's own Ruby Gem
<ul>
- <li>What's a Ruby Gem?</li>
<li>Let us create a simple Ruby library</li>
<li>Steps for publishing our gem</li>
</ul>
@@ -166,13 +172,7 @@ <h1 class="title">Intermediate Ruby Tutorial</h1>
<li><a href="chapter6.html">DAY 7</a></li>
<li>Deploying Pure Rack Apps to Heroku
<ul>
- <li>What's Heroku?
- <ul>
- <li>Create an account on Heroku</li>
- <li>Install Bundle</li>
- <li>Deploy your app to Heroku</li>
- </ul>
- </li>
+ <li>Deploy your app to Heroku</li>
</ul>
</li>
<li><a href="chapter7.html">DAY 8</a></li>

No commit comments for this range

Something went wrong with that request. Please try again.