From 342b3df16d04ce6be7b5a26695c3adc7dc08d702 Mon Sep 17 00:00:00 2001 From: ydah <13041216+ydah@users.noreply.github.com> Date: Tue, 8 Aug 2023 21:31:46 +0900 Subject: [PATCH] Fix an error for `bundle install` when using Ruby 3.2.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ruby 3.2.2 を使用していたのですが、`bundle install` に失敗するようでした。 そのため、Gemfile.lockを削除して `bundle install` を実行して再生成しました。 `bundle exec jekyll server` を実行してエラー終了しないことを確認しています。 ## ruby version ``` ❯ ruby --version ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin21] ``` ## Error log ``` ❯ bundle install /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/lib/bundler/shared_helpers.rb:266:in `search_up': undefined method `untaint' for "/ydah/kansai-ruby-community":String (NoMethodError) current = File.expand_path(SharedHelpers.pwd).untaint ^^^^^^^^ from /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/lib/bundler/shared_helpers.rb:253:in `find_file' from /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/lib/bundler/shared_helpers.rb:245:in `find_gemfile' from /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/lib/bundler/shared_helpers.rb:27:in `root' from /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/lib/bundler.rb:220:in `root' from /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/lib/bundler.rb:232:in `app_config_path' from /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/lib/bundler.rb:259:in `settings' from /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/lib/bundler/feature_flag.rb:21:in `block in settings_method' from /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/lib/bundler/cli.rb:97:in `' from /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/lib/bundler/cli.rb:7:in `' from /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/lib/bundler/cli.rb:6:in `' from :97:in `require' from :97:in `require' from /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/exe/bundle:23:in `block in ' from /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors' from /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/exe/bundle:22:in `' from /ydah/.rbenv/versions/3.2.2/bin/bundle:25:in `load' from /ydah/.rbenv/versions/3.2.2/bin/bundle:25:in `
' ``` --- Gemfile.lock | 81 ++++++++++++++++++++++++++++------------------------ 1 file changed, 44 insertions(+), 37 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 401df55..80f3645 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,57 +1,64 @@ GEM remote: https://rubygems.org/ specs: - addressable (2.5.2) - public_suffix (>= 2.0.2, < 4.0) + addressable (2.8.5) + public_suffix (>= 2.0.2, < 6.0) colorator (1.1.0) - concurrent-ruby (1.1.3) - em-websocket (0.5.1) + concurrent-ruby (1.2.2) + em-websocket (0.5.3) eventmachine (>= 0.12.9) - http_parser.rb (~> 0.6.0) + http_parser.rb (~> 0) eventmachine (1.2.7) - ffi (1.9.25) + ffi (1.15.5) forwardable-extended (2.6.0) - http_parser.rb (0.6.0) - i18n (0.9.5) + google-protobuf (3.23.4-x86_64-darwin) + http_parser.rb (0.8.0) + i18n (1.14.1) concurrent-ruby (~> 1.0) - jekyll (3.8.5) + jekyll (4.3.2) addressable (~> 2.4) colorator (~> 1.0) em-websocket (~> 0.5) - i18n (~> 0.7) - jekyll-sass-converter (~> 1.0) + i18n (~> 1.0) + jekyll-sass-converter (>= 2.0, < 4.0) jekyll-watch (~> 2.0) - kramdown (~> 1.14) + kramdown (~> 2.3, >= 2.3.1) + kramdown-parser-gfm (~> 1.0) liquid (~> 4.0) - mercenary (~> 0.3.3) + mercenary (>= 0.3.6, < 0.5) pathutil (~> 0.9) - rouge (>= 1.7, < 4) + rouge (>= 3.0, < 5.0) safe_yaml (~> 1.0) - jekyll-sass-converter (1.5.2) - sass (~> 3.4) - jekyll-watch (2.1.2) + terminal-table (>= 1.8, < 4.0) + webrick (~> 1.7) + jekyll-sass-converter (3.0.0) + sass-embedded (~> 1.54) + jekyll-watch (2.2.1) listen (~> 3.0) - kramdown (1.17.0) - liquid (4.0.1) - listen (3.1.5) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - ruby_dep (~> 1.2) - mercenary (0.3.6) + kramdown (2.4.0) + rexml + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) + liquid (4.0.4) + listen (3.8.0) + rb-fsevent (~> 0.10, >= 0.10.3) + rb-inotify (~> 0.9, >= 0.9.10) + mercenary (0.4.0) pathutil (0.16.2) forwardable-extended (~> 2.6) - public_suffix (3.0.3) - rb-fsevent (0.10.3) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rouge (3.3.0) - ruby_dep (1.5.0) - safe_yaml (1.0.4) - sass (3.7.2) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) + public_suffix (5.0.3) + rb-fsevent (0.11.2) + rb-inotify (0.10.1) + ffi (~> 1.0) + rexml (3.2.6) + rouge (4.1.3) + safe_yaml (1.0.5) + sass-embedded (1.64.2-x86_64-darwin) + google-protobuf (~> 3.23) + terminal-table (3.0.2) + unicode-display_width (>= 1.1.1, < 3) + unicode-display_width (2.4.2) + webrick (1.8.1) PLATFORMS ruby @@ -61,4 +68,4 @@ DEPENDENCIES kramdown BUNDLED WITH - 1.16.4 + 2.4.18