Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tubaxenor committed Feb 3, 2025
1 parent 0a000e2 commit 0577b50
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ GEM
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rackup (2.2.1)
rack (>= 3)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
Expand Down Expand Up @@ -161,6 +163,7 @@ DEPENDENCIES
ostruct
pry-byebug
rack
rackup
rake
rspec
rubocop (~> 0.75.0)
Expand Down
1 change: 1 addition & 0 deletions apollo-federation.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'ostruct'
spec.add_development_dependency 'pry-byebug'
spec.add_development_dependency 'rack'
spec.add_development_dependency 'rackup'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'rubocop', '~> 0.75.0'
Expand Down
3 changes: 2 additions & 1 deletion example/graphql_server.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'rack'
require 'rackup/handler/webrick'
require 'json'
require 'graphql'
require 'pry-byebug'
Expand Down Expand Up @@ -34,7 +35,7 @@ def self.run(schema, options = {})
end
end.parse!

Rack::Handler::WEBrick.run(GraphQLServer.new(schema), **handler_options) do
Rackup::Handler::WEBrick.run(GraphQLServer.new(schema), **handler_options) do
if test_mode
$stdout.puts '_READY_'
$stdout.flush
Expand Down

0 comments on commit 0577b50

Please sign in to comment.