Giter Site home page Giter Site logo

gver_diff's Introduction

北海道が好きです ⛄

gver_diff's People

Contributors

somen440 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

gver_diff's Issues

Bug: NativeDateTime compare

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

docker build latest

$ 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'.

Error handling

$ gv_diff 2 hoge 3
Error !! undefined operator ["hoge"]
$ gv_diff --type hoge 2 < 3
Error !! undefined type ["hoge"]

Enhancement: version compare

$ 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

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.