dagger_ruby 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34724979aabb3b2bc3bd4b9c5da94e18d226a3d2352a18c24c9c2d5219bdd1ce
4
- data.tar.gz: fffac2ee10486d7723c4b1e9c3fb4fa5ee5dde9e774202edb3b0f1c1828baf88
3
+ metadata.gz: d55d30e1a649d969398e1f7e4a049e5303cbf037b0b57272e4f7c093c0f86722
4
+ data.tar.gz: 0d242f193df07c677b1e70c105bfd856a881a740b727376942f4d33a593e0612
5
5
  SHA512:
6
- metadata.gz: 34fa02beb187f422ca6ced050994d338a7d84d9c03fc4a7051ae56b4da9c4aa30a8bcbf0be07b9856b0c68f9913edfd8807b278ba00027fb4f999d3ecaae657d
7
- data.tar.gz: 5a8f20891ea467847bb360e87ef91c1f43047e92061a05137310d38931cfe4ec168c39d1a34c4d5539dd1f90c0d669499a8fd064b27cef36cdfef3c48e196579
6
+ metadata.gz: c1ab620c788a833a369fa4f587a1ed50d3feab24278c314192bf75afb4b1a42a69a7ad756b03644d699bb424a4dce16087e18af5d265d2befbf47ef92295c6a7
7
+ data.tar.gz: 2aa572694719d97f99523ef393075fd2468344d975a0e7774a74d1e89d56cd25529d1fddc520c1a9c18887caf3de7d347231c947c67ed2ecc8d788cff44c79bf
data/CHANGELOG.md CHANGED
@@ -5,6 +5,31 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.6.0] - 2025-09-17
9
+
10
+ Programmatic Control:
11
+
12
+ config = DaggerRuby::Config.new(
13
+ engine_log_level: "error", # Only errors
14
+ progress: "plain" # Clean progress format
15
+ )
16
+ DaggerRuby.connection(config) do |client|
17
+ # Your operations with clean output
18
+ end
19
+
20
+ 📋 Progress Options:
21
+
22
+ - plain - Simple text progress (no fancy symbols like ▶ ●)
23
+ - dots - Just dots for progress
24
+ - tty - Full fancy output (default)
25
+ - auto - Auto-detect based on terminal
26
+
27
+ 🎯 What This Eliminates:
28
+
29
+ - All the ▶ connect, ● container: symbols
30
+ - Timing information like 0.7s, 3.6s CACHED
31
+ - Complex tree-style progress display
32
+
8
33
  ## [0.4.0] - 2025-09-17
9
34
 
10
35
  1. Environment Variable (Easiest)
@@ -2,13 +2,15 @@ require "logger"
2
2
 
3
3
  module DaggerRuby
4
4
  class Config
5
- attr_reader :log_output, :workdir, :timeout, :engine_log_level
5
+ attr_reader :log_output, :workdir, :timeout, :quiet, :silent, :progress
6
6
 
7
- def initialize(log_output: nil, workdir: nil, timeout: nil, engine_log_level: nil)
7
+ def initialize(log_output: nil, workdir: nil, timeout: nil, quiet: nil, silent: nil, progress: nil)
8
8
  @log_output = log_output
9
9
  @workdir = workdir
10
10
  @timeout = timeout || 600
11
- @engine_log_level = engine_log_level || ENV["DAGGER_LOG_LEVEL"] || "warn"
11
+ @quiet = quiet || ENV["DAGGER_QUIET"]&.to_i
12
+ @silent = silent || ENV["DAGGER_SILENT"] == "true"
13
+ @progress = progress || ENV.fetch("DAGGER_PROGRESS", nil)
12
14
  end
13
15
  end
14
16
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DaggerRuby
4
- VERSION = "0.4.0"
4
+ VERSION = "0.6.0"
5
5
  end
data/lib/dagger_ruby.rb CHANGED
@@ -31,11 +31,18 @@ module DaggerRuby
31
31
  # Construct the command that dagger should run
32
32
  ruby_cmd = ["ruby", script, *args].join(" ")
33
33
 
34
- # Get log level from config or environment
35
- log_level = config&.engine_log_level || ENV["DAGGER_LOG_LEVEL"] || "warn"
34
+ # Get verbosity options from config or environment
35
+ quiet = config&.quiet || ENV["DAGGER_QUIET"]&.to_i
36
+ silent = config&.silent || ENV["DAGGER_SILENT"] == "true"
37
+ progress = config&.progress || ENV.fetch("DAGGER_PROGRESS", nil)
36
38
 
37
- # Run dagger with our command and log level
38
- cmd = ["dagger", "--log-level", log_level, "run", ruby_cmd].join(" ")
39
+ # Build dagger command with options
40
+ cmd_parts = ["dagger"]
41
+ cmd_parts += ["-q"] * quiet if quiet&.positive?
42
+ cmd_parts += ["--silent"] if silent
43
+ cmd_parts += ["--progress", progress] if progress
44
+ cmd_parts += ["run", ruby_cmd]
45
+ cmd = cmd_parts.join(" ")
39
46
 
40
47
  # Execute the command
41
48
  exec(cmd)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dagger_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaurav Tiwari