Skip to content

Commit 47d92fe

Browse files
authored
chore: Fix security vulnerability for contract tests (#321)
1 parent e7c2b07 commit 47d92fe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

contract-tests/Gemfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@ source 'https://rubygems.org'
22

33
gem 'launchdarkly-server-sdk', path: '..'
44

5-
gem 'sinatra', '~> 2.1'
6-
# Sinatra can work with several server frameworks. In JRuby, we have to use glassfish (which
7-
# is only available in JRuby). Otherwise we use thin (which is not available in JRuby).
8-
gem 'glassfish', :platforms => :jruby
95
gem 'http', '~> 5.1'
106
gem 'json'
7+
gem "puma", "~> 6.6"
8+
gem "rackup", "~> 2.2"
9+
gem 'sinatra', '>= 4.1'
10+
1111
gem 'rubocop', '~> 1.37', group: 'development'
1212
gem 'rubocop-performance', '~> 1.15', group: 'development'
13-
gem 'thin', :platforms => :ruby
1413

15-
gem "redis", "~> 5.3"
1614
gem "connection_pool", "~> 2.4"
15+
gem "redis", "~> 5.3"
1716

1817
gem "diplomat", "~> 2.6"
1918

lib/ldclient-rb/impl/integrations/consul_impl.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module Consul
1010
class ConsulFeatureStoreCore
1111
begin
1212
require "diplomat"
13+
require "ostruct"
1314
CONSUL_ENABLED = true
1415
rescue ScriptError, StandardError
1516
CONSUL_ENABLED = false

0 commit comments

Comments
 (0)