北海道が好きです ⛄
somen440 / gver_diff Goto Github PK
View Code? Open in Web Editor NEWGuarantees that version differences are as defined.
License: MIT License
Guarantees that version differences are as defined.
License: MIT License
北海道が好きです ⛄
Necessary for publishing to hexdocs
https://hexdocs.pm/elixir/NaiveDateTime.html#compare/2
iex(9)> ~N[2019-11-28 14:59:08] > ~N[2019-12-07 15:40:59]
warning: invalid comparison with struct literal ~N"2019-11-28 14:59:08". Comparison operators (>, <, >=, <=) perform structural and not semantic comparison. Comparing with a struct literal is unlikely to give a meaningful result. Modules typically define a compare/2 function that can be used for semantic comparison
iex:9
true
iex(12)> NaiveDateTime.compare(~N[2019-11-28 14:59:08], ~N[2019-12-07 15:40:59])
:lt
branch a b
$ docker run --rm -it mentol310/gver_diff /app/gver_diff 2 gt 3
Unable to find image 'mentol310/gver_diff:latest' locally
docker: Error response from daemon: manifest for mentol310/gver_diff:latest not found: manifest unknown: manifest unknown.
See 'docker run --help'.
$ gver_diff --type=integer 2 < 3
true
$ gver_diff --type=integer 5 < 3
false
$ gv_diff 2 hoge 3
Error !! undefined operator ["hoge"]
$ gv_diff --type hoge 2 < 3
Error !! undefined type ["hoge"]
$ docker run --rm -it mentol310/gver_diff:0.0.2 /app/gver_diff --type version v2.7.0.5 gt v2.8.0.5
** (Version.InvalidRequirementError) invalid requirement: "> v2.8.0.5"
(elixir) lib/version.ex:378: Version.parse_requirement!/1
(elixir) lib/version.ex:220: Version.match?/3
(gver_diff) lib/gver_diff/cli.ex:30: GverDiff.CLI.main/1
(elixir) lib/kernel/cli.ex:121: anonymous fn/3 in Kernel.CLI.exec_fun/2
↓↓↓
$ docker run --rm -it mentol310/gver_diff:0.0.2 /app/gver_diff --type version v2.7.0.5 gt v2.8.0.5
true
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.