Skip to content

Remove semver gem build warning#2351

Merged
bundlerbot merged 1 commit intoruby:masterfrom
deivid-rodriguez:remove_semver_warning
Jul 18, 2018
Merged

Remove semver gem build warning#2351
bundlerbot merged 1 commit intoruby:masterfrom
deivid-rodriguez:remove_semver_warning

Conversation

@deivid-rodriguez
Copy link
Copy Markdown
Contributor

@deivid-rodriguez deivid-rodriguez commented Jul 9, 2018

Description:

This is an alternative to #2323.

I think this warning is too brittle at the moment because rubygems has no way of knowing if a dependency is semantically versioned. If a dependency is not semantically versioned, I don't see the problem with using something like ~> 1.2.3 so suggesting a constraint that does the same thing in a more complicated way just because it does not warn seems no good.

In the future maybe rubygems could provide a spec.versioning_policy = accessor where gems can inform of their own versioning (:semver, or others) but currently I think this warning should just go.


Tasks:

  • Describe the problem / feature
  • Write tests
  • Write code to solve the problem
  • Get code review from coworkers / friends

I will abide by the code of conduct.

Copy link
Copy Markdown
Contributor

@segiddins segiddins left a comment

Choose a reason for hiding this comment

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

Seems like a very reasonable change to me 👍

@bronzdoc
Copy link
Copy Markdown
Contributor

@bundlerbot r+

@bundlerbot
Copy link
Copy Markdown
Contributor

📌 Commit ada55f0 has been approved by bronzdoc

@bundlerbot
Copy link
Copy Markdown
Contributor

⌛ Testing commit ada55f0 with merge 7bbfc69...

bundlerbot added a commit that referenced this pull request Jul 18, 2018
Remove semver gem build warning

# Description:

This is an alternative to #2323.

I think this warning is too brittle at the moment because `rubygems` has no way of knowing if a dependency is semantically versioned. If a dependency is not semantically versioned, I don't see the problem with using something like `~> 1.2.3` so suggesting a constraint that does the same thing in a more complicated way just because it does not warn seems no good.

In the future maybe rubygems could provide a `spec.versioning_policy =` accessor where gems can inform of their own versioning (`:semver`, or others) but currently I think this warning should just go.
______________

# Tasks:

- [x] Describe the problem / feature
- [ ] Write tests
- [x] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).
@bundlerbot
Copy link
Copy Markdown
Contributor

☀️ Test successful - status-travis
Approved by: bronzdoc
Pushing 7bbfc69 to master...

@bundlerbot bundlerbot merged commit ada55f0 into ruby:master Jul 18, 2018
@deivid-rodriguez deivid-rodriguez deleted the remove_semver_warning branch July 18, 2018 23:30
@colby-swandale colby-swandale added this to the 2.7.8 milestone Sep 23, 2018
@hsbt hsbt removed this from the 2.7.8 milestone Oct 10, 2018
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.

6 participants