Add Gemfile and Rake tasks

This commit is contained in:
Rémi Prévost 2011-10-08 11:59:10 -04:00
parent a9f3a88be3
commit 1d9e059620
4 changed files with 46 additions and 0 deletions

2
Gemfile Normal file
View File

@ -0,0 +1,2 @@
source "http://rubygems.org"
gemspec

32
Gemfile.lock Normal file
View File

@ -0,0 +1,32 @@
PATH
remote: .
specs:
teamocil (0.1.10)
GEM
remote: http://rubygems.org/
specs:
diff-lcs (1.1.3)
maruku (0.6.0)
syntax (>= 1.0.0)
rake (0.9.2)
rspec (2.6.0)
rspec-core (~> 2.6.0)
rspec-expectations (~> 2.6.0)
rspec-mocks (~> 2.6.0)
rspec-core (2.6.4)
rspec-expectations (2.6.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.6.0)
syntax (1.0.0)
yard (0.7.2)
PLATFORMS
ruby
DEPENDENCIES
maruku
rake
rspec
teamocil!
yard

View File

@ -0,0 +1,9 @@
desc "Run specs"
task :spec do # {{{
sh "bundle exec rspec --color --format=nested #{File.join(File.dirname(__FILE__), "spec/layout.rb")}"
end # }}}
desc "Generate documentation"
task :doc do # {{{
sh "bundle exec yard doc"
end # }}}

View File

@ -11,6 +11,9 @@ spec = Gem::Specification.new do |s|
s.require_path = "lib" s.require_path = "lib"
s.executables << "teamocil" s.executables << "teamocil"
s.add_development_dependency("rake")
s.add_development_dependency("rspec") s.add_development_dependency("rspec")
s.add_development_dependency("yard")
s.add_development_dependency("maruku")
end end