Method: Jekyll::External.version_constraint
- Defined in:
- lib/ngage/jekyll/external.rb
.version_constraint(gem_name) ⇒ Object
The version constraint required to activate a given gem. Usually the gem version requirement is “> 0,” because any version will do. In the case of jekyll-docs, however, we require the exact same version as Jekyll.
Returns a String version constraint in a parseable form for RubyGems.
43 44 45 46 47 |
# File 'lib/ngage/jekyll/external.rb', line 43 def version_constraint(gem_name) return "= #{Jekyll::VERSION}" if gem_name.to_s.eql?("jekyll-docs") "> 0" end |