Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: require set for ruby 3.0.1 #52

Merged
merged 1 commit into from
Apr 9, 2021
Merged

Conversation

jamesprior
Copy link
Contributor

Looks like Ruby 3.0.1 needs an explicit require set.

The error that appears looks something like this:

/opt/bitnami/ruby/lib/ruby/gems/3.0.0/gems/cleanup_vendor-0.6.0/lib/cleanup_vendor.rb:51:in `block in get_options': undefined method `to_set' for ["**/.DS_Store", "**/*.{c,cpp,h,hpp,java,log,markdown,md,mk,o,orig,rdoc,txt}", "**/gem_make.out", "**/Makefile", "**/TAGS", "**/*.{gcov,gem}", "**/*.{log,markdown,md,rdoc,txt,yardopts}", "**/*.{bak,orig}", "**/{CHANGELOG,CHANGES,LICENSE,MIT-LICENSE,NEWS,README,TODO}", "**/.{gitkeep,gitignore,gitmodules}", "**/.keep", "**/{Dockerfile,.dockerignore}", "**/Guardfile", "**/.{appveyor,codeclimate,hound,travis}.yml", "**/.{ruby-gemset,ruby-version,rvm}", "**/.{rspec,rspec_status}", "**/.npmignore", "**/.rubocop.yml", "**/.byebug_history"]:Array (NoMethodError)
Did you mean?  to_s
    from /opt/bitnami/ruby/lib/ruby/gems/3.0.0/gems/cleanup_vendor-0.6.0/lib/cleanup_vendor.rb:50:in `map'
    from /opt/bitnami/ruby/lib/ruby/gems/3.0.0/gems/cleanup_vendor-0.6.0/lib/cleanup_vendor.rb:50:in `get_options'
    from /opt/bitnami/ruby/lib/ruby/gems/3.0.0/gems/cleanup_vendor-0.6.0/lib/cleanup_vendor.rb:36:in `filter'
    from /opt/bitnami/ruby/lib/ruby/gems/3.0.0/gems/cleanup_vendor-0.6.0/lib/cleanup_vendor.rb:19:in `run'
    from /opt/bitnami/ruby/lib/ruby/gems/3.0.0/gems/cleanup_vendor-0.6.0/exe/cleanup_vendor:61:in `<top (required)>'
    from /opt/bitnami/ruby/bin/cleanup_vendor:23:in `load'
    from /opt/bitnami/ruby/bin/cleanup_vendor:23:in `<main>'

Looks like Ruby 3.0.1 needs an explicit require set
@jamesprior jamesprior changed the title Require set for ruby 3.0. Require set for ruby 3.0.1 Apr 6, 2021
@raszi raszi changed the title Require set for ruby 3.0.1 fix: require set for ruby 3.0.1 Apr 9, 2021
@raszi
Copy link
Owner

raszi commented Apr 9, 2021

Thank you for the fix!

@raszi raszi merged commit 42f2c24 into raszi:master Apr 9, 2021
@jamesprior jamesprior deleted the patch-1 branch April 9, 2021 14:48
@jamesprior
Copy link
Contributor Author

🎉 thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants