Git Product home page Git Product logo

Comments (6)

fsaintjacques avatar fsaintjacques commented on August 28, 2024

go ahead with c), it would be nice if you could provide a matrix of what is/was accepted/rejected.

from semver-tool.

qyanu avatar qyanu commented on August 28, 2024

I just wanted to edit the source, as i discovered that the regex already accepts dots as parts of PRERELEASE and BUILD. Maybe the patch will reduce itself to just change the wording of the documentation.
stay tuned.

from semver-tool.

qyanu avatar qyanu commented on August 28, 2024

I think the patch attached is to the best of my abilities (sadly, i must say).

from semver-tool.

qyanu avatar qyanu commented on August 28, 2024

To summarize: Indeed i couldn't find any combination that didn't pass unit testing.

I wasn't convinced that my idea to handle error-cases in unit-tests is the best, so i didn't include it.
My idea would be this: reserve some special return value that's impossible normally. For example the value "@error". Write this value into the README.md in place where the expected result would be written. Then the script test/documentation-test could be extended to detect this value and then expect a non-zero exit status from semver.

Regarding the specified comparison rules of semver2.x with regards to prerel, i am not confident enough to say there's a bug without testing. but i didn't want to test without having the tests documented and repeatable -- thus the above mentioned feature of test/documentation-test would need to be resolved first.

However, i must be frank, that i could not guarantee time to go through with all the steps necessary to change test/documentation-test. therefore i will only promise to go through with the changes as proposed (and discuss any problems you might find).

from semver-tool.

ranger6 avatar ranger6 commented on August 28, 2024

As I had already opened the code box to fix issue #33, I decided to jump in and work on semver spec 2.0.0.
There is already an open pull request (#30) addressing this issue, so I don't want to yank this contribution around. Herr Pogner ( @qyanu), if you have moved forward on the pull request or plan to shortly, let us know.
On the other hand, if your PR is still at the 1-Aug-2019 state and is not going to more forward (you hinted above about time constraints and test-case doubts), I'm ready to publish a PR that should close this bug.

  1. It complies with 2.0.0.
  2. Automated unit tests show previous non-compliance as well as testing compliance. Basis for the "matrix of what is/was accepted/rejected" requested by @fsaintjacques.
  3. No changes to test/documentation-test.
  4. No CLI changes.
    I'll be publishing my work shortly and will send a PR unless you'd rather I don't.

from semver-tool.

qyanu avatar qyanu commented on August 28, 2024

@ranger6 no no, i don't even read emails daily anymore. good days to you!

from semver-tool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.