зеркало из https://github.com/github/pages-gem.git
Merge pull request #777 from github/update-theme-versions
Upgrade all pages-themes to v0.2.0 (except primer, which is v0.6.0)
This commit is contained in:
Коммит
5be1a6b608
|
@ -54,19 +54,19 @@ module GitHubPages
|
|||
# Themes to convert to remote themes
|
||||
THEMES_TO_CONVERT_TO_REMOTE_THEMES = {
|
||||
"jekyll-swiss" => "broccolini/swiss",
|
||||
"jekyll-theme-primer" => "pages-themes/primer@v0.5.4",
|
||||
"jekyll-theme-architect" => "pages-themes/architect@v0.1.1",
|
||||
"jekyll-theme-cayman" => "pages-themes/cayman@v0.1.1",
|
||||
"jekyll-theme-dinky" => "pages-themes/dinky@v0.1.1",
|
||||
"jekyll-theme-hacker" => "pages-themes/hacker@v0.1.1",
|
||||
"jekyll-theme-leap-day" => "pages-themes/leap-day@v0.1.1",
|
||||
"jekyll-theme-merlot" => "pages-themes/merlot@v0.1.1",
|
||||
"jekyll-theme-midnight" => "pages-themes/midnight@v0.1.1",
|
||||
"jekyll-theme-minimal" => "pages-themes/minimal@v0.1.1",
|
||||
"jekyll-theme-modernist" => "pages-themes/modernist@v0.1.1",
|
||||
"jekyll-theme-slate" => "pages-themes/slate@v0.1.1",
|
||||
"jekyll-theme-tactile" => "pages-themes/tactile@v0.1.1",
|
||||
"jekyll-theme-time-machine" => "pages-themes/time-machine@v0.1.1",
|
||||
"jekyll-theme-primer" => "pages-themes/primer@v0.6.0",
|
||||
"jekyll-theme-architect" => "pages-themes/architect@v0.2.0",
|
||||
"jekyll-theme-cayman" => "pages-themes/cayman@v0.2.0",
|
||||
"jekyll-theme-dinky" => "pages-themes/dinky@v0.2.0",
|
||||
"jekyll-theme-hacker" => "pages-themes/hacker@v0.2.0",
|
||||
"jekyll-theme-leap-day" => "pages-themes/leap-day@v0.2.0",
|
||||
"jekyll-theme-merlot" => "pages-themes/merlot@v0.2.0",
|
||||
"jekyll-theme-midnight" => "pages-themes/midnight@v0.2.0",
|
||||
"jekyll-theme-minimal" => "pages-themes/minimal@v0.2.0",
|
||||
"jekyll-theme-modernist" => "pages-themes/modernist@v0.2.0",
|
||||
"jekyll-theme-slate" => "pages-themes/slate@v0.2.0",
|
||||
"jekyll-theme-tactile" => "pages-themes/tactile@v0.2.0",
|
||||
"jekyll-theme-time-machine" => "pages-themes/time-machine@v0.2.0",
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
|
@ -20,7 +20,7 @@ describe(GitHubPages::Configuration) do
|
|||
ENV.delete("DISABLE_WHITELIST")
|
||||
ENV["JEKYLL_ENV"] = "test"
|
||||
ENV["PAGES_REPO_NWO"] = "github/pages-gem"
|
||||
stub_request_for_remote_theme(:repo => "pages-themes/primer", :revision => "v0.5.4", :filename => "primer-0.5.4.zip")
|
||||
stub_request_for_remote_theme(:repo => "pages-themes/primer", :revision => "v0.6.0", :filename => "primer-0.6.0.zip")
|
||||
end
|
||||
|
||||
context "#effective_config" do
|
||||
|
@ -121,7 +121,7 @@ describe(GitHubPages::Configuration) do
|
|||
end
|
||||
|
||||
before(:each) do
|
||||
stub_request_for_remote_theme(:repo => "pages-themes/merlot", :revision => "v0.1.1", :filename => "merlot-0.1.1.zip")
|
||||
stub_request_for_remote_theme(:repo => "pages-themes/merlot", :revision => "v0.2.0", :filename => "merlot-0.2.0.zip")
|
||||
end
|
||||
|
||||
it "respects the theme" do
|
||||
|
@ -156,7 +156,7 @@ describe(GitHubPages::Configuration) do
|
|||
end
|
||||
|
||||
it "plugins include jekyll remote theme" do
|
||||
stub_request_for_remote_theme(:repo => "foo/bar", :revision => "HEAD", :filename => "primer-0.5.4.zip")
|
||||
stub_request_for_remote_theme(:repo => "foo/bar", :revision => "HEAD", :filename => "primer-0.6.0.zip")
|
||||
expect(effective_config["plugins"]).to include("jekyll-remote-theme")
|
||||
end
|
||||
end
|
||||
|
|
Двоичные данные
spec/support/merlot-0.1.1.zip → spec/support/merlot-0.2.0.zip
Двоичные данные
spec/support/merlot-0.1.1.zip → spec/support/merlot-0.2.0.zip
Двоичный файл не отображается.
Двоичные данные
spec/support/primer-0.5.4.zip
Двоичные данные
spec/support/primer-0.5.4.zip
Двоичный файл не отображается.
Двоичный файл не отображается.
Загрузка…
Ссылка в новой задаче