Sha256: 93aa14e2ce20a8a91e1c0932748c7f3e00a4c6e5b71f80e6449b59006727da19
Contents?: true
Size: 939 Bytes
Versions: 1
Compression:
Stored size: 939 Bytes
Contents
#!/bin/bash set -e RUBY_V=$(ruby -v) function reset_gemfile_and_test { rm Gemfile.lock eval "$1 bundle update" eval "$1 bundle exec rake test" } function test_with_activemodel { reset_gemfile_and_test "ACTIVEMODEL_VERSION=$1" } RUBY_2_2345="ruby 2.[2345]." RUBY_2_234="ruby 2.[234]." RUBY_2_567="ruby 2.[567]." RUBY_2_2="ruby 2.2." RUBY_3_X="ruby 3.0." if [[ $RUBY_V =~ $RUBY_2_2345 ]]; then if [[ $RUBY_V =~ $RUBY_2_234 ]]; then reset_gemfile_and_test fi if [[ $RUBY_V =~ $RUBY_2_2 ]]; then test_with_activemodel "3.2" fi test_with_activemodel "4.0" test_with_activemodel "4.1" test_with_activemodel "4.2" test_with_activemodel "5.0" test_with_activemodel "5.1" test_with_activemodel "5.2" fi if [[ $RUBY_V =~ $RUBY_2_567 ]] || [[ $RUBY_V =~ $RUBY_3_X ]]; then gem install bundler -v ">= 2" --no-doc reset_gemfile_and_test test_with_activemodel "6.0" test_with_activemodel "6.1" fi
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
u-attributes-2.8.0 | bin/test |