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

Prevent tampering via reopening Parser elements #31

Merged
merged 2 commits into from
Sep 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ GIT
PATH
remote: .
specs:
console1984 (0.1.13)
console1984 (0.1.14)
colorize
parser

Expand Down
1 change: 1 addition & 0 deletions config/protections.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ validations:
- PG
- Mysql2
- IRB
- Parser
forbidden_constant_reference:
always:
- Console1984
Expand Down
2 changes: 1 addition & 1 deletion lib/console1984/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Console1984
VERSION = '0.1.13'
VERSION = '0.1.14'
end
5 changes: 5 additions & 0 deletions test/tampering_cases/override_parser.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ::Parser::AST::Processor
def on_const(node)
[:String]
end
end