diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df938851c..6187690e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -# This file was generated on 2021-04-23T09:17:30+01:00 from the rspec-dev repo. +# This file was generated on 2021-07-13T10:25:09+01:00 from the rspec-dev repo. # DO NOT modify it by hand as your changes will get lost the next time it is generated. name: RSpec CI @@ -60,11 +60,12 @@ jobs: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: - bundler: ${{ matrix.bundler || 2 }} + bundler: ${{ matrix.bundler || '2.2.22' }} ruby-version: ${{ matrix.ruby }} - run: script/update_rubygems_and_install_bundler - run: script/clone_all_rspec_repos - - run: bundle install --binstubs --standalone + - run: bundle install --standalone + - run: bundle binstubs --all - run: script/run_build legacy: @@ -125,7 +126,7 @@ jobs: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: - bundler: 2 + bundler: '2.2.22' ruby-version: ${{ matrix.ruby }} bundler-cache: true - run: cinst ansicon diff --git a/.rubocop_rspec_base.yml b/.rubocop_rspec_base.yml index 7cb1c0b23..660b7f7d8 100644 --- a/.rubocop_rspec_base.yml +++ b/.rubocop_rspec_base.yml @@ -1,4 +1,4 @@ -# This file was generated on 2021-04-23T09:17:30+01:00 from the rspec-dev repo. +# This file was generated on 2021-07-13T10:25:09+01:00 from the rspec-dev repo. # DO NOT modify it by hand as your changes will get lost the next time it is generated. # This file contains defaults for RSpec projects. Individual projects diff --git a/script/ci_functions.sh b/script/ci_functions.sh index e1d88d884..d12207bc1 100644 --- a/script/ci_functions.sh +++ b/script/ci_functions.sh @@ -1,4 +1,4 @@ -# This file was generated on 2021-04-23T09:17:30+01:00 from the rspec-dev repo. +# This file was generated on 2021-07-13T10:25:09+01:00 from the rspec-dev repo. # DO NOT modify it by hand as your changes will get lost the next time it is generated. # Taken from: diff --git a/script/clone_all_rspec_repos b/script/clone_all_rspec_repos index 25e6bef4c..7aa0a8d9a 100755 --- a/script/clone_all_rspec_repos +++ b/script/clone_all_rspec_repos @@ -1,5 +1,5 @@ #!/bin/bash -# This file was generated on 2021-04-23T09:17:30+01:00 from the rspec-dev repo. +# This file was generated on 2021-07-13T10:25:09+01:00 from the rspec-dev repo. # DO NOT modify it by hand as your changes will get lost the next time it is generated. set -e diff --git a/script/cucumber.sh b/script/cucumber.sh index a1062a3b3..f53631d7e 100755 --- a/script/cucumber.sh +++ b/script/cucumber.sh @@ -1,5 +1,5 @@ #!/bin/bash -# This file was generated on 2021-04-23T09:17:30+01:00 from the rspec-dev repo. +# This file was generated on 2021-07-13T10:25:09+01:00 from the rspec-dev repo. # DO NOT modify it by hand as your changes will get lost the next time it is generated. set -e diff --git a/script/functions.sh b/script/functions.sh index 90bc13316..7a7872838 100644 --- a/script/functions.sh +++ b/script/functions.sh @@ -1,4 +1,4 @@ -# This file was generated on 2021-04-23T09:17:30+01:00 from the rspec-dev repo. +# This file was generated on 2021-07-13T10:25:09+01:00 from the rspec-dev repo. # DO NOT modify it by hand as your changes will get lost the next time it is generated. SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" @@ -139,10 +139,7 @@ function check_binstubs { echo " $ bundle binstubs$gems" echo echo " # To binstub all gems" - echo " $ bundle install --binstubs" - echo - echo " # To binstub all gems and avoid loading bundler" - echo " $ bundle install --binstubs --standalone" + echo " $ bundle binstubs --all" fi return $success diff --git a/script/legacy_setup.sh b/script/legacy_setup.sh index cc13f3329..847dcd5a2 100755 --- a/script/legacy_setup.sh +++ b/script/legacy_setup.sh @@ -1,5 +1,5 @@ #!/bin/bash -# This file was generated on 2021-04-23T09:17:30+01:00 from the rspec-dev repo. +# This file was generated on 2021-07-13T10:25:09+01:00 from the rspec-dev repo. # DO NOT modify it by hand as your changes will get lost the next time it is generated. set -e diff --git a/script/predicate_functions.sh b/script/predicate_functions.sh index a81d5f077..45462c880 100644 --- a/script/predicate_functions.sh +++ b/script/predicate_functions.sh @@ -1,4 +1,4 @@ -# This file was generated on 2021-04-23T09:17:30+01:00 from the rspec-dev repo. +# This file was generated on 2021-07-13T10:25:09+01:00 from the rspec-dev repo. # DO NOT modify it by hand as your changes will get lost the next time it is generated. function is_mri { @@ -129,9 +129,13 @@ function documentation_enforced { } function style_and_lint_enforced { - if [ -x ./bin/rubocop ]; then - return 0 - else + if is_ruby_head; then return 1 + else + if [ -x ./bin/rubocop ]; then + return 0 + else + return 1 + fi fi } diff --git a/script/run_build b/script/run_build index ba352d723..48c9892a6 100755 --- a/script/run_build +++ b/script/run_build @@ -1,5 +1,5 @@ #!/bin/bash -# This file was generated on 2021-04-23T09:17:30+01:00 from the rspec-dev repo. +# This file was generated on 2021-07-13T10:25:09+01:00 from the rspec-dev repo. # DO NOT modify it by hand as your changes will get lost the next time it is generated. set -e diff --git a/script/update_rubygems_and_install_bundler b/script/update_rubygems_and_install_bundler index 49cc65a5b..929895151 100755 --- a/script/update_rubygems_and_install_bundler +++ b/script/update_rubygems_and_install_bundler @@ -1,13 +1,13 @@ #!/bin/bash -# This file was generated on 2021-04-23T09:17:30+01:00 from the rspec-dev repo. +# This file was generated on 2021-07-13T10:25:09+01:00 from the rspec-dev repo. # DO NOT modify it by hand as your changes will get lost the next time it is generated. set -e source script/functions.sh if is_ruby_23_plus; then - yes | gem update --system - yes | gem install bundler + yes | gem update --system '3.2.22' + yes | gem install bundler -v '2.2.22' else echo "Warning installing older versions of Rubygems / Bundler" gem update --system '2.7.8'