#!/bin/bash

[[ -f /usr/local/share/chruby/chruby.sh ]] && source /usr/local/share/chruby/chruby.sh
[[ -f /usr/share/chruby/chruby.sh ]] && source /usr/share/chruby/chruby.sh
chruby 2.1.5
if [ $# -eq 1 -a x"$1" = x--version ]; then
  rubocop "$@" 2>&1 | \
    sed '/warning: parser\/current is loading parser\/ruby[0-9]*, which recognizes/d;
         /warning: [0-9.]*-compliant syntax, but you are running [0-9.]/d;
         /warning: please see https:\/\/github.com\/whitequark\/parser#compatibility-with-ruby-mri/d'
else
  exec rubocop "$@"
fi

#!/bin/bash

[[ -f /usr/local/share/chruby/chruby.sh ]] && source /usr/local/share/chruby/chruby.sh
[[ -f /usr/share/chruby/chruby.sh ]] && source /usr/share/chruby/chruby.sh
chruby 2.3.0
if [ $# -eq 1 -a x"$1" = x--version ]; then
  rubocop "$@" 2>&1 | \
    sed '/warning: parser\/current is loading parser\/ruby[0-9]*, which recognizes/d;
         /warning: [0-9.]*-compliant syntax, but you are running [0-9.]/d;
         /warning: please see https:\/\/github.com\/whitequark\/parser#compatibility-with-ruby-mri/d'
else
  exec rubocop "$@"
fi

Use ruby 2.3.0 with Rubocop wrapper
Use ruby 2.3.0 with Rubocop wrapper
