Skip to content
xxx edited this page Nov 21, 2011 · 5 revisions

Contributions are always welcome.

Install gems

gem install externals
gem install active_wrapper-solo
gem install rspec -v '~>1'
gem install rails -v '~>2'
gem install rails -v '~>3.0'
gem install sinatra -v '~>1'

Database adapters

I've only tested with MySQL. PostgreSQL help would be much appreciated.

gem install mysql
gem install mysql2 # version 0.2.x for Rails 3.0, 0.3.x for Rails 3.1

Fork the project

Fork the project.

git clone git@github.com:YOUR_NAME/acts_as_archive.git
cd acts_as_archive

Vendor supporting gems

externals un

This will vendor the following gems:

Feel free to send pull requests for any of these projects.

Create the test db

cd spec
rake db:drop db:create
cd ../

Run the specs

spec/run

This essentially runs the following:

ACTIVERECORD=3 spec spec
ACTIVERECORD=2 spec spec/acts_as_archive_spec.rb
RAILS=2 spec spec/acts_as_archive_spec.rb
RAILS=3 spec spec/acts_as_archive_spec.rb
SINATRA=1 spec spec/acts_as_archive_spec.rb