Commits

Allan Davis committed bb8d0ff

Setup lesson 4

  • Participants
  • Parent commits c754ccf

Comments (0)

Files changed (9)

File Lesson4/LICENSE

+== Lesson4
+
+Put appropriate LICENSE for your project here.

File Lesson4/README

+== Lesson4
+
+You should document your project here.

File Lesson4/Rakefile

+# 
+# To change this template, choose Tools | Templates
+# and open the template in the editor.
+ 
+
+require 'rubygems'
+require 'rake'
+require 'rake/clean'
+require 'rake/gempackagetask'
+require 'rake/rdoctask'
+require 'rake/testtask'
+require 'spec/rake/spectask'
+
+spec = Gem::Specification.new do |s|
+  s.name = 'Lesson4'
+  s.version = '0.0.1'
+  s.has_rdoc = true
+  s.extra_rdoc_files = ['README', 'LICENSE']
+  s.summary = 'Your summary here'
+  s.description = s.summary
+  s.author = ''
+  s.email = ''
+  # s.executables = ['your_executable_here']
+  s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
+  s.require_path = "lib"
+  s.bindir = "bin"
+end
+
+Rake::GemPackageTask.new(spec) do |p|
+  p.gem_spec = spec
+  p.need_tar = true
+  p.need_zip = true
+end
+
+Rake::RDocTask.new do |rdoc|
+  files =['README', 'LICENSE', 'lib/**/*.rb']
+  rdoc.rdoc_files.add(files)
+  rdoc.main = "README" # page to start on
+  rdoc.title = "Lesson4 Docs"
+  rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
+  rdoc.options << '--line-numbers'
+end
+
+Rake::TestTask.new do |t|
+  t.test_files = FileList['test/**/*.rb']
+end
+
+Spec::Rake::SpecTask.new do |t|
+  t.spec_files = FileList['spec/**/*.rb']
+end

File Lesson4/lib/ex1.rb

+# To change this template, choose Tools | Templates
+# and open the template in the editor.
+
+puts "Hello World"

File Lesson4/lib/ex2.rb

+# To change this template, choose Tools | Templates
+# and open the template in the editor.
+
+puts "Hello World"

File Lesson4/lib/ex3.rb

+# To change this template, choose Tools | Templates
+# and open the template in the editor.
+
+puts "Hello World"

File Lesson4/lib/ex4.rb

+# To change this template, choose Tools | Templates
+# and open the template in the editor.
+
+puts "Hello World"

File Lesson4/nbproject/project.properties

+main.file=main.rb
+platform.active=default
+source.encoding=UTF-8
+spec.src.dir=spec
+src.dir=lib
+test.src.dir=test

File Lesson4/nbproject/project.xml

+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.netbeans.org/ns/project/1">
+    <type>org.netbeans.modules.ruby.rubyproject</type>
+    <configuration>
+        <data xmlns="http://www.netbeans.org/ns/ruby-project/1">
+            <name>Lesson4</name>
+            <source-roots>
+                <root id="src.dir"/>
+            </source-roots>
+            <test-roots>
+                <root id="test.src.dir"/>
+                <root id="spec.src.dir"/>
+            </test-roots>
+        </data>
+    </configuration>
+</project>