Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Hacé version v0.1.2 is out

A new release of Hacé my make-like tool backed by Croupier is out!

Version v0.1.2

  • Make tasks not be de­fault by de­fault. This means that if you
    don't spec­i­fy a task when in­vok­ing hace, noth­ing will hap­pen.

    This is a break­ing change.

  • Added self to ex­posed vari­ables in tasks. This can be used
    to achieve what you would use $@ or oth­er au­to­mat­ic vari­ables
    in Make­files.

  • Added -f op­tion to spec­i­fy a Hace­file to use.

  • Added -n op­tion to do a dry run.

  • Added al­ways_run flag for tasks which caus­es them to al­ways
    run even if their de­pen­den­cies are un­changed.

  • Im­ple­ment­ed --ques­tion flag to ask if a task should be run.

  • Im­ple­ment­ed au­to com­mand, which con­tin­u­ous­ly re­builds as need­ed
    re­act­ing to filesys­tem changes.

Croupier version v0.3.4 is out

A new release of Croupier my Crystal library for tasks and dataflow programming is out!

What's new?

  • Fixed bug sav­ing .croupier, was miss­ing all in­puts
  • Added tests for TaskManager.save_run
  • Fixed bug in in­o­ti­fy watch­er path lookup
  • Fixed bug where au­to_run would on­ly run tasks once (found in Hacé)

Croupier version v0.3.1 is out

A new release of Croupier my Crystal library for tasks and dataflow programming is out!

What's Changed

  • In­­o­ti­­fy sup­­port by @ral­si­­na in #1

    This adds the TaskMan­ag­er.au­to_run method that mon­i­tors task in­puts and
    re­runs tasks as need­ed, and TaskMan­ag­er.au­to_stop to stop it.

    This will be use­­ful for Hacé (the croupier-based make-­­like) and Nicol­i­no
    (a SS­G)

    Here's an ex­am­­ple from the test­s:

    x = 0
    counter = TaskProc.new { x += 1; x.to_s }
    Task.new(output: "t1", inputs: ["i"], proc: counter)
    TaskManager.auto_run
    #  We need to yield or else the watch call­backs nev­er run
    Fiber.yield
    File.open("i", "w") << "foo"
    Fiber.yield
    TaskManager.auto_stop
    #  It should have run
    (x > 0).should be_true

Full Changel­og: v0.3.0...v0.3.1


Contents © 2000-2024 Roberto Alsina