Skip to content

Commit

Permalink
Fix an error for bundle install when using Ruby 3.2.2
Browse files Browse the repository at this point in the history
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 `<class:CLI>'
        from /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/lib/bundler/cli.rb:7:in `<module:Bundler>'
        from /ydah/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-1.16.4/lib/bundler/cli.rb:6:in `<top (required)>'
        from <internal:/ydah/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:97:in `require'
        from <internal:/ydah/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>: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 <top (required)>'
        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 `<top (required)>'
        from /ydah/.rbenv/versions/3.2.2/bin/bundle:25:in `load'
        from /ydah/.rbenv/versions/3.2.2/bin/bundle:25:in `<main>'
```
  • Loading branch information
ydah committed Aug 8, 2023
1 parent 5ac50d5 commit 342b3df
Showing 1 changed file with 44 additions and 37 deletions.
81 changes: 44 additions & 37 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -61,4 +68,4 @@ DEPENDENCIES
kramdown

BUNDLED WITH
1.16.4
2.4.18

0 comments on commit 342b3df

Please sign in to comment.