brakeman 5.0.0 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +9 -0
- data/README.md +10 -1
- data/bundle/load.rb +1 -1
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/LICENSE.txt +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/NEWS.md +37 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/README.md +2 -14
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml.rb +3 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/attlistdecl.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/attribute.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/cdata.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/child.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/comment.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/doctype.rb +55 -31
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/document.rb +194 -34
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/dtd/attlistdecl.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/dtd/dtd.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/dtd/elementdecl.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/dtd/entitydecl.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/dtd/notationdecl.rb +0 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/element.rb +2599 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/encoding.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/entity.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/formatters/default.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/formatters/pretty.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/formatters/transitive.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/functions.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/instruction.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/light/node.rb +0 -8
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/namespace.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/node.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/output.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/parent.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/parseexception.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/parsers/baseparser.rb +139 -39
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/parsers/lightparser.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/parsers/pullparser.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/parsers/sax2parser.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/parsers/streamparser.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/parsers/treeparser.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/parsers/ultralightparser.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/parsers/xpathparser.rb +25 -11
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/quickpath.rb +0 -0
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/rexml.rb +37 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/sax2listener.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/security.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/source.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/streamlistener.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/text.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/undefinednamespaceexception.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/validation/relaxng.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/validation/validation.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/validation/validationexception.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/xmldecl.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/xmltokens.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/xpath.rb +0 -0
- data/bundle/ruby/2.7.0/gems/{rexml-3.2.4 → rexml-3.2.5}/lib/rexml/xpath_parser.rb +36 -30
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/debugging.md +133 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby20_parser.rb +2550 -2537
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby20_parser.y +9 -1
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby21_parser.rb +2717 -2709
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby21_parser.y +9 -1
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby22_parser.rb +2662 -2637
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby22_parser.y +9 -1
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby23_parser.rb +2585 -2561
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby23_parser.y +9 -1
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby24_parser.rb +2622 -2607
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby24_parser.y +9 -1
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby25_parser.rb +2612 -2598
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby25_parser.y +9 -1
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby26_parser.rb +2610 -2594
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby26_parser.y +10 -1
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby27_parser.rb +3446 -3312
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby27_parser.y +47 -1
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_lexer.rb +19 -0
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_lexer.rex +1 -1
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_lexer.rex.rb +1 -1
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_parser.yy +55 -1
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/tools/munge.rb +2 -2
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/tools/ripper.rb +1 -1
- data/lib/brakeman.rb +11 -4
- data/lib/brakeman/checks/check_mass_assignment.rb +4 -6
- data/lib/brakeman/parsers/template_parser.rb +24 -0
- data/lib/brakeman/processors/alias_processor.rb +21 -10
- data/lib/brakeman/processors/base_processor.rb +4 -4
- data/lib/brakeman/processors/lib/rails4_config_processor.rb +2 -1
- data/lib/brakeman/version.rb +1 -1
- metadata +55 -56
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/Gemfile +0 -6
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/element.rb +0 -1269
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/rexml.rb +0 -32
- data/bundle/ruby/2.7.0/gems/rexml-3.2.4/rexml.gemspec +0 -84
@@ -1,32 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
# frozen_string_literal: false
|
3
|
-
# REXML is an XML toolkit for Ruby[http://www.ruby-lang.org], in Ruby.
|
4
|
-
#
|
5
|
-
# REXML is a _pure_ Ruby, XML 1.0 conforming,
|
6
|
-
# non-validating[http://www.w3.org/TR/2004/REC-xml-20040204/#sec-conformance]
|
7
|
-
# toolkit with an intuitive API. REXML passes 100% of the non-validating Oasis
|
8
|
-
# tests[http://www.oasis-open.org/committees/xml-conformance/xml-test-suite.shtml],
|
9
|
-
# and provides tree, stream, SAX2, pull, and lightweight APIs. REXML also
|
10
|
-
# includes a full XPath[http://www.w3c.org/tr/xpath] 1.0 implementation. Since
|
11
|
-
# Ruby 1.8, REXML is included in the standard Ruby distribution.
|
12
|
-
#
|
13
|
-
# Main page:: http://www.germane-software.com/software/rexml
|
14
|
-
# Author:: Sean Russell <serATgermaneHYPHENsoftwareDOTcom>
|
15
|
-
# Date:: 2008/019
|
16
|
-
# Version:: 3.1.7.3
|
17
|
-
#
|
18
|
-
# This API documentation can be downloaded from the REXML home page, or can
|
19
|
-
# be accessed online[http://www.germane-software.com/software/rexml_doc]
|
20
|
-
#
|
21
|
-
# A tutorial is available in the REXML distribution in docs/tutorial.html,
|
22
|
-
# or can be accessed
|
23
|
-
# online[http://www.germane-software.com/software/rexml/docs/tutorial.html]
|
24
|
-
module REXML
|
25
|
-
COPYRIGHT = "Copyright © 2001-2008 Sean Russell <ser@germane-software.com>"
|
26
|
-
DATE = "2008/019"
|
27
|
-
VERSION = "3.2.4"
|
28
|
-
REVISION = ""
|
29
|
-
|
30
|
-
Copyright = COPYRIGHT
|
31
|
-
Version = VERSION
|
32
|
-
end
|
@@ -1,84 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require_relative "lib/rexml/rexml"
|
3
|
-
rescue LoadError
|
4
|
-
# for Ruby core repository
|
5
|
-
require_relative "rexml"
|
6
|
-
end
|
7
|
-
|
8
|
-
Gem::Specification.new do |spec|
|
9
|
-
spec.name = "rexml"
|
10
|
-
spec.version = REXML::VERSION
|
11
|
-
spec.authors = ["Kouhei Sutou"]
|
12
|
-
spec.email = ["kou@cozmixng.org"]
|
13
|
-
|
14
|
-
spec.summary = %q{An XML toolkit for Ruby}
|
15
|
-
spec.description = %q{An XML toolkit for Ruby}
|
16
|
-
spec.homepage = "https://github.com/ruby/rexml"
|
17
|
-
spec.license = "BSD-2-Clause"
|
18
|
-
|
19
|
-
spec.files = [
|
20
|
-
".gitignore",
|
21
|
-
".travis.yml",
|
22
|
-
"Gemfile",
|
23
|
-
"LICENSE.txt",
|
24
|
-
"NEWS.md",
|
25
|
-
"README.md",
|
26
|
-
"Rakefile",
|
27
|
-
"lib/rexml/attlistdecl.rb",
|
28
|
-
"lib/rexml/attribute.rb",
|
29
|
-
"lib/rexml/cdata.rb",
|
30
|
-
"lib/rexml/child.rb",
|
31
|
-
"lib/rexml/comment.rb",
|
32
|
-
"lib/rexml/doctype.rb",
|
33
|
-
"lib/rexml/document.rb",
|
34
|
-
"lib/rexml/dtd/attlistdecl.rb",
|
35
|
-
"lib/rexml/dtd/dtd.rb",
|
36
|
-
"lib/rexml/dtd/elementdecl.rb",
|
37
|
-
"lib/rexml/dtd/entitydecl.rb",
|
38
|
-
"lib/rexml/dtd/notationdecl.rb",
|
39
|
-
"lib/rexml/element.rb",
|
40
|
-
"lib/rexml/encoding.rb",
|
41
|
-
"lib/rexml/entity.rb",
|
42
|
-
"lib/rexml/formatters/default.rb",
|
43
|
-
"lib/rexml/formatters/pretty.rb",
|
44
|
-
"lib/rexml/formatters/transitive.rb",
|
45
|
-
"lib/rexml/functions.rb",
|
46
|
-
"lib/rexml/instruction.rb",
|
47
|
-
"lib/rexml/light/node.rb",
|
48
|
-
"lib/rexml/namespace.rb",
|
49
|
-
"lib/rexml/node.rb",
|
50
|
-
"lib/rexml/output.rb",
|
51
|
-
"lib/rexml/parent.rb",
|
52
|
-
"lib/rexml/parseexception.rb",
|
53
|
-
"lib/rexml/parsers/baseparser.rb",
|
54
|
-
"lib/rexml/parsers/lightparser.rb",
|
55
|
-
"lib/rexml/parsers/pullparser.rb",
|
56
|
-
"lib/rexml/parsers/sax2parser.rb",
|
57
|
-
"lib/rexml/parsers/streamparser.rb",
|
58
|
-
"lib/rexml/parsers/treeparser.rb",
|
59
|
-
"lib/rexml/parsers/ultralightparser.rb",
|
60
|
-
"lib/rexml/parsers/xpathparser.rb",
|
61
|
-
"lib/rexml/quickpath.rb",
|
62
|
-
"lib/rexml/rexml.rb",
|
63
|
-
"lib/rexml/sax2listener.rb",
|
64
|
-
"lib/rexml/security.rb",
|
65
|
-
"lib/rexml/source.rb",
|
66
|
-
"lib/rexml/streamlistener.rb",
|
67
|
-
"lib/rexml/text.rb",
|
68
|
-
"lib/rexml/undefinednamespaceexception.rb",
|
69
|
-
"lib/rexml/validation/relaxng.rb",
|
70
|
-
"lib/rexml/validation/validation.rb",
|
71
|
-
"lib/rexml/validation/validationexception.rb",
|
72
|
-
"lib/rexml/xmldecl.rb",
|
73
|
-
"lib/rexml/xmltokens.rb",
|
74
|
-
"lib/rexml/xpath.rb",
|
75
|
-
"lib/rexml/xpath_parser.rb",
|
76
|
-
"rexml.gemspec",
|
77
|
-
]
|
78
|
-
spec.bindir = "exe"
|
79
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
80
|
-
spec.require_paths = ["lib"]
|
81
|
-
|
82
|
-
spec.add_development_dependency "bundler"
|
83
|
-
spec.add_development_dependency "rake"
|
84
|
-
end
|