Skip to content

Commit 30859b5

Browse files
committed
Prevent rubydoc check running on 2.7.0
1 parent 284f25a commit 30859b5

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

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)