foobara-agent-backed-command 0.1.1 → 0.1.2

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: e006c1ff92610dd2baddc84d68ed7de997eba0c98f693db3bd0d2b979ca7e278
4
- data.tar.gz: 9c7a6dc4a33b15f0c8930507ffaae01345efba5d7e5af8f2c15df2d8215ea5c8
3
+ metadata.gz: 0450de7304940d43caf9e9d242637b4fd84b86d9854cd1c34ec2dce90effa8d8
4
+ data.tar.gz: 21b89b61da8d6938ed9d0adde8887b84b18bc126010c7abbcc698771d639bf43
5
5
  SHA512:
6
- metadata.gz: 25ce38e778e6778053074d214b136166f9e274abb8ab6ddb9dfd8de29316a6b40dad48525b4a224fd7ed8db966e778ac533f05e65e45ca195f5c059922926087
7
- data.tar.gz: 49888d6e16b95d713c4dd289371932da4c800929916593e92b23f39f0b52cf28ef5f5d822c1065095a4c5c17969c6c8d755f113e80a1b08c68f28279ef0fea0a
6
+ metadata.gz: de3fbbfaaf821eb4bfe40a3e276d707371b3b52f8daadba5a1eb5322384f481a51e8bb57a9735e26fd81b95930776dbc81649fc47714b1a0327eb9b75c80910f
7
+ data.tar.gz: 4335c58232538cadb8c7c16547ea1a1851cd1c0ed21f2cf7fdc1f8cd98d75477ea4152f74f35a9002ee9094f3dceffb5efc99104f51ad07cf7513863af6f935f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.1.2] - 2026-09-11
2
+
3
+ - Handle removed JSON.fast_generate
4
+
1
5
  ## [0.1.1] - 2025-09-04
2
6
 
3
7
  - Fix bug that results from not all namespaces supporting a #foobara_domain method
@@ -40,9 +40,9 @@ module Foobara
40
40
  when 1
41
41
  instance_variable_set("@#{method_name}", args[0])
42
42
  else
43
- # :nocov:
43
+ # simplecov:disable
44
44
  raise ArgumentError, "Unexpected number of arguments: #{args.size}"
45
- # :nocov:
45
+ # simplecov:enable
46
46
  end
47
47
  end
48
48
  end
@@ -239,7 +239,7 @@ module Foobara
239
239
  end.new
240
240
 
241
241
  inputs_json = serializer.serialize(inputs.except(:agent_options))
242
- inputs_json = JSON.fast_generate(inputs_json)
242
+ inputs_json = JSON.generate(inputs_json)
243
243
  goal += "You have been ran with the following inputs:\n\n#{inputs_json}"
244
244
  end
245
245
  end
@@ -255,7 +255,7 @@ module Foobara
255
255
  def handle_agent_outcome
256
256
  unless agent_outcome.success?
257
257
  # TODO: test this code path maybe with a stub that forces failure
258
- # :nocov:
258
+ # simplecov:disable
259
259
  agent_outcome.each_error do |error|
260
260
  add_error(error)
261
261
  rescue Halt
@@ -263,7 +263,7 @@ module Foobara
263
263
  end
264
264
 
265
265
  halt!
266
- # :nocov:
266
+ # simplecov:enable
267
267
  end
268
268
  end
269
269
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-agent-backed-command
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
@@ -71,13 +71,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
71
  - - ">="
72
72
  - !ruby/object:Gem::Version
73
73
  version: 3.4.0
74
+ - - "<"
75
+ - !ruby/object:Gem::Version
76
+ version: '4.1'
74
77
  required_rubygems_version: !ruby/object:Gem::Requirement
75
78
  requirements:
76
79
  - - ">="
77
80
  - !ruby/object:Gem::Version
78
81
  version: '0'
79
82
  requirements: []
80
- rubygems_version: 3.6.9
83
+ rubygems_version: 4.0.16
81
84
  specification_version: 4
82
85
  summary: Provides a way to create a command without an execute method that is instead
83
86
  executed by a Foobara::Agent