mirror of
https://github.com/cliffe/HacktivityLabSheets.git
synced 2026-02-20 13:50:46 +00:00
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:
8
Gemfile
8
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
|
||||
|
||||
29
Gemfile.lock
29
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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user