bothan
bothan copied to clipboard
Bump haml from 4.0.7 to 5.0.0
Bumps haml from 4.0.7 to 5.0.0.
Changelog
Sourced from haml's changelog.
5.0.0
Released on April 26, 2017 (diff).
Breaking Changes
Haml now requires Ruby 2.0.0 or above.
Rails 3 is no longer supported, matching the official Maintenance Policy for Ruby on Rails. Use Haml 4 if you want to use Rails 3. (Tee Parham)
Remove
:uglyoption (#894)The
hamlcommand's debug option (-d) no longer executes the Haml code, but rather checks the generated Ruby syntax for errors.Drop parser/compiler accessor from
Haml::Engine. ModifyHaml::Engine#initializeoptions orHaml::Template.optionsinstead. (Takashi Kokubun)Drop dynamic quotes support and always escape
'forescape_html/escape_attrsinstead. Also, escaped results are slightly changed and always unified to the same characters. (Takashi Kokubun)Don't preserve newlines in attributes. (Takashi Kokubun)
HTML escape interpolated code in filters. #770 (Matt Wildig)
:javascript #{JSON.generate(foo: "bar")} Haml 4 output: {"foo":"bar"} Haml 5 output: {"foo":"bar"}Added
- Add a tracing option. When enabled, Haml will output a data-trace attribute on each tag showing the path to the source Haml file from which it was generated. Thanks Alex Babkin.
- Add
haml_tag_ifto render a block, conditionally wrapped in another element (Matt Wildig)- Support Rails 5.1 Erubi template handler.
- Support Sprockets 3. Thanks Sam Davies and Jeremy Venezia.
- General performance and memory usage improvements. (Akira Matsuda)
- Analyze attribute values by Ripper and render static attributes beforehand. (Takashi Kokubun)
- Optimize attribute rendering about 3x faster. (Takashi Kokubun)
- Add temple gem as dependency and create
Haml::TempleEngineclass. Some methods inHaml::Compilerare migrated toHaml::TempleEngine. (Takashi Kokubun)Fixed
... (truncated)
- Fix for attribute merging. When an attribute method (or literal nested hash) was used in an old style attribute hash and there is also a (non-static) new style hash there is an error. The fix can result in different behavior in some circumstances. See the commit message for detailed info. (Matt Wildig)
- Make escape_once respect hexadecimal references. (Matt Wildig)
Commits
78e2a09Version 5.0.0e5d6409Note about #770 in Haml 5 changes1bac6f9Remove JRuby from allow_failuresd45c2d4Add backslash for @ to support JRuby8f20707Enable frozen_string_literal pragma if possiblea6bb255Oops, this was not intentional...aa4c397Fix spec in #867 for pretty mode removal11af795Fallback to default value of preserve optionbbbeb7eUpdate CHANGELOG to include #867ed7f24fMerge pull request #867 from redoPop/atful-css- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot ignore this [patch|minor|major] versionwill close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.