Refactor Gemfile and Gemfile.lock for webrick handling and cleanup

- Removed conditional webrick gem inclusion from Gemfile, clarifying its necessity for local development with Ruby 3.2+.
- Updated Gemfile.lock to remove unnecessary architecture-specific ffi and nokogiri entries, streamlining dependencies.
- Added webrick installation command in start-server-github-pages.sh for local development compatibility.
This commit is contained in:
Z. Cliffe Schreuders
2025-09-26 16:30:09 +01:00
parent e4f6c411bd
commit 4c9f62fbd6
3 changed files with 7 additions and 34 deletions

View File

@@ -19,8 +19,6 @@ gem 'wdm', '~> 0.1.1', :platforms => [:mingw, :x64_mingw, :mswin]
# do not have a Java counterpart. # do not have a Java counterpart.
gem 'http_parser.rb', '~> 0.6.0', :platforms => [:jruby] gem 'http_parser.rb', '~> 0.6.0', :platforms => [:jruby]
# Add webrick for Ruby 3.2+ compatibility (local development only) # Note: webrick is needed for local development with Ruby 3.2+
# GitHub Pages uses Ruby 3.1.7 which doesn't need this gem # but GitHub Pages (Ruby 3.1.7) doesn't need it
if RUBY_VERSION >= "3.2.0" # This is handled in the start-server-github-pages.sh script
gem 'webrick', '~> 1.7'
end

View File

@@ -46,14 +46,7 @@ GEM
logger logger
faraday-net_http (3.4.1) faraday-net_http (3.4.1)
net-http (>= 0.5.0) net-http (>= 0.5.0)
ffi (1.17.2-aarch64-linux-gnu)
ffi (1.17.2-aarch64-linux-musl)
ffi (1.17.2-arm-linux-gnu)
ffi (1.17.2-arm-linux-musl)
ffi (1.17.2-arm64-darwin)
ffi (1.17.2-x86_64-darwin)
ffi (1.17.2-x86_64-linux-gnu) ffi (1.17.2-x86_64-linux-gnu)
ffi (1.17.2-x86_64-linux-musl)
forwardable-extended (2.6.0) forwardable-extended (2.6.0)
gemoji (4.1.0) gemoji (4.1.0)
github-pages (232) github-pages (232)
@@ -242,22 +235,8 @@ GEM
minitest (5.25.5) minitest (5.25.5)
net-http (0.6.0) net-http (0.6.0)
uri uri
nokogiri (1.18.10-aarch64-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.10-aarch64-linux-musl)
racc (~> 1.4)
nokogiri (1.18.10-arm-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.10-arm-linux-musl)
racc (~> 1.4)
nokogiri (1.18.10-arm64-darwin)
racc (~> 1.4)
nokogiri (1.18.10-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.18.10-x86_64-linux-gnu) nokogiri (1.18.10-x86_64-linux-gnu)
racc (~> 1.4) racc (~> 1.4)
nokogiri (1.18.10-x86_64-linux-musl)
racc (~> 1.4)
octokit (4.25.1) octokit (4.25.1)
faraday (>= 1, < 3) faraday (>= 1, < 3)
sawyer (~> 0.9) sawyer (~> 0.9)
@@ -293,14 +272,7 @@ GEM
webrick (1.9.1) webrick (1.9.1)
PLATFORMS PLATFORMS
aarch64-linux-gnu
aarch64-linux-musl
arm-linux-gnu
arm-linux-musl
arm64-darwin
x86_64-darwin
x86_64-linux-gnu x86_64-linux-gnu
x86_64-linux-musl
DEPENDENCIES DEPENDENCIES
github-pages github-pages
@@ -310,7 +282,6 @@ DEPENDENCIES
tzinfo (>= 1, < 3) tzinfo (>= 1, < 3)
tzinfo-data tzinfo-data
wdm (~> 0.1.1) wdm (~> 0.1.1)
webrick (~> 1.7)
BUNDLED WITH BUNDLED WITH
2.4.15 2.4.15

View File

@@ -28,6 +28,10 @@ if [ $? -ne 0 ]; then
bundle install --path vendor/bundle bundle install --path vendor/bundle
fi fi
# Install webrick for local development (Ruby 3.2+ compatibility)
echo "📦 Installing webrick for local development..."
bundle add webrick --version '~> 1.7'
echo "🌐 Starting Jekyll server..." echo "🌐 Starting Jekyll server..."
echo "📱 Site will be available at: http://localhost:4000" echo "📱 Site will be available at: http://localhost:4000"
echo "🌐 Also available at: http://0.0.0.0:4000" echo "🌐 Also available at: http://0.0.0.0:4000"