#95 ✓invalid
bahuvrihi

No longer checks on n inputs for Tap.task

Reported by bahuvrihi | 2008-09-02 23:57:43 UTC | in Tap-0.11.0

Somewhere along the line the check for Tap.task declarations were removed. (see http://github.com/bahuvrihi/tap/...

Now 'tap run -- task with too many or not enough inputs' is ok.

Comments and changes to this ticket

  • bahuvrihi

    bahuvrihi 2008-09-10 09:59:08 UTC

    • Milestone set to “Tap-0.11.0”
  • bahuvrihi

    bahuvrihi 2008-10-11 09:18:12 UTC

    • Assigned user set to “bahuvrihi”
    • State changed from “new” to “invalid”
    • Tag changed from “bug, tap” to “bug, tap”

    Now that Tap.task patterns itself after Rake.task more fully, the proper functionality is to NOT raise an error for missing or extra inputs. In

    
      task :name, :one, :two do |t, args|
        args...
      end
    

    args acts like an OpenStruct. If it has the inputs it does, if not, it doesn't.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A framework for making configurable, file-based tasks and workflows.

People watching this ticket

Tags

Pages