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

Commit b8201ff

Browse files
committed
The rest of the changes
1 parent b1aca4d commit b8201ff

File tree

5 files changed

+13
-76
lines changed

5 files changed

+13
-76
lines changed

script/ci_functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was generated on 2020-11-22T07:41:13+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-12-07T01:07:10+03:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
# Taken from:

script/clone_all_rspec_repos

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2020-11-22T07:41:13+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-12-07T01:07:10+03:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e
@@ -13,10 +13,7 @@ if is_mri; then
1313
clone_repo "rspec-expectations"
1414
clone_repo "rspec-mocks"
1515
clone_repo "rspec-rails" "main"
16-
17-
if rspec_support_compatible; then
18-
clone_repo "rspec-support"
19-
fi
16+
clone_repo "rspec-support"
2017

2118
popd
2219
else

script/predicate_functions.sh

Lines changed: 6 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,24 @@
1-
# This file was generated on 2020-11-22T07:41:13+00:00 from the rspec-dev repo.
1+
# This file was generated on 2020-12-07T01:07:10+03:00 from the rspec-dev repo.
22
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
33

44
function is_mri {
5-
if ruby -e "exit(!defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby')"; then
6-
# RUBY_ENGINE only returns 'ruby' on MRI.
7-
# MRI 1.8.7 lacks the constant but all other rubies have it (including JRuby in 1.8 mode)
5+
# RUBY_ENGINE only returns 'ruby' on MRI.
6+
if ruby -e "exit(RUBY_ENGINE == 'ruby')"; then
87
return 0
98
else
109
return 1
1110
fi;
1211
}
1312

1413
function is_jruby {
15-
if ruby -e "exit(defined?(RUBY_PLATFORM) && RUBY_PLATFORM == 'java')"; then
16-
# RUBY_ENGINE only returns 'ruby' on MRI.
17-
# MRI 1.8.7 lacks the constant but all other rubies have it (including JRuby in 1.8 mode)
14+
# RUBY_PLATFORM only returns 'java' on JRuby.
15+
if ruby -e "exit(RUBY_PLATFORM == 'java')"; then
1816
return 0
1917
else
2018
return 1
2119
fi;
2220
}
2321

24-
function is_mri_192 {
25-
if is_mri; then
26-
if ruby -e "exit(RUBY_VERSION == '1.9.2')"; then
27-
return 0
28-
else
29-
return 1
30-
fi
31-
else
32-
return 1
33-
fi
34-
}
35-
36-
function is_mri_192_plus {
37-
if is_mri; then
38-
if ruby -e "exit(RUBY_VERSION.to_f > 1.8)"; then
39-
return 0
40-
else
41-
return 1
42-
fi
43-
else
44-
return 1
45-
fi
46-
}
47-
48-
function is_mri_2plus {
49-
if is_mri; then
50-
if ruby -e "exit(RUBY_VERSION.to_f > 2.0)"; then
51-
return 0
52-
else
53-
return 1
54-
fi
55-
else
56-
return 1
57-
fi
58-
}
59-
60-
function is_ruby_23_plus {
61-
if ruby -e "exit(RUBY_VERSION.to_f >= 2.3)"; then
62-
return 0
63-
else
64-
return 1
65-
fi
66-
}
67-
6822
function is_ruby_25_plus {
6923
if ruby -e "exit(RUBY_VERSION.to_f >= 2.5)"; then
7024
return 0
@@ -81,22 +35,14 @@ function rspec_rails_compatible {
8135
fi
8236
}
8337

84-
function rspec_support_compatible {
85-
if [ "$MAINTENANCE_BRANCH" != "2-99-maintenance" ] && [ "$MAINTENANCE_BRANCH" != "2-14-maintenance" ]; then
86-
return 0
87-
else
88-
return 1
89-
fi
90-
}
91-
9238
function additional_specs_available {
9339
type run_additional_specs > /dev/null 2>&1
9440
return $?
9541
}
9642

9743
function documentation_enforced {
9844
if [ -x ./bin/yard ]; then
99-
if is_mri_2plus; then
45+
if is_mri; then
10046
return 0
10147
else
10248
return 1

script/run_build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# This file was generated on 2020-11-22T07:41:13+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-12-07T01:07:10+03:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
#!/bin/bash
2-
# This file was generated on 2020-11-22T07:41:13+00:00 from the rspec-dev repo.
2+
# This file was generated on 2020-12-07T01:07:10+03:00 from the rspec-dev repo.
33
# DO NOT modify it by hand as your changes will get lost the next time it is generated.
44

55
set -e
66
source script/functions.sh
77

8-
if is_ruby_23_plus; then
9-
yes | gem update --system
10-
yes | gem install bundler
11-
else
12-
echo "Warning installing older versions of Rubygems / Bundler"
13-
gem update --system '2.7.8'
14-
gem install bundler -v '1.17.3'
15-
fi
8+
yes | gem update --system
9+
yes | gem install bundler

0 commit comments

Comments
 (0)