Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a nanoc filter for erubi #1103

Merged
merged 2 commits into from Mar 15, 2017
Merged

Add a nanoc filter for erubi #1103

merged 2 commits into from Mar 15, 2017

Conversation

@Fjan
Copy link
Contributor

@Fjan Fjan commented Mar 4, 2017

Add a nanoc filter for Erubi

To do

The test runs but Rubocop flags the use of eval. Erb / Erubis / Erubi all need to use eval, and can never be run on untrusted input, so I would suggest suppressing the warning.

Related issues

nanoc/features#8
#1096

@ddfreyne
Copy link
Member

@ddfreyne ddfreyne commented Mar 4, 2017

Update .rubocop to exclude the the Security/Eval check for this file:

Security/Eval:
  Exclude:
    - 'test/**/*.rb'
    - 'spec/**/*.rb'
    - 'lib/nanoc/base/entities/code_snippet.rb'
    - 'lib/nanoc/filters/erubi.rb'

Loading

@ddfreyne
Copy link
Member

@ddfreyne ddfreyne commented Mar 4, 2017

Looks good! I’ll release this as part of Nanoc 4.7.

Loading

@ddfreyne ddfreyne merged commit f3025e1 into nanoc:master Mar 15, 2017
1 check passed
Loading
@ddfreyne
Copy link
Member

@ddfreyne ddfreyne commented Mar 15, 2017

@Fjan I forgot to attribute you in the release notes for 4.7, but it’ll be rectified in the 4.7.1 release notes (see e753887). Sorry!

Loading

@Fjan
Copy link
Contributor Author

@Fjan Fjan commented Mar 15, 2017

Sure, no problem :-)

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants