https://github.com/jekyll/jekyll
- HEAD
- refs/__temp__/8e7b6bf5ff56e6bb8d0f1019c19b351f1d600e39
- refs/heads/0.12.1-release
- refs/heads/1.0-branch
- refs/heads/1.2_branch
- refs/heads/3.0-stable
- refs/heads/3.1-stable
- refs/heads/3.10-stable
- refs/heads/3.4-stable
- refs/heads/3.4-stable-backport-5920
- refs/heads/3.5-stable
- refs/heads/3.6-stable
- refs/heads/3.7-stable
- refs/heads/3.8-stable
- refs/heads/3.9-allow-excerpt-to-render
- refs/heads/3.9-stable
- refs/heads/3.x-jekyll-sass-converter-2-support
- refs/heads/4.0-stable
- refs/heads/4.1-stable
- refs/heads/4.2-stable
- refs/heads/4.3-stable
- refs/heads/book
- refs/heads/cache-includes
- refs/heads/config-for-jekyll-env
- refs/heads/data-as-a-collection
- refs/heads/debug-7328
- refs/heads/dependabot/github_actions/check-spelling/check-spelling-0.0.22
- refs/heads/dependabot/github_actions/github/codeql-action-3
- refs/heads/docs-40
- refs/heads/docs/liquid-front-matter
- refs/heads/docs/redesign
- refs/heads/fix-4011-for-jekyll-3
- refs/heads/fix-contents-bug
- refs/heads/fix-more-theme-things
- refs/heads/gh-pages
- refs/heads/hooks
- refs/heads/johnkhughes-master
- refs/heads/json-payload-for-rendering-timings
- refs/heads/liquid5
- refs/heads/log-cache-hit
- refs/heads/make-it-an-error
- refs/heads/make-jekyll-parallel
- refs/heads/master
- refs/heads/max-cache
- refs/heads/no-dots-allowed
- refs/heads/no-liquid-cache
- refs/heads/pages-as-documents
- refs/heads/parkr-patch-1
- refs/heads/parkr/permalink-fix-master
- refs/heads/pull/markdownify-inline
- refs/heads/revert-8413-update-cucumber-to-5.1.2
- refs/heads/roadmap
- refs/heads/ruby-proxy-item-filters
- refs/heads/slash-eq-html
- refs/heads/stable-2-5
- refs/heads/test/pathutil-breakage
- refs/heads/unified-profile
- refs/heads/update-2-5-stable-with-tag
- refs/heads/url-drop-optimize
- refs/heads/v1-stable
- refs/heads/yajl-ruby-2-4-patch
- refs/remotes/kentonh/patch-1
- refs/tags/v0.1.3
- refs/tags/v0.1.4
- refs/tags/v0.1.5
- refs/tags/v0.1.6
- refs/tags/v0.10.0
- refs/tags/v0.11.0
- refs/tags/v0.11.1
- refs/tags/v0.11.2
- refs/tags/v0.12.0
- refs/tags/v0.12.1
- refs/tags/v0.2.0
- refs/tags/v0.2.1
- refs/tags/v0.3.0
- refs/tags/v0.4.0
- refs/tags/v0.4.1
- refs/tags/v0.4.4
- refs/tags/v0.4.5
- refs/tags/v0.5.0
- refs/tags/v0.5.4
- refs/tags/v0.5.5
- refs/tags/v0.5.6
- refs/tags/v0.5.7
- refs/tags/v0.6.0
- refs/tags/v0.6.1
- refs/tags/v0.6.2
- refs/tags/v0.7.0
- refs/tags/v0.8.0
- refs/tags/v0.9.0
- refs/tags/v1.0.0
- refs/tags/v1.0.0.beta1
- refs/tags/v1.0.0.beta2
- refs/tags/v1.0.0.beta3
- refs/tags/v1.0.0.beta4
- refs/tags/v1.0.0.rc1
- refs/tags/v1.0.1
- refs/tags/v1.0.2
- refs/tags/v1.0.3
- refs/tags/v1.0.4
- refs/tags/v1.1.0
- refs/tags/v1.1.1
- refs/tags/v1.1.2
- refs/tags/v1.2.0
- refs/tags/v1.2.1
- refs/tags/v1.3.0
- refs/tags/v1.3.0.rc
- refs/tags/v1.3.1
- refs/tags/v1.4.0
- refs/tags/v1.4.1
- refs/tags/v1.4.2
- refs/tags/v1.4.3
- refs/tags/v1.5.0
- refs/tags/v1.5.1
- refs/tags/v2.0.0
- refs/tags/v2.0.0.alpha.1
- refs/tags/v2.0.0.alpha.2
- refs/tags/v2.0.0.alpha.3
- refs/tags/v2.0.0.rc1
- refs/tags/v2.0.1
- refs/tags/v2.0.2
- refs/tags/v2.0.3
- refs/tags/v2.1.0
- refs/tags/v2.1.1
- refs/tags/v2.2.0
- refs/tags/v2.3.0
- refs/tags/v2.4.0
- refs/tags/v2.5.0
- refs/tags/v2.5.1
- refs/tags/v2.5.2
- refs/tags/v2.5.3
- refs/tags/v3.0.0
- refs/tags/v3.0.0.beta2
- refs/tags/v3.0.0.pre.beta10
- refs/tags/v3.0.0.pre.beta2
- refs/tags/v3.0.0.pre.beta3
- refs/tags/v3.0.0.pre.beta4
- refs/tags/v3.0.0.pre.beta5
- refs/tags/v3.0.0.pre.beta6
- refs/tags/v3.0.0.pre.beta7
- refs/tags/v3.0.0.pre.beta8
- refs/tags/v3.0.0.pre.beta9
- refs/tags/v3.0.0.pre.rc1
- refs/tags/v3.0.1
- refs/tags/v3.0.2
- refs/tags/v3.0.3
- refs/tags/v3.0.4
- refs/tags/v3.0.5
- refs/tags/v3.1.0.pre.beta1
- refs/tags/v3.1.0.pre.rc1
- refs/tags/v3.1.0.pre.rc2
- refs/tags/v3.1.0.pre.rc3
- refs/tags/v3.1.1
- refs/tags/v3.1.2
- refs/tags/v3.1.3
- refs/tags/v3.1.4
- refs/tags/v3.1.5
- refs/tags/v3.1.6
- refs/tags/v3.2.0
- refs/tags/v3.2.0.pre.beta1
- refs/tags/v3.2.0.pre.beta2
- refs/tags/v3.2.1
- refs/tags/v3.3.0
- refs/tags/v3.3.0.pre.rc1
- refs/tags/v3.3.1
- refs/tags/v3.4.0
- refs/tags/v3.4.1
- refs/tags/v3.4.2
- refs/tags/v3.4.4
- refs/tags/v3.4.5
- refs/tags/v3.5.0
- refs/tags/v3.5.1
- refs/tags/v3.5.2
- refs/tags/v3.6.0
- refs/tags/v3.6.0.pre.beta1
- refs/tags/v3.6.1
- refs/tags/v3.6.2
- refs/tags/v3.6.3
- refs/tags/v3.7.0
- refs/tags/v3.7.1
- refs/tags/v3.7.2
- refs/tags/v3.7.3
- refs/tags/v3.7.4
- refs/tags/v3.8.0
- refs/tags/v3.8.0.pre.rc1
- refs/tags/v3.8.0.pre.rc2
- refs/tags/v3.8.1
- refs/tags/v3.8.2
- refs/tags/v3.8.3
- refs/tags/v3.8.4
- refs/tags/v3.8.5
- refs/tags/v3.8.6
- refs/tags/v3.8.7
- refs/tags/v3.9.0
- refs/tags/v3.9.1
- refs/tags/v4.0.0
- refs/tags/v4.0.0.pre.alpha1
- refs/tags/v4.0.0.pre.beta1
- refs/tags/v4.0.1
- refs/tags/v4.1.0
- refs/tags/v4.1.1
- refs/tags/v4.2.0
- refs/tags/v4.2.1
Raw File
Take a new snapshot of a software origin
If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.
Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.Processing "take a new snapshot" request ...
Permalinks
To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.
Tip revision: 053acd31ac69f915d2e5035dac8a6c6e71ad413c authored by olivia on 25 January 2018, 18:34:49 UTC
Release :gem: 3.7.2
Release :gem: 3.7.2
Tip revision: 053acd3
capture-assign.rb
#!/usr/bin/env ruby
require "liquid"
require "benchmark/ips"
puts "Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
puts "Liquid #{Liquid::VERSION}"
template1 = '{% capture foobar %}foo{{ bar }}{% endcapture %}{{ foo }}{{ foobar }}'
template2 = '{% assign foobar = "foo" | append: bar %}{{ foobar }}'
def render(template)
Liquid::Template.parse(template).render("bar" => "42")
end
puts render(template1)
puts render(template2)
Benchmark.ips do |x|
x.report('capture') { render(template1) }
x.report('assign') { render(template2) }
end