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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop git in gemspec #745

Merged
merged 1 commit into from Sep 25, 2020
Merged

Conversation

utkarsh2102
Copy link
Contributor

Hi @iliabylich,

As discussed in #743, here's the PR, dropping git in gemspec.
Rationale at: https://docs.rubocop.org/rubocop-packaging/cops_packaging.html#gemspec-git-rationale

This helps in maintaining this in Debian and other downstream 馃挮

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

parser.gemspec Outdated Show resolved Hide resolved
parser.gemspec Outdated Show resolved Hide resolved
parser.gemspec Outdated Show resolved Hide resolved
@utkarsh2102 utkarsh2102 force-pushed the drop-git-in-gemspec branch 2 times, most recently from 36c1ff0 to 4d92a6c Compare September 25, 2020 16:34
@iliabylich
Copy link
Collaborator

@utkarsh2102 my bad, should be + ['parser.gemspec'] (because we concatenate arrays)

Using `git` in gemspec, in general, is problematic.
cf: https://docs.rubocop.org/rubocop-packaging/cops_packaging.html#gemspec-git-rationale

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
@utkarsh2102
Copy link
Contributor Author

@utkarsh2102 my bad, should be + ['parser.gemspec'] (because we concatenate arrays)

I've taken all together at once now. Should be good to go.

Copy link
Collaborator

@iliabylich iliabylich left a comment

Choose a reason for hiding this comment

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

馃憤

@iliabylich iliabylich merged commit a70ed2a into whitequark:master Sep 25, 2020
@iliabylich
Copy link
Collaborator

@utkarsh2102 Thanks!

@utkarsh2102 utkarsh2102 deleted the drop-git-in-gemspec branch September 25, 2020 17:15
@utkarsh2102
Copy link
Contributor Author

Hi @iliabylich,
I dropped you a mail, could you take a look at it, whenever you have time? 馃槃

.gitignore
)

spec.files = Dir['bin/*', 'lib/**/*.rb', 'parser.gemspec']
Copy link
Collaborator

@mbj mbj Oct 2, 2020

Choose a reason for hiding this comment

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

BTW, and this is not a bad thing: before parser would ship anything which was not gitignored explicit (or in the whitelist) this means that the parser gem will not ship tests anymore. Which is IMO a good thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, happy to have it this way!

@kddnewton kddnewton mentioned this pull request Oct 8, 2020
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.

None yet

3 participants