diff --git a/Gemfile b/Gemfile index e6932ae..4170435 100644 --- a/Gemfile +++ b/Gemfile @@ -19,8 +19,6 @@ gem 'wdm', '~> 0.1.1', :platforms => [:mingw, :x64_mingw, :mswin] # do not have a Java counterpart. gem 'http_parser.rb', '~> 0.6.0', :platforms => [:jruby] -# Add webrick for Ruby 3.2+ compatibility (local development only) -# GitHub Pages uses Ruby 3.1.7 which doesn't need this gem -if RUBY_VERSION >= "3.2.0" - gem 'webrick', '~> 1.7' -end +# Note: webrick is needed for local development with Ruby 3.2+ +# but GitHub Pages (Ruby 3.1.7) doesn't need it +# This is handled in the start-server-github-pages.sh script diff --git a/Gemfile.lock b/Gemfile.lock index 67d0e9e..5586b02 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -46,14 +46,7 @@ GEM logger faraday-net_http (3.4.1) 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-musl) forwardable-extended (2.6.0) gemoji (4.1.0) github-pages (232) @@ -242,22 +235,8 @@ GEM minitest (5.25.5) net-http (0.6.0) 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) racc (~> 1.4) - nokogiri (1.18.10-x86_64-linux-musl) - racc (~> 1.4) octokit (4.25.1) faraday (>= 1, < 3) sawyer (~> 0.9) @@ -293,14 +272,7 @@ GEM webrick (1.9.1) 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-musl DEPENDENCIES github-pages @@ -310,7 +282,6 @@ DEPENDENCIES tzinfo (>= 1, < 3) tzinfo-data wdm (~> 0.1.1) - webrick (~> 1.7) BUNDLED WITH 2.4.15 diff --git a/start-server-github-pages.sh b/start-server-github-pages.sh index 118cae6..13746d6 100755 --- a/start-server-github-pages.sh +++ b/start-server-github-pages.sh @@ -28,6 +28,10 @@ if [ $? -ne 0 ]; then bundle install --path vendor/bundle 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 "📱 Site will be available at: http://localhost:4000" echo "🌐 Also available at: http://0.0.0.0:4000"