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

Perform noop trying to compile non-compilable gems #47

Merged
merged 1 commit into from
Dec 30, 2019

Conversation

luislavena
Copy link
Owner

@luislavena luislavena commented Dec 30, 2019

No longer raise exceptions when executed against gems already pre-compiled or gems that have no extensions.

This aims to ease simple automation scenarios.

$ gem compile addressable-2.7.0.gem
Unpacking gem: 'addressable-2.7.0' in temporary directory...
There are no extensions to build on this gem file. Done.

$ gem compile unf_ext-0.0.7.6-x86_64-linux.gem
Unpacking gem: 'unf_ext-0.0.7.6-x86_64-linux' in temporary directory...
The gem file seems to be compiled already. Done.

In both cases, exit code is zero (0).

Fixes #38

No longer raise exceptions when executed against gems already
pre-compiled or gems that have no extensions.

This aims to ease simple automation scenarios.

    $ gem compile addressable-2.7.0.gem
    Unpacking gem: 'addressable-2.7.0' in temporary directory...
    There are no extensions to build on this gem file. Done.

    $ gem compile unf_ext-0.0.7.6-x86_64-linux.gem
    Unpacking gem: 'unf_ext-0.0.7.6-x86_64-linux' in temporary directory...
    The gem file seems to be compiled already. Done.

In both cases, exit code is zero (0).

Fixes #38
@luislavena luislavena merged commit aa79510 into master Dec 30, 2019
@luislavena luislavena deleted the feature/noop-for-other-gems branch December 30, 2019 19:15
luislavena added a commit that referenced this pull request Apr 5, 2020
Do not indicate *Done* during a noop scenario (Eg. gem already compiled,
gem without extensions).

State that the gem was *skipped* instead.

Ref #47
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.

Compiler errors when it finds nothing to do?
1 participant