Fix #3970: Use Gem::Version to compare versions, not >.

This commit is contained in:
Jordon Bedwell 2015-09-11 14:41:46 -05:00
parent f1fd89bd8e
commit 908bb2e7af
2 changed files with 2 additions and 1 deletions

View File

@ -133,6 +133,7 @@
* Set `future` to `false` in the default config (#3892)
* filters: `where` should compare stringified versions of input & comparator (#3935)
* Read build options for `jekyll clean` command (#3828)
* Fix #3970: Use Gem::Version to compare versions, not >.
### Development Fixes

View File

@ -76,7 +76,7 @@ module Jekyll
rouge/plugins/redcarpet
])
if Rouge.version < '1.3.0'
unless Gem::Version.new(Rouge.version) > Gem::Version.new("1.3.0")
abort "Please install Rouge 1.3.0 or greater and try running Jekyll again."
end