Code Monkey home page Code Monkey logo

Comments (4)

nanobowers avatar nanobowers commented on August 29, 2024 1

#parse_data_parameter tries to load chronic and if it fail to load, then the Date behavior of Trollop is "normal". Maybe the tests either need to have chronic as a hard dependency, or bypass the tests that would fail if chronic was not available.

Again, i'm not really a big fan of the behavior changing based on existence of another installed gem - in a group environment (e.g. a University), someone may install a gem (chronic) into a "global" Ruby install and then all of the sudden command line tools that use Trollop would start behaving oddly. That would be pretty hard to track down. 😕

from optimist.

Mr-Tao avatar Mr-Tao commented on August 29, 2024

I second this. As chronic is optional 6d45d0e test should be passing without it being installed.

I’ve filed separate #86 before I’ve noticed this issue already mentions problem with failing tests.

from optimist.

kbrock avatar kbrock commented on August 29, 2024

This is tricky.
We need the gem installed to run the tests.

So it will be tricky to run tests that fail if the gem is not installed

There is the american_date gem that swaps that date order as well.
Many programming languages (and government agencies) have confusion around %m/%d/%y vs %d/%m/%y

from optimist.

Mr-Tao avatar Mr-Tao commented on August 29, 2024

@kbrock ic, perhaps an explicit message that tests are failing due to a missing gem would suffice. Trollop 1.2.1 was masked in Gentoo with recent Ruby versions simply because maintainer didn’t investigate deep enough.

from optimist.

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.