GithubHelp home page GithubHelp logo

aziascreations / pb-utils Goto Github PK

View Code? Open in Web Editor NEW
6.0 5.0 2.0 147 KB

A collection of small independent includes for your PureBasic programs that aim to provided some missing and important functionalities.

License: Do What The F*ck You Want To Public License

PureBasic 100.00%
purebasic utilities uuid endianness

pb-utils's Introduction

Heya ! I'm Herwin Bozet

I specialize in minimalistic CLI tools, libraries, self-hosting, electronics and SBCs.

🧰 I develop in PureBasic, Python, C99, C#, JS, PHP, VBA, Java, ...
🏅 Made people's day with Excel Password Remover & Youtube Auto Archiver
🌍 Open to contribute to FOSS in my spare time
✉️ You can hit me up by Email, Twitter, Discord or Libera.Chat (/msg NibblePoker)

Check out the NibblePoker organization on GitHub for more "professional" projects.

pb-utils's People

Contributors

aziascreations avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pb-utils's Issues

PB SemVer: Tanks, and Another Link Too

Hi @aziascreations,

thanks for publishing this project, and with such a permissive license. I was looking at your SemanticVersioning.pb and I'm very interested in it.

I didn't know that there was already some PB code to deal with SemVer, so I ended up drafting a version of my own for a project I was working on (but currently stalled due to lack of time and loss of motivation). But I'm surely going to need to look at your SemVer version soon.

I though you might like to know about the version I created:

It comes as a module, and might need just a few tweaks to work anywhere else (see comments about cross-module Enums).

The module also validates a given SemVer against a constrained version, using some constrain operators:

; A module for checking that dependencies satisfy specific version ranges.
;
; Currently Supports:
; -- Numerical identifiers (only)
; -- Versions with two or more segments (ie: 1.0; 1.0.0; 1.0.0.0; etc.)
; -- Constraint operators:
;    -- "="  --- Strict:        Lock all segements (default)
;    -- "^"  --- Caret:         Lock MAJOR version
;    -- "~"  --- Tilde:         Lock MAJOR and MINOR version
;    -- "~>" --- Twiddle-Wakka: Lock all segements except rightmost

My module doesn't take in consideration pre-release versions when comparing, though (as this would have added to much complications for the time being).

The good thing is that version validation works also with non stricly SemVer version schemes (eg: 2.0.0.1) — it actually works with any number of segments as it will balance segments between the version to validate and the constrain.

I hope it might be useful to you also.

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.