Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Updates from rspec-dev (2022-09-09) #2970

Merged
merged 1 commit into from
Sep 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2022-09-09T13:21:55+01:00 from the rspec-dev repo.
# This file was generated on 2022-09-09T14:27:55+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
Expand All @@ -22,7 +22,7 @@ jobs:
name: Rubocop
runs-on: 'ubuntu-20.04'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
Expand All @@ -47,7 +47,7 @@ jobs:
- 2.3
env:
-
RAILS_VERSION: '~> 6.1.0'
__UNUSED_VARIABLE: "Prevents build error when {matrix.env} is used."
include:
- ruby: ruby-head
env:
Expand Down
2 changes: 1 addition & 1 deletion .rubocop_rspec_base.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2022-09-09T13:21:55+01:00 from the rspec-dev repo.
# This file was generated on 2022-09-09T14:27:55+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
Expand Down
2 changes: 1 addition & 1 deletion script/ci_functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2022-09-09T13:21:55+01:00 from the rspec-dev repo.
# This file was generated on 2022-09-09T14:27:55+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:
Expand Down
2 changes: 1 addition & 1 deletion script/clone_all_rspec_repos
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2022-09-09T13:21:55+01:00 from the rspec-dev repo.
# This file was generated on 2022-09-09T14:27:55+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
Expand Down
5 changes: 4 additions & 1 deletion script/functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2022-09-09T13:21:55+01:00 from the rspec-dev repo.
# This file was generated on 2022-09-09T14:27:55+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 )"
Expand Down Expand Up @@ -192,6 +192,9 @@ function run_all_spec_suites {
fold "rspec-expectations specs" run_spec_suite_for "rspec-expectations"
fold "rspec-mocks specs" run_spec_suite_for "rspec-mocks"
if rspec_rails_compatible; then
if ! is_ruby_27_plus; then
export RAILS_VERSION='~> 6.1.0'
fi
fold "rspec-rails specs" run_spec_suite_for "rspec-rails"
fi

Expand Down
10 changes: 9 additions & 1 deletion script/predicate_functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2022-09-09T13:21:55+01:00 from the rspec-dev repo.
# This file was generated on 2022-09-09T14:27:55+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 {
Expand Down Expand Up @@ -95,6 +95,14 @@ function is_ruby_25_plus {
fi
}

function is_ruby_27_plus {
if ruby -e "exit(RUBY_VERSION.to_f >= 2.7)"; then
return 0
else
return 1
fi
}

function is_ruby_31_plus {
if ruby -e "exit(RUBY_VERSION.to_f >= 3.1)"; then
return 0
Expand Down
2 changes: 1 addition & 1 deletion script/run_build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2022-09-09T13:21:55+01:00 from the rspec-dev repo.
# This file was generated on 2022-09-09T14:27:55+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
Expand Down
2 changes: 1 addition & 1 deletion script/run_rubocop
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2022-09-09T13:21:55+01:00 from the rspec-dev repo.
# This file was generated on 2022-09-09T14:27:55+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
Expand Down
2 changes: 1 addition & 1 deletion script/update_rubygems_and_install_bundler
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2022-09-09T13:21:55+01:00 from the rspec-dev repo.
# This file was generated on 2022-09-09T14:27:55+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
Expand Down