Have an issue?

Before opening an issue, try the following:

Consult the documentation

See if your issue can be resolved by information in the documentation.

Check for an existing issue

Take a look at the issues to see if a similar one has already been created. If one exists, please add any additional information that might expedite resolution.

Open an issue

If the documentation wasn't able to help resolve the issue and no issue already exists, please open a new issue with the following in mind:

Contributing

Contributing can be done in many ways and is not exclusive to code. If you have thoughts on a particular issue or feature, we encourage you to open new issues for discussion or add your comments to existing ones.

Pull requests

We also gladly welcome pull requests. When preparing to work on pull request, please adhere to these standards:

Running tests

Run all tests

$ rake test

Run a single test suite

$ rake test TEST=path/to/test.rb

Run a single test

$ rake test TEST=path/to/test.rb TESTOPTS="--name=test_something"

Run tests against different Rails versions by setting the RAILS_VERSION variable and bundling gems. (save this script somewhere executable and run from top of AMS repository)

#!/usr/bin/env bash

rcommand='puts YAML.load_file("./.travis.yml")["env"]["matrix"].join(" ").gsub("RAILS_VERSION=", "")'
versions=$(ruby -ryaml -e "$rcommand")

for version in ${versions[@]}; do
  export RAILS_VERSION="$version"
  rm -f Gemfile.lock
  bundle check || bundle --local || bundle
  bundle exec rake test
  if [ "$?" -eq 0 ]; then
    # green in ANSI
    echo -e "\033[32m **** Tests passed against Rails ${RAILS_VERSION} **** \033[0m"
  else
    # red in ANSI
    echo -e "\033[31m **** Tests failed against Rails ${RAILS_VERSION} **** \033[0m"
    read -p '[Enter] any key to continue, [q] to quit...' prompt
    if [ "$prompt" = 'q' ]; then
      unset RAILS_VERSION
      exit 1
    fi
fi
  unset RAILS_VERSION
done