Skip to content

Commit

Permalink
much simpler setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Mar 10, 2010
1 parent df720ba commit 7dd4146
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
17 changes: 11 additions & 6 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# Rspec 2 Development Environment Setup
# Rspec 2 Development


## Setting up the environment

The rspec-2 dev environment uses bundler to install all the gems you need.
This works best if you're working in a development environment that does
_not_ require you to use sudo to install gems.

gem install bundler
git clone git://github.com/rspec/rspec-dev.git
cd rspec-dev
gem install bundler
bundle install
rake git:clone
rake gem:install
rake
rake setup
rake spec

After the initial clone you can run `rake git:pull` to update to the latest bits.

Expand Down
18 changes: 17 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,20 @@ task :gemspec do
run_command 'rake gemspec'
end

task :default => ['git:clone', 'gem:install', :spec]
namespace :install do
desc "install the gem bundle"
task :bundle do
sh "bundle install"
end

desc "install rails in the rspec-rails repo"
task :rails do
Dir.chdir('repos/rspec-rails') do
sh "rake rails:clone"
end
end
end

task :setup => ["install:bundle", "git:clone", "install:rails", "gem:install"]

task :default => :spec

0 comments on commit 7dd4146

Please sign in to comment.