dagger_ruby 0.3.0 → 0.4.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 +4 -4
- data/CHANGELOG.md +30 -0
- data/lib/dagger_ruby/config.rb +3 -2
- data/lib/dagger_ruby/version.rb +1 -1
- data/lib/dagger_ruby.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34724979aabb3b2bc3bd4b9c5da94e18d226a3d2352a18c24c9c2d5219bdd1ce
|
4
|
+
data.tar.gz: fffac2ee10486d7723c4b1e9c3fb4fa5ee5dde9e774202edb3b0f1c1828baf88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34fa02beb187f422ca6ced050994d338a7d84d9c03fc4a7051ae56b4da9c4aa30a8bcbf0be07b9856b0c68f9913edfd8807b278ba00027fb4f999d3ecaae657d
|
7
|
+
data.tar.gz: 5a8f20891ea467847bb360e87ef91c1f43047e92061a05137310d38931cfe4ec168c39d1a34c4d5539dd1f90c0d669499a8fd064b27cef36cdfef3c48e196579
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,36 @@ 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.4.0] - 2025-09-17
|
9
|
+
|
10
|
+
1. Environment Variable (Easiest)
|
11
|
+
|
12
|
+
export DAGGER_LOG_LEVEL=error # Only show errors
|
13
|
+
# or
|
14
|
+
DAGGER_LOG_LEVEL=warn your_ruby_script.rb # Only warnings and errors
|
15
|
+
|
16
|
+
2. Programmatic Configuration
|
17
|
+
|
18
|
+
config = DaggerRuby::Config.new(engine_log_level: "error")
|
19
|
+
DaggerRuby.connection(config) do |client|
|
20
|
+
# Your dagger operations with minimal logging
|
21
|
+
end
|
22
|
+
|
23
|
+
3. Available Log Levels (from most to least verbose):
|
24
|
+
|
25
|
+
- trace - Everything (most verbose)
|
26
|
+
- debug - Default Dagger behavior
|
27
|
+
- info - Informational messages
|
28
|
+
- warn - Warnings and errors (new default)
|
29
|
+
- error - Only errors (cleanest output)
|
30
|
+
|
31
|
+
What Changed:
|
32
|
+
|
33
|
+
- Added engine_log_level to Config class (lib/dagger_ruby/config.rb:5)
|
34
|
+
- Modified dagger run command to pass --log-level flag (lib/dagger_ruby.rb:35-38)
|
35
|
+
- Environment variable DAGGER_LOG_LEVEL support
|
36
|
+
- Tests updated and passing
|
37
|
+
|
8
38
|
## [0.3.0] - 2024-12-19
|
9
39
|
|
10
40
|
### Fixed
|
data/lib/dagger_ruby/config.rb
CHANGED
@@ -2,12 +2,13 @@ require "logger"
|
|
2
2
|
|
3
3
|
module DaggerRuby
|
4
4
|
class Config
|
5
|
-
attr_reader :log_output, :workdir, :timeout
|
5
|
+
attr_reader :log_output, :workdir, :timeout, :engine_log_level
|
6
6
|
|
7
|
-
def initialize(log_output: nil, workdir: nil, timeout: nil)
|
7
|
+
def initialize(log_output: nil, workdir: nil, timeout: nil, engine_log_level: 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
12
|
end
|
12
13
|
end
|
13
14
|
end
|
data/lib/dagger_ruby/version.rb
CHANGED
data/lib/dagger_ruby.rb
CHANGED
@@ -31,8 +31,11 @@ module DaggerRuby
|
|
31
31
|
# Construct the command that dagger should run
|
32
32
|
ruby_cmd = ["ruby", script, *args].join(" ")
|
33
33
|
|
34
|
-
#
|
35
|
-
|
34
|
+
# Get log level from config or environment
|
35
|
+
log_level = config&.engine_log_level || ENV["DAGGER_LOG_LEVEL"] || "warn"
|
36
|
+
|
37
|
+
# Run dagger with our command and log level
|
38
|
+
cmd = ["dagger", "--log-level", log_level, "run", ruby_cmd].join(" ")
|
36
39
|
|
37
40
|
# Execute the command
|
38
41
|
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
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gaurav Tiwari
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
|
-
rubygems_version: 3.6.
|
106
|
+
rubygems_version: 3.6.7
|
107
107
|
specification_version: 4
|
108
108
|
summary: A Ruby SDK for Dagger - build powerful CI/CD pipelines using Ruby
|
109
109
|
test_files: []
|