brakeman 3.4.1 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +15 -0
- data/README.md +4 -2
- data/bin/brakeman +11 -1
- data/bundle/load.rb +6 -6
- data/bundle/ruby/2.3.0/gems/{ruby2ruby-2.3.1 → ruby2ruby-2.3.2}/History.txt +10 -0
- data/bundle/ruby/2.3.0/gems/{ruby2ruby-2.3.1 → ruby2ruby-2.3.2}/Manifest.txt +0 -0
- data/bundle/ruby/2.3.0/gems/{ruby2ruby-2.3.1 → ruby2ruby-2.3.2}/README.txt +0 -0
- data/bundle/ruby/2.3.0/gems/{ruby2ruby-2.3.1 → ruby2ruby-2.3.2}/Rakefile +1 -1
- data/bundle/ruby/2.3.0/gems/{ruby2ruby-2.3.1 → ruby2ruby-2.3.2}/bin/r2r_show +0 -0
- data/bundle/ruby/2.3.0/gems/{ruby2ruby-2.3.1 → ruby2ruby-2.3.2}/lib/ruby2ruby.rb +14 -9
- data/bundle/ruby/2.3.0/gems/{ruby2ruby-2.3.1 → ruby2ruby-2.3.2}/test/test_ruby2ruby.rb +173 -74
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3/History.txt → ruby_parser-3.8.4/History.rdoc} +8 -0
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/Manifest.txt +2 -2
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3/README.txt → ruby_parser-3.8.4/README.rdoc} +0 -0
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/Rakefile +1 -0
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/bin/ruby_parse +0 -0
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/bin/ruby_parse_extract_error +0 -0
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby18_parser.rb +1657 -1647
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby18_parser.y +2 -2
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby19_parser.rb +1632 -1636
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby19_parser.y +2 -2
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby20_parser.rb +1729 -1733
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby20_parser.y +3 -3
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby21_parser.rb +1849 -1853
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby21_parser.y +3 -3
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby22_parser.rb +1890 -1895
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby22_parser.y +3 -3
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby23_parser.rb +1807 -1808
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby23_parser.y +3 -3
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby_lexer.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby_lexer.rex +0 -0
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby_lexer.rex.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby_parser.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby_parser.yy +3 -3
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/lib/ruby_parser_extras.rb +2 -2
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/test/test_ruby_lexer.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/test/test_ruby_parser.rb +14 -0
- data/bundle/ruby/2.3.0/gems/{ruby_parser-3.8.3 → ruby_parser-3.8.4}/test/test_ruby_parser_extras.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/CODE_OF_CONDUCT.md +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/CONTRIBUTING.md +23 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/MIT-LICENSE +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/README.md +8 -8
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/REVISION +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/Rakefile +2 -10
- data/bundle/ruby/2.3.0/gems/sass-3.4.23/VERSION +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.23/VERSION_DATE +1 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/VERSION_NAME +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/bin/sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/bin/sass-convert +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/bin/scss +0 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.23/extra/sass-spec-ref.sh +32 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/extra/update_watch.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/init.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/cache_stores.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/cache_stores/base.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/cache_stores/chain.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/cache_stores/filesystem.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/cache_stores/memory.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/cache_stores/null.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/callbacks.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/css.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/engine.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/environment.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/error.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/exec.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/exec/base.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/exec/sass_convert.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/exec/sass_scss.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/features.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/importers.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/importers/base.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/importers/deprecated_path.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/importers/filesystem.rb +0 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/logger.rb +17 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/logger/base.rb +8 -2
- data/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/logger/delayed.rb +50 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/logger/log_level.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/media.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/plugin.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/plugin/compiler.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/plugin/configuration.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/plugin/generic.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/plugin/merb.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/plugin/rack.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/plugin/rails.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/plugin/staleness_checker.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/railtie.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/repl.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/root.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/css_lexer.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/css_parser.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/css_variable_warning.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/functions.rb +6 -3
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/lexer.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/parser.rb +13 -7
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/tree.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/tree/funcall.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/tree/interpolation.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/tree/list_literal.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/tree/literal.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/tree/map_literal.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/tree/node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/tree/operation.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/tree/selector.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/tree/string_interpolation.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/tree/unary_operation.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/tree/variable.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/value.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/value/arg_list.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/value/base.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/value/bool.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/value/color.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/value/helpers.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/value/list.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/value/map.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/value/null.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/value/number.rb +10 -8
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/script/value/string.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/scss.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/scss/css_parser.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/scss/parser.rb +23 -5
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/scss/rx.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/scss/static_parser.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/selector.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/selector/abstract_sequence.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/selector/comma_sequence.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/selector/pseudo.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/selector/sequence.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/selector/simple.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/selector/simple_sequence.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/shared.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/source/map.rb +3 -1
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/source/position.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/source/range.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/stack.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/supports.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/at_root_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/charset_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/comment_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/content_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/css_import_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/debug_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/directive_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/each_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/error_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/extend_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/for_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/function_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/if_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/import_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/keyframe_rule_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/media_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/mixin_def_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/mixin_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/prop_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/return_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/root_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/rule_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/supports_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/trace_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/variable_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/visitors/base.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/visitors/check_nesting.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/visitors/convert.rb +3 -1
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/visitors/cssize.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/visitors/deep_copy.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/visitors/extend.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/visitors/perform.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/visitors/set_options.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/visitors/to_css.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/warn_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/tree/while_node.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/util.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/util/cross_platform_random.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/util/multibyte_string_scanner.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/util/normalized_map.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/util/ordered_hash.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/util/subset_map.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/util/test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/lib/sass/version.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/rails/init.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass-spec.yml +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/cache_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/callbacks_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/compiler_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/conversion_test.rb +17 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/css2sass_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/css_variable_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/data/hsl-rgb.txt +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/encoding_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/engine_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/exec_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/extend_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/fixtures/test_staleness_check_across_importers.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/fixtures/test_staleness_check_across_importers.scss +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/functions_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/importer_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/logger_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/mock_importer.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/more_results/more1.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/more_results/more1_with_line_comments.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/more_results/more_import.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/more_templates/_more_partial.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/more_templates/more1.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/more_templates/more_import.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/plugin_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/alt.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/basic.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/cached_import_option.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/compact.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/complex.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/compressed.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/expanded.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/filename_fn.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/if.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/import.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/import_charset.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/import_charset_1_8.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/import_charset_ibm866.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/import_content.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/line_numbers.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/mixins.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/multiline.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/nested.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/options.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/parent_ref.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/script.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/scss_import.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/scss_importee.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/subdir/nested_subdir/nested_subdir.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/subdir/subdir.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/units.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/warn.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/results/warn_imported.css +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/script_conversion_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/script_test.rb +3 -3
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/scss/css_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/scss/rx_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/scss/scss_test.rb +33 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/scss/test_helper.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/source_map_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/superselector_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/_cached_import_option_partial.scss +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/_double_import_loop2.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/_filename_fn_import.scss +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/_imported_charset_ibm866.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/_imported_charset_utf8.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/_imported_content.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/_partial.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/_same_name_different_partiality.scss +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/alt.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/basic.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/bork1.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/bork2.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/bork3.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/bork4.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/bork5.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/cached_import_option.scss +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/compact.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/complex.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/compressed.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/double_import_loop1.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/expanded.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/filename_fn.scss +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/if.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/import.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/import_charset.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/import_charset_1_8.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/import_charset_ibm866.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/import_content.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/importee.less +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/importee.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/line_numbers.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/mixin_bork.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/mixins.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/multiline.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/nested.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/nested_bork1.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/nested_bork2.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/nested_bork3.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/nested_bork4.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/nested_import.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/nested_mixin_bork.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/options.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/parent_ref.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/same_name_different_ext.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/same_name_different_ext.scss +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/same_name_different_partiality.scss +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/script.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/scss_import.scss +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/scss_importee.scss +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/single_import_loop.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/subdir/import_up1.scss +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/subdir/import_up2.scss +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/subdir/subdir.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/units.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/warn.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/templates/warn_imported.sass +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/test_helper.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/util/multibyte_string_scanner_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/util/normalized_map_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/util/subset_map_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/util_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/sass/value_helpers_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/test/test_helper.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/CHANGELOG.md +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/CONTRIBUTING.md +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/Gemfile +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/Guardfile +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/LICENSE +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/README.md +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/Rakefile +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/Vagrantfile +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/lib/listen.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/lib/listen/adapter.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/lib/listen/adapters/bsd.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/lib/listen/adapters/darwin.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/lib/listen/adapters/linux.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/lib/listen/adapters/polling.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/lib/listen/adapters/windows.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/lib/listen/directory_record.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/lib/listen/listener.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/lib/listen/turnstile.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/lib/listen/version.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/listen.gemspec +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/listen/adapter_spec.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/listen/adapters/bsd_spec.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/listen/adapters/darwin_spec.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/listen/adapters/linux_spec.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/listen/adapters/polling_spec.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/listen/adapters/windows_spec.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/listen/directory_record_spec.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/listen/listener_spec.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/listen/turnstile_spec.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/listen_spec.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/spec_helper.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/support/adapter_helper.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/support/directory_record_helper.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/support/fixtures_helper.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/support/listeners_helper.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{sass-3.4.22 → sass-3.4.23}/vendor/listen/spec/support/platform_helper.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/CHANGELOG.md +13 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/COPYING +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/Gemfile +2 -2
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/HACKING +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/README.md +6 -2
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/Rakefile +1 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/bin/tilt +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/docs/TEMPLATES.md +1 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/docs/common.css +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt.rb +4 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/asciidoc.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/babel.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/bluecloth.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/builder.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/coffee.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/commonmarker.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/creole.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/csv.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/dummy.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/erb.rb +0 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.6/lib/tilt/erubi.rb +32 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/erubis.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/etanni.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/haml.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/kramdown.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/less.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/liquid.rb +7 -1
- data/bundle/ruby/2.3.0/gems/tilt-2.0.6/lib/tilt/livescript.rb +23 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/mapping.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/markaby.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/maruku.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/nokogiri.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/pandoc.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/plain.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/prawn.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/radius.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/rdiscount.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/rdoc.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/redcarpet.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/redcloth.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/rst-pandoc.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/sass.rb +0 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.6/lib/tilt/sigil.rb +34 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/string.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/template.rb +2 -8
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/typescript.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/wikicloth.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/lib/tilt/yajl.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/man/index.txt +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/man/tilt.1.ronn +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/markaby/locals.mab +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/markaby/markaby.mab +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/markaby/markaby_other_static.mab +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/markaby/render_twice.mab +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/markaby/scope.mab +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/markaby/yielding.mab +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/mytemplate.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/test_helper.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_asciidoctor_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_babeltemplate.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_blueclothtemplate_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_buildertemplate_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_cache_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_coffeescripttemplate_test.rb +2 -2
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_commonmarkertemplate_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_compilesite_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_creoletemplate_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_csv_test.rb +2 -2
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_erbtemplate_test.rb +4 -4
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_erubistemplate_test.rb +4 -4
- data/bundle/ruby/2.3.0/gems/tilt-2.0.6/test/tilt_erubitemplate_test.rb +158 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_etannitemplate_test.rb +4 -4
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_hamltemplate_test.rb +7 -7
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_kramdown_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_lesstemplate_test.less +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_lesstemplate_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_liquidtemplate_test.rb +10 -1
- data/bundle/ruby/2.3.0/gems/tilt-2.0.6/test/tilt_livescripttemplate_test.rb +37 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_mapping_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_markaby_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_markdown_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_marukutemplate_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_metadata_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_nokogiritemplate_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_pandoctemplate_test.rb +2 -2
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_prawntemplate.prawn +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_prawntemplate_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_radiustemplate_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_rdiscounttemplate_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_rdoctemplate_test.rb +4 -4
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_redcarpettemplate_test.rb +3 -3
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_redclothtemplate_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_rstpandoctemplate_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_sasstemplate_test.rb +1 -1
- data/bundle/ruby/2.3.0/gems/tilt-2.0.6/test/tilt_sigil_test.rb +41 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_stringtemplate_test.rb +4 -4
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_template_test.rb +6 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_typescript_test.rb +2 -2
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_wikiclothtemplate_test.rb +3 -3
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/test/tilt_yajltemplate_test.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{tilt-2.0.5 → tilt-2.0.6}/tilt.gemspec +8 -2
- data/bundle/ruby/2.3.0/gems/{unicode-display_width-1.1.1 → unicode-display_width-1.1.3}/CHANGELOG.txt +8 -0
- data/bundle/ruby/2.3.0/gems/{unicode-display_width-1.1.1 → unicode-display_width-1.1.3}/MIT-LICENSE.txt +1 -1
- data/bundle/ruby/2.3.0/gems/{unicode-display_width-1.1.1 → unicode-display_width-1.1.3}/README.md +1 -1
- data/bundle/ruby/2.3.0/gems/{unicode-display_width-1.1.1 → unicode-display_width-1.1.3}/Rakefile +0 -0
- data/bundle/ruby/2.3.0/gems/{unicode-display_width-1.1.1 → unicode-display_width-1.1.3}/data/display_width.marshal.gz +0 -0
- data/bundle/ruby/2.3.0/gems/{unicode-display_width-1.1.1 → unicode-display_width-1.1.3}/lib/unicode/display_width.rb +4 -2
- data/bundle/ruby/2.3.0/gems/{unicode-display_width-1.1.1 → unicode-display_width-1.1.3}/lib/unicode/display_width/constants.rb +1 -1
- data/bundle/ruby/2.3.0/gems/{unicode-display_width-1.1.1 → unicode-display_width-1.1.3}/lib/unicode/display_width/index.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{unicode-display_width-1.1.1 → unicode-display_width-1.1.3}/lib/unicode/display_width/no_string_ext.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{unicode-display_width-1.1.1 → unicode-display_width-1.1.3}/lib/unicode/display_width/string_ext.rb +0 -0
- data/bundle/ruby/2.3.0/gems/{unicode-display_width-1.1.1 → unicode-display_width-1.1.3}/spec/display_width_spec.rb +6 -0
- data/bundle/ruby/2.3.0/gems/{unicode-display_width-1.1.1 → unicode-display_width-1.1.3}/unicode-display_width.gemspec +0 -0
- data/lib/brakeman.rb +26 -2
- data/lib/brakeman/app_tree.rb +9 -4
- data/lib/brakeman/checks.rb +18 -0
- data/lib/brakeman/checks/check_sql.rb +32 -10
- data/lib/brakeman/options.rb +11 -3
- data/lib/brakeman/processors/controller_processor.rb +15 -1
- data/lib/brakeman/processors/library_processor.rb +12 -0
- data/lib/brakeman/report/report_table.rb +12 -5
- data/lib/brakeman/report/report_text.rb +11 -4
- data/lib/brakeman/tracker.rb +10 -0
- data/lib/brakeman/version.rb +1 -1
- data/lib/brakeman/warning.rb +1 -0
- metadata +458 -451
- data/WARNING_TYPES +0 -95
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION +0 -1
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION_DATE +0 -1
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c676c07132a5e5df3d4cf679ecc55ee25d27f8f
|
4
|
+
data.tar.gz: 637b645d451d50af8b7538962dfd807b6c8e71ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdcdfec84f0d1de46bb4b15ca356107eb64252b00462dc38a123582dacb528ed05a5d1097958ff49700be1b6ab41cfe952a59835840e924b9430c225d14ffa2d
|
7
|
+
data.tar.gz: 40ee357bdc5b71bac031cdc694819be263e79b21855f632aa1f8183e7d9276b1197fe9e6f928a67b3f4ba9535c8f4492dd7ff11af7fd2cf9a47442238b468290
|
data/CHANGES
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
# 3.5.0
|
2
|
+
|
3
|
+
* Allow `-t None`
|
4
|
+
* Fail on invalid checks specified by `-x` or `-t`
|
5
|
+
* Avoid warning about all, first, or last after Rails 4.0
|
6
|
+
* Avoid warning about models in SQLi
|
7
|
+
* Lower confidence of SQLi when maybe not on models
|
8
|
+
* Warn about SQLi even potentially on non-models
|
9
|
+
* Report check name in JSON and plain reports
|
10
|
+
* Treat templates without `.html` as HTML anyway
|
11
|
+
* Add `--ensure-latest` option (tamgrosser / Michael Grosser)
|
12
|
+
* Add `--no-summary` to hide summaries in HTML/text reports
|
13
|
+
* Handle `included` block in concerns
|
14
|
+
* Process concerns before controllers
|
15
|
+
|
1
16
|
# 3.4.1
|
2
17
|
|
3
18
|
* Show action help at start of interactive ignore
|
data/README.md
CHANGED
@@ -36,7 +36,9 @@ Outside of Rails root:
|
|
36
36
|
|
37
37
|
# Compatibility
|
38
38
|
|
39
|
-
Brakeman
|
39
|
+
Brakeman should work with any version of Rails from 2.3.x to 5.x.
|
40
|
+
|
41
|
+
Brakeman can analyze code written with Ruby 1.8 syntax and newer, but requires at least Ruby 1.9.3 to run.
|
40
42
|
|
41
43
|
# Basic Options
|
42
44
|
|
@@ -101,7 +103,7 @@ To create and manage this file, use:
|
|
101
103
|
|
102
104
|
# Warning information
|
103
105
|
|
104
|
-
See [
|
106
|
+
See [warning\_types](docs/warning_types) for more information on the warnings reported by this tool.
|
105
107
|
|
106
108
|
# Warning context
|
107
109
|
|
data/bin/brakeman
CHANGED
@@ -57,6 +57,13 @@ if options[:quiet].nil?
|
|
57
57
|
end
|
58
58
|
|
59
59
|
begin
|
60
|
+
if options[:ensure_latest]
|
61
|
+
if error = Brakeman.ensure_latest
|
62
|
+
warn error
|
63
|
+
exit Brakeman::Not_Latest_Version_Exit_Code
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
60
67
|
if options[:previous_results_json]
|
61
68
|
require 'json'
|
62
69
|
vulns = Brakeman.compare options.merge(:quiet => options[:quiet])
|
@@ -84,6 +91,9 @@ begin
|
|
84
91
|
end
|
85
92
|
end
|
86
93
|
rescue Brakeman::NoApplication => e
|
87
|
-
|
94
|
+
warn e.message
|
88
95
|
exit Brakeman::No_App_Found_Exit_Code
|
96
|
+
rescue Brakeman::MissingChecksError => e
|
97
|
+
warn e.message
|
98
|
+
exit Brakeman::Missing_Checks_Exit_Code
|
89
99
|
end
|
data/bundle/load.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
path = File.expand_path('../..', __FILE__)
|
2
|
+
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/sass-3.4.23/lib"
|
3
|
+
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/sass-3.4.23/vendor/listen/lib"
|
2
4
|
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/haml-4.0.7/lib"
|
3
5
|
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/highline-1.7.8/lib"
|
4
|
-
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/ruby_parser-3.8.3/lib"
|
5
6
|
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/terminal-table-1.7.3/lib"
|
6
7
|
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/temple-0.7.7/lib"
|
7
|
-
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/
|
8
|
+
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.2/lib"
|
9
|
+
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/tilt-2.0.6/lib"
|
8
10
|
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib"
|
9
11
|
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/slim-3.0.7/lib"
|
10
|
-
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/
|
11
|
-
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/
|
12
|
-
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib"
|
12
|
+
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/ruby_parser-3.8.4/lib"
|
13
|
+
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/unicode-display_width-1.1.3/lib"
|
13
14
|
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib"
|
14
15
|
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib"
|
15
|
-
$:.unshift "#{path}/bundle/ruby/2.3.0/gems/tilt-2.0.5/lib"
|
@@ -1,3 +1,13 @@
|
|
1
|
+
=== 2.3.2 / 2016-11-30
|
2
|
+
|
3
|
+
* 5 bug fixes:
|
4
|
+
|
5
|
+
* FINALLY fixed a problem with escaping in dstrs. (nex3)
|
6
|
+
* Fix using match3 on LHS of call. (eqv)
|
7
|
+
* Fixed handling defn that starts w/ begin+rescue+other stuff. (eqv)
|
8
|
+
* Fixed return expressions with complex RHS. (eqv)
|
9
|
+
* Tweaked sexp_processor dependency to ~> 4.6 to sync them better
|
10
|
+
|
1
11
|
=== 2.3.1 / 2016-10-09
|
2
12
|
|
3
13
|
* 1 minor enhancement:
|
File without changes
|
File without changes
|
File without changes
|
@@ -31,7 +31,7 @@ end
|
|
31
31
|
# Generate ruby code from a sexp.
|
32
32
|
|
33
33
|
class Ruby2Ruby < SexpProcessor
|
34
|
-
VERSION = "2.3.
|
34
|
+
VERSION = "2.3.2" # :nodoc:
|
35
35
|
|
36
36
|
# cutoff for one-liners
|
37
37
|
LINE_LENGTH = 78
|
@@ -50,6 +50,7 @@ class Ruby2Ruby < SexpProcessor
|
|
50
50
|
:flip3,
|
51
51
|
:lasgn,
|
52
52
|
:masgn,
|
53
|
+
:match3,
|
53
54
|
:attrasgn,
|
54
55
|
:op_asgn1,
|
55
56
|
:op_asgn2,
|
@@ -407,11 +408,13 @@ class Ruby2Ruby < SexpProcessor
|
|
407
408
|
body << process(exp.shift)
|
408
409
|
end
|
409
410
|
|
411
|
+
simple = body.size <= 1
|
412
|
+
|
410
413
|
body << "# do nothing" if body.empty?
|
411
414
|
body = body.join("\n")
|
412
415
|
body = body.lines.to_a[1..-2].join("\n") if
|
413
|
-
body =~ /^\Abegin/ && body =~ /^end\z/
|
414
|
-
body = indent(body) unless body =~ /(^|\n)rescue/
|
416
|
+
simple && body =~ /^\Abegin/ && body =~ /^end\z/
|
417
|
+
body = indent(body) unless simple && body =~ /(^|\n)rescue/
|
415
418
|
|
416
419
|
return "#{comm}def #{name}#{args}\n#{body}\nend".gsub(/\n\s*\n+/, "\n")
|
417
420
|
end
|
@@ -839,12 +842,14 @@ class Ruby2Ruby < SexpProcessor
|
|
839
842
|
end
|
840
843
|
|
841
844
|
def process_return(exp) # :nodoc:
|
842
|
-
# HACK return "return" + (exp.empty? ? "" : " #{process exp.shift}")
|
843
|
-
|
844
845
|
if exp.empty? then
|
845
|
-
|
846
|
+
"return"
|
846
847
|
else
|
847
|
-
|
848
|
+
rhs = exp.shift
|
849
|
+
rhs_type = rhs.sexp_type
|
850
|
+
rhs = process rhs
|
851
|
+
rhs = "(#{rhs})" if ASSIGN_NODES.include? rhs_type
|
852
|
+
"return #{rhs}"
|
848
853
|
end
|
849
854
|
end
|
850
855
|
|
@@ -1066,12 +1071,12 @@ class Ruby2Ruby < SexpProcessor
|
|
1066
1071
|
# Utility method to escape something interpolated.
|
1067
1072
|
|
1068
1073
|
def dthing_escape type, lit
|
1069
|
-
|
1074
|
+
# TODO: this needs more testing
|
1070
1075
|
case type
|
1071
1076
|
when :dregx then
|
1072
1077
|
lit.gsub(/(\A|[^\\])\//, '\1\/')
|
1073
1078
|
when :dstr, :dsym then
|
1074
|
-
lit.
|
1079
|
+
lit.dump[1..-2]
|
1075
1080
|
when :dxstr then
|
1076
1081
|
lit.gsub(/`/, '\`')
|
1077
1082
|
else
|
@@ -83,56 +83,56 @@ class TestRuby2Ruby < R2RTestCase
|
|
83
83
|
def test_hash_parens_str
|
84
84
|
inn = s(:hash, s(:lit, :k), s(:str, "banana"))
|
85
85
|
out = '{ :k => "banana" }'
|
86
|
-
|
86
|
+
assert_parse inn, out
|
87
87
|
end
|
88
88
|
|
89
89
|
def test_hash_parens_lit
|
90
90
|
inn = s(:hash, s(:lit, :k), s(:lit, 0.07))
|
91
91
|
out = "{ :k => 0.07 }"
|
92
|
-
|
92
|
+
assert_parse inn, out
|
93
93
|
end
|
94
94
|
|
95
95
|
def test_hash_parens_bool
|
96
96
|
inn = s(:hash, s(:lit, :k), s(:true))
|
97
97
|
out = "{ :k => true }"
|
98
|
-
|
98
|
+
assert_parse inn, out
|
99
99
|
end
|
100
100
|
|
101
101
|
def test_hash_parens_nil
|
102
102
|
inn = s(:hash, s(:lit, :k), s(:nil))
|
103
103
|
out = "{ :k => nil }"
|
104
|
-
|
104
|
+
assert_parse inn, out
|
105
105
|
end
|
106
106
|
|
107
107
|
def test_hash_parens_lvar
|
108
108
|
inn = s(:hash, s(:lit, :k), s(:lvar, :x))
|
109
109
|
out = "{ :k => x }"
|
110
|
-
|
110
|
+
assert_parse inn, out
|
111
111
|
end
|
112
112
|
|
113
113
|
def test_hash_parens_call
|
114
114
|
inn = s(:hash, s(:lit, :k), s(:call, nil, :foo, s(:lit, :bar)))
|
115
115
|
out = "{ :k => foo(:bar) }"
|
116
|
-
|
116
|
+
assert_parse inn, out
|
117
117
|
end
|
118
118
|
|
119
119
|
def test_hash_parens_iter
|
120
120
|
iter = s(:iter, s(:call, nil, :foo), 0, s(:str, "bar"))
|
121
121
|
inn = s(:hash, s(:lit, :k), iter)
|
122
122
|
out = '{ :k => (foo { "bar" }) }'
|
123
|
-
|
123
|
+
assert_parse inn, out
|
124
124
|
end
|
125
125
|
|
126
126
|
def test_and_alias
|
127
127
|
inn = s(:and, s(:true), s(:alias, s(:lit, :a), s(:lit, :b)))
|
128
128
|
out = "true and (alias :a :b)"
|
129
|
-
|
129
|
+
assert_parse inn, out
|
130
130
|
end
|
131
131
|
|
132
132
|
def test_attr_reader_diff
|
133
133
|
inn = s(:defn, :same, s(:args), s(:ivar, :@diff))
|
134
134
|
out = "def same\n @diff\nend"
|
135
|
-
|
135
|
+
assert_parse inn, out
|
136
136
|
end
|
137
137
|
|
138
138
|
def test_attr_reader_same
|
@@ -140,13 +140,13 @@ class TestRuby2Ruby < R2RTestCase
|
|
140
140
|
|
141
141
|
inn = s(:defn, :same, s(:args), s(:ivar, :@same))
|
142
142
|
out = "attr_reader :same"
|
143
|
-
|
143
|
+
assert_parse inn, out
|
144
144
|
end
|
145
145
|
|
146
146
|
def test_attr_reader_double
|
147
147
|
inn = s(:defn, :same, s(:args), s(:ivar, :@same), s(:ivar, :@diff))
|
148
148
|
out = "def same\n @same\n @diff\nend"
|
149
|
-
|
149
|
+
assert_parse inn, out
|
150
150
|
end
|
151
151
|
|
152
152
|
def test_attr_reader_same_name_diff_body
|
@@ -154,26 +154,126 @@ class TestRuby2Ruby < R2RTestCase
|
|
154
154
|
|
155
155
|
inn = s(:defn, :same, s(:args), s(:not, s(:ivar, :@same)))
|
156
156
|
out = "def same\n (not @same)\nend"
|
157
|
-
|
157
|
+
assert_parse inn, out
|
158
158
|
end
|
159
159
|
|
160
160
|
def test_attr_writer_diff
|
161
161
|
inn = s(:defn, :same=, s(:args, :o), s(:iasgn, :@diff, s(:lvar, :o)))
|
162
162
|
out = "def same=(o)\n @diff = o\nend"
|
163
|
-
|
163
|
+
assert_parse inn, out
|
164
|
+
end
|
165
|
+
|
166
|
+
def assert_str exp, src
|
167
|
+
assert_equal s(:str, exp), RubyParser.new.process(src)
|
168
|
+
end
|
169
|
+
|
170
|
+
def assert_dstr exp, int, src
|
171
|
+
assert_equal s(:dstr, exp, s(:evstr, int).compact), RubyParser.new.process(src)
|
172
|
+
end
|
173
|
+
|
174
|
+
def assert_r2r exp, sexp
|
175
|
+
assert_equal exp, Ruby2Ruby.new.process(sexp)
|
176
|
+
end
|
177
|
+
|
178
|
+
def assert_rt src, exp=src.dup
|
179
|
+
assert_equal exp, Ruby2Ruby.new.process(RubyParser.new.parse(src))
|
180
|
+
end
|
181
|
+
|
182
|
+
def test_bug_033
|
183
|
+
# gentle reminder to keep some sanity
|
184
|
+
#
|
185
|
+
# Use %q("...") for raw input strings
|
186
|
+
# Use %q(...) for raw output to avoid double-\'s
|
187
|
+
# Use %(...) for output strings
|
188
|
+
#
|
189
|
+
# don't use '...' at all
|
190
|
+
# only use "..." within sexps
|
191
|
+
|
192
|
+
# "\t"
|
193
|
+
assert_str %(\t), %q("\t")
|
194
|
+
assert_r2r %q("\\t"), s(:str, "\t")
|
195
|
+
assert_rt %q("\t")
|
196
|
+
|
197
|
+
# "\\t"
|
198
|
+
assert_str %(\t), %q("\\t")
|
199
|
+
assert_r2r %q("\\t"), s(:str, "\t")
|
200
|
+
assert_rt %q("\\t")
|
201
|
+
|
202
|
+
# "\\\\t"
|
203
|
+
assert_str %(\\t), %q("\\\\t")
|
204
|
+
assert_r2r %q("\\\\t"), s(:str, "\\t")
|
205
|
+
assert_rt %q("\\\\t")
|
206
|
+
|
207
|
+
# "\t#{}"
|
208
|
+
assert_dstr %(\t), nil, %q("\t#{}")
|
209
|
+
assert_r2r %q("\t#{}"), s(:dstr, "\t", s(:evstr))
|
210
|
+
assert_rt %q("\t#{}")
|
211
|
+
|
212
|
+
# "\\t#{}"
|
213
|
+
assert_dstr %(\t), nil, %q("\\t#{}")
|
214
|
+
assert_r2r %q("\\t#{}"), s(:dstr, "\t", s(:evstr))
|
215
|
+
assert_rt %q("\\t#{}")
|
216
|
+
|
217
|
+
# "\\\\t#{}"
|
218
|
+
assert_dstr %(\\t), nil, %q("\\\\t#{}")
|
219
|
+
assert_r2r %q("\\\\t#{}"), s(:dstr, "\\t", s(:evstr))
|
220
|
+
assert_rt %q("\\\\t#{}")
|
221
|
+
end
|
222
|
+
|
223
|
+
def test_bug_043
|
224
|
+
inn = s(:defn, :check, s(:args),
|
225
|
+
s(:rescue,
|
226
|
+
s(:call, nil, :foo),
|
227
|
+
s(:resbody, s(:array), s(:call, nil, :bar), s(:call, nil, :bar))),
|
228
|
+
s(:call, nil, :bar),
|
229
|
+
s(:if,
|
230
|
+
s(:call, nil, :foo),
|
231
|
+
s(:return, s(:call, nil, :bar)),
|
232
|
+
s(:call, nil, :bar)))
|
233
|
+
|
234
|
+
out = "def check\n begin\n foo\n rescue\n bar\n bar\n end\n bar\n if foo then\n return bar\n else\n bar\n end\nend"
|
235
|
+
|
236
|
+
assert_parse inn, out
|
237
|
+
end
|
238
|
+
|
239
|
+
def test_bug_044
|
240
|
+
inn = s(:if,
|
241
|
+
s(:call,
|
242
|
+
s(:match3, s(:lit, /a/), s(:call, nil, :foo)),
|
243
|
+
:or,
|
244
|
+
s(:call, nil, :bar)),
|
245
|
+
s(:call, nil, :puts, s(:call, nil, :bar)),
|
246
|
+
nil)
|
247
|
+
out = "puts(bar) if (foo =~ /a/).or(bar)"
|
248
|
+
|
249
|
+
assert_parse inn, out
|
250
|
+
end
|
251
|
+
|
252
|
+
def test_bug_045
|
253
|
+
# return foo.baaaaaaar ? ::B.newsss(true) : ::B.newadsfasdfasdfasdfasdsssss(false)
|
254
|
+
|
255
|
+
inn = s(:return,
|
256
|
+
s(:if,
|
257
|
+
s(:call, s(:call, nil, :foo), :baaaaaaar),
|
258
|
+
s(:call, s(:colon3, :B), :newsss, s(:true)),
|
259
|
+
s(:call, s(:colon3, :B), :newadsfasdfasdfasdfasdsssss, s(:false))))
|
260
|
+
|
261
|
+
out = "return (if foo.baaaaaaar then\n ::B.newsss(true)\nelse\n ::B.newadsfasdfasdfasdfasdsssss(false)\nend)"
|
262
|
+
|
263
|
+
assert_parse inn, out
|
164
264
|
end
|
165
265
|
|
166
266
|
def test_attr_writer_double
|
167
267
|
inn = s(:defn, :same=, s(:args, :o),
|
168
268
|
s(:iasgn, :@same, s(:lvar, :o)), s(:iasgn, :@diff, s(:lvar, :o)))
|
169
269
|
out = "def same=(o)\n @same = o\n @diff = o\nend"
|
170
|
-
|
270
|
+
assert_parse inn, out
|
171
271
|
end
|
172
272
|
|
173
273
|
def test_attr_writer_same_name_diff_body
|
174
274
|
inn = s(:defn, :same=, s(:args, :o), s(:iasgn, :@same, s(:lit, 42)))
|
175
275
|
out = "def same=(o)\n @same = 42\nend"
|
176
|
-
|
276
|
+
assert_parse inn, out
|
177
277
|
end
|
178
278
|
|
179
279
|
def test_attr_writer_same
|
@@ -181,7 +281,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
181
281
|
|
182
282
|
inn = s(:defn, :same=, s(:args, :o), s(:iasgn, :@same , s(:lvar, :o)))
|
183
283
|
out = "attr_writer :same"
|
184
|
-
|
284
|
+
assert_parse inn, out
|
185
285
|
end
|
186
286
|
|
187
287
|
def test_dregx_slash
|
@@ -189,32 +289,32 @@ class TestRuby2Ruby < R2RTestCase
|
|
189
289
|
|
190
290
|
inn = util_thingy(:dregx)
|
191
291
|
out = '/a"b#{(1 + 1)}c"d\/e/'
|
192
|
-
|
292
|
+
assert_parse inn, out, /a"b2c"d\/e/
|
193
293
|
end
|
194
294
|
|
195
295
|
def test_dstr_quote
|
196
296
|
inn = util_thingy(:dstr)
|
197
297
|
out = '"a\"b#{(1 + 1)}c\"d/e"'
|
198
|
-
|
298
|
+
assert_parse inn, out, 'a"b2c"d/e'
|
199
299
|
end
|
200
300
|
|
201
301
|
def test_dsym_quote
|
202
302
|
inn = util_thingy(:dsym)
|
203
303
|
out = ':"a\"b#{(1 + 1)}c\"d/e"'
|
204
|
-
|
304
|
+
assert_parse inn, out, :'a"b2c"d/e'
|
205
305
|
end
|
206
306
|
|
207
307
|
def test_lit_regexp_slash
|
208
308
|
do_not_check_sexp! # dunno why on this one
|
209
309
|
|
210
|
-
|
310
|
+
assert_parse s(:lit, /blah\/blah/), '/blah\/blah/', /blah\/blah/
|
211
311
|
end
|
212
312
|
|
213
313
|
def test_call_kwsplat
|
214
314
|
inn = s(:call, nil, :test_splat, s(:hash, s(:kwsplat, s(:call, nil, :testing))))
|
215
315
|
out = "test_splat(**testing)"
|
216
316
|
|
217
|
-
|
317
|
+
assert_parse inn, out
|
218
318
|
end
|
219
319
|
|
220
320
|
def test_call_arg_assoc_kwsplat
|
@@ -223,14 +323,14 @@ class TestRuby2Ruby < R2RTestCase
|
|
223
323
|
s(:hash, s(:lit, :kw), s(:lit, 2), s(:kwsplat, s(:lit, 3))))
|
224
324
|
out = "f(1, :kw => 2, **3)"
|
225
325
|
|
226
|
-
|
326
|
+
assert_parse inn, out
|
227
327
|
end
|
228
328
|
|
229
329
|
def test_call_kwsplat_x
|
230
330
|
inn = s(:call, nil, :a, s(:hash, s(:kwsplat, s(:lit, 1))))
|
231
331
|
out = "a(**1)"
|
232
332
|
|
233
|
-
|
333
|
+
assert_parse inn, out
|
234
334
|
end
|
235
335
|
|
236
336
|
def test_defn_kwargs
|
@@ -239,7 +339,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
239
339
|
s(:nil))
|
240
340
|
out = "def initialize(arg, keyword: nil, **args)\n # do nothing\nend"
|
241
341
|
|
242
|
-
|
342
|
+
assert_parse inn, out
|
243
343
|
end
|
244
344
|
|
245
345
|
def test_defn_kwargs2
|
@@ -251,20 +351,20 @@ class TestRuby2Ruby < R2RTestCase
|
|
251
351
|
s(:nil))
|
252
352
|
out = "def initialize(arg, kw1: nil, kw2: nil, **args)\n # do nothing\nend"
|
253
353
|
|
254
|
-
|
354
|
+
assert_parse inn, out
|
255
355
|
end
|
256
356
|
|
257
357
|
def test_call_self_index
|
258
|
-
|
358
|
+
assert_parse s(:call, nil, :[], s(:lit, 42)), "self[42]"
|
259
359
|
end
|
260
360
|
|
261
361
|
def test_call_self_index_equals
|
262
|
-
|
362
|
+
assert_parse(s(:attrasgn, s(:self), :[]=, s(:lit, 42), s(:lit, 24)),
|
263
363
|
"self[42] = 24")
|
264
364
|
end
|
265
365
|
|
266
366
|
def test_call_self_index_equals_array
|
267
|
-
|
367
|
+
assert_parse(s(:attrasgn, s(:self), :[]=, s(:lit, 1), s(:lit, 2), s(:lit, 3)),
|
268
368
|
"self[1, 2] = 3")
|
269
369
|
end
|
270
370
|
|
@@ -274,7 +374,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
274
374
|
s(:call, nil, :b))
|
275
375
|
out = "method({ :a => 1 }, b)"
|
276
376
|
|
277
|
-
|
377
|
+
assert_parse inn, out
|
278
378
|
end
|
279
379
|
|
280
380
|
def test_call_arglist_hash_first_last
|
@@ -284,7 +384,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
284
384
|
s(:hash, s(:lit, :c), s(:lit, 1)))
|
285
385
|
out = "method({ :a => 1 }, b, :c => 1)"
|
286
386
|
|
287
|
-
|
387
|
+
assert_parse inn, out
|
288
388
|
end
|
289
389
|
|
290
390
|
def test_call_arglist_hash_last
|
@@ -293,7 +393,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
293
393
|
s(:hash, s(:lit, :a), s(:lit, 1)))
|
294
394
|
out = "method(b, :a => 1)"
|
295
395
|
|
296
|
-
|
396
|
+
assert_parse inn, out
|
297
397
|
end
|
298
398
|
|
299
399
|
def test_call_arglist_if
|
@@ -306,7 +406,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
306
406
|
s(:call, nil, :d)))
|
307
407
|
|
308
408
|
out = "(a + (b ? (c) : (d)))"
|
309
|
-
|
409
|
+
assert_parse inn, out
|
310
410
|
end
|
311
411
|
|
312
412
|
def test_defn_kwsplat
|
@@ -337,7 +437,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
337
437
|
s(:evstr, s(:lvar, :b))))
|
338
438
|
out = 'nil.x { |(a, b)| "#{a}=#{b}" }'
|
339
439
|
|
340
|
-
|
440
|
+
assert_parse inn, out
|
341
441
|
end
|
342
442
|
|
343
443
|
def test_masgn_wtf
|
@@ -357,7 +457,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
357
457
|
|
358
458
|
out = "k, v = *line.split(/\\=/, 2)\nself[k] = v.strip\n"
|
359
459
|
|
360
|
-
|
460
|
+
assert_parse inn, out
|
361
461
|
end
|
362
462
|
|
363
463
|
def test_masgn_splat_wtf
|
@@ -369,14 +469,14 @@ class TestRuby2Ruby < R2RTestCase
|
|
369
469
|
:split,
|
370
470
|
s(:lit, /\=/), s(:lit, 2))))
|
371
471
|
out = 'k, v = *line.split(/\\=/, 2)'
|
372
|
-
|
472
|
+
assert_parse inn, out
|
373
473
|
end
|
374
474
|
|
375
475
|
def test_match3_asgn
|
376
476
|
inn = s(:match3, s(:lit, //), s(:lasgn, :y, s(:call, nil, :x)))
|
377
477
|
out = "(y = x) =~ //"
|
378
478
|
# "y = x =~ //", which matches on x and assigns to y (not what sexp says).
|
379
|
-
|
479
|
+
assert_parse inn, out
|
380
480
|
end
|
381
481
|
|
382
482
|
def test_safe_attrasgn
|
@@ -387,7 +487,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
387
487
|
|
388
488
|
out = "x&.y = 1"
|
389
489
|
|
390
|
-
|
490
|
+
assert_parse inn, out
|
391
491
|
end
|
392
492
|
|
393
493
|
def test_safe_call
|
@@ -399,7 +499,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
399
499
|
s(:lit, 1))
|
400
500
|
|
401
501
|
out ="x&.y&.z(1)"
|
402
|
-
|
502
|
+
assert_parse inn, out
|
403
503
|
end
|
404
504
|
|
405
505
|
def test_safe_call_binary
|
@@ -409,7 +509,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
409
509
|
s(:lit, 1))
|
410
510
|
|
411
511
|
out = "x&.>(1)"
|
412
|
-
|
512
|
+
assert_parse inn, out
|
413
513
|
end
|
414
514
|
|
415
515
|
def test_safe_op_asgn
|
@@ -420,7 +520,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
420
520
|
:+)
|
421
521
|
|
422
522
|
out = "x&.y += z(1)"
|
423
|
-
|
523
|
+
assert_parse inn, out
|
424
524
|
end
|
425
525
|
|
426
526
|
def test_safe_op_asgn2
|
@@ -431,7 +531,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
431
531
|
s(:lit, 1))
|
432
532
|
|
433
533
|
out = "x&.y ||= 1"
|
434
|
-
|
534
|
+
assert_parse inn, out
|
435
535
|
end
|
436
536
|
|
437
537
|
def test_splat_call
|
@@ -443,7 +543,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
443
543
|
s(:lit, /\=/), s(:lit, 2))))
|
444
544
|
|
445
545
|
out = 'x(*line.split(/\=/, 2))'
|
446
|
-
|
546
|
+
assert_parse inn, out
|
447
547
|
end
|
448
548
|
|
449
549
|
def test_resbody_block
|
@@ -455,7 +555,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
455
555
|
s(:call, nil, :x3)))
|
456
556
|
|
457
557
|
out = "begin\n x1\nrescue\n x2\n x3\nend"
|
458
|
-
|
558
|
+
assert_parse inn, out
|
459
559
|
end
|
460
560
|
|
461
561
|
def test_resbody_short_with_begin_end
|
@@ -464,7 +564,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
464
564
|
s(:call, nil, :blah),
|
465
565
|
s(:resbody, s(:array), s(:array)))
|
466
566
|
out = "blah rescue []"
|
467
|
-
|
567
|
+
assert_parse inn, out
|
468
568
|
end
|
469
569
|
|
470
570
|
def test_resbody_short_with_begin_end_multiple
|
@@ -475,7 +575,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
475
575
|
s(:call, nil, :log),
|
476
576
|
s(:call, nil, :raise)))
|
477
577
|
out = "begin\n blah\nrescue\n log\n raise\nend"
|
478
|
-
|
578
|
+
assert_parse inn, out
|
479
579
|
end
|
480
580
|
|
481
581
|
def test_resbody_short_with_defn_multiple
|
@@ -489,7 +589,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
489
589
|
s(:call, nil, :log),
|
490
590
|
s(:call, nil, :raise))))
|
491
591
|
out = "def foo\n a = 1\nrescue\n log\n raise\nend"
|
492
|
-
|
592
|
+
assert_parse inn, out
|
493
593
|
end
|
494
594
|
|
495
595
|
def test_regexp_options
|
@@ -501,7 +601,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
501
601
|
4),
|
502
602
|
s(:str, "a"))
|
503
603
|
out = '"a" =~ /abc#{x}def/m'
|
504
|
-
|
604
|
+
assert_parse inn, out
|
505
605
|
end
|
506
606
|
|
507
607
|
def test_resbody_short_with_rescue_args
|
@@ -509,7 +609,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
509
609
|
s(:call, nil, :blah),
|
510
610
|
s(:resbody, s(:array, s(:const, :A), s(:const, :B)), s(:array)))
|
511
611
|
out = "begin\n blah\nrescue A, B\n []\nend"
|
512
|
-
|
612
|
+
assert_parse inn, out
|
513
613
|
end
|
514
614
|
|
515
615
|
def test_call_binary_call_with_hash_arg
|
@@ -525,7 +625,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
525
625
|
|
526
626
|
out = "(args << { :key => 24 }) if 42"
|
527
627
|
|
528
|
-
|
628
|
+
assert_parse inn, out
|
529
629
|
end
|
530
630
|
|
531
631
|
def test_binary_operators
|
@@ -533,7 +633,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
533
633
|
Ruby2Ruby::BINARY.each do |op|
|
534
634
|
inn = s(:call, s(:lit, 1), op, s(:lit, 2))
|
535
635
|
out = "(1 #{op} 2)"
|
536
|
-
|
636
|
+
assert_parse inn, out
|
537
637
|
end
|
538
638
|
end
|
539
639
|
|
@@ -541,20 +641,20 @@ class TestRuby2Ruby < R2RTestCase
|
|
541
641
|
Ruby2Ruby::BINARY.each do |op|
|
542
642
|
inn = s(:call, s(:lvar, :x), op, s(:lit, 2), s(:lit, 3))
|
543
643
|
out = "x.#{op}(2, 3)"
|
544
|
-
|
644
|
+
assert_parse inn, out
|
545
645
|
end
|
546
646
|
end
|
547
647
|
|
548
648
|
def test_call_empty_hash
|
549
649
|
inn = s(:call, nil, :foo, s(:hash))
|
550
650
|
out = "foo({})"
|
551
|
-
|
651
|
+
assert_parse inn, out
|
552
652
|
end
|
553
653
|
|
554
654
|
def test_if_empty
|
555
655
|
inn = s(:if, s(:call, nil, :x), nil, nil)
|
556
656
|
out = "if x then\n # do nothing\nend"
|
557
|
-
|
657
|
+
assert_parse inn, out
|
558
658
|
end
|
559
659
|
|
560
660
|
def test_interpolation_and_escapes
|
@@ -565,60 +665,60 @@ class TestRuby2Ruby < R2RTestCase
|
|
565
665
|
s(:str, "m"),
|
566
666
|
s(:evstr, s(:call, nil, :message)),
|
567
667
|
s(:str, "\e[0m ")))
|
568
|
-
out = "log_entry = \"
|
668
|
+
out = "log_entry = \" \\e[#\{message_color}m#\{message}\\e[0m \""
|
569
669
|
|
570
|
-
|
670
|
+
assert_parse inn, out
|
571
671
|
end
|
572
672
|
|
573
673
|
def test_class_comments
|
574
674
|
inn = s(:class, :Z, nil)
|
575
675
|
inn.comments = "# x\n# y\n"
|
576
676
|
out = "# x\n# y\nclass Z\nend"
|
577
|
-
|
677
|
+
assert_parse inn, out
|
578
678
|
end
|
579
679
|
|
580
680
|
def test_module_comments
|
581
681
|
inn = s(:module, :Z)
|
582
682
|
inn.comments = "# x\n# y\n"
|
583
683
|
out = "# x\n# y\nmodule Z\nend"
|
584
|
-
|
684
|
+
assert_parse inn, out
|
585
685
|
end
|
586
686
|
|
587
687
|
def test_method_comments
|
588
688
|
inn = s(:defn, :z, s(:args), s(:nil))
|
589
689
|
inn.comments = "# x\n# y\n"
|
590
690
|
out = "# x\n# y\ndef z\n # do nothing\nend"
|
591
|
-
|
691
|
+
assert_parse inn, out
|
592
692
|
end
|
593
693
|
|
594
694
|
def test_basic_ensure
|
595
695
|
inn = s(:ensure, s(:lit, 1), s(:lit, 2))
|
596
696
|
out = "begin\n 1\nensure\n 2\nend"
|
597
|
-
|
697
|
+
assert_parse inn, out
|
598
698
|
end
|
599
699
|
|
600
700
|
def test_nested_ensure
|
601
701
|
inn = s(:ensure, s(:lit, 1), s(:ensure, s(:lit, 2), s(:lit, 3)))
|
602
702
|
out = "begin\n 1\nensure\n begin\n 2\n ensure\n 3\n end\nend"
|
603
|
-
|
703
|
+
assert_parse inn, out
|
604
704
|
end
|
605
705
|
|
606
706
|
def test_nested_rescue
|
607
707
|
inn = s(:ensure, s(:lit, 1), s(:rescue, s(:lit, 2), s(:resbody, s(:array), s(:lit, 3))))
|
608
708
|
out = "begin\n 1\nensure\n 2 rescue 3\nend"
|
609
|
-
|
709
|
+
assert_parse inn, out
|
610
710
|
end
|
611
711
|
|
612
712
|
def test_nested_rescue_exception
|
613
713
|
inn = s(:ensure, s(:lit, 1), s(:rescue, s(:lit, 2), s(:resbody, s(:array, s(:const, :Exception)), s(:lit, 3))))
|
614
714
|
out = "begin\n 1\nensure\n begin\n 2\n rescue Exception\n 3\n end\nend"
|
615
|
-
|
715
|
+
assert_parse inn, out
|
616
716
|
end
|
617
717
|
|
618
718
|
def test_nested_rescue_exception2
|
619
719
|
inn = s(:ensure, s(:rescue, s(:lit, 2), s(:resbody, s(:array, s(:const, :Exception)), s(:lit, 3))), s(:lit, 1))
|
620
720
|
out = "begin\n 2\nrescue Exception\n 3\nensure\n 1\nend"
|
621
|
-
|
721
|
+
assert_parse inn, out
|
622
722
|
end
|
623
723
|
|
624
724
|
def test_op_asgn
|
@@ -629,7 +729,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
629
729
|
:+)
|
630
730
|
|
631
731
|
out = "x.y += z(1)"
|
632
|
-
|
732
|
+
assert_parse inn, out
|
633
733
|
end
|
634
734
|
|
635
735
|
def test_rescue_block
|
@@ -639,7 +739,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
639
739
|
s(:call, nil, :beta),
|
640
740
|
s(:call, nil, :gamma)))
|
641
741
|
out = "begin\n alpha\nrescue\n beta\n gamma\nend"
|
642
|
-
|
742
|
+
assert_parse inn, out
|
643
743
|
end
|
644
744
|
|
645
745
|
def test_array_adds_parens_around_rescue
|
@@ -648,7 +748,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
648
748
|
s(:rescue, s(:call, nil, :b), s(:resbody, s(:array), s(:call, nil, :c))))
|
649
749
|
out = "[a, (b rescue c)]"
|
650
750
|
|
651
|
-
|
751
|
+
assert_parse inn, out
|
652
752
|
end
|
653
753
|
|
654
754
|
def test_call_arglist_rescue
|
@@ -659,7 +759,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
659
759
|
s(:call, nil, :a),
|
660
760
|
s(:resbody, s(:array), s(:call, nil, :b))))
|
661
761
|
out = "method((a rescue b))"
|
662
|
-
|
762
|
+
assert_parse inn, out
|
663
763
|
end
|
664
764
|
|
665
765
|
def test_unless_vs_if_not
|
@@ -667,14 +767,14 @@ class TestRuby2Ruby < R2RTestCase
|
|
667
767
|
rb2 = "a if (not b)"
|
668
768
|
rb3 = "a if ! b"
|
669
769
|
|
670
|
-
|
671
|
-
|
770
|
+
assert_parse Ruby18Parser.new.parse(rb1), rb1
|
771
|
+
assert_parse Ruby19Parser.new.parse(rb1), rb1
|
672
772
|
|
673
|
-
|
674
|
-
|
773
|
+
assert_parse Ruby18Parser.new.parse(rb2), rb1
|
774
|
+
assert_parse Ruby19Parser.new.parse(rb2), rb2
|
675
775
|
|
676
|
-
|
677
|
-
|
776
|
+
assert_parse Ruby18Parser.new.parse(rb3), rb1
|
777
|
+
assert_parse Ruby19Parser.new.parse(rb3), rb2
|
678
778
|
end
|
679
779
|
|
680
780
|
def assert_parse sexp, expected_ruby, expected_eval = nil
|
@@ -684,7 +784,6 @@ class TestRuby2Ruby < R2RTestCase
|
|
684
784
|
assert_equal expected_ruby, @processor.process(sexp), "sexp -> ruby"
|
685
785
|
assert_equal expected_eval, eval(expected_ruby) if expected_eval
|
686
786
|
end
|
687
|
-
alias util_compare assert_parse
|
688
787
|
|
689
788
|
def util_thingy(type)
|
690
789
|
s(type,
|