Sha256: 74e393bf316dca98ae9552ca994d98009ddd4ab0f5e242dac309b29a67a312bd
Contents?: true
Size: 1.22 KB
Versions: 2
Compression:
Stored size: 1.22 KB
Contents
#!/bin/bash versions=('2.2.10' '2.3.7' '2.4.4' '2.5.1') switcher=`which rbenv` if [[ $switcher = *[!\ ]* ]]; then verb="local" else switcher=`which rvm` if [[ $switcher = *[!\ ]* ]]; then verb="use" else echo "Please install rbenv or rvm" exit 1 fi fi case "$1" in appraisal-install) for version in ${versions[@]} do echo "Appraisal install for Ruby $version" eval "$switcher $verb $version" bundle exec appraisal install done ;; appraisal-spec) for version in ${versions[@]} do echo "Run appraisal specs with Ruby $version" eval "$switcher $verb $version" bundle exec appraisal rspec done ;; bundle) for version in ${versions[@]} do echo "Bundle for Ruby $version" eval "$switcher $verb $version" gem list --local bundler | grep bundler || gem install --no-ri --no-rdoc bundler bundle install --path vendor bundle update done ;; spec) for version in ${versions[@]} do echo "Run specs with Ruby $version" eval "$switcher $verb $version" bundle exec rspec spec done ;; *) echo $"Usage: $0 {bundle|spec|appraisal-install|appraisal-spec}" exit 1 esac exit 0
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
codekindly-utils-0.0.7 | all_rubies |
codekindly-utils-0.0.6 | all_rubies |