1. Allan Davis
  2. tdd_ios_kiwi

Commits

Allan Davis  committed 6e133e4

moved sectins from project setup to TipCalculator

  • Participants
  • Parent commits b6175e8
  • Branches master

Comments (0)

Files changed (4)

File code/TipCalculator/Gemfile

View file
  • Ignore whitespace
 # A sample Gemfile
 source "https://rubygems.org"
 
+# gem 'rails'
 gem 'cocoapods'
 gem 'frank-cucumber'

File source/project_setup.rst

View file
  • Ignore whitespace
 -------------
 
 * Understand how to setup a XCode project
-* Understand how to configure for bundler
-* Understand how to add the pods library manager to a project
-* Setup tool for automating the build process
 * Create a simple Hello World application
 
 Create XCode Project
 .. image:: images/set_location.png
 
 
-Install and Configure Bundler
--------------------------------
-
-Configure Cocoapods
----------------------------------
-
-Configure Frank
--------------------
-
-Create a Rake File
----------------------
-
 Creating Hello Application
 ----------------------------
 

File source/sample_doc_fragments.txt

View file
  • Ignore whitespace
   
   $ ruby test/board_test.rb
   
-.. image:: images/ttt_uml.png
+.. image:: images/ttt_uml.png
+
+..literalinclude:: filename
+    :linenos:
+    :language:objective-c    
+    :lines:1, 3-5
+    :start-after:3     
+    :end-before: 5

File source/tip_calculator.rst

View file
  • Ignore whitespace
 Project Setup
 ------------------
 
+To start the project, we will start with a basic Xcode project.  
+Create a new Single View iOS Application with the name TipCalculator.  
+Setup the project with Unit Tests, ARC and Stroyboards checked.  
+
+Now that we have the basic project setup we need to add some ruby components 
+to help with the project. By default Mac has ruby version 1.8.7 installed.
+
+Install and Configure Bundler
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+The first component we need is Bundler.  This will manage ruby dependencies for us.  
+To install:
+
+.. code-block:: bash
+  
+  $ sudo gem install bundler
+  
+Bundler gives us commands and tools to manage the installed ruby libaries.  
+To initalize bundler run the following command in the project directory.
+
+.. code-block:: bash
+  
+  $ bundle init
+
+This command creates a file called a Gemfile.  
+
+.. literalinclude:: ../code/TipCalculator/Gemfile
+    :linenos:
+    :language: ruby
+    :lines: 1-4
+
+Configure Cocoapods
+^^^^^^^^^^^^^^^^^^^^^^^
+
+Configure Frank
+^^^^^^^^^^^^^^^^^^^^^
+
+Create a Rake File
+^^^^^^^^^^^^^^^^^^^^^^^
 
 Starting With a Test
-----------------------
+---------------------
 
 
 Making The Test Pass