summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-15 21:41:49 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-15 21:47:41 +0900
commit333865e56f594f365f2b3b4ef0f86fa4beb977c5 (patch)
tree27d14ccbbd95b5c1c39036b12bd6c24b62404b08 /.github
parent16941908332c0b82d7f42bd3f28707a42f7c5d43 (diff)
Workaround for reline.gemspec
This file searches "lib/reline/version.rb" in the same directory, "lib/reline". As no such path, the file in the default load path is loaded unexpectedly.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/check_misc.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/workflows/check_misc.yml b/.github/workflows/check_misc.yml
index 0c6e46580a..f4d89ea6a8 100644
--- a/.github/workflows/check_misc.yml
+++ b/.github/workflows/check_misc.yml
@@ -25,6 +25,7 @@ jobs:
- name: Maintain updated default gem list
run: |
news = File.read("NEWS.md")
+ $:.unshift "lib"
gems = Dir.glob("{ext,lib}/**/*.gemspec").map {|f|
spec = Gem::Specification.load(f)
[spec.name, spec.version]