Skip to content

Commit

Permalink
Make sure manifest is generated in a detached context
Browse files Browse the repository at this point in the history
  • Loading branch information
azimux committed Jan 31, 2025
1 parent b799e21 commit 36a999c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.0.13] - 2025-01-30

- Make sure manifest is ran in detached context

## [0.0.12] - 2025-01-28

- Fix potential issue with default serializer inheritance/overriding
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
foobara-http-command-connector (0.0.12)
foobara-http-command-connector (0.0.13)
foobara

GEM
Expand Down Expand Up @@ -54,7 +54,7 @@ GEM
foobara-type-generator
foobara-typescript-react-command-form-generator
foobara-typescript-remote-command-generator
foobara (0.0.51)
foobara (0.0.53)
bigdecimal
foobara-util
foobara-autocrud-generator (0.0.1)
Expand Down Expand Up @@ -260,4 +260,4 @@ RUBY VERSION
ruby 3.4.1p0

BUNDLED WITH
2.6.2
2.6.3
6 changes: 6 additions & 0 deletions src/http/commands/describe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ class Describe < Foobara::CommandConnector::Commands::Describe
def stamp_request_metadata
manifest[:metadata] = super.merge(url: request.url)
end

def build_manifest
Thread.foobara_with_var("foobara_manifest_context", detached: true) do
super
end
end
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Foobara
module HttpCommandConnector
VERSION = "0.0.12".freeze
VERSION = "0.0.13".freeze

local_ruby_version = File.read("#{__dir__}/.ruby-version").chomp
local_ruby_version_minor = local_ruby_version[/\A(\d+\.\d+)\.\d+\z/, 1]
Expand Down

0 comments on commit 36a999c

Please sign in to comment.