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

Update toml-rb requirement from ~> 1.0 to >= 1, < 3 #283

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

balasankarc
Copy link

Adapted from #219. For some reason, changes from that PR didn't reach main branch.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

Adapted from chef#219

Signed-off-by: Balasankar 'Balu' C <[email protected]>
@balasankarc
Copy link
Author

@mimaslanka Could you please take a look? Thanks.

The buildkite failure exists in main branch also and is not introduced by this PR - https://buildkite.com/chef-oss/chef-license-scout-main-verify/builds/173#01817148-c081-4015-b730-86468cc6bd49

@mimaslanka
Copy link
Contributor

@balasankarc it tells you what is wrong:

lib/license_scout/config.rb:18:1: R: [Correctable] Chef/Ruby/UnlessDefinedRequire: Workaround rubygems slow requires by only running require if the class isn't already defined

You just have to fix that to get it to pass. Basically add something like:

require "json" unless defined?(JSON)

@balasankarc
Copy link
Author

@balasankarc it tells you what is wrong:

lib/license_scout/config.rb:18:1: R: [Correctable] Chef/Ruby/UnlessDefinedRequire: Workaround rubygems slow requires by only running require if the class isn't already defined

You just have to fix that to get it to pass. Basically add something like:

require "json" unless defined?(JSON)

@mimaslanka I knew what is wrong and how to fix. But I wasn't sure if including that in this PR, where it is totally unrelated made sense. If you are ok with it, I am glad to do it.

@sonarcloud
Copy link

sonarcloud bot commented Aug 3, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@balasankarc
Copy link
Author

@mimaslanka There we go - a green pipeline.

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