Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.1']
ruby-version: ['3.2', '3.4']

steps:
- uses: actions/checkout@v4
Expand Down
7 changes: 5 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ GEM
crack (1.0.0)
bigdecimal
rexml
csv (3.3.5)
diff-lcs (1.5.0)
drb (2.1.1)
ruby2_keywords
Expand All @@ -46,7 +47,8 @@ GEM
faraday-net_http (3.0.2)
ffi (1.16.3)
hashdiff (1.1.0)
httparty (0.21.0)
httparty (0.23.1)
csv
mini_mime (>= 1.0.0)
multi_xml (>= 0.5.2)
i18n (1.14.1)
Expand All @@ -57,7 +59,8 @@ GEM
method_source (1.0.0)
mini_mime (1.1.5)
minitest (5.20.0)
multi_xml (0.6.0)
multi_xml (0.7.2)
bigdecimal (~> 3.1)
multipart-post (2.3.0)
mutex_m (0.1.2)
ostruct (0.6.1)
Expand Down
8 changes: 7 additions & 1 deletion spec/logging/debug_logger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@
end

it "pretty prints the data" do
expected = if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4")
/\{key: "value"\}/
else
/\{:key=>"value"\}/
end

expect {
logger.log(:info, message, data)
}.to output(/\{:key=>"value"\}/).to_stdout
}.to output(expected).to_stdout
end
end
2 changes: 1 addition & 1 deletion sublayer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
spec.summary = "A model-agnostic Ruby GenerativeAI DSL and Framework"
spec.description = "A DSL and framework for building AI powered applications through the use of Generators, Actions, Tasks, and Agents"
spec.homepage = "https://docs.sublayer.com"
spec.required_ruby_version = ">= 2.6.0"
spec.required_ruby_version = ">= 3.2.0"

spec.metadata["homepage_uri"] = "https://docs.sublayer.com"
spec.metadata["documentation_uri"] = "https://docs.sublayer.com"
Expand Down
Loading