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)
|
* Set `future` to `false` in the default config (#3892)
|
||||||
* filters: `where` should compare stringified versions of input & comparator (#3935)
|
* filters: `where` should compare stringified versions of input & comparator (#3935)
|
||||||
* Read build options for `jekyll clean` command (#3828)
|
* Read build options for `jekyll clean` command (#3828)
|
||||||
|
* Fix #3970: Use Gem::Version to compare versions, not >.
|
||||||
|
|
||||||
### Development Fixes
|
### Development Fixes
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ module Jekyll
|
||||||
rouge/plugins/redcarpet
|
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."
|
abort "Please install Rouge 1.3.0 or greater and try running Jekyll again."
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue