pages-gem: Incompatibility with Ruby 2.4.0
Before submitting an issue, please be sure to
- Read the contributing instructions
- Update to the latest Gem version (either
gem update github-pages
orbundle update github-pages
)
This issue affects
- The site generated by GitHub Pages
- Building sites locally
What did you do (e.g., steps to reproduce)
Ruby version 2.4.0
Gemfile:
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
bundle install
What did you expect to happen?
Gems should be installed
What happened instead?
An error occurred while installing json (1.8.3), and Bundler cannot
continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
Additional information
- Link to the live site (if applicable):
- Link to the source repo (if applicable):
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 9
- Comments: 20 (10 by maintainers)
Commits related to this issue
- Bundle update with Ruby 2.3.3: - Ruby 2.4.0 is now being supported in github-pages gem - See the following issue for details: - https://github.com/github/pages-gem/issues/376 — committed to yasslab/yasslab.jp by yasulab 7 years ago
- Remove activesupport gem override Related github/pages-gem#444 github/pages-gem#376 jekyll/jekyll-mentions#42 — committed to Starefossen/docker-github-pages by deleted user 7 years ago
Hey! Thanks for reporting this issue. I hit this last night myself. The issue appears to be that the
json
gem won’t compile on Ruby 2.4. https://github.com/flori/json/issues/303I will try to take a look this week. It appears upgrading from json 1.x to json 2.x would solve the issue. We can see what exactly is depending on this gem and pass along the request to update and update it here as well.
Using
rbenv
with ruby 2.3.1 works on macOS 10.12.2:Install
rbenv
first with Homebrew:Now modify your
~/.bash_profile
:Finally, install ruby 2.3.1 and the
github-pages
gem:@julou I recommend you use rbenv with Ruby 2.3.x and github-pages gem.
There’s additional instructions in their repo.
I’m able to run
bundle install
with Ruby 2.4.1 locally without any modifications to this repository. Can anyone confirm?Note that you can
brew install rbenv
, it will give you suggestions on how to set it up for your shell. 😄