From 56d043610b4bc9b43499e6b2adf7f21e3ac4cf12 Mon Sep 17 00:00:00 2001 From: CambodianCoder Date: Tue, 28 May 2019 14:51:21 -0600 Subject: [PATCH 1/6] Typo in Appendix B. Composition and Coordination --- content/cftbat/appendix-b.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/cftbat/appendix-b.html b/content/cftbat/appendix-b.html index 4e82ebc0..da11c20c 100644 --- a/content/cftbat/appendix-b.html +++ b/content/cftbat/appendix-b.html @@ -87,7 +87,7 @@

The REPL

And of course, you can use deftask in the REPL as well—it’s just Clojure, after all. The takeaway is that Boot lets you interact with your tasks as Clojure functions, because that’s what they are.

Composition and Coordination

If what you’ve seen so far was all that Boot had to offer, it’d be a pretty swell tool, but it wouldn’t be very different from other build tools. One feature that sets Boot apart is how it lets you compose tasks. For comparison’s sake, here’s an example Rake invocation (Rake is the premier Ruby build tool):

-
rake db:create d{:tag :a, :attrs {:href "db:seed"}, :content ["b:migra"]}te db:seed
+	
rake db:create d{:tag :a, :attrs {:href "db:seed"}, :content ["b:migrate"]} db:seed
 

This code will create a database, run migrations on it, and populate it with seed data when run in a Rails project. However, worth noting is that Rake doesn’t provide any way for these tasks to communicate with each other. Specifying multiple tasks is just a convenience, saving you from having to run rake db:create; rake db:migrate; rake db:seed. If you want to access the result of Task A within Task B, the build tool doesn’t help you; you have to manage that coordination yourself. Usually, you’ll do this by shoving the result of Task A into a special place on the filesystem and then making sure Task B reads that special place. This looks like programming with mutable, global variables, and it’s just as brittle.

From c869a403aeb739cf8d0d0ca2e83c8d8a0338605a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Mar 2022 00:38:54 +0000 Subject: [PATCH 2/6] Bump nokogiri from 1.6.6.2 to 1.13.2 Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.6.6.2 to 1.13.2. - [Release notes](https://github.com/sparklemotion/nokogiri/releases) - [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md) - [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.6.6.2...v1.13.2) --- updated-dependencies: - dependency-name: nokogiri dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index fd16f36f..b3945bf8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -50,7 +50,7 @@ GEM rb-inotify (>= 0.9) lumberjack (1.0.9) method_source (0.8.2) - mini_portile (0.6.2) + mini_portile2 (2.8.0) multi_json (1.11.0) nanoc (3.7.4) cri (~> 2.3) @@ -58,8 +58,9 @@ GEM asciidoctor (> 0.1, < 2.0) nanoc (>= 3.6.7, < 4.0.0) nenv (0.2.0) - nokogiri (1.6.6.2) - mini_portile (~> 0.6.0) + nokogiri (1.13.2) + mini_portile2 (~> 2.8.0) + racc (~> 1.4) notiffany (0.0.6) nenv (~> 0.1) shellany (~> 0.0) @@ -71,6 +72,7 @@ GEM pygments.rb (0.6.0) posix-spawn (~> 0.3.6) yajl-ruby (~> 1.1.0) + racc (1.6.0) rack (1.6.1) rb-fsevent (0.9.5) rb-inotify (0.9.5) From 66c64f801de1a1156e76f35f6780c154922c118c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Mar 2022 00:38:58 +0000 Subject: [PATCH 3/6] Bump redcarpet from 3.3.1 to 3.5.1 Bumps [redcarpet](https://github.com/vmg/redcarpet) from 3.3.1 to 3.5.1. - [Release notes](https://github.com/vmg/redcarpet/releases) - [Changelog](https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md) - [Commits](https://github.com/vmg/redcarpet/compare/v3.3.1...v3.5.1) --- updated-dependencies: - dependency-name: redcarpet dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index fd16f36f..8c490f99 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -75,7 +75,7 @@ GEM rb-fsevent (0.9.5) rb-inotify (0.9.5) ffi (>= 0.5.0) - redcarpet (3.3.1) + redcarpet (3.5.1) sass (3.4.9) sassy-maps (0.4.0) sass (~> 3.3) From a9fb83e477c14b1a2cb0ef79ff24e097e5e285fc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 4 Mar 2022 02:06:14 +0000 Subject: [PATCH 4/6] Bump rack from 1.6.1 to 2.2.3 Bumps [rack](https://github.com/rack/rack) from 1.6.1 to 2.2.3. - [Release notes](https://github.com/rack/rack/releases) - [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md) - [Commits](https://github.com/rack/rack/compare/1.6.1...2.2.3) --- updated-dependencies: - dependency-name: rack dependency-type: indirect ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index b3945bf8..0543f55e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -73,7 +73,7 @@ GEM posix-spawn (~> 0.3.6) yajl-ruby (~> 1.1.0) racc (1.6.0) - rack (1.6.1) + rack (2.2.3) rb-fsevent (0.9.5) rb-inotify (0.9.5) ffi (>= 0.5.0) From d126969f568f48394ebb903365d5b49063278d81 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Mar 2022 21:06:46 -0500 Subject: [PATCH 5/6] Bump haml from 4.0.6 to 5.0.0 (#4) Bumps [haml](https://github.com/haml/haml) from 4.0.6 to 5.0.0. - [Release notes](https://github.com/haml/haml/releases) - [Changelog](https://github.com/haml/haml/blob/main/CHANGELOG.md) - [Commits](https://github.com/haml/haml/compare/4.0.6...v5.0.0) --- updated-dependencies: - dependency-name: haml dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Gemfile.lock | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index bdab6d05..2c589886 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -40,7 +40,8 @@ GEM guard-nanoc (1.0.3) guard (~> 2.8) nanoc (~> 3.6) - haml (4.0.6) + haml (5.0.0) + temple (>= 0.8.0) tilt hitimes (1.2.2) http_parser.rb (0.6.0) @@ -85,8 +86,9 @@ GEM slop (3.6.0) susy (2.2.1) sass (>= 3.3.0, < 3.5) + temple (0.8.2) thor (0.19.1) - tilt (2.0.1) + tilt (2.0.10) timers (4.0.1) hitimes yajl-ruby (1.1.0) From 9cf4c5f5c0d4a1bf21834861e6386c9302e47887 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Mar 2022 21:06:57 -0500 Subject: [PATCH 6/6] Bump ffi from 1.9.8 to 1.15.5 (#5) Bumps [ffi](https://github.com/ffi/ffi) from 1.9.8 to 1.15.5. - [Release notes](https://github.com/ffi/ffi/releases) - [Changelog](https://github.com/ffi/ffi/blob/master/CHANGELOG.md) - [Commits](https://github.com/ffi/ffi/compare/1.9.8...v1.15.5) --- updated-dependencies: - dependency-name: ffi dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 2c589886..fc2b9be8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -22,7 +22,7 @@ GEM eventmachine (>= 0.12.9) http_parser.rb (~> 0.6.0) eventmachine (1.0.7) - ffi (1.9.8) + ffi (1.15.5) formatador (0.2.5) guard (2.12.6) formatador (>= 0.2.4)