Skip to content

Commit

Permalink
Make ruby apps safe for Ruby 3
Browse files Browse the repository at this point in the history
In Ruby 3, WEBrick is not a default gem, so it needs to be included in
the Gemfile

Signed-off-by: Aram Price <pricear@vmware.com>
Signed-off-by: David Sabeti <sabetid@vmware.com>
  • Loading branch information
aramprice authored and ctlong committed Dec 20, 2022
1 parent 9e49f5d commit aaba78e
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/dora/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ source "http://rubygems.org"

gem "sinatra"
gem "json"
gem "webrick"

group :test, :development do
gem "rspec"
Expand Down
2 changes: 2 additions & 0 deletions assets/dora/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ GEM
rack-protection (= 3.0.5)
tilt (~> 2.0)
tilt (2.0.11)
webrick (1.7.0)

PLATFORMS
ruby
Expand All @@ -39,3 +40,4 @@ DEPENDENCIES
rack-test
rspec
sinatra
webrick
Binary file added assets/dora/vendor/cache/webrick-1.7.0.gem
Binary file not shown.
1 change: 1 addition & 0 deletions assets/hello-world/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
source "https://rubygems.org"

gem "rack"
gem 'webrick'
2 changes: 2 additions & 0 deletions assets/hello-world/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ GEM
remote: https://rubygems.org/
specs:
rack (2.2.4)
webrick (1.7.0)

PLATFORMS
ruby

DEPENDENCIES
rack
webrick
Binary file not shown.
1 change: 1 addition & 0 deletions assets/loggregator-load-generator/Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
source "https://rubygems.org"
gem "sinatra"
gem "webrick"
2 changes: 2 additions & 0 deletions assets/loggregator-load-generator/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ GEM
rack-protection (= 3.0.5)
tilt (~> 2.0)
tilt (2.0.11)
webrick (1.7.0)

PLATFORMS
ruby

DEPENDENCIES
sinatra
webrick
Binary file not shown.
1 change: 1 addition & 0 deletions assets/ruby_simple/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
source 'https://rubygems.org'

gem 'sinatra'
gem 'webrick'
2 changes: 2 additions & 0 deletions assets/ruby_simple/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ GEM
rack-protection (= 3.0.5)
tilt (~> 2.0)
tilt (2.0.11)
webrick (1.7.0)

PLATFORMS
ruby

DEPENDENCIES
sinatra
webrick
Binary file not shown.
1 change: 1 addition & 0 deletions assets/service_broker/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ source 'http://rubygems.org'
gem 'sinatra'
gem 'json'
gem 'rainbow'
gem 'webrick'

group :test, :development do
gem 'rspec'
Expand Down
2 changes: 2 additions & 0 deletions assets/service_broker/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ GEM
rack-protection (= 3.0.5)
tilt (~> 2.0)
tilt (2.0.11)
webrick (1.7.0)

PLATFORMS
ruby
Expand All @@ -41,3 +42,4 @@ DEPENDENCIES
rainbow
rspec
sinatra
webrick
Binary file not shown.

0 comments on commit aaba78e

Please sign in to comment.