Merge pull request #40 from github/version

Expose GitHubPages::VERSION and GitHubPages.versions
This commit is contained in:
Ben Balter 2014-01-12 16:06:08 -08:00
Родитель 2a7b460aff 62df382560
Коммит 8c1d602ae0
3 изменённых файлов: 27 добавлений и 13 удалений

1
.gitignore поставляемый
Просмотреть файл

@ -1,2 +1,3 @@
*.gem
*.lock
.bundle

Просмотреть файл

@ -1,25 +1,19 @@
require './lib/github-pages.rb'
Gem::Specification.new do |s|
s.required_ruby_version = ">= 1.9.3"
s.name = "github-pages"
s.version = "13"
s.version = GitHubPages::VERSION
s.summary = "Track GitHub Pages dependencies."
s.description = "Bootstrap the GitHub Pages Jekyll environment locally."
s.authors = "GitHub, Inc."
s.email = "support@github.com"
s.homepage = "https://github.com/github/pages-gem"
s.license = "MIT"
s.files = ["lib/github-pages.rb"]
# Jekyll and related dependency versions as used by GitHub Pages.
# For more information see:
# https://help.github.com/articles/using-jekyll-with-pages
s.add_dependency("RedCloth", "= 4.2.9")
s.add_dependency("jekyll", "= 1.4.2")
s.add_dependency("kramdown", "= 1.2.0")
s.add_dependency("liquid", "= 2.5.5")
s.add_dependency("maruku", "= 0.7.0")
s.add_dependency("rdiscount", "= 2.1.7")
s.add_dependency("redcarpet", "= 2.3.0")
GitHubPages.gems.each do |gem, version|
s.add_dependency(gem, "= #{version}") unless gem == "github-pages"
end
end

19
lib/github-pages.rb Normal file
Просмотреть файл

@ -0,0 +1,19 @@
class GitHubPages
VERSION = 13
# Jekyll and related dependency versions as used by GitHub Pages.
# For more information see:
# https://help.github.com/articles/using-jekyll-with-pages
def self.gems
{
"github-pages" => VERSION.to_s,
"jekyll" => "1.4.2",
"kramdown" => "1.2.0",
"liquid" => "2.5.5",
"maruku" => "0.7.0",
"rdiscount" => "2.1.7",
"redcarpet" => "2.3.0",
"RedCloth" => "4.2.9"
}
end
end