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

Various Rubocop and lint fixes #164

Merged
merged 15 commits into from
Jul 6, 2022
Merged

Various Rubocop and lint fixes #164

merged 15 commits into from
Jul 6, 2022

Conversation

bastelfreak
Copy link
Member

modulesync 4.0.0

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason Actions didn't run.

@ekohl
Copy link
Member

ekohl commented Dec 2, 2020

I did some initial cleanup of metadata and dropping older versions, but the acceptance tests will fail because they try to install ancient Ruby versions.

@bastelfreak
Copy link
Member Author

I updated the ruby versions, let's see if this passes now (or at least fails in a different way)

@bastelfreak bastelfreak force-pushed the modulesync branch 8 times, most recently from fa9a74c to 9261660 Compare December 4, 2020 21:56
@bastelfreak bastelfreak changed the title modulesync 4.0.0 modulesync 4.1.0 Jun 13, 2021
@bastelfreak bastelfreak force-pushed the modulesync branch 4 times, most recently from 187ba88 to 0be4110 Compare June 13, 2021 19:33
@bastelfreak bastelfreak mentioned this pull request Jun 13, 2021
@bastelfreak
Copy link
Member Author

bastelfreak commented Jun 13, 2021

@bastelfreak bastelfreak force-pushed the modulesync branch 2 times, most recently from 03bbc66 to 4167e8c Compare June 14, 2021 07:14
@bastelfreak
Copy link
Member Author

it now passes on centos 7 not nowhere else :(

@ekohl
Copy link
Member

ekohl commented Jun 14, 2021

Should we mark the Passenger test on Debian/Ubuntu as pending just to get it to pass?

@bastelfreak
Copy link
Member Author

I think that's a good idea. you want to do that? otherwise I can take a look later.

@ekohl
Copy link
Member

ekohl commented Jul 2, 2021

I guess neither of us had time for this in the past 3 weeks.

@bastelfreak bastelfreak force-pushed the modulesync branch 2 times, most recently from c7388eb to 822c1d9 Compare July 29, 2021 19:54
bastelfreak pushed a commit to bastelfreak/puppet-rvm that referenced this pull request Jan 28, 2022
Solaris is not supported by the gnupg module and we cannot test it.
cherry-picked from voxpupuli#164
@bastelfreak bastelfreak mentioned this pull request Jan 28, 2022
bastelfreak pushed a commit to bastelfreak/puppet-rvm that referenced this pull request Jan 28, 2022
Solaris is not supported by the gnupg module and we cannot test it.
cherry-picked from voxpupuli#164
$gnupg_key_id = false
}
# sadly the gpg module is ages old and doesn't support long key ids
$gnupg_key_id = [
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably rename this to $gnupg_key_ids?

if resource[:proxy_url] && !resource[:proxy_url].empty?
command << '--http-proxy' << resource[:proxy_url]
end
command << '--http-proxy' << resource[:proxy_url] if resource[:proxy_url] && !resource[:proxy_url].empty?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I disagree with Rubocop on this change. It makes the line very long.

before => Exec['system-rvm'],
include gnupg

# https keys are downloaded with wget
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a require on the package somewhere? like gnupg_key?

Comment on lines +115 to +116
r.stdout.should =~ Regexp.new(Regexp.escape(ruby27_version))
r.stdout.should =~ Regexp.new(Regexp.escape(ruby26_version))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, much easier is to just use String.include? instead of using a regex:

Suggested change
r.stdout.should =~ Regexp.new(Regexp.escape(ruby27_version))
r.stdout.should =~ Regexp.new(Regexp.escape(ruby26_version))
expect(r.stdout).to include(ruby27_version)
expect(r.stdout).to include(ruby26_version)

Though the old code was checking that it was at the start of a line with some indenting. That could be more explicit.

@saz
Copy link

saz commented Jun 23, 2022

My PR #178 is failing due to rubocop, which will be fixed by this PR.

@bastelfreak Any help needed? Some mentioned things will be changed by my PR (if accepted).

@ekohl
Copy link
Member

ekohl commented Jul 6, 2022

I'll merge this now and improve it in a further PR.

@ekohl ekohl merged commit 81eac36 into master Jul 6, 2022
@ekohl ekohl deleted the modulesync branch July 6, 2022 11:15
@ekohl ekohl removed the modulesync label Jul 6, 2022
@ekohl ekohl changed the title modulesync 5.1.0 Various Rubocop and lint fixes Jul 6, 2022
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.

3 participants