Skip to content

Commit 1ae84fa

Browse files
authored
Merge pull request #230 from rspec/update-ruby
Update Ruby versions adding 2.7.0
2 parents c708a74 + 30859b5 commit 1ae84fa

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

travis/.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ rvm:
1919
- 2.1
2020
- 2.2.10
2121
- 2.3.8
22-
- 2.4.6
23-
- 2.5.5
24-
- 2.6.2
22+
- 2.4.9
23+
- 2.5.7
24+
- 2.6.5
25+
- 2.7.0
2526
- ruby-head
2627
- ree
2728
- rbx-3

travis/script/predicate_functions.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@ function is_ruby_23_plus {
6262
fi
6363
}
6464

65+
function is_mri_27 {
66+
if is_mri; then
67+
if ruby -e "exit(RUBY_VERSION.to_f == 2.7)"; then
68+
return 0
69+
else
70+
return 1
71+
fi
72+
else
73+
return 1
74+
fi
75+
}
76+
6577
function rspec_rails_compatible {
6678
if is_ruby_23_plus; then
6779
return 0
@@ -86,7 +98,11 @@ function additional_specs_available {
8698
function documentation_enforced {
8799
if [ -x ./bin/yard ]; then
88100
if is_mri_2plus; then
89-
return 0
101+
if is_mri_27; then
102+
return 1
103+
else
104+
return 0
105+
fi
90106
else
91107
return 1
92108
fi

0 commit comments

Comments
 (0)