Permalink
Browse files

initial project structure

  • Loading branch information...
0 parents commit e8e613298fac7f7f0015a9d615d3bf7d9abb7367 @etrepat committed Jan 18, 2011
Showing with 76 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +1 −0 .rvmrc
  3. +5 −0 Gemfile
  4. +20 −0 Gemfile.lock
  5. +10 −0 Rakefile
  6. +1 −0 VERSION
  7. +9 −0 lib/pentago.rb
  8. +6 −0 lib/pentago/board.rb
  9. +8 −0 lib/pentago/version.rb
  10. +10 −0 spec/pentago/board_spec.rb
  11. +4 −0 spec/spec_helper.rb
@@ -0,0 +1,2 @@
+.DS_Store
+
1 .rvmrc
@@ -0,0 +1 @@
+rvm use 1.9.2-head
@@ -0,0 +1,5 @@
+source "http://rubygems.org"
+
+gem "rake", :group => :development
+gem "rspec", :require => "spec", :group => :development
+
@@ -0,0 +1,20 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ diff-lcs (1.1.2)
+ rake (0.8.7)
+ rspec (2.4.0)
+ rspec-core (~> 2.4.0)
+ rspec-expectations (~> 2.4.0)
+ rspec-mocks (~> 2.4.0)
+ rspec-core (2.4.0)
+ rspec-expectations (2.4.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.4.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ rake
+ rspec
@@ -0,0 +1,10 @@
+require 'rspec/core'
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.rspec_opts = '--colour --format progress'
+ spec.pattern = FileList['spec/**/*_spec.rb']
+ spec.verbose = true
+end
+
+task :default => :spec
+
@@ -0,0 +1 @@
+0.0.1
@@ -0,0 +1,9 @@
+require 'rubygems'
+require 'bundler/setup'
+Bundler.require
+
+module Pentago; end
+
+require File.dirname(__FILE__) + '/pentago/board.rb'
+require File.dirname(__FILE__) + '/pentago/version.rb'
+
@@ -0,0 +1,6 @@
+module Pentago
+ class Board
+ # add code here...
+ end
+end
+
@@ -0,0 +1,8 @@
+module Pentago
+ def self.version(version_file='VERSION')
+ version_path = File.dirname(__FILE__) + "/../../#{version_file}"
+ return File.read(version_path).chomp.strip if File.file?(version_path)
+ '0.0.0'
+ end
+end
+
@@ -0,0 +1,10 @@
+require File.dirname(__FILE__) + '/../spec_helper'
+
+module Pentago
+ describe Board do
+ it 'should consist of 6x6 locations'
+ it 'should allow placing a marker'
+ # add specs here...
+ end
+end
+
@@ -0,0 +1,4 @@
+$:.unshift(File.dirname(__FILE__) + '/../lib')
+
+require 'pentago'
+

0 comments on commit e8e6132

Please sign in to comment.