Skip to content

Commit 81af2bd

Browse files
committed
Fix gem inst rdoc
It otherwise fails at installation of the rdoc plugin to rubygems, due to insufficient permissions. Fixes #187
1 parent 7a34d10 commit 81af2bd

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Dockerfile.mri.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,4 +278,7 @@ RUN bash -c "rbenv global 4.0.0"
278278

279279
ENV RUBY_CC_VERSION=4.0.0:3.4.8:3.3.10:3.2.9:3.1.7:3.0.7
280280

281+
# TODO: Move to native ruby install above, at the next minor release
282+
RUN sudo chmod go+w /usr/local/rbenv/versions/*/lib/ruby/gems/*/plugins -R
283+
281284
CMD bash

test/test_rdoc.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
require 'rake_compiler_dock'
2+
require 'test/unit'
3+
4+
class TestRdoc < Test::Unit::TestCase
5+
TEST_PLATFORM = ENV["TEST_PLATFORM"] || 'x86_64-linux'
6+
7+
def test_gem_inst
8+
RakeCompilerDock::Starter.sh "gem inst --silent rdoc", platform: TEST_PLATFORM, verbose: false
9+
end
10+
end

0 commit comments

Comments
 (0)