Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 882 Bytes

CONTRIBUTING.md

File metadata and controls

42 lines (31 loc) · 882 Bytes

Contributing

Once cloned, run the following commands to setup the test database.

cd ./spatial_stats
bundle install
cd test/dummy
rake db:create
rake db:migrate

If you are getting an error, you may need to set the following environment variables.

$PGUSER # default "postgres"
$PGPASSWORD # default ""
$PGHOST # default "127.0.0.1"
$PGPORT # default "5432"
$PGDATABASE # default "spatial_stats_test"

If the dummy app is setup correctly, run the following:

cd ../..
rake

This will run the tests. If they all pass, then your environment is setup correctly.

Note: It is recommended to have GEOS installed and linked to RGeo. You can test this by running the following:

cd test/dummy
rails c

RGeo::Geos.supported?
# => true

Please submit PRs with a description of the problem, the solution and link any issues that it closes.