Fix #3970: Use Gem::Version to compare versions, not >.
This commit is contained in:
parent
f1fd89bd8e
commit
908bb2e7af
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue