cssesc-source 0.1.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -13
- data/vendor/LICENSE-MIT.txt +1 -1
- data/vendor/README.md +44 -50
- data/vendor/bin/cssesc +103 -109
- data/vendor/cssesc.js +114 -161
- data/vendor/man/cssesc.1 +2 -2
- data/vendor/package-lock.json +1664 -0
- data/vendor/package.json +47 -54
- metadata +9 -908
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/MIT-LICENSE.txt +0 -21
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/README.md +0 -43
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/bin/stripcolorcodes.js +0 -18
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/index.js +0 -3
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/package.json +0 -42
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/test/fixture/with-colors +0 -2
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/test/fixture/without-colors +0 -2
- data/vendor/node_modules/grunt-shell/node_modules/stripcolorcodes/test/stripcolorcodes-test.js +0 -20
- data/vendor/node_modules/grunt-shell/package.json +0 -53
- data/vendor/node_modules/grunt-shell/readme.md +0 -221
- data/vendor/node_modules/grunt-shell/tasks/shell.js +0 -54
- data/vendor/node_modules/grunt-template/LICENSE-MIT.txt +0 -20
- data/vendor/node_modules/grunt-template/README.md +0 -123
- data/vendor/node_modules/grunt-template/package.json +0 -50
- data/vendor/node_modules/grunt-template/tasks/template.js +0 -44
- data/vendor/node_modules/grunt/CONTRIBUTING.md +0 -1
- data/vendor/node_modules/grunt/LICENSE-MIT +0 -22
- data/vendor/node_modules/grunt/README.md +0 -16
- data/vendor/node_modules/grunt/internal-tasks/bump.js +0 -151
- data/vendor/node_modules/grunt/internal-tasks/subgrunt.js +0 -34
- data/vendor/node_modules/grunt/lib/grunt.js +0 -156
- data/vendor/node_modules/grunt/lib/grunt/cli.js +0 -128
- data/vendor/node_modules/grunt/lib/grunt/config.js +0 -118
- data/vendor/node_modules/grunt/lib/grunt/event.js +0 -16
- data/vendor/node_modules/grunt/lib/grunt/fail.js +0 -84
- data/vendor/node_modules/grunt/lib/grunt/file.js +0 -440
- data/vendor/node_modules/grunt/lib/grunt/help.js +0 -129
- data/vendor/node_modules/grunt/lib/grunt/log.js +0 -352
- data/vendor/node_modules/grunt/lib/grunt/option.js +0 -42
- data/vendor/node_modules/grunt/lib/grunt/task.js +0 -451
- data/vendor/node_modules/grunt/lib/grunt/template.js +0 -95
- data/vendor/node_modules/grunt/lib/grunt/util.js +0 -188
- data/vendor/node_modules/grunt/lib/util/task.js +0 -323
- data/vendor/node_modules/grunt/node_modules/async/LICENSE +0 -19
- data/vendor/node_modules/grunt/node_modules/async/Makefile +0 -25
- data/vendor/node_modules/grunt/node_modules/async/README.md +0 -1021
- data/vendor/node_modules/grunt/node_modules/async/index.js +0 -3
- data/vendor/node_modules/grunt/node_modules/async/lib/async.js +0 -692
- data/vendor/node_modules/grunt/node_modules/async/package.json +0 -32
- data/vendor/node_modules/grunt/node_modules/coffee-script/CNAME +0 -1
- data/vendor/node_modules/grunt/node_modules/coffee-script/LICENSE +0 -22
- data/vendor/node_modules/grunt/node_modules/coffee-script/README +0 -51
- data/vendor/node_modules/grunt/node_modules/coffee-script/Rakefile +0 -78
- data/vendor/node_modules/grunt/node_modules/coffee-script/bin/cake +0 -7
- data/vendor/node_modules/grunt/node_modules/coffee-script/bin/coffee +0 -7
- data/vendor/node_modules/grunt/node_modules/coffee-script/extras/jsl.conf +0 -44
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/browser.js +0 -92
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/cake.js +0 -111
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/coffee-script.js +0 -167
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/command.js +0 -500
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/grammar.js +0 -606
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/helpers.js +0 -77
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/index.js +0 -11
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/lexer.js +0 -788
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/nodes.js +0 -2986
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/optparse.js +0 -138
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/parser.js +0 -683
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/repl.js +0 -261
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/rewriter.js +0 -349
- data/vendor/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/scope.js +0 -146
- data/vendor/node_modules/grunt/node_modules/coffee-script/package.json +0 -47
- data/vendor/node_modules/grunt/node_modules/colors/MIT-LICENSE.txt +0 -22
- data/vendor/node_modules/grunt/node_modules/colors/ReadMe.md +0 -77
- data/vendor/node_modules/grunt/node_modules/colors/colors.js +0 -342
- data/vendor/node_modules/grunt/node_modules/colors/example.html +0 -76
- data/vendor/node_modules/grunt/node_modules/colors/example.js +0 -77
- data/vendor/node_modules/grunt/node_modules/colors/package.json +0 -29
- data/vendor/node_modules/grunt/node_modules/colors/test.js +0 -70
- data/vendor/node_modules/grunt/node_modules/colors/themes/winston-dark.js +0 -12
- data/vendor/node_modules/grunt/node_modules/colors/themes/winston-light.js +0 -12
- data/vendor/node_modules/grunt/node_modules/dateformat/Readme.md +0 -67
- data/vendor/node_modules/grunt/node_modules/dateformat/lib/dateformat.js +0 -165
- data/vendor/node_modules/grunt/node_modules/dateformat/package.json +0 -20
- data/vendor/node_modules/grunt/node_modules/dateformat/test/test_weekofyear.js +0 -4
- data/vendor/node_modules/grunt/node_modules/dateformat/test/test_weekofyear.sh +0 -27
- data/vendor/node_modules/grunt/node_modules/eventemitter2/README.md +0 -212
- data/vendor/node_modules/grunt/node_modules/eventemitter2/index.js +0 -1
- data/vendor/node_modules/grunt/node_modules/eventemitter2/lib/eventemitter2.js +0 -561
- data/vendor/node_modules/grunt/node_modules/eventemitter2/package.json +0 -62
- data/vendor/node_modules/grunt/node_modules/exit/Gruntfile.js +0 -48
- data/vendor/node_modules/grunt/node_modules/exit/LICENSE-MIT +0 -22
- data/vendor/node_modules/grunt/node_modules/exit/README.md +0 -75
- data/vendor/node_modules/grunt/node_modules/exit/lib/exit.js +0 -41
- data/vendor/node_modules/grunt/node_modules/exit/package.json +0 -51
- data/vendor/node_modules/grunt/node_modules/exit/test/exit_test.js +0 -121
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/10-stderr.txt +0 -10
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/10-stdout-stderr.txt +0 -20
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/10-stdout.txt +0 -10
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/100-stderr.txt +0 -100
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/100-stdout-stderr.txt +0 -200
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/100-stdout.txt +0 -100
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/1000-stderr.txt +0 -1000
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/1000-stdout-stderr.txt +0 -2000
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/1000-stdout.txt +0 -1000
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/create-files.sh +0 -8
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/log-broken.js +0 -23
- data/vendor/node_modules/grunt/node_modules/exit/test/fixtures/log.js +0 -25
- data/vendor/node_modules/grunt/node_modules/findup-sync/Gruntfile.js +0 -25
- data/vendor/node_modules/grunt/node_modules/findup-sync/LICENSE-MIT +0 -22
- data/vendor/node_modules/grunt/node_modules/findup-sync/README.md +0 -44
- data/vendor/node_modules/grunt/node_modules/findup-sync/lib/findup-sync.js +0 -46
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/README.md +0 -164
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.compat.js +0 -5152
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.compat.min.js +0 -42
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.js +0 -4983
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.min.js +0 -40
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.underscore.js +0 -4307
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/dist/lodash.underscore.min.js +0 -34
- data/vendor/node_modules/grunt/node_modules/findup-sync/node_modules/lodash/package.json +0 -62
- data/vendor/node_modules/grunt/node_modules/findup-sync/package.json +0 -48
- data/vendor/node_modules/grunt/node_modules/findup-sync/test/findup-sync_test.js +0 -48
- data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/a.txt +0 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/a/b/bar.txt +0 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/a/foo.txt +0 -0
- data/vendor/node_modules/grunt/node_modules/findup-sync/test/fixtures/aaa.txt +0 -0
- data/vendor/node_modules/grunt/node_modules/getobject/Gruntfile.js +0 -48
- data/vendor/node_modules/grunt/node_modules/getobject/LICENSE-MIT +0 -22
- data/vendor/node_modules/grunt/node_modules/getobject/README.md +0 -20
- data/vendor/node_modules/grunt/node_modules/getobject/lib/getobject.js +0 -60
- data/vendor/node_modules/grunt/node_modules/getobject/package.json +0 -48
- data/vendor/node_modules/grunt/node_modules/getobject/test/namespace_test.js +0 -51
- data/vendor/node_modules/grunt/node_modules/glob/LICENSE +0 -27
- data/vendor/node_modules/grunt/node_modules/glob/README.md +0 -233
- data/vendor/node_modules/grunt/node_modules/glob/examples/g.js +0 -9
- data/vendor/node_modules/grunt/node_modules/glob/examples/usr-local.js +0 -9
- data/vendor/node_modules/grunt/node_modules/glob/glob.js +0 -643
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/LICENSE +0 -27
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/README.md +0 -33
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/graceful-fs.js +0 -442
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/package.json +0 -49
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/test/open.js +0 -46
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/test/ulimit.js +0 -158
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/inherits/README.md +0 -51
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/inherits/inherits.js +0 -29
- data/vendor/node_modules/grunt/node_modules/glob/node_modules/inherits/package.json +0 -30
- data/vendor/node_modules/grunt/node_modules/glob/package.json +0 -40
- data/vendor/node_modules/grunt/node_modules/glob/test/00-setup.js +0 -176
- data/vendor/node_modules/grunt/node_modules/glob/test/bash-comparison.js +0 -63
- data/vendor/node_modules/grunt/node_modules/glob/test/bash-results.json +0 -348
- data/vendor/node_modules/grunt/node_modules/glob/test/cwd-test.js +0 -55
- data/vendor/node_modules/grunt/node_modules/glob/test/mark.js +0 -74
- data/vendor/node_modules/grunt/node_modules/glob/test/nocase-nomagic.js +0 -113
- data/vendor/node_modules/grunt/node_modules/glob/test/pause-resume.js +0 -73
- data/vendor/node_modules/grunt/node_modules/glob/test/root-nomount.js +0 -39
- data/vendor/node_modules/grunt/node_modules/glob/test/root.js +0 -46
- data/vendor/node_modules/grunt/node_modules/glob/test/zz-cleanup.js +0 -11
- data/vendor/node_modules/grunt/node_modules/hooker/LICENSE-MIT +0 -22
- data/vendor/node_modules/grunt/node_modules/hooker/README.md +0 -186
- data/vendor/node_modules/grunt/node_modules/hooker/child.js +0 -101
- data/vendor/node_modules/grunt/node_modules/hooker/dist/ba-hooker.js +0 -169
- data/vendor/node_modules/grunt/node_modules/hooker/dist/ba-hooker.min.js +0 -4
- data/vendor/node_modules/grunt/node_modules/hooker/grunt.js +0 -47
- data/vendor/node_modules/grunt/node_modules/hooker/lib/hooker.js +0 -174
- data/vendor/node_modules/grunt/node_modules/hooker/package.json +0 -45
- data/vendor/node_modules/grunt/node_modules/hooker/parent.js +0 -17
- data/vendor/node_modules/grunt/node_modules/hooker/test/hooker_test.js +0 -435
- data/vendor/node_modules/grunt/node_modules/iconv-lite/LICENSE +0 -21
- data/vendor/node_modules/grunt/node_modules/iconv-lite/README.md +0 -72
- data/vendor/node_modules/grunt/node_modules/iconv-lite/README.md~ +0 -54
- data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/big5.js +0 -9
- data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/gbk.js +0 -9
- data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/singlebyte.js +0 -340
- data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/table/big5.js +0 -1
- data/vendor/node_modules/grunt/node_modules/iconv-lite/encodings/table/gbk.js +0 -1
- data/vendor/node_modules/grunt/node_modules/iconv-lite/generation/generate-big5-table.js +0 -25
- data/vendor/node_modules/grunt/node_modules/iconv-lite/generation/generate-singlebyte.js +0 -142
- data/vendor/node_modules/grunt/node_modules/iconv-lite/index.js +0 -231
- data/vendor/node_modules/grunt/node_modules/iconv-lite/package.json +0 -80
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/big5-test.js +0 -36
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/big5File.txt +0 -13
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/cyrillic-test.js +0 -86
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/gbk-test.js +0 -38
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/gbkFile.txt +0 -14
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/greek-test.js +0 -79
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/main-test.js +0 -55
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/performance.js +0 -67
- data/vendor/node_modules/grunt/node_modules/iconv-lite/test/turkish-test.js +0 -90
- data/vendor/node_modules/grunt/node_modules/js-yaml/HISTORY.md +0 -155
- data/vendor/node_modules/grunt/node_modules/js-yaml/LICENSE +0 -21
- data/vendor/node_modules/grunt/node_modules/js-yaml/README.md +0 -249
- data/vendor/node_modules/grunt/node_modules/js-yaml/bin/js-yaml.js +0 -125
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/custom_types.js +0 -104
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/custom_types.yaml +0 -18
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/dumper.js +0 -31
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/dumper.json +0 -22
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/sample_document.js +0 -15
- data/vendor/node_modules/grunt/node_modules/js-yaml/examples/sample_document.yaml +0 -197
- data/vendor/node_modules/grunt/node_modules/js-yaml/index.js +0 -1
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml.js +0 -33
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/common.js +0 -60
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/dumper.js +0 -437
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/exception.js +0 -25
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/loader.js +0 -1549
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/mark.js +0 -78
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/require.js +0 -23
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema.js +0 -103
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema/default.js +0 -16
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema/minimal.js +0 -13
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema/safe.js +0 -25
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type.js +0 -82
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/binary.js +0 -118
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/bool.js +0 -74
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/float.js +0 -102
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/int.js +0 -85
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/js/function.js +0 -56
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +0 -56
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +0 -28
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/map.js +0 -11
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/merge.js +0 -18
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/null.js +0 -36
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/omap.js +0 -53
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/pairs.js +0 -41
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/seq.js +0 -11
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/set.js +0 -31
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/str.js +0 -11
- data/vendor/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +0 -91
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/HISTORY.md +0 -109
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/LICENSE +0 -21
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/README.md +0 -239
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/arguments.js +0 -36
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/choice.js +0 -22
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/constants.js +0 -59
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/help.js +0 -13
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/nargs.js +0 -33
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/parents.js +0 -28
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/prefix_chars.js +0 -23
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/sub_commands.js +0 -49
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/sum.js +0 -35
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/testformatters.js +0 -270
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/index.js +0 -1
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action.js +0 -146
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/append.js +0 -55
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/append/constant.js +0 -47
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/count.js +0 -40
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/help.js +0 -48
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store.js +0 -50
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store/constant.js +0 -43
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store/false.js +0 -27
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store/true.js +0 -26
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/subparsers.js +0 -148
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/version.js +0 -50
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action_container.js +0 -481
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argparse.js +0 -14
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument/error.js +0 -50
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument/exclusive.js +0 -54
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument/group.js +0 -75
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument_parser.js +0 -1165
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/const.js +0 -18
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/help/added_formatters.js +0 -88
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/help/formatter.js +0 -803
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/namespace.js +0 -77
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile +0 -4
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile.lock +0 -17
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/README.markdown +0 -814
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Rakefile +0 -23
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/component.json +0 -11
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/dist/underscore.string.min.js +0 -1
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/lib/underscore.string.js +0 -673
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/libpeerconnection.log +0 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/package.json +0 -73
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/run-qunit.js +0 -45
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/speed.js +0 -148
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/strings.js +0 -685
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/strings_standalone.js +0 -12
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test.html +0 -31
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_standalone.html +0 -18
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/arrays.js +0 -200
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/chaining.js +0 -59
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/collections.js +0 -426
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/functions.js +0 -259
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/index.html +0 -45
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/objects.js +0 -548
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/speed.js +0 -75
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/utility.js +0 -249
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/jquery.js +0 -9404
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/jslitmus.js +0 -670
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/qunit.css +0 -235
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/qunit.js +0 -1977
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/underscore.js +0 -1201
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/CNAME +0 -1
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/CONTRIBUTING.md +0 -9
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/LICENSE +0 -22
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/README.md +0 -19
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/favicon.ico +0 -0
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/index.html +0 -2467
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/index.js +0 -1
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/package.json +0 -35
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/underscore-min.js +0 -1
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/underscore.js +0 -1226
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/package.json +0 -50
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/README.md +0 -73
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/bin/esparse.js +0 -117
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/bin/esvalidate.js +0 -177
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/esprima.js +0 -3908
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/package.json +0 -59
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/compat.js +0 -239
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/reflect.js +0 -422
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/run.js +0 -66
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/runner.js +0 -387
- data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/esprima/test/test.js +0 -20238
- data/vendor/node_modules/grunt/node_modules/js-yaml/package.json +0 -60
- data/vendor/node_modules/grunt/node_modules/lodash/README.md +0 -140
- data/vendor/node_modules/grunt/node_modules/lodash/lodash.js +0 -4258
- data/vendor/node_modules/grunt/node_modules/lodash/lodash.min.js +0 -35
- data/vendor/node_modules/grunt/node_modules/lodash/lodash.underscore.js +0 -3688
- data/vendor/node_modules/grunt/node_modules/lodash/lodash.underscore.min.js +0 -28
- data/vendor/node_modules/grunt/node_modules/lodash/package.json +0 -62
- data/vendor/node_modules/grunt/node_modules/minimatch/LICENSE +0 -23
- data/vendor/node_modules/grunt/node_modules/minimatch/README.md +0 -218
- data/vendor/node_modules/grunt/node_modules/minimatch/minimatch.js +0 -1055
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/CONTRIBUTORS +0 -14
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/LICENSE +0 -23
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/README.md +0 -97
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/lib/lru-cache.js +0 -252
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/package.json +0 -33
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/test/basic.js +0 -369
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/test/foreach.js +0 -52
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/test/memory-leak.js +0 -50
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/LICENSE +0 -27
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/README.md +0 -53
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/bench.js +0 -283
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/package.json +0 -42
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/sigmund.js +0 -39
- data/vendor/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/test/basic.js +0 -24
- data/vendor/node_modules/grunt/node_modules/minimatch/package.json +0 -40
- data/vendor/node_modules/grunt/node_modules/minimatch/test/basic.js +0 -399
- data/vendor/node_modules/grunt/node_modules/minimatch/test/brace-expand.js +0 -33
- data/vendor/node_modules/grunt/node_modules/minimatch/test/caching.js +0 -14
- data/vendor/node_modules/grunt/node_modules/minimatch/test/defaults.js +0 -274
- data/vendor/node_modules/grunt/node_modules/minimatch/test/extglob-ending-with-state-char.js +0 -8
- data/vendor/node_modules/grunt/node_modules/nopt/LICENSE +0 -23
- data/vendor/node_modules/grunt/node_modules/nopt/README.md +0 -208
- data/vendor/node_modules/grunt/node_modules/nopt/bin/nopt.js +0 -44
- data/vendor/node_modules/grunt/node_modules/nopt/examples/my-program.js +0 -30
- data/vendor/node_modules/grunt/node_modules/nopt/lib/nopt.js +0 -552
- data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/LICENSE +0 -23
- data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/README.md +0 -23
- data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/lib/abbrev.js +0 -111
- data/vendor/node_modules/grunt/node_modules/nopt/node_modules/abbrev/package.json +0 -29
- data/vendor/node_modules/grunt/node_modules/nopt/package.json +0 -36
- data/vendor/node_modules/grunt/node_modules/rimraf/AUTHORS +0 -6
- data/vendor/node_modules/grunt/node_modules/rimraf/LICENSE +0 -23
- data/vendor/node_modules/grunt/node_modules/rimraf/README.md +0 -21
- data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/LICENSE +0 -23
- data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/README.md +0 -5
- data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/graceful-fs.js +0 -312
- data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/package.json +0 -40
- data/vendor/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/test/open.js +0 -41
- data/vendor/node_modules/grunt/node_modules/rimraf/package.json +0 -59
- data/vendor/node_modules/grunt/node_modules/rimraf/rimraf.js +0 -161
- data/vendor/node_modules/grunt/node_modules/rimraf/test/run.sh +0 -10
- data/vendor/node_modules/grunt/node_modules/rimraf/test/setup.sh +0 -47
- data/vendor/node_modules/grunt/node_modules/rimraf/test/test-async.js +0 -5
- data/vendor/node_modules/grunt/node_modules/rimraf/test/test-fiber.js +0 -0
- data/vendor/node_modules/grunt/node_modules/rimraf/test/test-sync.js +0 -3
- data/vendor/node_modules/grunt/node_modules/underscore.string/Gemfile +0 -5
- data/vendor/node_modules/grunt/node_modules/underscore.string/Gemfile.lock +0 -34
- data/vendor/node_modules/grunt/node_modules/underscore.string/README.markdown +0 -668
- data/vendor/node_modules/grunt/node_modules/underscore.string/Rakefile +0 -28
- data/vendor/node_modules/grunt/node_modules/underscore.string/dist/underscore.string.min.js +0 -1
- data/vendor/node_modules/grunt/node_modules/underscore.string/lib/underscore.string.js +0 -525
- data/vendor/node_modules/grunt/node_modules/underscore.string/package.json +0 -72
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/run-qunit.js +0 -44
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/speed.js +0 -138
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/strings.js +0 -438
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/strings_standalone.js +0 -12
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test.html +0 -31
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_standalone.html +0 -18
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/arrays.js +0 -166
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/chaining.js +0 -59
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/collections.js +0 -270
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/functions.js +0 -198
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/objects.js +0 -535
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/speed.js +0 -70
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/temp.js +0 -27
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/temp_tests.html +0 -19
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/test.html +0 -43
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/utility.js +0 -155
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/jquery.js +0 -19
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/jslitmus.js +0 -670
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/qunit.css +0 -196
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/test_underscore/vendor/qunit.js +0 -2360
- data/vendor/node_modules/grunt/node_modules/underscore.string/test/underscore.js +0 -999
- data/vendor/node_modules/grunt/node_modules/which/LICENSE +0 -23
- data/vendor/node_modules/grunt/node_modules/which/README.md +0 -5
- data/vendor/node_modules/grunt/node_modules/which/bin/which +0 -14
- data/vendor/node_modules/grunt/node_modules/which/package.json +0 -31
- data/vendor/node_modules/grunt/node_modules/which/which.js +0 -104
- data/vendor/node_modules/grunt/package.json +0 -82
- data/vendor/node_modules/istanbul/CHANGELOG.md +0 -57
- data/vendor/node_modules/istanbul/LICENSE +0 -24
- data/vendor/node_modules/istanbul/README.md +0 -205
- data/vendor/node_modules/istanbul/index.js +0 -115
- data/vendor/node_modules/istanbul/lib/cli.js +0 -74
- data/vendor/node_modules/istanbul/lib/collector.js +0 -121
- data/vendor/node_modules/istanbul/lib/command/check-coverage.js +0 -115
- data/vendor/node_modules/istanbul/lib/command/common/run-with-cover.js +0 -199
- data/vendor/node_modules/istanbul/lib/command/cover.js +0 -33
- data/vendor/node_modules/istanbul/lib/command/help.js +0 -58
- data/vendor/node_modules/istanbul/lib/command/index.js +0 -33
- data/vendor/node_modules/istanbul/lib/command/instrument.js +0 -244
- data/vendor/node_modules/istanbul/lib/command/report.js +0 -97
- data/vendor/node_modules/istanbul/lib/command/test.js +0 -31
- data/vendor/node_modules/istanbul/lib/hook.js +0 -187
- data/vendor/node_modules/istanbul/lib/instrumenter.js +0 -759
- data/vendor/node_modules/istanbul/lib/object-utils.js +0 -341
- data/vendor/node_modules/istanbul/lib/register-plugins.js +0 -15
- data/vendor/node_modules/istanbul/lib/report/cobertura.js +0 -207
- data/vendor/node_modules/istanbul/lib/report/html.js +0 -517
- data/vendor/node_modules/istanbul/lib/report/index.js +0 -60
- data/vendor/node_modules/istanbul/lib/report/json.js +0 -55
- data/vendor/node_modules/istanbul/lib/report/lcov.js +0 -49
- data/vendor/node_modules/istanbul/lib/report/lcovonly.js +0 -93
- data/vendor/node_modules/istanbul/lib/report/none.js +0 -20
- data/vendor/node_modules/istanbul/lib/report/teamcity.js +0 -82
- data/vendor/node_modules/istanbul/lib/report/templates/foot.txt +0 -102
- data/vendor/node_modules/istanbul/lib/report/templates/head.txt +0 -200
- data/vendor/node_modules/istanbul/lib/report/text-summary.js +0 -72
- data/vendor/node_modules/istanbul/lib/report/text.js +0 -210
- data/vendor/node_modules/istanbul/lib/store/fslookup.js +0 -60
- data/vendor/node_modules/istanbul/lib/store/index.js +0 -122
- data/vendor/node_modules/istanbul/lib/store/memory.js +0 -55
- data/vendor/node_modules/istanbul/lib/store/tmp.js +0 -80
- data/vendor/node_modules/istanbul/lib/util/factory.js +0 -88
- data/vendor/node_modules/istanbul/lib/util/file-matcher.js +0 -60
- data/vendor/node_modules/istanbul/lib/util/file-writer.js +0 -131
- data/vendor/node_modules/istanbul/lib/util/flow-control.js +0 -26
- data/vendor/node_modules/istanbul/lib/util/help-formatter.js +0 -24
- data/vendor/node_modules/istanbul/lib/util/input-error.js +0 -12
- data/vendor/node_modules/istanbul/lib/util/insertion-text.js +0 -109
- data/vendor/node_modules/istanbul/lib/util/meta.js +0 -13
- data/vendor/node_modules/istanbul/lib/util/tree-summarizer.js +0 -213
- data/vendor/node_modules/istanbul/lib/util/writer.js +0 -56
- data/vendor/node_modules/istanbul/lib/util/yui-load-hook.js +0 -49
- data/vendor/node_modules/istanbul/lib/vendor/prettify.css +0 -1
- data/vendor/node_modules/istanbul/lib/vendor/prettify.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/abbrev/LICENSE +0 -23
- data/vendor/node_modules/istanbul/node_modules/abbrev/README.md +0 -23
- data/vendor/node_modules/istanbul/node_modules/abbrev/lib/abbrev.js +0 -111
- data/vendor/node_modules/istanbul/node_modules/abbrev/package.json +0 -29
- data/vendor/node_modules/istanbul/node_modules/async/LICENSE +0 -19
- data/vendor/node_modules/istanbul/node_modules/async/README.md +0 -1414
- data/vendor/node_modules/istanbul/node_modules/async/component.json +0 -11
- data/vendor/node_modules/istanbul/node_modules/async/lib/async.js +0 -955
- data/vendor/node_modules/istanbul/node_modules/async/package.json +0 -43
- data/vendor/node_modules/istanbul/node_modules/escodegen/LICENSE.BSD +0 -19
- data/vendor/node_modules/istanbul/node_modules/escodegen/LICENSE.source-map +0 -27
- data/vendor/node_modules/istanbul/node_modules/escodegen/README.md +0 -99
- data/vendor/node_modules/istanbul/node_modules/escodegen/bin/escodegen.js +0 -45
- data/vendor/node_modules/istanbul/node_modules/escodegen/bin/esgenerate.js +0 -45
- data/vendor/node_modules/istanbul/node_modules/escodegen/component.json +0 -48
- data/vendor/node_modules/istanbul/node_modules/escodegen/escodegen.browser.js +0 -3072
- data/vendor/node_modules/istanbul/node_modules/escodegen/escodegen.js +0 -2275
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/LICENSE.BSD +0 -19
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/README.md +0 -29
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/estraverse.js +0 -315
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/estraverse/package.json +0 -41
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/CHANGELOG.md +0 -112
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/LICENSE +0 -28
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/Makefile.dryice.js +0 -166
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/README.md +0 -434
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/assert-shim.js +0 -56
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/mini-require.js +0 -152
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/prefix-source-map.jsm +0 -20
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/prefix-utils.jsm +0 -18
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/suffix-browser.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/suffix-source-map.jsm +0 -6
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/suffix-utils.jsm +0 -21
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/test-prefix.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/build/test-suffix.js +0 -3
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/array-set.js +0 -97
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/base64-vlq.js +0 -144
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/base64.js +0 -42
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/binary-search.js +0 -81
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -477
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/source-map-generator.js +0 -380
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/source-node.js +0 -371
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/util.js +0 -205
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/LICENSE +0 -58
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/README.md +0 -171
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/amdefine.js +0 -299
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/intercept.js +0 -36
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/node_modules/amdefine/package.json +0 -36
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/package.json +0 -110
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/run-tests.js +0 -71
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-api.js +0 -26
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-array-set.js +0 -104
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64-vlq.js +0 -24
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-base64.js +0 -35
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-binary-search.js +0 -54
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-dog-fooding.js +0 -72
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-consumer.js +0 -451
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-map-generator.js +0 -417
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/test-source-node.js +0 -365
- data/vendor/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/test/source-map/util.js +0 -161
- data/vendor/node_modules/istanbul/node_modules/escodegen/package.json +0 -58
- data/vendor/node_modules/istanbul/node_modules/esprima/README.md +0 -73
- data/vendor/node_modules/istanbul/node_modules/esprima/bin/esparse.js +0 -117
- data/vendor/node_modules/istanbul/node_modules/esprima/bin/esvalidate.js +0 -177
- data/vendor/node_modules/istanbul/node_modules/esprima/esprima.js +0 -3908
- data/vendor/node_modules/istanbul/node_modules/esprima/package.json +0 -59
- data/vendor/node_modules/istanbul/node_modules/esprima/test/compat.js +0 -239
- data/vendor/node_modules/istanbul/node_modules/esprima/test/reflect.js +0 -422
- data/vendor/node_modules/istanbul/node_modules/esprima/test/run.js +0 -66
- data/vendor/node_modules/istanbul/node_modules/esprima/test/runner.js +0 -387
- data/vendor/node_modules/istanbul/node_modules/esprima/test/test.js +0 -20238
- data/vendor/node_modules/istanbul/node_modules/fileset/LICENSE-MIT +0 -22
- data/vendor/node_modules/istanbul/node_modules/fileset/README.md +0 -87
- data/vendor/node_modules/istanbul/node_modules/fileset/lib/fileset.js +0 -64
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/LICENSE +0 -27
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/README.md +0 -250
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/examples/g.js +0 -9
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/examples/usr-local.js +0 -9
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/glob.js +0 -680
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/LICENSE +0 -16
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/README.md +0 -42
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/inherits.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -23
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/package.json +0 -33
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/node_modules/inherits/test.js +0 -25
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/package.json +0 -39
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/00-setup.js +0 -176
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/bash-comparison.js +0 -63
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/bash-results.json +0 -350
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/cwd-test.js +0 -55
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/globstar-match.js +0 -19
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/mark.js +0 -74
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/new-glob-optional-options.js +0 -10
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/nocase-nomagic.js +0 -113
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/pause-resume.js +0 -73
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/root-nomount.js +0 -39
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/root.js +0 -46
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/stat.js +0 -32
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/glob/test/zz-cleanup.js +0 -11
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/LICENSE +0 -23
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/README.md +0 -218
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/minimatch.js +0 -1055
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/CONTRIBUTORS +0 -14
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/LICENSE +0 -23
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/README.md +0 -97
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/lib/lru-cache.js +0 -252
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/package.json +0 -33
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/test/basic.js +0 -369
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/test/foreach.js +0 -52
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/lru-cache/test/memory-leak.js +0 -50
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/LICENSE +0 -27
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/README.md +0 -53
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/bench.js +0 -283
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/package.json +0 -42
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/sigmund.js +0 -39
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/node_modules/sigmund/test/basic.js +0 -24
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/package.json +0 -40
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/basic.js +0 -399
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/brace-expand.js +0 -33
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/caching.js +0 -14
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/defaults.js +0 -274
- data/vendor/node_modules/istanbul/node_modules/fileset/node_modules/minimatch/test/extglob-ending-with-state-char.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/fileset/package.json +0 -34
- data/vendor/node_modules/istanbul/node_modules/fileset/tests/fixtures/an (odd) filename.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/fileset/tests/helper.js +0 -61
- data/vendor/node_modules/istanbul/node_modules/fileset/tests/test.js +0 -133
- data/vendor/node_modules/istanbul/node_modules/handlebars/LICENSE +0 -19
- data/vendor/node_modules/istanbul/node_modules/handlebars/README.markdown +0 -391
- data/vendor/node_modules/istanbul/node_modules/handlebars/bin/handlebars +0 -213
- data/vendor/node_modules/istanbul/node_modules/handlebars/bower.json +0 -9
- data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.js +0 -2278
- data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.min.js +0 -2
- data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.runtime.js +0 -362
- data/vendor/node_modules/istanbul/node_modules/handlebars/dist/handlebars.runtime.min.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/handlebars/global-test.js +0 -18
- data/vendor/node_modules/istanbul/node_modules/handlebars/global.js +0 -4
- data/vendor/node_modules/istanbul/node_modules/handlebars/handlebars-source.gemspec +0 -21
- data/vendor/node_modules/istanbul/node_modules/handlebars/handlebars.js.nuspec +0 -17
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars.js +0 -43
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/base.js +0 -166
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/browser-prefix.js +0 -3
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/browser-suffix.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/ast.js +0 -138
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/base.js +0 -21
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/compiler.js +0 -1305
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/index.js +0 -16
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/parser.js +0 -483
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/printer.js +0 -138
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/compiler/visitor.js +0 -18
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/runtime.js +0 -106
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/source.rb +0 -11
- data/vendor/node_modules/istanbul/node_modules/handlebars/lib/handlebars/utils.js +0 -83
- data/vendor/node_modules/istanbul/node_modules/handlebars/min.sh +0 -11
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/LICENSE +0 -21
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/bool.js +0 -10
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/boolean_double.js +0 -7
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/boolean_single.js +0 -7
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/default_hash.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/default_singles.js +0 -7
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/divide.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/line_count.js +0 -20
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/line_count_options.js +0 -29
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/line_count_wrap.js +0 -29
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/nonopt.js +0 -4
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/reflect.js +0 -2
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/short.js +0 -3
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/string.js +0 -11
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/usage-options.js +0 -19
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/example/xup.js +0 -10
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/index.js +0 -478
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/package.json +0 -46
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/readme.markdown +0 -487
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/_.js +0 -71
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/_/argv.js +0 -2
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/_/bin.js +0 -3
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/parse.js +0 -446
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/optimist/test/usage.js +0 -292
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/LICENSE +0 -29
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/README.md +0 -588
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/bin/uglifyjs +0 -402
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/ast.js +0 -985
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/compress.js +0 -2028
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/mozilla-ast.js +0 -267
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/output.js +0 -1229
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/parse.js +0 -1410
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/scope.js +0 -581
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/sourcemap.js +0 -81
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/transform.js +0 -217
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/lib/utils.js +0 -295
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/CHANGELOG.md +0 -112
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/LICENSE +0 -28
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/Makefile.dryice.js +0 -166
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/README.md +0 -434
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/assert-shim.js +0 -56
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/mini-require.js +0 -152
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/prefix-source-map.jsm +0 -20
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/prefix-utils.jsm +0 -18
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/suffix-browser.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/suffix-source-map.jsm +0 -6
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/suffix-utils.jsm +0 -21
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/test-prefix.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/build/test-suffix.js +0 -3
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/array-set.js +0 -97
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64-vlq.js +0 -144
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64.js +0 -42
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/binary-search.js +0 -81
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -477
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-generator.js +0 -380
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-node.js +0 -371
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/lib/source-map/util.js +0 -205
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/LICENSE +0 -58
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/README.md +0 -171
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/amdefine.js +0 -299
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/intercept.js +0 -36
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/package.json +0 -37
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/package.json +0 -110
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/run-tests.js +0 -71
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-api.js +0 -26
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-array-set.js +0 -104
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64-vlq.js +0 -24
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64.js +0 -35
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-binary-search.js +0 -54
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-dog-fooding.js +0 -72
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-consumer.js +0 -451
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-generator.js +0 -417
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-node.js +0 -365
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/node_modules/source-map/test/source-map/util.js +0 -161
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/package.json +0 -39
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/arrays.js +0 -12
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/blocks.js +0 -49
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/conditionals.js +0 -143
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/dead-code.js +0 -89
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/debugger.js +0 -24
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/drop-unused.js +0 -97
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-105.js +0 -25
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-12.js +0 -11
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-143.js +0 -48
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-22.js +0 -17
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-44.js +0 -31
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/issue-59.js +0 -30
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/labels.js +0 -163
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/loops.js +0 -123
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/properties.js +0 -54
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/sequences.js +0 -161
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/switch.js +0 -260
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/compress/typeof.js +0 -25
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/test/run-tests.js +0 -170
- data/vendor/node_modules/istanbul/node_modules/handlebars/node_modules/uglify-js/tools/node.js +0 -165
- data/vendor/node_modules/istanbul/node_modules/handlebars/package.json +0 -42
- data/vendor/node_modules/istanbul/node_modules/handlebars/release-notes.md +0 -93
- data/vendor/node_modules/istanbul/node_modules/handlebars/test.js +0 -20
- data/vendor/node_modules/istanbul/node_modules/mkdirp/LICENSE +0 -21
- data/vendor/node_modules/istanbul/node_modules/mkdirp/examples/pow.js +0 -6
- data/vendor/node_modules/istanbul/node_modules/mkdirp/index.js +0 -82
- data/vendor/node_modules/istanbul/node_modules/mkdirp/package.json +0 -34
- data/vendor/node_modules/istanbul/node_modules/mkdirp/readme.markdown +0 -63
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/chmod.js +0 -38
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/clobber.js +0 -37
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/mkdirp.js +0 -28
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/perm.js +0 -32
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/perm_sync.js +0 -39
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/race.js +0 -41
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/rel.js +0 -32
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/return.js +0 -25
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/return_sync.js +0 -24
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/root.js +0 -18
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/sync.js +0 -32
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/umask.js +0 -28
- data/vendor/node_modules/istanbul/node_modules/mkdirp/test/umask_sync.js +0 -32
- data/vendor/node_modules/istanbul/node_modules/nopt/LICENSE +0 -23
- data/vendor/node_modules/istanbul/node_modules/nopt/README.md +0 -210
- data/vendor/node_modules/istanbul/node_modules/nopt/bin/nopt.js +0 -51
- data/vendor/node_modules/istanbul/node_modules/nopt/examples/my-program.js +0 -30
- data/vendor/node_modules/istanbul/node_modules/nopt/lib/nopt.js +0 -612
- data/vendor/node_modules/istanbul/node_modules/nopt/package.json +0 -36
- data/vendor/node_modules/istanbul/node_modules/resolve/LICENSE +0 -18
- data/vendor/node_modules/istanbul/node_modules/resolve/example/async.js +0 -5
- data/vendor/node_modules/istanbul/node_modules/resolve/example/sync.js +0 -3
- data/vendor/node_modules/istanbul/node_modules/resolve/index.js +0 -5
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/async.js +0 -125
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/caller.js +0 -8
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/core.js +0 -4
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/core.json +0 -38
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/node-modules-paths.js +0 -25
- data/vendor/node_modules/istanbul/node_modules/resolve/lib/sync.js +0 -80
- data/vendor/node_modules/istanbul/node_modules/resolve/package.json +0 -36
- data/vendor/node_modules/istanbul/node_modules/resolve/readme.markdown +0 -144
- data/vendor/node_modules/istanbul/node_modules/resolve/test/core.js +0 -12
- data/vendor/node_modules/istanbul/node_modules/resolve/test/filter.js +0 -18
- data/vendor/node_modules/istanbul/node_modules/resolve/test/filter_sync.js +0 -15
- data/vendor/node_modules/istanbul/node_modules/resolve/test/mock.js +0 -142
- data/vendor/node_modules/istanbul/node_modules/resolve/test/mock_sync.js +0 -68
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver.js +0 -270
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/bar/node_modules/foo/index.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/baz/package.json +0 -3
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/baz/quux.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/garply/lib/index.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/garply/package.json +0 -3
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/grux/index.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/biz/node_modules/tiv/index.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/cup.coffee +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/foo.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/incorrect_main/index.js +0 -2
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/incorrect_main/package.json +0 -3
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/mug.coffee +0 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/mug.js +0 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/quux/foo/index.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/without_basedir/main.js +0 -6
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver/without_basedir/node_modules/mymodule.js +0 -1
- data/vendor/node_modules/istanbul/node_modules/resolve/test/resolver_sync.js +0 -170
- data/vendor/node_modules/istanbul/node_modules/which/LICENSE +0 -23
- data/vendor/node_modules/istanbul/node_modules/which/README.md +0 -5
- data/vendor/node_modules/istanbul/node_modules/which/bin/which +0 -14
- data/vendor/node_modules/istanbul/node_modules/which/package.json +0 -32
- data/vendor/node_modules/istanbul/node_modules/which/which.js +0 -104
- data/vendor/node_modules/istanbul/node_modules/wordwrap/README.markdown +0 -70
- data/vendor/node_modules/istanbul/node_modules/wordwrap/example/center.js +0 -10
- data/vendor/node_modules/istanbul/node_modules/wordwrap/example/meat.js +0 -3
- data/vendor/node_modules/istanbul/node_modules/wordwrap/index.js +0 -76
- data/vendor/node_modules/istanbul/node_modules/wordwrap/package.json +0 -45
- data/vendor/node_modules/istanbul/node_modules/wordwrap/test/break.js +0 -30
- data/vendor/node_modules/istanbul/node_modules/wordwrap/test/idleness.txt +0 -63
- data/vendor/node_modules/istanbul/node_modules/wordwrap/test/wrap.js +0 -31
- data/vendor/node_modules/istanbul/package.json +0 -117
- data/vendor/node_modules/istanbul/test/browser/support/index.html +0 -153
- data/vendor/node_modules/istanbul/test/browser/support/phantom-test.client.js +0 -49
- data/vendor/node_modules/istanbul/test/browser/support/server.js +0 -154
- data/vendor/node_modules/istanbul/test/browser/test-browser-instrumentation.js +0 -94
- data/vendor/node_modules/istanbul/test/cli-helper.js +0 -219
- data/vendor/node_modules/istanbul/test/cli/package.json +0 -8
- data/vendor/node_modules/istanbul/test/cli/sample-project/amd/ipsum.js +0 -11
- data/vendor/node_modules/istanbul/test/cli/sample-project/amd/lorem.js +0 -7
- data/vendor/node_modules/istanbul/test/cli/sample-project/lib/bar.js +0 -13
- data/vendor/node_modules/istanbul/test/cli/sample-project/lib/foo.js +0 -12
- data/vendor/node_modules/istanbul/test/cli/sample-project/lib/util/bad.js +0 -1
- data/vendor/node_modules/istanbul/test/cli/sample-project/lib/util/generate-names.js +0 -5
- data/vendor/node_modules/istanbul/test/cli/sample-project/node_modules/dependency/index.js +0 -9
- data/vendor/node_modules/istanbul/test/cli/sample-project/node_modules/post-require/hook.js +0 -11
- data/vendor/node_modules/istanbul/test/cli/sample-project/node_modules/post-require/package.json +0 -5
- data/vendor/node_modules/istanbul/test/cli/sample-project/test/amd-run.js +0 -16
- data/vendor/node_modules/istanbul/test/cli/sample-project/test/global-leak.js +0 -30
- data/vendor/node_modules/istanbul/test/cli/sample-project/test/run.js +0 -25
- data/vendor/node_modules/istanbul/test/cli/sample-project/vendor/dummy_vendor_lib.js +0 -9
- data/vendor/node_modules/istanbul/test/cli/test-base-cli.js +0 -39
- data/vendor/node_modules/istanbul/test/cli/test-check-coverage-command.js +0 -97
- data/vendor/node_modules/istanbul/test/cli/test-cobertura-report.js +0 -54
- data/vendor/node_modules/istanbul/test/cli/test-cover-command.js +0 -170
- data/vendor/node_modules/istanbul/test/cli/test-html-report.js +0 -125
- data/vendor/node_modules/istanbul/test/cli/test-instrument-command.js +0 -167
- data/vendor/node_modules/istanbul/test/cli/test-json-report.js +0 -60
- data/vendor/node_modules/istanbul/test/cli/test-lcov-report.js +0 -58
- data/vendor/node_modules/istanbul/test/cli/test-lcovonly-report.js +0 -61
- data/vendor/node_modules/istanbul/test/cli/test-lots-of-files.js +0 -87
- data/vendor/node_modules/istanbul/test/cli/test-none-report.js +0 -17
- data/vendor/node_modules/istanbul/test/cli/test-report-command.js +0 -65
- data/vendor/node_modules/istanbul/test/cli/test-teamcity-report.js +0 -54
- data/vendor/node_modules/istanbul/test/cli/test-test-command.js +0 -43
- data/vendor/node_modules/istanbul/test/common.js +0 -19
- data/vendor/node_modules/istanbul/test/helper.js +0 -122
- data/vendor/node_modules/istanbul/test/instrumentation/test-do.js +0 -53
- data/vendor/node_modules/istanbul/test/instrumentation/test-expressions.js +0 -70
- data/vendor/node_modules/istanbul/test/instrumentation/test-for.js +0 -206
- data/vendor/node_modules/istanbul/test/instrumentation/test-forin.js +0 -50
- data/vendor/node_modules/istanbul/test/instrumentation/test-functions.js +0 -102
- data/vendor/node_modules/istanbul/test/instrumentation/test-if.js +0 -393
- data/vendor/node_modules/istanbul/test/instrumentation/test-misc.js +0 -35
- data/vendor/node_modules/istanbul/test/instrumentation/test-statement.js +0 -182
- data/vendor/node_modules/istanbul/test/instrumentation/test-strict.js +0 -121
- data/vendor/node_modules/istanbul/test/instrumentation/test-switch.js +0 -155
- data/vendor/node_modules/istanbul/test/instrumentation/test-while.js +0 -104
- data/vendor/node_modules/istanbul/test/loader.js +0 -38
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/baz.js +0 -3
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/fixture.xml +0 -1
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/foo.js +0 -4
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/myfile1 +0 -0
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/myfile2 +0 -1
- data/vendor/node_modules/istanbul/test/other/data-complete-copy/subdir/x.css +0 -3
- data/vendor/node_modules/istanbul/test/other/data/baz.js +0 -3
- data/vendor/node_modules/istanbul/test/other/data/foo.js +0 -4
- data/vendor/node_modules/istanbul/test/other/data/matcher/general/general.js +0 -2
- data/vendor/node_modules/istanbul/test/other/data/matcher/general/node_modules/mod-file.js +0 -2
- data/vendor/node_modules/istanbul/test/other/data/matcher/lib/lib-top.js +0 -2
- data/vendor/node_modules/istanbul/test/other/data/matcher/node_modules/dep/mod-file.js +0 -2
- data/vendor/node_modules/istanbul/test/other/data/matcher/node_modules/mod-file.js +0 -2
- data/vendor/node_modules/istanbul/test/other/data/matcher/top.js +0 -2
- data/vendor/node_modules/istanbul/test/other/test-collector.js +0 -85
- data/vendor/node_modules/istanbul/test/other/test-command-xface.js +0 -35
- data/vendor/node_modules/istanbul/test/other/test-file-writer.js +0 -71
- data/vendor/node_modules/istanbul/test/other/test-help-formatter.js +0 -31
- data/vendor/node_modules/istanbul/test/other/test-hook.js +0 -87
- data/vendor/node_modules/istanbul/test/other/test-index-xface.js +0 -17
- data/vendor/node_modules/istanbul/test/other/test-input-error.js +0 -10
- data/vendor/node_modules/istanbul/test/other/test-insertion-text.js +0 -102
- data/vendor/node_modules/istanbul/test/other/test-matcher.js +0 -93
- data/vendor/node_modules/istanbul/test/other/test-object-utils.js +0 -201
- data/vendor/node_modules/istanbul/test/other/test-store.js +0 -129
- data/vendor/node_modules/istanbul/test/other/test-summarizer.js +0 -172
- data/vendor/node_modules/istanbul/test/run-again.js +0 -19
- data/vendor/node_modules/istanbul/test/run.js +0 -108
- data/vendor/node_modules/istanbul/yui-coverage-comparison.md +0 -85
- data/vendor/node_modules/qunit-clib/LICENSE.txt +0 -20
- data/vendor/node_modules/qunit-clib/README.md +0 -2
- data/vendor/node_modules/qunit-clib/package.json +0 -36
- data/vendor/node_modules/qunit-clib/qunit-clib.js +0 -570
- data/vendor/node_modules/qunitjs/AUTHORS.txt +0 -55
- data/vendor/node_modules/qunitjs/History.md +0 -496
- data/vendor/node_modules/qunitjs/README.md +0 -62
- data/vendor/node_modules/qunitjs/addons/canvas/README.md +0 -17
- data/vendor/node_modules/qunitjs/addons/canvas/canvas-test.js +0 -76
- data/vendor/node_modules/qunitjs/addons/canvas/canvas.html +0 -15
- data/vendor/node_modules/qunitjs/addons/canvas/qunit-canvas.js +0 -6
- data/vendor/node_modules/qunitjs/addons/close-enough/README.md +0 -18
- data/vendor/node_modules/qunitjs/addons/close-enough/close-enough-test.js +0 -35
- data/vendor/node_modules/qunitjs/addons/close-enough/close-enough.html +0 -14
- data/vendor/node_modules/qunitjs/addons/close-enough/qunit-close-enough.js +0 -32
- data/vendor/node_modules/qunitjs/addons/composite/README.md +0 -26
- data/vendor/node_modules/qunitjs/addons/composite/composite-demo-test.html +0 -24
- data/vendor/node_modules/qunitjs/addons/composite/index.html +0 -34
- data/vendor/node_modules/qunitjs/addons/composite/qunit-composite.css +0 -13
- data/vendor/node_modules/qunitjs/addons/composite/qunit-composite.js +0 -112
- data/vendor/node_modules/qunitjs/addons/junitlogger/README.md +0 -18
- data/vendor/node_modules/qunitjs/addons/junitlogger/index.html +0 -44
- data/vendor/node_modules/qunitjs/addons/junitlogger/junitlogger.js +0 -306
- data/vendor/node_modules/qunitjs/addons/phantomjs/README.md +0 -16
- data/vendor/node_modules/qunitjs/addons/phantomjs/runner.js +0 -127
- data/vendor/node_modules/qunitjs/addons/step/README.md +0 -20
- data/vendor/node_modules/qunitjs/addons/step/qunit-step.js +0 -26
- data/vendor/node_modules/qunitjs/addons/step/step-test.js +0 -15
- data/vendor/node_modules/qunitjs/addons/step/step.html +0 -14
- data/vendor/node_modules/qunitjs/addons/themes/README.md +0 -6
- data/vendor/node_modules/qunitjs/addons/themes/gabe.css +0 -371
- data/vendor/node_modules/qunitjs/addons/themes/gabe.html +0 -15
- data/vendor/node_modules/qunitjs/addons/themes/ninja.css +0 -196
- data/vendor/node_modules/qunitjs/addons/themes/ninja.html +0 -15
- data/vendor/node_modules/qunitjs/addons/themes/nv.css +0 -217
- data/vendor/node_modules/qunitjs/addons/themes/nv.html +0 -15
- data/vendor/node_modules/qunitjs/grunt.js +0 -101
- data/vendor/node_modules/qunitjs/package.json +0 -49
- data/vendor/node_modules/qunitjs/qunit/qunit.css +0 -244
- data/vendor/node_modules/qunitjs/qunit/qunit.js +0 -2152
- data/vendor/node_modules/qunitjs/test/async.html +0 -26
- data/vendor/node_modules/qunitjs/test/async.js +0 -6
- data/vendor/node_modules/qunitjs/test/deepEqual.js +0 -1438
- data/vendor/node_modules/qunitjs/test/headless.html +0 -28
- data/vendor/node_modules/qunitjs/test/index.html +0 -16
- data/vendor/node_modules/qunitjs/test/logs.html +0 -14
- data/vendor/node_modules/qunitjs/test/logs.js +0 -184
- data/vendor/node_modules/qunitjs/test/narwhal-test.js +0 -22
- data/vendor/node_modules/qunitjs/test/node-test.js +0 -22
- data/vendor/node_modules/qunitjs/test/swarminject.js +0 -10
- data/vendor/node_modules/qunitjs/test/test.js +0 -804
- data/vendor/node_modules/regenerate/LICENSE-MIT.txt +0 -20
- data/vendor/node_modules/regenerate/README.md +0 -467
- data/vendor/node_modules/regenerate/package.json +0 -50
- data/vendor/node_modules/regenerate/regenerate.js +0 -617
- data/vendor/node_modules/requirejs/README.md +0 -9
- data/vendor/node_modules/requirejs/bin/r.js +0 -26059
- data/vendor/node_modules/requirejs/package.json +0 -39
- data/vendor/node_modules/requirejs/require.js +0 -2054
@@ -1,14 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
module.exports.ArgumentParser = require('./argument_parser.js');
|
4
|
-
module.exports.Namespace = require('./namespace');
|
5
|
-
module.exports.Action = require('./action');
|
6
|
-
module.exports.HelpFormatter = require('./help/formatter.js');
|
7
|
-
module.exports.Const = require('./const.js');
|
8
|
-
|
9
|
-
module.exports.ArgumentDefaultsHelpFormatter =
|
10
|
-
require('./help/added_formatters.js').ArgumentDefaultsHelpFormatter;
|
11
|
-
module.exports.RawDescriptionHelpFormatter =
|
12
|
-
require('./help/added_formatters.js').RawDescriptionHelpFormatter;
|
13
|
-
module.exports.RawTextHelpFormatter =
|
14
|
-
require('./help/added_formatters.js').RawTextHelpFormatter;
|
data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument/error.js
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
|
4
|
-
var format = require('util').format;
|
5
|
-
|
6
|
-
|
7
|
-
var ERR_CODE = 'ARGError';
|
8
|
-
|
9
|
-
/*:nodoc:*
|
10
|
-
* argumentError(argument, message) -> TypeError
|
11
|
-
* - argument (Object): action with broken argument
|
12
|
-
* - message (String): error message
|
13
|
-
*
|
14
|
-
* Error format helper. An error from creating or using an argument
|
15
|
-
* (optional or positional). The string value of this exception
|
16
|
-
* is the message, augmented with information
|
17
|
-
* about the argument that caused it.
|
18
|
-
*
|
19
|
-
* #####Example
|
20
|
-
*
|
21
|
-
* var argumentErrorHelper = require('./argument/error');
|
22
|
-
* if (conflictOptionals.length > 0) {
|
23
|
-
* throw argumentErrorHelper(
|
24
|
-
* action,
|
25
|
-
* format('Conflicting option string(s): %s', conflictOptionals.join(', '))
|
26
|
-
* );
|
27
|
-
* }
|
28
|
-
*
|
29
|
-
**/
|
30
|
-
module.exports = function (argument, message) {
|
31
|
-
var argumentName = null;
|
32
|
-
var errMessage;
|
33
|
-
var err;
|
34
|
-
|
35
|
-
if (argument.getName) {
|
36
|
-
argumentName = argument.getName();
|
37
|
-
} else {
|
38
|
-
argumentName = '' + argument;
|
39
|
-
}
|
40
|
-
|
41
|
-
if (!argumentName) {
|
42
|
-
errMessage = message;
|
43
|
-
} else {
|
44
|
-
errMessage = format('argument "%s": %s', argumentName, message);
|
45
|
-
}
|
46
|
-
|
47
|
-
err = new TypeError(errMessage);
|
48
|
-
err.code = ERR_CODE;
|
49
|
-
return err;
|
50
|
-
};
|
data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument/exclusive.js
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
/** internal
|
2
|
-
* class MutuallyExclusiveGroup
|
3
|
-
*
|
4
|
-
* Group arguments.
|
5
|
-
* By default, ArgumentParser groups command-line arguments
|
6
|
-
* into “positional arguments” and “optional arguments”
|
7
|
-
* when displaying help messages. When there is a better
|
8
|
-
* conceptual grouping of arguments than this default one,
|
9
|
-
* appropriate groups can be created using the addArgumentGroup() method
|
10
|
-
*
|
11
|
-
* This class inherited from [[ArgumentContainer]]
|
12
|
-
**/
|
13
|
-
'use strict';
|
14
|
-
|
15
|
-
var util = require('util');
|
16
|
-
|
17
|
-
var ArgumentGroup = require('./group');
|
18
|
-
|
19
|
-
/**
|
20
|
-
* new MutuallyExclusiveGroup(container, options)
|
21
|
-
* - container (object): main container
|
22
|
-
* - options (object): options.required -> true/false
|
23
|
-
*
|
24
|
-
* `required` could be an argument itself, but making it a property of
|
25
|
-
* the options argument is more consistent with the JS adaptation of the Python)
|
26
|
-
**/
|
27
|
-
var MutuallyExclusiveGroup = module.exports = function MutuallyExclusiveGroup(container, options) {
|
28
|
-
var required;
|
29
|
-
options = options || {};
|
30
|
-
required = options.required || false;
|
31
|
-
ArgumentGroup.call(this, container);
|
32
|
-
this.required = required;
|
33
|
-
|
34
|
-
};
|
35
|
-
util.inherits(MutuallyExclusiveGroup, ArgumentGroup);
|
36
|
-
|
37
|
-
|
38
|
-
MutuallyExclusiveGroup.prototype._addAction = function (action) {
|
39
|
-
var msg;
|
40
|
-
if (action.required) {
|
41
|
-
msg = 'mutually exclusive arguments must be optional';
|
42
|
-
throw new Error(msg);
|
43
|
-
}
|
44
|
-
action = this._container._addAction(action);
|
45
|
-
this._groupActions.push(action);
|
46
|
-
return action;
|
47
|
-
};
|
48
|
-
|
49
|
-
|
50
|
-
MutuallyExclusiveGroup.prototype._removeAction = function (action) {
|
51
|
-
this._container._removeAction(action);
|
52
|
-
this._groupActions.remove(action);
|
53
|
-
};
|
54
|
-
|
data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument/group.js
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
/** internal
|
2
|
-
* class ArgumentGroup
|
3
|
-
*
|
4
|
-
* Group arguments.
|
5
|
-
* By default, ArgumentParser groups command-line arguments
|
6
|
-
* into “positional arguments” and “optional arguments”
|
7
|
-
* when displaying help messages. When there is a better
|
8
|
-
* conceptual grouping of arguments than this default one,
|
9
|
-
* appropriate groups can be created using the addArgumentGroup() method
|
10
|
-
*
|
11
|
-
* This class inherited from [[ArgumentContainer]]
|
12
|
-
**/
|
13
|
-
'use strict';
|
14
|
-
|
15
|
-
var util = require('util');
|
16
|
-
|
17
|
-
var ActionContainer = require('../action_container');
|
18
|
-
|
19
|
-
|
20
|
-
/**
|
21
|
-
* new ArgumentGroup(container, options)
|
22
|
-
* - container (object): main container
|
23
|
-
* - options (object): hash of group options
|
24
|
-
*
|
25
|
-
* #### options
|
26
|
-
* - **prefixChars** group name prefix
|
27
|
-
* - **argumentDefault** default argument value
|
28
|
-
* - **title** group title
|
29
|
-
* - **description** group description
|
30
|
-
*
|
31
|
-
**/
|
32
|
-
var ArgumentGroup = module.exports = function ArgumentGroup(container, options) {
|
33
|
-
|
34
|
-
options = options || {};
|
35
|
-
|
36
|
-
// add any missing keyword arguments by checking the container
|
37
|
-
options.conflictHandler = (options.conflictHandler || container.conflictHandler);
|
38
|
-
options.prefixChars = (options.prefixChars || container.prefixChars);
|
39
|
-
options.argumentDefault = (options.argumentDefault || container.argumentDefault);
|
40
|
-
|
41
|
-
ActionContainer.call(this, options);
|
42
|
-
|
43
|
-
// group attributes
|
44
|
-
this.title = options.title;
|
45
|
-
this._groupActions = [];
|
46
|
-
|
47
|
-
// share most attributes with the container
|
48
|
-
this._container = container;
|
49
|
-
this._registries = container._registries;
|
50
|
-
this._actions = container._actions;
|
51
|
-
this._optionStringActions = container._optionStringActions;
|
52
|
-
this._defaults = container._defaults;
|
53
|
-
this._hasNegativeNumberOptionals = container._hasNegativeNumberOptionals;
|
54
|
-
this._mutuallyExclusiveGroups = container._mutuallyExclusiveGroups;
|
55
|
-
};
|
56
|
-
util.inherits(ArgumentGroup, ActionContainer);
|
57
|
-
|
58
|
-
|
59
|
-
ArgumentGroup.prototype._addAction = function (action) {
|
60
|
-
// Parent add action
|
61
|
-
action = ActionContainer.prototype._addAction.call(this, action);
|
62
|
-
this._groupActions.push(action);
|
63
|
-
return action;
|
64
|
-
};
|
65
|
-
|
66
|
-
|
67
|
-
ArgumentGroup.prototype._removeAction = function (action) {
|
68
|
-
// Parent remove action
|
69
|
-
ActionContainer.prototype._removeAction.call(this, action);
|
70
|
-
var actionIndex = this._groupActions.indexOf(action);
|
71
|
-
if (actionIndex >= 0) {
|
72
|
-
this._groupActions.splice(actionIndex, 1);
|
73
|
-
}
|
74
|
-
};
|
75
|
-
|
data/vendor/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argument_parser.js
DELETED
@@ -1,1165 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* class ArgumentParser
|
3
|
-
*
|
4
|
-
* Object for parsing command line strings into js objects.
|
5
|
-
*
|
6
|
-
* Inherited from [[ActionContainer]]
|
7
|
-
**/
|
8
|
-
'use strict';
|
9
|
-
|
10
|
-
var util = require('util');
|
11
|
-
var format = require('util').format;
|
12
|
-
var Path = require('path');
|
13
|
-
|
14
|
-
var _ = require('underscore');
|
15
|
-
_.str = require('underscore.string');
|
16
|
-
|
17
|
-
// Constants
|
18
|
-
var $$ = require('./const');
|
19
|
-
|
20
|
-
var ActionContainer = require('./action_container');
|
21
|
-
|
22
|
-
// Errors
|
23
|
-
var argumentErrorHelper = require('./argument/error');
|
24
|
-
|
25
|
-
var HelpFormatter = require('./help/formatter');
|
26
|
-
|
27
|
-
var Namespace = require('./namespace');
|
28
|
-
|
29
|
-
|
30
|
-
/**
|
31
|
-
* new ArgumentParser(options)
|
32
|
-
*
|
33
|
-
* Create a new ArgumentParser object.
|
34
|
-
*
|
35
|
-
* ##### Options:
|
36
|
-
* - `prog` The name of the program (default: sys.argv[0])
|
37
|
-
* - `usage` A usage message (default: auto-generated from arguments)
|
38
|
-
* - `description` A description of what the program does
|
39
|
-
* - `epilog` Text following the argument descriptions
|
40
|
-
* - `parents` Parsers whose arguments should be copied into this one
|
41
|
-
* - `formatterClass` HelpFormatter class for printing help messages
|
42
|
-
* - `prefixChars` Characters that prefix optional arguments
|
43
|
-
* - `fromfilePrefixChars` Characters that prefix files containing additional arguments
|
44
|
-
* - `argumentDefault` The default value for all arguments
|
45
|
-
* - `addHelp` Add a -h/-help option
|
46
|
-
* - `conflictHandler` Specifies how to handle conflicting argument names
|
47
|
-
* - `debug` Enable debug mode. Argument errors throw exception in
|
48
|
-
* debug mode and process.exit in normal. Used for development and
|
49
|
-
* testing (default: false)
|
50
|
-
*
|
51
|
-
* See also [original guide][1]
|
52
|
-
*
|
53
|
-
* [1]:http://docs.python.org/dev/library/argparse.html#argumentparser-objects
|
54
|
-
**/
|
55
|
-
var ArgumentParser = module.exports = function ArgumentParser(options) {
|
56
|
-
var self = this;
|
57
|
-
options = options || {};
|
58
|
-
|
59
|
-
options.description = (options.description || null);
|
60
|
-
options.argumentDefault = (options.argumentDefault || null);
|
61
|
-
options.prefixChars = (options.prefixChars || '-');
|
62
|
-
options.conflictHandler = (options.conflictHandler || 'error');
|
63
|
-
ActionContainer.call(this, options);
|
64
|
-
|
65
|
-
options.addHelp = (options.addHelp === undefined || !!options.addHelp);
|
66
|
-
options.parents = (options.parents || []);
|
67
|
-
// default program name
|
68
|
-
options.prog = (options.prog || Path.basename(process.argv[1]));
|
69
|
-
this.prog = options.prog;
|
70
|
-
this.usage = options.usage;
|
71
|
-
this.epilog = options.epilog;
|
72
|
-
this.version = options.version;
|
73
|
-
|
74
|
-
this.debug = (options.debug === true);
|
75
|
-
|
76
|
-
this.formatterClass = (options.formatterClass || HelpFormatter);
|
77
|
-
this.fromfilePrefixChars = options.fromfilePrefixChars || null;
|
78
|
-
this._positionals = this.addArgumentGroup({title: 'Positional arguments'});
|
79
|
-
this._optionals = this.addArgumentGroup({title: 'Optional arguments'});
|
80
|
-
this._subparsers = null;
|
81
|
-
|
82
|
-
// register types
|
83
|
-
var FUNCTION_IDENTITY = function (o) {
|
84
|
-
return o;
|
85
|
-
};
|
86
|
-
this.register('type', 'auto', FUNCTION_IDENTITY);
|
87
|
-
this.register('type', null, FUNCTION_IDENTITY);
|
88
|
-
this.register('type', 'int', function (x) {
|
89
|
-
var result = parseInt(x, 10);
|
90
|
-
if (isNaN(result)) {
|
91
|
-
throw new Error(x + ' is not a valid integer.');
|
92
|
-
}
|
93
|
-
return result;
|
94
|
-
});
|
95
|
-
this.register('type', 'float', function (x) {
|
96
|
-
var result = parseFloat(x);
|
97
|
-
if (isNaN(result)) {
|
98
|
-
throw new Error(x + ' is not a valid float.');
|
99
|
-
}
|
100
|
-
return result;
|
101
|
-
});
|
102
|
-
this.register('type', 'string', function (x) {
|
103
|
-
return '' + x;
|
104
|
-
});
|
105
|
-
|
106
|
-
// add help and version arguments if necessary
|
107
|
-
var defaultPrefix = (this.prefixChars.indexOf('-') > -1) ? '-' : this.prefixChars[0];
|
108
|
-
if (options.addHelp) {
|
109
|
-
this.addArgument(
|
110
|
-
[defaultPrefix + 'h', defaultPrefix + defaultPrefix + 'help'],
|
111
|
-
{
|
112
|
-
action: 'help',
|
113
|
-
defaultValue: $$.SUPPRESS,
|
114
|
-
help: 'Show this help message and exit.'
|
115
|
-
}
|
116
|
-
);
|
117
|
-
}
|
118
|
-
if (this.version !== undefined) {
|
119
|
-
this.addArgument(
|
120
|
-
[defaultPrefix + 'v', defaultPrefix + defaultPrefix + 'version'],
|
121
|
-
{
|
122
|
-
action: 'version',
|
123
|
-
version: this.version,
|
124
|
-
defaultValue: $$.SUPPRESS,
|
125
|
-
help: "Show program's version number and exit."
|
126
|
-
}
|
127
|
-
);
|
128
|
-
}
|
129
|
-
|
130
|
-
// add parent arguments and defaults
|
131
|
-
options.parents.forEach(function (parent) {
|
132
|
-
self._addContainerActions(parent);
|
133
|
-
if (parent._defaults !== undefined) {
|
134
|
-
for (var defaultKey in parent._defaults) {
|
135
|
-
if (parent._defaults.hasOwnProperty(defaultKey)) {
|
136
|
-
self._defaults[defaultKey] = parent._defaults[defaultKey];
|
137
|
-
}
|
138
|
-
}
|
139
|
-
}
|
140
|
-
});
|
141
|
-
|
142
|
-
};
|
143
|
-
util.inherits(ArgumentParser, ActionContainer);
|
144
|
-
|
145
|
-
/**
|
146
|
-
* ArgumentParser#addSubparsers(options) -> [[ActionSubparsers]]
|
147
|
-
* - options (object): hash of options see [[ActionSubparsers.new]]
|
148
|
-
*
|
149
|
-
* See also [subcommands][1]
|
150
|
-
*
|
151
|
-
* [1]:http://docs.python.org/dev/library/argparse.html#sub-commands
|
152
|
-
**/
|
153
|
-
ArgumentParser.prototype.addSubparsers = function (options) {
|
154
|
-
if (!!this._subparsers) {
|
155
|
-
this.error('Cannot have multiple subparser arguments.');
|
156
|
-
}
|
157
|
-
|
158
|
-
options = options || {};
|
159
|
-
options.debug = (this.debug === true);
|
160
|
-
options.optionStrings = [];
|
161
|
-
options.parserClass = (options.parserClass || ArgumentParser);
|
162
|
-
|
163
|
-
|
164
|
-
if (!!options.title || !!options.description) {
|
165
|
-
|
166
|
-
this._subparsers = this.addArgumentGroup({
|
167
|
-
title: (options.title || 'subcommands'),
|
168
|
-
description: options.description
|
169
|
-
});
|
170
|
-
delete options.title;
|
171
|
-
delete options.description;
|
172
|
-
|
173
|
-
} else {
|
174
|
-
this._subparsers = this._positionals;
|
175
|
-
}
|
176
|
-
|
177
|
-
// prog defaults to the usage message of this parser, skipping
|
178
|
-
// optional arguments and with no "usage:" prefix
|
179
|
-
if (!options.prog) {
|
180
|
-
var formatter = this._getFormatter();
|
181
|
-
var positionals = this._getPositionalActions();
|
182
|
-
var groups = this._mutuallyExclusiveGroups;
|
183
|
-
formatter.addUsage(this.usage, positionals, groups, '');
|
184
|
-
options.prog = _.str.strip(formatter.formatHelp());
|
185
|
-
}
|
186
|
-
|
187
|
-
// create the parsers action and add it to the positionals list
|
188
|
-
var ParsersClass = this._popActionClass(options, 'parsers');
|
189
|
-
var action = new ParsersClass(options);
|
190
|
-
this._subparsers._addAction(action);
|
191
|
-
|
192
|
-
// return the created parsers action
|
193
|
-
return action;
|
194
|
-
};
|
195
|
-
|
196
|
-
ArgumentParser.prototype._addAction = function (action) {
|
197
|
-
if (action.isOptional()) {
|
198
|
-
this._optionals._addAction(action);
|
199
|
-
} else {
|
200
|
-
this._positionals._addAction(action);
|
201
|
-
}
|
202
|
-
return action;
|
203
|
-
};
|
204
|
-
|
205
|
-
ArgumentParser.prototype._getOptionalActions = function () {
|
206
|
-
return this._actions.filter(function (action) {
|
207
|
-
return action.isOptional();
|
208
|
-
});
|
209
|
-
};
|
210
|
-
|
211
|
-
ArgumentParser.prototype._getPositionalActions = function () {
|
212
|
-
return this._actions.filter(function (action) {
|
213
|
-
return action.isPositional();
|
214
|
-
});
|
215
|
-
};
|
216
|
-
|
217
|
-
|
218
|
-
/**
|
219
|
-
* ArgumentParser#parseArgs(args, namespace) -> Namespace|Object
|
220
|
-
* - args (array): input elements
|
221
|
-
* - namespace (Namespace|Object): result object
|
222
|
-
*
|
223
|
-
* Parsed args and throws error if some arguments are not recognized
|
224
|
-
*
|
225
|
-
* See also [original guide][1]
|
226
|
-
*
|
227
|
-
* [1]:http://docs.python.org/dev/library/argparse.html#the-parse-args-method
|
228
|
-
**/
|
229
|
-
ArgumentParser.prototype.parseArgs = function (args, namespace) {
|
230
|
-
var argv;
|
231
|
-
var result = this.parseKnownArgs(args, namespace);
|
232
|
-
|
233
|
-
args = result[0];
|
234
|
-
argv = result[1];
|
235
|
-
if (argv && argv.length > 0) {
|
236
|
-
this.error(
|
237
|
-
format('Unrecognized arguments: %s.', argv.join(' '))
|
238
|
-
);
|
239
|
-
}
|
240
|
-
return args;
|
241
|
-
};
|
242
|
-
|
243
|
-
/**
|
244
|
-
* ArgumentParser#parseKnownArgs(args, namespace) -> array
|
245
|
-
* - args (array): input options
|
246
|
-
* - namespace (Namespace|Object): result object
|
247
|
-
*
|
248
|
-
* Parse known arguments and return tuple of result object
|
249
|
-
* and unknown args
|
250
|
-
*
|
251
|
-
* See also [original guide][1]
|
252
|
-
*
|
253
|
-
* [1]:http://docs.python.org/dev/library/argparse.html#partial-parsing
|
254
|
-
**/
|
255
|
-
ArgumentParser.prototype.parseKnownArgs = function (args, namespace) {
|
256
|
-
var self = this;
|
257
|
-
|
258
|
-
// args default to the system args
|
259
|
-
args = args || process.argv.slice(2);
|
260
|
-
|
261
|
-
// default Namespace built from parser defaults
|
262
|
-
namespace = namespace || new Namespace();
|
263
|
-
|
264
|
-
self._actions.forEach(function (action) {
|
265
|
-
if (action.dest !== $$.SUPPRESS) {
|
266
|
-
if (!_.has(namespace, action.dest)) {
|
267
|
-
if (action.defaultValue !== $$.SUPPRESS) {
|
268
|
-
var defaultValue = action.defaultValue;
|
269
|
-
if (_.isString(action.defaultValue)) {
|
270
|
-
defaultValue = self._getValue(action, defaultValue);
|
271
|
-
}
|
272
|
-
namespace[action.dest] = defaultValue;
|
273
|
-
}
|
274
|
-
}
|
275
|
-
}
|
276
|
-
});
|
277
|
-
|
278
|
-
_.keys(self._defaults).forEach(function (dest) {
|
279
|
-
namespace[dest] = self._defaults[dest];
|
280
|
-
});
|
281
|
-
|
282
|
-
// parse the arguments and exit if there are any errors
|
283
|
-
try {
|
284
|
-
var res = this._parseKnownArgs(args, namespace);
|
285
|
-
|
286
|
-
namespace = res[0];
|
287
|
-
args = res[1];
|
288
|
-
if (_.has(namespace, $$._UNRECOGNIZED_ARGS_ATTR)) {
|
289
|
-
args = _.union(args, namespace[$$._UNRECOGNIZED_ARGS_ATTR]);
|
290
|
-
delete namespace[$$._UNRECOGNIZED_ARGS_ATTR];
|
291
|
-
}
|
292
|
-
return [namespace, args];
|
293
|
-
} catch (e) {
|
294
|
-
this.error(e);
|
295
|
-
}
|
296
|
-
};
|
297
|
-
|
298
|
-
ArgumentParser.prototype._parseKnownArgs = function (argStrings, namespace) {
|
299
|
-
var self = this;
|
300
|
-
|
301
|
-
var extras = [];
|
302
|
-
|
303
|
-
// replace arg strings that are file references
|
304
|
-
if (this.fromfilePrefixChars !== null) {
|
305
|
-
argStrings = this._readArgsFromFiles(argStrings);
|
306
|
-
}
|
307
|
-
// map all mutually exclusive arguments to the other arguments
|
308
|
-
// they can't occur with
|
309
|
-
// Python has 'conflicts = action_conflicts.setdefault(mutex_action, [])'
|
310
|
-
// though I can't conceive of a way in which an action could be a member
|
311
|
-
// of two different mutually exclusive groups.
|
312
|
-
|
313
|
-
function actionHash(action) {
|
314
|
-
// some sort of hashable key for this action
|
315
|
-
// action itself cannot be a key in actionConflicts
|
316
|
-
// I think getName() (join of optionStrings) is unique enough
|
317
|
-
return action.getName();
|
318
|
-
}
|
319
|
-
var conflicts, key;
|
320
|
-
var actionConflicts = {};
|
321
|
-
this._mutuallyExclusiveGroups.forEach(function (mutexGroup) {
|
322
|
-
mutexGroup._groupActions.forEach(function (mutexAction, i, groupActions) {
|
323
|
-
key = actionHash(mutexAction);
|
324
|
-
if (!_.has(actionConflicts, key)) {
|
325
|
-
actionConflicts[key] = [];
|
326
|
-
}
|
327
|
-
conflicts = actionConflicts[key];
|
328
|
-
conflicts.push.apply(conflicts, groupActions.slice(0, i));
|
329
|
-
conflicts.push.apply(conflicts, groupActions.slice(i + 1));
|
330
|
-
});
|
331
|
-
});
|
332
|
-
|
333
|
-
// find all option indices, and determine the arg_string_pattern
|
334
|
-
// which has an 'O' if there is an option at an index,
|
335
|
-
// an 'A' if there is an argument, or a '-' if there is a '--'
|
336
|
-
var optionStringIndices = {};
|
337
|
-
|
338
|
-
var argStringPatternParts = [];
|
339
|
-
|
340
|
-
argStrings.forEach(function (argString, argStringIndex) {
|
341
|
-
if (argString === '--') {
|
342
|
-
argStringPatternParts.push('-');
|
343
|
-
while (argStringIndex < argStrings.length) {
|
344
|
-
argStringPatternParts.push('A');
|
345
|
-
argStringIndex++;
|
346
|
-
}
|
347
|
-
}
|
348
|
-
// otherwise, add the arg to the arg strings
|
349
|
-
// and note the index if it was an option
|
350
|
-
else {
|
351
|
-
var pattern;
|
352
|
-
var optionTuple = self._parseOptional(argString);
|
353
|
-
if (!optionTuple) {
|
354
|
-
pattern = 'A';
|
355
|
-
}
|
356
|
-
else {
|
357
|
-
optionStringIndices[argStringIndex] = optionTuple;
|
358
|
-
pattern = 'O';
|
359
|
-
}
|
360
|
-
argStringPatternParts.push(pattern);
|
361
|
-
}
|
362
|
-
});
|
363
|
-
var argStringsPattern = argStringPatternParts.join('');
|
364
|
-
|
365
|
-
var seenActions = [];
|
366
|
-
var seenNonDefaultActions = [];
|
367
|
-
|
368
|
-
|
369
|
-
function takeAction(action, argumentStrings, optionString) {
|
370
|
-
seenActions.push(action);
|
371
|
-
var argumentValues = self._getValues(action, argumentStrings);
|
372
|
-
|
373
|
-
// error if this argument is not allowed with other previously
|
374
|
-
// seen arguments, assuming that actions that use the default
|
375
|
-
// value don't really count as "present"
|
376
|
-
if (argumentValues !== action.defaultValue) {
|
377
|
-
seenNonDefaultActions.push(action);
|
378
|
-
if (!!actionConflicts[actionHash(action)]) {
|
379
|
-
actionConflicts[actionHash(action)].forEach(function (actionConflict) {
|
380
|
-
if (seenNonDefaultActions.indexOf(actionConflict) >= 0) {
|
381
|
-
throw argumentErrorHelper(
|
382
|
-
action,
|
383
|
-
format('Not allowed with argument "%s".', actionConflict.getName())
|
384
|
-
);
|
385
|
-
}
|
386
|
-
});
|
387
|
-
}
|
388
|
-
}
|
389
|
-
|
390
|
-
if (argumentValues !== $$.SUPPRESS) {
|
391
|
-
action.call(self, namespace, argumentValues, optionString);
|
392
|
-
}
|
393
|
-
}
|
394
|
-
|
395
|
-
function consumeOptional(startIndex) {
|
396
|
-
// get the optional identified at this index
|
397
|
-
var optionTuple = optionStringIndices[startIndex];
|
398
|
-
var action = optionTuple[0];
|
399
|
-
var optionString = optionTuple[1];
|
400
|
-
var explicitArg = optionTuple[2];
|
401
|
-
|
402
|
-
// identify additional optionals in the same arg string
|
403
|
-
// (e.g. -xyz is the same as -x -y -z if no args are required)
|
404
|
-
var actionTuples = [];
|
405
|
-
|
406
|
-
var args, argCount, start, stop;
|
407
|
-
|
408
|
-
while (true) {
|
409
|
-
if (!action) {
|
410
|
-
extras.push(argStrings[startIndex]);
|
411
|
-
return startIndex + 1;
|
412
|
-
}
|
413
|
-
if (!!explicitArg) {
|
414
|
-
argCount = self._matchArgument(action, 'A');
|
415
|
-
|
416
|
-
// if the action is a single-dash option and takes no
|
417
|
-
// arguments, try to parse more single-dash options out
|
418
|
-
// of the tail of the option string
|
419
|
-
var chars = self.prefixChars;
|
420
|
-
if (argCount === 0 && chars.indexOf(optionString[1]) < 0) {
|
421
|
-
actionTuples.push([action, [], optionString]);
|
422
|
-
optionString = optionString[0] + explicitArg[0];
|
423
|
-
var newExplicitArg = explicitArg.slice(1) || null;
|
424
|
-
var optionalsMap = self._optionStringActions;
|
425
|
-
|
426
|
-
if (_.keys(optionalsMap).indexOf(optionString) >= 0) {
|
427
|
-
action = optionalsMap[optionString];
|
428
|
-
explicitArg = newExplicitArg;
|
429
|
-
}
|
430
|
-
else {
|
431
|
-
var msg = 'ignored explicit argument %r';
|
432
|
-
throw argumentErrorHelper(action, msg);
|
433
|
-
}
|
434
|
-
}
|
435
|
-
// if the action expect exactly one argument, we've
|
436
|
-
// successfully matched the option; exit the loop
|
437
|
-
else if (argCount === 1) {
|
438
|
-
stop = startIndex + 1;
|
439
|
-
args = [explicitArg];
|
440
|
-
actionTuples.push([action, args, optionString]);
|
441
|
-
break;
|
442
|
-
}
|
443
|
-
// error if a double-dash option did not use the
|
444
|
-
// explicit argument
|
445
|
-
else {
|
446
|
-
var message = 'ignored explicit argument %r';
|
447
|
-
throw argumentErrorHelper(action, _.str.sprintf(message, explicitArg));
|
448
|
-
}
|
449
|
-
}
|
450
|
-
// if there is no explicit argument, try to match the
|
451
|
-
// optional's string arguments with the following strings
|
452
|
-
// if successful, exit the loop
|
453
|
-
else {
|
454
|
-
|
455
|
-
start = startIndex + 1;
|
456
|
-
var selectedPatterns = argStringsPattern.substr(start);
|
457
|
-
|
458
|
-
argCount = self._matchArgument(action, selectedPatterns);
|
459
|
-
stop = start + argCount;
|
460
|
-
|
461
|
-
|
462
|
-
args = argStrings.slice(start, stop);
|
463
|
-
|
464
|
-
actionTuples.push([action, args, optionString]);
|
465
|
-
break;
|
466
|
-
}
|
467
|
-
|
468
|
-
}
|
469
|
-
|
470
|
-
// add the Optional to the list and return the index at which
|
471
|
-
// the Optional's string args stopped
|
472
|
-
if (actionTuples.length < 1) {
|
473
|
-
throw new Error('length should be > 0');
|
474
|
-
}
|
475
|
-
for (var i = 0; i < actionTuples.length; i++) {
|
476
|
-
takeAction.apply(self, actionTuples[i]);
|
477
|
-
}
|
478
|
-
return stop;
|
479
|
-
}
|
480
|
-
|
481
|
-
// the list of Positionals left to be parsed; this is modified
|
482
|
-
// by consume_positionals()
|
483
|
-
var positionals = self._getPositionalActions();
|
484
|
-
|
485
|
-
function consumePositionals(startIndex) {
|
486
|
-
// match as many Positionals as possible
|
487
|
-
var selectedPattern = argStringsPattern.substr(startIndex);
|
488
|
-
var argCounts = self._matchArgumentsPartial(positionals, selectedPattern);
|
489
|
-
|
490
|
-
// slice off the appropriate arg strings for each Positional
|
491
|
-
// and add the Positional and its args to the list
|
492
|
-
_.zip(positionals, argCounts).forEach(function (item) {
|
493
|
-
var action = item[0];
|
494
|
-
var argCount = item[1];
|
495
|
-
if (argCount === undefined) {
|
496
|
-
return;
|
497
|
-
}
|
498
|
-
var args = argStrings.slice(startIndex, startIndex + argCount);
|
499
|
-
|
500
|
-
startIndex += argCount;
|
501
|
-
takeAction(action, args);
|
502
|
-
});
|
503
|
-
|
504
|
-
// slice off the Positionals that we just parsed and return the
|
505
|
-
// index at which the Positionals' string args stopped
|
506
|
-
positionals = positionals.slice(argCounts.length);
|
507
|
-
return startIndex;
|
508
|
-
}
|
509
|
-
|
510
|
-
// consume Positionals and Optionals alternately, until we have
|
511
|
-
// passed the last option string
|
512
|
-
var startIndex = 0;
|
513
|
-
var position;
|
514
|
-
|
515
|
-
var maxOptionStringIndex = -1;
|
516
|
-
if (!!optionStringIndices) {
|
517
|
-
for (position in optionStringIndices) {
|
518
|
-
maxOptionStringIndex = Math.max(maxOptionStringIndex, parseInt(position, 10));
|
519
|
-
}
|
520
|
-
}
|
521
|
-
|
522
|
-
var positionalsEndIndex, nextOptionStringIndex;
|
523
|
-
|
524
|
-
while (startIndex <= maxOptionStringIndex) {
|
525
|
-
// consume any Positionals preceding the next option
|
526
|
-
nextOptionStringIndex = null;
|
527
|
-
for (position in optionStringIndices) {
|
528
|
-
position = parseInt(position, 10);
|
529
|
-
if (position >= startIndex) {
|
530
|
-
if (nextOptionStringIndex !== null) {
|
531
|
-
nextOptionStringIndex = Math.min(nextOptionStringIndex, position);
|
532
|
-
}
|
533
|
-
else {
|
534
|
-
nextOptionStringIndex = position;
|
535
|
-
}
|
536
|
-
}
|
537
|
-
}
|
538
|
-
|
539
|
-
if (startIndex !== nextOptionStringIndex) {
|
540
|
-
positionalsEndIndex = consumePositionals(startIndex);
|
541
|
-
// only try to parse the next optional if we didn't consume
|
542
|
-
// the option string during the positionals parsing
|
543
|
-
if (positionalsEndIndex > startIndex) {
|
544
|
-
startIndex = positionalsEndIndex;
|
545
|
-
continue;
|
546
|
-
}
|
547
|
-
else {
|
548
|
-
startIndex = positionalsEndIndex;
|
549
|
-
}
|
550
|
-
}
|
551
|
-
|
552
|
-
// if we consumed all the positionals we could and we're not
|
553
|
-
// at the index of an option string, there were extra arguments
|
554
|
-
if (!optionStringIndices[startIndex]) {
|
555
|
-
var strings = argStrings.slice(startIndex, nextOptionStringIndex);
|
556
|
-
extras = extras.concat(strings);
|
557
|
-
startIndex = nextOptionStringIndex;
|
558
|
-
}
|
559
|
-
// consume the next optional and any arguments for it
|
560
|
-
startIndex = consumeOptional(startIndex);
|
561
|
-
}
|
562
|
-
|
563
|
-
// consume any positionals following the last Optional
|
564
|
-
var stopIndex = consumePositionals(startIndex);
|
565
|
-
|
566
|
-
// if we didn't consume all the argument strings, there were extras
|
567
|
-
extras = extras.concat(_.rest(argStrings, stopIndex));
|
568
|
-
|
569
|
-
// if we didn't use all the Positional objects, there were too few
|
570
|
-
// arg strings supplied.
|
571
|
-
if (positionals.length > 0) {
|
572
|
-
self.error('too few arguments');
|
573
|
-
}
|
574
|
-
|
575
|
-
// make sure all required actions were present
|
576
|
-
self._actions.forEach(function (action) {
|
577
|
-
if (action.required) {
|
578
|
-
if (_.indexOf(seenActions, action) < 0) {
|
579
|
-
self.error(format('Argument "%s" is required', action.getName()));
|
580
|
-
}
|
581
|
-
}
|
582
|
-
});
|
583
|
-
|
584
|
-
// make sure all required groups have one option present
|
585
|
-
var actionUsed = false;
|
586
|
-
self._mutuallyExclusiveGroups.forEach(function (group) {
|
587
|
-
if (group.required) {
|
588
|
-
actionUsed = _.any(group._groupActions, function (action) {
|
589
|
-
return _.contains(seenNonDefaultActions, action);
|
590
|
-
});
|
591
|
-
|
592
|
-
// if no actions were used, report the error
|
593
|
-
if (!actionUsed) {
|
594
|
-
var names = [];
|
595
|
-
group._groupActions.forEach(function (action) {
|
596
|
-
if (action.help !== $$.SUPPRESS) {
|
597
|
-
names.push(action.getName());
|
598
|
-
}
|
599
|
-
});
|
600
|
-
names = names.join(' ');
|
601
|
-
var msg = 'one of the arguments ' + names + ' is required';
|
602
|
-
self.error(msg);
|
603
|
-
}
|
604
|
-
}
|
605
|
-
});
|
606
|
-
|
607
|
-
// return the updated namespace and the extra arguments
|
608
|
-
return [namespace, extras];
|
609
|
-
};
|
610
|
-
|
611
|
-
ArgumentParser.prototype._readArgsFromFiles = function (argStrings) {
|
612
|
-
// expand arguments referencing files
|
613
|
-
var _this = this;
|
614
|
-
var fs = require('fs');
|
615
|
-
var newArgStrings = [];
|
616
|
-
argStrings.forEach(function (argString) {
|
617
|
-
if (_this.fromfilePrefixChars.indexOf(argString[0]) < 0) {
|
618
|
-
// for regular arguments, just add them back into the list
|
619
|
-
newArgStrings.push(argString);
|
620
|
-
} else {
|
621
|
-
// replace arguments referencing files with the file content
|
622
|
-
try {
|
623
|
-
var argstrs = [];
|
624
|
-
var filename = argString.slice(1);
|
625
|
-
var content = fs.readFileSync(filename, 'utf8');
|
626
|
-
content = content.trim().split('\n');
|
627
|
-
content.forEach(function (argLine) {
|
628
|
-
_this.convertArgLineToArgs(argLine).forEach(function (arg) {
|
629
|
-
argstrs.push(arg);
|
630
|
-
});
|
631
|
-
argstrs = _this._readArgsFromFiles(argstrs);
|
632
|
-
});
|
633
|
-
newArgStrings.push.apply(newArgStrings, argstrs);
|
634
|
-
} catch (error) {
|
635
|
-
return _this.error(error.message);
|
636
|
-
}
|
637
|
-
}
|
638
|
-
});
|
639
|
-
return newArgStrings;
|
640
|
-
};
|
641
|
-
|
642
|
-
ArgumentParser.prototype.convertArgLineToArgs = function (argLine) {
|
643
|
-
return [argLine];
|
644
|
-
};
|
645
|
-
|
646
|
-
ArgumentParser.prototype._matchArgument = function (action, regexpArgStrings) {
|
647
|
-
|
648
|
-
// match the pattern for this action to the arg strings
|
649
|
-
var regexpNargs = new RegExp('^' + this._getNargsPattern(action));
|
650
|
-
var matches = regexpArgStrings.match(regexpNargs);
|
651
|
-
var message;
|
652
|
-
|
653
|
-
// throw an exception if we weren't able to find a match
|
654
|
-
if (!matches) {
|
655
|
-
switch (action.nargs) {
|
656
|
-
case undefined:
|
657
|
-
case null:
|
658
|
-
message = 'Expected one argument.';
|
659
|
-
break;
|
660
|
-
case $$.OPTIONAL:
|
661
|
-
message = 'Expected at most one argument.';
|
662
|
-
break;
|
663
|
-
case $$.ONE_OR_MORE:
|
664
|
-
message = 'Expected at least one argument.';
|
665
|
-
break;
|
666
|
-
default:
|
667
|
-
message = 'Expected %s argument(s)';
|
668
|
-
}
|
669
|
-
|
670
|
-
throw argumentErrorHelper(
|
671
|
-
action,
|
672
|
-
format(message, action.nargs)
|
673
|
-
);
|
674
|
-
}
|
675
|
-
// return the number of arguments matched
|
676
|
-
return matches[1].length;
|
677
|
-
};
|
678
|
-
|
679
|
-
ArgumentParser.prototype._matchArgumentsPartial = function (actions, regexpArgStrings) {
|
680
|
-
// progressively shorten the actions list by slicing off the
|
681
|
-
// final actions until we find a match
|
682
|
-
var self = this;
|
683
|
-
var result = [];
|
684
|
-
var actionSlice, pattern, matches;
|
685
|
-
var i, j;
|
686
|
-
|
687
|
-
var getLength = function (string) {
|
688
|
-
return string.length;
|
689
|
-
};
|
690
|
-
|
691
|
-
for (i = actions.length; i > 0; i -= 1) {
|
692
|
-
pattern = '';
|
693
|
-
actionSlice = actions.slice(0, i);
|
694
|
-
for (j in actionSlice) {
|
695
|
-
pattern += self._getNargsPattern(actionSlice[j]);
|
696
|
-
}
|
697
|
-
|
698
|
-
pattern = new RegExp('^' + pattern);
|
699
|
-
matches = regexpArgStrings.match(pattern);
|
700
|
-
|
701
|
-
if (matches && matches.length > 0) {
|
702
|
-
// need only groups
|
703
|
-
matches = matches.splice(1);
|
704
|
-
result = result.concat(matches.map(getLength));
|
705
|
-
break;
|
706
|
-
}
|
707
|
-
}
|
708
|
-
|
709
|
-
// return the list of arg string counts
|
710
|
-
return result;
|
711
|
-
};
|
712
|
-
|
713
|
-
ArgumentParser.prototype._parseOptional = function (argString) {
|
714
|
-
var action, optionString, argExplicit, optionTuples;
|
715
|
-
|
716
|
-
// if it's an empty string, it was meant to be a positional
|
717
|
-
if (!argString) {
|
718
|
-
return null;
|
719
|
-
}
|
720
|
-
|
721
|
-
// if it doesn't start with a prefix, it was meant to be positional
|
722
|
-
if (this.prefixChars.indexOf(argString[0]) < 0) {
|
723
|
-
return null;
|
724
|
-
}
|
725
|
-
|
726
|
-
// if the option string is present in the parser, return the action
|
727
|
-
if (!!this._optionStringActions[argString]) {
|
728
|
-
return [this._optionStringActions[argString], argString, null];
|
729
|
-
}
|
730
|
-
|
731
|
-
// if it's just a single character, it was meant to be positional
|
732
|
-
if (argString.length === 1) {
|
733
|
-
return null;
|
734
|
-
}
|
735
|
-
|
736
|
-
// if the option string before the "=" is present, return the action
|
737
|
-
if (argString.indexOf('=') >= 0) {
|
738
|
-
var argStringSplit = argString.split('=');
|
739
|
-
optionString = argStringSplit[0];
|
740
|
-
argExplicit = argStringSplit[1];
|
741
|
-
|
742
|
-
if (!!this._optionStringActions[optionString]) {
|
743
|
-
action = this._optionStringActions[optionString];
|
744
|
-
return [action, optionString, argExplicit];
|
745
|
-
}
|
746
|
-
}
|
747
|
-
|
748
|
-
// search through all possible prefixes of the option string
|
749
|
-
// and all actions in the parser for possible interpretations
|
750
|
-
optionTuples = this._getOptionTuples(argString);
|
751
|
-
|
752
|
-
// if multiple actions match, the option string was ambiguous
|
753
|
-
if (optionTuples.length > 1) {
|
754
|
-
var optionStrings = optionTuples.map(function (optionTuple) {
|
755
|
-
return optionTuple[1];
|
756
|
-
});
|
757
|
-
this.error(format(
|
758
|
-
'Ambiguous option: "%s" could match %s.',
|
759
|
-
argString, optionStrings.join(', ')
|
760
|
-
));
|
761
|
-
// if exactly one action matched, this segmentation is good,
|
762
|
-
// so return the parsed action
|
763
|
-
} else if (optionTuples.length === 1) {
|
764
|
-
return optionTuples[0];
|
765
|
-
}
|
766
|
-
|
767
|
-
// if it was not found as an option, but it looks like a negative
|
768
|
-
// number, it was meant to be positional
|
769
|
-
// unless there are negative-number-like options
|
770
|
-
if (argString.match(this._regexpNegativeNumber)) {
|
771
|
-
if (!_.any(this._hasNegativeNumberOptionals)) {
|
772
|
-
return null;
|
773
|
-
}
|
774
|
-
}
|
775
|
-
// if it contains a space, it was meant to be a positional
|
776
|
-
if (argString.search(' ') >= 0) {
|
777
|
-
return null;
|
778
|
-
}
|
779
|
-
|
780
|
-
// it was meant to be an optional but there is no such option
|
781
|
-
// in this parser (though it might be a valid option in a subparser)
|
782
|
-
return [null, argString, null];
|
783
|
-
};
|
784
|
-
|
785
|
-
ArgumentParser.prototype._getOptionTuples = function (optionString) {
|
786
|
-
var result = [];
|
787
|
-
var chars = this.prefixChars;
|
788
|
-
var optionPrefix;
|
789
|
-
var argExplicit;
|
790
|
-
var action;
|
791
|
-
var actionOptionString;
|
792
|
-
|
793
|
-
// option strings starting with two prefix characters are only split at
|
794
|
-
// the '='
|
795
|
-
if (chars.indexOf(optionString[0]) >= 0 && chars.indexOf(optionString[1]) >= 0) {
|
796
|
-
if (optionString.indexOf('=') >= 0) {
|
797
|
-
var optionStringSplit = optionString.split('=', 1);
|
798
|
-
|
799
|
-
optionPrefix = optionStringSplit[0];
|
800
|
-
argExplicit = optionStringSplit[1];
|
801
|
-
} else {
|
802
|
-
optionPrefix = optionString;
|
803
|
-
argExplicit = null;
|
804
|
-
}
|
805
|
-
|
806
|
-
for (actionOptionString in this._optionStringActions) {
|
807
|
-
if (actionOptionString.substr(0, optionPrefix.length) === optionPrefix) {
|
808
|
-
action = this._optionStringActions[actionOptionString];
|
809
|
-
result.push([action, actionOptionString, argExplicit]);
|
810
|
-
}
|
811
|
-
}
|
812
|
-
|
813
|
-
// single character options can be concatenated with their arguments
|
814
|
-
// but multiple character options always have to have their argument
|
815
|
-
// separate
|
816
|
-
} else if (chars.indexOf(optionString[0]) >= 0 && chars.indexOf(optionString[1]) < 0) {
|
817
|
-
optionPrefix = optionString;
|
818
|
-
argExplicit = null;
|
819
|
-
var optionPrefixShort = optionString.substr(0, 2);
|
820
|
-
var argExplicitShort = optionString.substr(2);
|
821
|
-
|
822
|
-
for (actionOptionString in this._optionStringActions) {
|
823
|
-
action = this._optionStringActions[actionOptionString];
|
824
|
-
if (actionOptionString === optionPrefixShort) {
|
825
|
-
result.push([action, actionOptionString, argExplicitShort]);
|
826
|
-
} else if (actionOptionString.substr(0, optionPrefix.length) === optionPrefix) {
|
827
|
-
result.push([action, actionOptionString, argExplicit]);
|
828
|
-
}
|
829
|
-
}
|
830
|
-
|
831
|
-
// shouldn't ever get here
|
832
|
-
} else {
|
833
|
-
throw new Error(format('Unexpected option string: %s.', optionString));
|
834
|
-
}
|
835
|
-
// return the collected option tuples
|
836
|
-
return result;
|
837
|
-
};
|
838
|
-
|
839
|
-
ArgumentParser.prototype._getNargsPattern = function (action) {
|
840
|
-
// in all examples below, we have to allow for '--' args
|
841
|
-
// which are represented as '-' in the pattern
|
842
|
-
var regexpNargs;
|
843
|
-
|
844
|
-
switch (action.nargs) {
|
845
|
-
// the default (null) is assumed to be a single argument
|
846
|
-
case undefined:
|
847
|
-
case null:
|
848
|
-
regexpNargs = '(-*A-*)';
|
849
|
-
break;
|
850
|
-
// allow zero or more arguments
|
851
|
-
case $$.OPTIONAL:
|
852
|
-
regexpNargs = '(-*A?-*)';
|
853
|
-
break;
|
854
|
-
// allow zero or more arguments
|
855
|
-
case $$.ZERO_OR_MORE:
|
856
|
-
regexpNargs = '(-*[A-]*)';
|
857
|
-
break;
|
858
|
-
// allow one or more arguments
|
859
|
-
case $$.ONE_OR_MORE:
|
860
|
-
regexpNargs = '(-*A[A-]*)';
|
861
|
-
break;
|
862
|
-
// allow any number of options or arguments
|
863
|
-
case $$.REMAINDER:
|
864
|
-
regexpNargs = '([-AO]*)';
|
865
|
-
break;
|
866
|
-
// allow one argument followed by any number of options or arguments
|
867
|
-
case $$.PARSER:
|
868
|
-
regexpNargs = '(-*A[-AO]*)';
|
869
|
-
break;
|
870
|
-
// all others should be integers
|
871
|
-
default:
|
872
|
-
regexpNargs = '(-*' + _.str.repeat('-*A', action.nargs) + '-*)';
|
873
|
-
}
|
874
|
-
|
875
|
-
// if this is an optional action, -- is not allowed
|
876
|
-
if (action.isOptional()) {
|
877
|
-
regexpNargs = regexpNargs.replace(/-\*/g, '');
|
878
|
-
regexpNargs = regexpNargs.replace(/-/g, '');
|
879
|
-
}
|
880
|
-
|
881
|
-
// return the pattern
|
882
|
-
return regexpNargs;
|
883
|
-
};
|
884
|
-
|
885
|
-
//
|
886
|
-
// Value conversion methods
|
887
|
-
//
|
888
|
-
|
889
|
-
ArgumentParser.prototype._getValues = function (action, argStrings) {
|
890
|
-
var self = this;
|
891
|
-
|
892
|
-
// for everything but PARSER args, strip out '--'
|
893
|
-
if (action.nargs !== $$.PARSER && action.nargs !== $$.REMAINDER) {
|
894
|
-
argStrings = argStrings.filter(function (arrayElement) {
|
895
|
-
return arrayElement !== '--';
|
896
|
-
});
|
897
|
-
}
|
898
|
-
|
899
|
-
var value, argString;
|
900
|
-
|
901
|
-
// optional argument produces a default when not present
|
902
|
-
if (argStrings.length === 0 && action.nargs === $$.OPTIONAL) {
|
903
|
-
|
904
|
-
value = (action.isOptional()) ? action.constant: action.defaultValue;
|
905
|
-
|
906
|
-
if (typeof(value) === 'string') {
|
907
|
-
value = this._getValue(action, value);
|
908
|
-
this._checkValue(action, value);
|
909
|
-
}
|
910
|
-
|
911
|
-
// when nargs='*' on a positional, if there were no command-line
|
912
|
-
// args, use the default if it is anything other than None
|
913
|
-
} else if (argStrings.length === 0 && action.nargs === $$.ZERO_OR_MORE &&
|
914
|
-
action.optionStrings.length === 0) {
|
915
|
-
|
916
|
-
value = (action.defaultValue || argStrings);
|
917
|
-
this._checkValue(action, value);
|
918
|
-
|
919
|
-
// single argument or optional argument produces a single value
|
920
|
-
} else if (argStrings.length === 1 &&
|
921
|
-
(!action.nargs || action.nargs === $$.OPTIONAL)) {
|
922
|
-
|
923
|
-
argString = argStrings[0];
|
924
|
-
value = this._getValue(action, argString);
|
925
|
-
this._checkValue(action, value);
|
926
|
-
|
927
|
-
// REMAINDER arguments convert all values, checking none
|
928
|
-
} else if (action.nargs === $$.REMAINDER) {
|
929
|
-
value = argStrings.map(function (v) {
|
930
|
-
return self._getValue(action, v);
|
931
|
-
});
|
932
|
-
|
933
|
-
// PARSER arguments convert all values, but check only the first
|
934
|
-
} else if (action.nargs === $$.PARSER) {
|
935
|
-
value = argStrings.map(function (v) {
|
936
|
-
return self._getValue(action, v);
|
937
|
-
});
|
938
|
-
this._checkValue(action, value[0]);
|
939
|
-
|
940
|
-
// all other types of nargs produce a list
|
941
|
-
} else {
|
942
|
-
value = argStrings.map(function (v) {
|
943
|
-
return self._getValue(action, v);
|
944
|
-
});
|
945
|
-
value.forEach(function (v) {
|
946
|
-
self._checkValue(action, v);
|
947
|
-
});
|
948
|
-
}
|
949
|
-
|
950
|
-
// return the converted value
|
951
|
-
return value;
|
952
|
-
};
|
953
|
-
|
954
|
-
ArgumentParser.prototype._getValue = function (action, argString) {
|
955
|
-
var result;
|
956
|
-
|
957
|
-
var typeFunction = this._registryGet('type', action.type, action.type);
|
958
|
-
if (!_.isFunction(typeFunction)) {
|
959
|
-
var message = format('%s is not callable', typeFunction);
|
960
|
-
throw argumentErrorHelper(action, message);
|
961
|
-
}
|
962
|
-
|
963
|
-
// convert the value to the appropriate type
|
964
|
-
try {
|
965
|
-
result = typeFunction(argString);
|
966
|
-
|
967
|
-
// ArgumentTypeErrors indicate errors
|
968
|
-
// If action.type is not a registered string, it is a function
|
969
|
-
// Try to deduce its name for inclusion in the error message
|
970
|
-
// Failing that, include the error message it raised.
|
971
|
-
} catch (e) {
|
972
|
-
var name = null;
|
973
|
-
if (_.isString(action.type)) {
|
974
|
-
name = action.type;
|
975
|
-
} else {
|
976
|
-
name = action.type.name || action.type.displayName || '<function>';
|
977
|
-
}
|
978
|
-
var msg = format('Invalid %s value: %s', name, argString);
|
979
|
-
if (name === '<function>') {msg += '\n' + e.message; }
|
980
|
-
throw argumentErrorHelper(action, msg);
|
981
|
-
}
|
982
|
-
// return the converted value
|
983
|
-
return result;
|
984
|
-
};
|
985
|
-
|
986
|
-
ArgumentParser.prototype._checkValue = function (action, value) {
|
987
|
-
// converted value must be one of the choices (if specified)
|
988
|
-
var choices = action.choices;
|
989
|
-
if (!!choices) {
|
990
|
-
// choise for argument can by array or string
|
991
|
-
if ((_.isString(choices) || _.isArray(choices)) &&
|
992
|
-
choices.indexOf(value) !== -1) {
|
993
|
-
return;
|
994
|
-
}
|
995
|
-
// choise for subparsers can by only hash
|
996
|
-
if (_.isObject(choices) && !_.isArray(choices) && choices[value]) {
|
997
|
-
return;
|
998
|
-
}
|
999
|
-
|
1000
|
-
if (_.isString(choices)) {
|
1001
|
-
choices = choices.split('').join(', ');
|
1002
|
-
}
|
1003
|
-
else if (_.isArray(choices)) {
|
1004
|
-
choices = choices.join(', ');
|
1005
|
-
}
|
1006
|
-
else {
|
1007
|
-
choices = _.keys(choices).join(', ');
|
1008
|
-
}
|
1009
|
-
var message = format('Invalid choice: %s (choose from [%s])', value, choices);
|
1010
|
-
throw argumentErrorHelper(action, message);
|
1011
|
-
}
|
1012
|
-
};
|
1013
|
-
|
1014
|
-
//
|
1015
|
-
// Help formatting methods
|
1016
|
-
//
|
1017
|
-
|
1018
|
-
/**
|
1019
|
-
* ArgumentParser#formatUsage -> string
|
1020
|
-
*
|
1021
|
-
* Return usage string
|
1022
|
-
*
|
1023
|
-
* See also [original guide][1]
|
1024
|
-
*
|
1025
|
-
* [1]:http://docs.python.org/dev/library/argparse.html#printing-help
|
1026
|
-
**/
|
1027
|
-
ArgumentParser.prototype.formatUsage = function () {
|
1028
|
-
var formatter = this._getFormatter();
|
1029
|
-
formatter.addUsage(this.usage, this._actions, this._mutuallyExclusiveGroups);
|
1030
|
-
return formatter.formatHelp();
|
1031
|
-
};
|
1032
|
-
|
1033
|
-
/**
|
1034
|
-
* ArgumentParser#formatHelp -> string
|
1035
|
-
*
|
1036
|
-
* Return help
|
1037
|
-
*
|
1038
|
-
* See also [original guide][1]
|
1039
|
-
*
|
1040
|
-
* [1]:http://docs.python.org/dev/library/argparse.html#printing-help
|
1041
|
-
**/
|
1042
|
-
ArgumentParser.prototype.formatHelp = function () {
|
1043
|
-
var formatter = this._getFormatter();
|
1044
|
-
|
1045
|
-
// usage
|
1046
|
-
formatter.addUsage(this.usage, this._actions, this._mutuallyExclusiveGroups);
|
1047
|
-
|
1048
|
-
// description
|
1049
|
-
formatter.addText(this.description);
|
1050
|
-
|
1051
|
-
// positionals, optionals and user-defined groups
|
1052
|
-
this._actionGroups.forEach(function (actionGroup) {
|
1053
|
-
formatter.startSection(actionGroup.title);
|
1054
|
-
formatter.addText(actionGroup.description);
|
1055
|
-
formatter.addArguments(actionGroup._groupActions);
|
1056
|
-
formatter.endSection();
|
1057
|
-
});
|
1058
|
-
|
1059
|
-
// epilog
|
1060
|
-
formatter.addText(this.epilog);
|
1061
|
-
|
1062
|
-
// determine help from format above
|
1063
|
-
return formatter.formatHelp();
|
1064
|
-
};
|
1065
|
-
|
1066
|
-
ArgumentParser.prototype._getFormatter = function () {
|
1067
|
-
var FormatterClass = this.formatterClass;
|
1068
|
-
var formatter = new FormatterClass({prog: this.prog});
|
1069
|
-
return formatter;
|
1070
|
-
};
|
1071
|
-
|
1072
|
-
//
|
1073
|
-
// Print functions
|
1074
|
-
//
|
1075
|
-
|
1076
|
-
/**
|
1077
|
-
* ArgumentParser#printUsage() -> Void
|
1078
|
-
*
|
1079
|
-
* Print usage
|
1080
|
-
*
|
1081
|
-
* See also [original guide][1]
|
1082
|
-
*
|
1083
|
-
* [1]:http://docs.python.org/dev/library/argparse.html#printing-help
|
1084
|
-
**/
|
1085
|
-
ArgumentParser.prototype.printUsage = function () {
|
1086
|
-
this._printMessage(this.formatUsage());
|
1087
|
-
};
|
1088
|
-
|
1089
|
-
/**
|
1090
|
-
* ArgumentParser#printHelp() -> Void
|
1091
|
-
*
|
1092
|
-
* Print help
|
1093
|
-
*
|
1094
|
-
* See also [original guide][1]
|
1095
|
-
*
|
1096
|
-
* [1]:http://docs.python.org/dev/library/argparse.html#printing-help
|
1097
|
-
**/
|
1098
|
-
ArgumentParser.prototype.printHelp = function () {
|
1099
|
-
this._printMessage(this.formatHelp());
|
1100
|
-
};
|
1101
|
-
|
1102
|
-
ArgumentParser.prototype._printMessage = function (message, stream) {
|
1103
|
-
if (!stream) {
|
1104
|
-
stream = process.stdout;
|
1105
|
-
}
|
1106
|
-
if (message) {
|
1107
|
-
stream.write('' + message);
|
1108
|
-
}
|
1109
|
-
};
|
1110
|
-
|
1111
|
-
//
|
1112
|
-
// Exit functions
|
1113
|
-
//
|
1114
|
-
|
1115
|
-
/**
|
1116
|
-
* ArgumentParser#exit(status=0, message) -> Void
|
1117
|
-
* - status (int): exit status
|
1118
|
-
* - message (string): message
|
1119
|
-
*
|
1120
|
-
* Print message in stderr/stdout and exit program
|
1121
|
-
**/
|
1122
|
-
ArgumentParser.prototype.exit = function (status, message) {
|
1123
|
-
if (!!message) {
|
1124
|
-
if (status === 0) {
|
1125
|
-
this._printMessage(message);
|
1126
|
-
}
|
1127
|
-
else {
|
1128
|
-
this._printMessage(message, process.stderr);
|
1129
|
-
}
|
1130
|
-
}
|
1131
|
-
|
1132
|
-
process.exit(status);
|
1133
|
-
};
|
1134
|
-
|
1135
|
-
/**
|
1136
|
-
* ArgumentParser#error(message) -> Void
|
1137
|
-
* - err (Error|string): message
|
1138
|
-
*
|
1139
|
-
* Error method Prints a usage message incorporating the message to stderr and
|
1140
|
-
* exits. If you override this in a subclass,
|
1141
|
-
* it should not return -- it should
|
1142
|
-
* either exit or throw an exception.
|
1143
|
-
*
|
1144
|
-
**/
|
1145
|
-
ArgumentParser.prototype.error = function (err) {
|
1146
|
-
var message;
|
1147
|
-
if (err instanceof Error) {
|
1148
|
-
if (this.debug === true) {
|
1149
|
-
throw err;
|
1150
|
-
}
|
1151
|
-
message = err.message;
|
1152
|
-
}
|
1153
|
-
else {
|
1154
|
-
message = err;
|
1155
|
-
}
|
1156
|
-
var msg = format('%s: error: %s', this.prog, message) + $$.EOL;
|
1157
|
-
|
1158
|
-
if (this.debug === true) {
|
1159
|
-
throw new Error(msg);
|
1160
|
-
}
|
1161
|
-
|
1162
|
-
this.printUsage(process.stderr);
|
1163
|
-
|
1164
|
-
return this.exit(2, msg);
|
1165
|
-
};
|