Skip to content

Commit c1365d6

Browse files
committed
Fixed the compatibility with Ruby 3.1.
1 parent d8f41f0 commit c1365d6

3 files changed

Lines changed: 16 additions & 6 deletions

File tree

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
source 'https://rubygems.org'
2-
gem "github-pages", group: :jekyll_plugins
2+
gem "github-pages", group: :jekyll_plugins
3+
gem "webrick", "~> 1.7"

Gemfile.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ GEM
2323
http_parser.rb (~> 0)
2424
ethon (0.15.0)
2525
ffi (>= 1.15.0)
26+
eventmachine (1.2.7)
2627
eventmachine (1.2.7-x64-mingw32)
2728
execjs (2.8.1)
2829
faraday (1.9.3)
@@ -48,6 +49,7 @@ GEM
4849
faraday-patron (1.0.0)
4950
faraday-rack (1.0.0)
5051
faraday-retry (1.0.3)
52+
ffi (1.15.5-x64-mingw-ucrt)
5153
ffi (1.15.5-x64-mingw32)
5254
forwardable-extended (2.6.0)
5355
gemoji (3.0.1)
@@ -229,6 +231,8 @@ GEM
229231
jekyll-seo-tag (~> 2.1)
230232
minitest (5.15.0)
231233
multipart-post (2.1.1)
234+
nokogiri (1.10.10)
235+
mini_portile2 (~> 2.4.0)
232236
nokogiri (1.10.10-x64-mingw32)
233237
mini_portile2 (~> 2.4.0)
234238
octokit (4.22.0)
@@ -266,14 +270,18 @@ GEM
266270
thread_safe (~> 0.1)
267271
unf (0.1.4)
268272
unf_ext
273+
unf_ext (0.0.8)
269274
unf_ext (0.0.8-x64-mingw32)
270275
unicode-display_width (1.8.0)
276+
webrick (1.7.0)
271277

272278
PLATFORMS
279+
x64-mingw-ucrt
273280
x64-mingw32
274281

275282
DEPENDENCIES
276283
github-pages
284+
webrick (~> 1.7)
277285

278286
BUNDLED WITH
279287
2.3.6

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@ See the landing page at https://www.csharpcodingguidelines.com
1313

1414
### Prerequisites
1515

16-
* Ruby 2.4.x (note: 2.5 and higher may fail due to the `ffi` ruby lib only supporting < 2.5)
17-
* Ruby DevKit
18-
* The `bundler` gem (`gem install bundler`)
16+
* Ruby 3.1. (note: 2.5 and higher may fail due to the ffi ruby lib only supporting < 2.5).
17+
* An easy way to install is to use `choco install ruby`.
18+
* Or use the **Ruby+Devkit installer** from [RubyInstaller for Windows](https://rubyinstaller.org/downloads/archives/).
19+
* The `bundler` gem (`gem install bundler`). If you receive SSL-related errors while running gem install, try running `refreshenv` first.
1920

2021
### Building
2122

2223
* Clone this repository
23-
* `cd` into the root of the repository
24+
* Install the Ruby Devkit using `ridk install` followed by option 3.
2425
* Run `bundle install`
25-
* Run `bundle exec jekyll serve`
26+
* Run `bundle exec jekyll serve`. To have it monitor your working directory for changes, add the `--incremental` option.
2627

2728
### Troubleshooting
2829

0 commit comments

Comments
 (0)