From eb93ba7b5b07d066efd06f67c46cdbaeced010cd Mon Sep 17 00:00:00 2001 From: Vladislav Andreev Date: Sun, 27 Oct 2019 14:57:25 +0300 Subject: [PATCH 1/2] Bump Jekyll version to 4.0 --- jekyll-code-tabs.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jekyll-code-tabs.gemspec b/jekyll-code-tabs.gemspec index 2b2b5c6..376ebc0 100644 --- a/jekyll-code-tabs.gemspec +++ b/jekyll-code-tabs.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |spec| spec.licenses = ["MIT"] spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(test|spec|features)/!) } spec.require_paths = ["lib"] - spec.add_dependency "jekyll", "~> 3.0" + spec.add_dependency "jekyll", "~> 4.0" spec.add_development_dependency "rake", "~> 11.0" spec.add_development_dependency "rspec", "~> 3.5" spec.add_development_dependency "rubocop", "~> 0.52" From caca9006a83b30b2023e1efda911122f2aa52019 Mon Sep 17 00:00:00 2001 From: Vladislav Andreev Date: Sun, 27 Oct 2019 15:24:17 +0300 Subject: [PATCH 2/2] Remove UIKit classes --- lib/jekyll-code-tabs.rb | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/jekyll-code-tabs.rb b/lib/jekyll-code-tabs.rb index f0b684f..51e78ef 100644 --- a/lib/jekyll-code-tabs.rb +++ b/lib/jekyll-code-tabs.rb @@ -12,17 +12,19 @@ def render(context) uuid = SecureRandom.uuid template = ERB.new <<-EOF - + +
+ <% environment['codetabs'].each_with_index do |(key, _), index| %> + + <% end %> +
- EOF template.result(binding) end