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
File without changes
|
@@ -1,73 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "underscore.string",
|
3
|
-
"version": "2.3.3",
|
4
|
-
"description": "String manipulation extensions for Underscore.js javascript library.",
|
5
|
-
"homepage": "http://epeli.github.com/underscore.string/",
|
6
|
-
"contributors": [
|
7
|
-
{
|
8
|
-
"name": "Esa-Matti Suuronen",
|
9
|
-
"email": "esa-matti@suuronen.org",
|
10
|
-
"url": "http://esa-matti.suuronen.org/"
|
11
|
-
},
|
12
|
-
{
|
13
|
-
"name": "Edward Tsech",
|
14
|
-
"email": "edtsech@gmail.com"
|
15
|
-
},
|
16
|
-
{
|
17
|
-
"name": "Pavel Pravosud",
|
18
|
-
"email": "pavel@pravosud.com",
|
19
|
-
"url": "<https://github.com/rwz>"
|
20
|
-
},
|
21
|
-
{
|
22
|
-
"name": "Sasha Koss",
|
23
|
-
"email": "kossnocorp@gmail.com",
|
24
|
-
"url": "http://koss.nocorp.me/"
|
25
|
-
},
|
26
|
-
{
|
27
|
-
"name": "Vladimir Dronnikov",
|
28
|
-
"email": "dronnikov@gmail.com"
|
29
|
-
},
|
30
|
-
{
|
31
|
-
"name": "Pete Kruckenberg",
|
32
|
-
"email": "https://github.com/kruckenb",
|
33
|
-
"url": "<https://github.com/kruckenb>"
|
34
|
-
},
|
35
|
-
{
|
36
|
-
"name": "Paul Chavard",
|
37
|
-
"email": "paul@chavard.net",
|
38
|
-
"url": "<http://tchak.net>"
|
39
|
-
},
|
40
|
-
{
|
41
|
-
"name": "Ed Finkler",
|
42
|
-
"email": "coj@funkatron.com",
|
43
|
-
"url": "<http://funkatron.com>"
|
44
|
-
}
|
45
|
-
],
|
46
|
-
"keywords": [
|
47
|
-
"underscore",
|
48
|
-
"string"
|
49
|
-
],
|
50
|
-
"main": "./lib/underscore.string",
|
51
|
-
"directories": {
|
52
|
-
"lib": "./lib"
|
53
|
-
},
|
54
|
-
"engines": {
|
55
|
-
"node": "*"
|
56
|
-
},
|
57
|
-
"repository": {
|
58
|
-
"type": "git",
|
59
|
-
"url": "https://github.com/epeli/underscore.string.git"
|
60
|
-
},
|
61
|
-
"bugs": {
|
62
|
-
"url": "https://github.com/epeli/underscore.string/issues"
|
63
|
-
},
|
64
|
-
"licenses": [
|
65
|
-
{
|
66
|
-
"type": "MIT"
|
67
|
-
}
|
68
|
-
],
|
69
|
-
"readme": "# Underscore.string [](http://travis-ci.org/epeli/underscore.string) #\n\n\n\nJavascript lacks complete string manipulation operations.\nThis an attempt to fill that gap. List of build-in methods can be found\nfor example from [Dive Into JavaScript][d].\n\n[d]: http://www.diveintojavascript.com/core-javascript-reference/the-string-object\n\n\nAs name states this an extension for [Underscore.js][u], but it can be used\nindependently from **_s**-global variable. But with Underscore.js you can\nuse Object-Oriented style and chaining:\n\n[u]: http://documentcloud.github.com/underscore/\n\n```javascript\n_(\" epeli \").chain().trim().capitalize().value()\n=> \"Epeli\"\n```\n\n## Download ##\n\n * [Development version](https://raw.github.com/epeli/underscore.string/master/lib/underscore.string.js) *Uncompressed with Comments 18kb*\n * [Production version](https://github.com/epeli/underscore.string/raw/master/dist/underscore.string.min.js) *Minified 7kb*\n\n\n## Node.js installation ##\n\n**npm package**\n\n npm install underscore.string\n\n**Standalone usage**:\n\n```javascript\nvar _s = require('underscore.string');\n```\n\n**Integrate with Underscore.js**:\n\n```javascript\nvar _ = require('underscore');\n\n// Import Underscore.string to separate object, because there are conflict functions (include, reverse, contains)\n_.str = require('underscore.string');\n\n// Mix in non-conflict functions to Underscore namespace if you want\n_.mixin(_.str.exports());\n\n// All functions, include conflict, will be available through _.str object\n_.str.include('Underscore.string', 'string'); // => true\n```\n\n**Or Integrate with Underscore.js without module loading**\n\nRun the following expression after Underscore.js and Underscore.string are loaded\n```javascript\n// _.str becomes a global variable if no module loading is detected\n// Mix in non-conflict functions to Underscore namespace\n_.mixin(_.str.exports());\n```\n\n## String Functions ##\n\nFor availability of functions in this way you need to mix in Underscore.string functions:\n\n```javascript\n_.mixin(_.string.exports());\n```\n\notherwise functions from examples will be available through _.string or _.str objects:\n\n```javascript\n_.str.capitalize('epeli')\n=> \"Epeli\"\n```\n\n**numberFormat** _.numberFormat(number, [ decimals=0, decimalSeparator='.', orderSeparator=','])\n\nFormats the numbers.\n\n```javascript\n_.numberFormat(1000, 2)\n=> \"1,000.00\"\n\n_.numberFormat(123456789.123, 5, '.', ',')\n=> \"123,456,789.12300\"\n```\n\n\n**levenshtein** _.levenshtein(string1, string2)\n\nCalculates [Levenshtein distance][ld] between two strings.\n[ld]: http://en.wikipedia.org/wiki/Levenshtein_distance\n\n```javascript\n_.levenshtein('kitten', 'kittah')\n=> 2\n```\n\n**capitalize** _.capitalize(string)\n\nConverts first letter of the string to uppercase.\n\n```javascript\n_.capitalize(\"foo Bar\")\n=> \"Foo Bar\"\n```\n\n**chop** _.chop(string, step)\n\n```javascript\n_.chop('whitespace', 3)\n=> ['whi','tes','pac','e']\n```\n\n**clean** _.clean(str)\n\nCompress some whitespaces to one.\n\n```javascript\n_.clean(\" foo bar \")\n=> 'foo bar'\n```\n\n**chars** _.chars(str)\n\n```javascript\n_.chars('Hello')\n=> ['H','e','l','l','o']\n```\n\n**swapCase** _.swapCase(str)\n\nReturns a copy of the string in which all the case-based characters have had their case swapped.\n\n```javascript\n_.swapCase('hELLO')\n=> 'Hello'\n```\n\n**include** available only through _.str object, because Underscore has function with the same name.\n\n```javascript\n_.str.include(\"foobar\", \"ob\")\n=> true\n```\n\n(removed) **includes** _.includes(string, substring)\n\nTests if string contains a substring.\n\n```javascript\n_.includes(\"foobar\", \"ob\")\n=> true\n```\n\n**includes** function was removed\n\nBut you can create it in this way, for compatibility with previous versions:\n\n```javascript\n_.includes = _.str.include\n```\n\n**count** _.count(string, substring)\n\n```javascript\n_('Hello world').count('l')\n=> 3\n```\n\n**escapeHTML** _.escapeHTML(string)\n\nConverts HTML special characters to their entity equivalents.\n\n```javascript\n_('<div>Blah blah blah</div>').escapeHTML();\n=> '<div>Blah blah blah</div>'\n```\n\n**unescapeHTML** _.unescapeHTML(string)\n\nConverts entity characters to HTML equivalents.\n\n```javascript\n_('<div>Blah blah blah</div>').unescapeHTML();\n=> '<div>Blah blah blah</div>'\n```\n\n**insert** _.insert(string, index, substing)\n\n```javascript\n_('Hello ').insert(6, 'world')\n=> 'Hello world'\n```\n\n**isBlank** _.isBlank(string)\n\n```javascript\n_('').isBlank(); // => true\n_('\\n').isBlank(); // => true\n_(' ').isBlank(); // => true\n_('a').isBlank(); // => false\n```\n\n**join** _.join(separator, *strings)\n\nJoins strings together with given separator\n\n```javascript\n_.join(\" \", \"foo\", \"bar\")\n=> \"foo bar\"\n```\n\n**lines** _.lines(str)\n\n```javascript\n_.lines(\"Hello\\nWorld\")\n=> [\"Hello\", \"World\"]\n```\n\n**reverse** available only through _.str object, because Underscore has function with the same name.\n\nReturn reversed string:\n\n```javascript\n_.str.reverse(\"foobar\")\n=> 'raboof'\n```\n\n**splice** _.splice(string, index, howmany, substring)\n\nLike a array splice.\n\n```javascript\n_('https://edtsech@bitbucket.org/edtsech/underscore.strings').splice(30, 7, 'epeli')\n=> 'https://edtsech@bitbucket.org/epeli/underscore.strings'\n```\n\n**startsWith** _.startsWith(string, starts)\n\nThis method checks whether string starts with starts.\n\n```javascript\n_(\"image.gif\").startsWith(\"image\")\n=> true\n```\n\n**endsWith** _.endsWith(string, ends)\n\nThis method checks whether string ends with ends.\n\n```javascript\n_(\"image.gif\").endsWith(\"gif\")\n=> true\n```\n\n**succ** _.succ(str)\n\nReturns the successor to str.\n\n```javascript\n_('a').succ()\n=> 'b'\n\n_('A').succ()\n=> 'B'\n```\n\n**supplant**\n\nSupplant function was removed, use Underscore.js [template function][p].\n\n[p]: http://documentcloud.github.com/underscore/#template\n\n**strip** alias for *trim*\n\n**lstrip** alias for *ltrim*\n\n**rstrip** alias for *rtrim*\n\n**titleize** _.titleize(string)\n\n```javascript\n_('my name is epeli').titleize()\n=> 'My Name Is Epeli'\n```\n\n**camelize** _.camelize(string)\n\nConverts underscored or dasherized string to a camelized one\n\n```javascript\n_('-moz-transform').camelize()\n=> 'MozTransform'\n```\n\n**classify** _.classify(string)\n\nConverts string to camelized class name\n\n```javascript\n_('some_class_name').classify()\n=> 'SomeClassName'\n```\n\n**underscored** _.underscored(string)\n\nConverts a camelized or dasherized string into an underscored one\n\n```javascript\n_('MozTransform').underscored()\n=> 'moz_transform'\n```\n\n**dasherize** _.dasherize(string)\n\nConverts a underscored or camelized string into an dasherized one\n\n```javascript\n_('MozTransform').dasherize()\n=> '-moz-transform'\n```\n\n**humanize** _.humanize(string)\n\nConverts an underscored, camelized, or dasherized string into a humanized one.\nAlso removes beginning and ending whitespace, and removes the postfix '_id'.\n\n```javascript\n_(' capitalize dash-CamelCase_underscore trim ').humanize()\n=> 'Capitalize dash camel case underscore trim'\n```\n\n**trim** _.trim(string, [characters])\n\ntrims defined characters from begining and ending of the string.\nDefaults to whitespace characters.\n\n```javascript\n_.trim(\" foobar \")\n=> \"foobar\"\n\n_.trim(\"_-foobar-_\", \"_-\")\n=> \"foobar\"\n```\n\n\n**ltrim** _.ltrim(string, [characters])\n\nLeft trim. Similar to trim, but only for left side.\n\n\n**rtrim** _.rtrim(string, [characters])\n\nRight trim. Similar to trim, but only for right side.\n\n**truncate** _.truncate(string, length, truncateString)\n\n```javascript\n_('Hello world').truncate(5)\n=> 'Hello...'\n\n_('Hello').truncate(10)\n=> 'Hello'\n```\n\n**prune** _.prune(string, length, pruneString)\n\nElegant version of truncate.\nMakes sure the pruned string does not exceed the original length.\nAvoid half-chopped words when truncating.\n\n```javascript\n_('Hello, world').prune(5)\n=> 'Hello...'\n\n_('Hello, world').prune(8)\n=> 'Hello...'\n\n_('Hello, world').prune(5, ' (read a lot more)')\n=> 'Hello, world' (as adding \"(read a lot more)\" would be longer than the original string)\n\n_('Hello, cruel world').prune(15)\n=> 'Hello, cruel...'\n\n_('Hello').prune(10)\n=> 'Hello'\n```\n\n**words** _.words(str, delimiter=/\\s+/)\n\nSplit string by delimiter (String or RegExp), /\\s+/ by default.\n\n```javascript\n_.words(\" I love you \")\n=> [\"I\",\"love\",\"you\"]\n\n_.words(\"I_love_you\", \"_\")\n=> [\"I\",\"love\",\"you\"]\n\n_.words(\"I-love-you\", /-/)\n=> [\"I\",\"love\",\"you\"]\n\n_.words(\" \")\n=> []\n```\n\n**sprintf** _.sprintf(string format, *arguments)\n\nC like string formatting.\nCredits goes to [Alexandru Marasteanu][o].\nFor more detailed documentation, see the [original page][o].\n\n[o]: http://www.diveintojavascript.com/projects/sprintf-for-javascript\n\n```javascript\n_.sprintf(\"%.1f\", 1.17)\n\"1.2\"\n```\n\n**pad** _.pad(str, length, [padStr, type])\n\npads the `str` with characters until the total string length is equal to the passed `length` parameter. By default, pads on the **left** with the space char (`\" \"`). `padStr` is truncated to a single character if necessary.\n\n```javascript\n_.pad(\"1\", 8)\n-> \" 1\";\n\n_.pad(\"1\", 8, '0')\n-> \"00000001\";\n\n_.pad(\"1\", 8, '0', 'right')\n-> \"10000000\";\n\n_.pad(\"1\", 8, '0', 'both')\n-> \"00001000\";\n\n_.pad(\"1\", 8, 'bleepblorp', 'both')\n-> \"bbbb1bbb\";\n```\n\n**lpad** _.lpad(str, length, [padStr])\n\nleft-pad a string. Alias for `pad(str, length, padStr, 'left')`\n\n```javascript\n_.lpad(\"1\", 8, '0')\n-> \"00000001\";\n```\n\n**rpad** _.rpad(str, length, [padStr])\n\nright-pad a string. Alias for `pad(str, length, padStr, 'right')`\n\n```javascript\n_.rpad(\"1\", 8, '0')\n-> \"10000000\";\n```\n\n**lrpad** _.lrpad(str, length, [padStr])\n\nleft/right-pad a string. Alias for `pad(str, length, padStr, 'both')`\n\n```javascript\n_.lrpad(\"1\", 8, '0')\n-> \"00001000\";\n```\n\n**center** alias for **lrpad**\n\n**ljust** alias for *rpad*\n\n**rjust** alias for *lpad*\n\n**toNumber** _.toNumber(string, [decimals])\n\nParse string to number. Returns NaN if string can't be parsed to number.\n\n```javascript\n_('2.556').toNumber()\n=> 3\n\n_('2.556').toNumber(1)\n=> 2.6\n```\n\n**strRight** _.strRight(string, pattern)\n\nSearches a string from left to right for a pattern and returns a substring consisting of the characters in the string that are to the right of the pattern or all string if no match found.\n\n```javascript\n_('This_is_a_test_string').strRight('_')\n=> \"is_a_test_string\";\n```\n\n**strRightBack** _.strRightBack(string, pattern)\n\nSearches a string from right to left for a pattern and returns a substring consisting of the characters in the string that are to the right of the pattern or all string if no match found.\n\n```javascript\n_('This_is_a_test_string').strRightBack('_')\n=> \"string\";\n```\n\n**strLeft** _.strLeft(string, pattern)\n\nSearches a string from left to right for a pattern and returns a substring consisting of the characters in the string that are to the left of the pattern or all string if no match found.\n\n```javascript\n_('This_is_a_test_string').strLeft('_')\n=> \"This\";\n```\n\n**strLeftBack** _.strLeftBack(string, pattern)\n\nSearches a string from right to left for a pattern and returns a substring consisting of the characters in the string that are to the left of the pattern or all string if no match found.\n\n```javascript\n_('This_is_a_test_string').strLeftBack('_')\n=> \"This_is_a_test\";\n```\n\n**stripTags**\n\nRemoves all html tags from string.\n\n```javascript\n_('a <a href=\"#\">link</a>').stripTags()\n=> 'a link'\n\n_('a <a href=\"#\">link</a><script>alert(\"hello world!\")</script>').stripTags()\n=> 'a linkalert(\"hello world!\")'\n```\n\n**toSentence** _.toSentence(array, [delimiter, lastDelimiter])\n\nJoin an array into a human readable sentence.\n\n```javascript\n_.toSentence(['jQuery', 'Mootools', 'Prototype'])\n=> 'jQuery, Mootools and Prototype';\n\n_.toSentence(['jQuery', 'Mootools', 'Prototype'], ', ', ' unt ')\n=> 'jQuery, Mootools unt Prototype';\n```\n\n**toSentenceSerial** _.toSentenceSerial(array, [delimiter, lastDelimiter])\n\nThe same as `toSentence`, but adjusts delimeters to use [Serial comma](http://en.wikipedia.org/wiki/Serial_comma).\n\n```javascript\n_.toSentenceSerial(['jQuery', 'Mootools'])\n=> 'jQuery and Mootools';\n\n_.toSentenceSerial(['jQuery', 'Mootools', 'Prototype'])\n=> 'jQuery, Mootools, and Prototype'\n\n_.toSentenceSerial(['jQuery', 'Mootools', 'Prototype'], ', ', ' unt ');\n=> 'jQuery, Mootools, unt Prototype';\n```\n\n**repeat** _.repeat(string, count, [separator])\n\nRepeats a string count times.\n\n```javascript\n_.repeat(\"foo\", 3)\n=> 'foofoofoo';\n\n_.repeat(\"foo\", 3, \"bar\")\n=> 'foobarfoobarfoo'\n```\n\n**surround** _.surround(string, wrap)\n\nSurround a string with another string.\n\n```javascript\n_.surround(\"foo\", \"ab\")\n=> 'abfooab';\n```\n\n**quote** _.quote(string, quoteChar) or _.q(string, quoteChar)\n\nQuotes a string. `quoteChar` defaults to `\"`.\n\n```javascript\n_.quote('foo', quoteChar)\n=> '\"foo\"';\n```\n**unquote** _.unquote(string, quoteChar)\n\nUnquotes a string. `quoteChar` defaults to `\"`.\n\n```javascript\n_.unquote('\"foo\"')\n=> 'foo';\n_.unquote(\"'foo'\", \"'\")\n=> 'foo';\n```\n\n\n**slugify** _.slugify(string)\n\nTransform text into a URL slug. Replaces whitespaces, accentuated, and special characters with a dash.\n\n```javascript\n_.slugify(\"Un éléphant à l'orée du bois\")\n=> 'un-elephant-a-loree-du-bois';\n```\n\n***Caution: this function is charset dependent***\n\n**naturalCmp** array.sort(_.naturalCmp)\n\nNaturally sort strings like humans would do.\n\n```javascript\n['foo20', 'foo5'].sort(_.naturalCmp)\n=> [ 'foo5', 'foo20' ]\n```\n\n**toBoolean** _.toBoolean(string) or _.toBool(string)\n\nTurn strings that can be commonly considered as booleas to real booleans. Such as \"true\", \"false\", \"1\" and \"0\". This function is case insensitive.\n\n```javascript\n_.toBoolean(\"true\")\n=> true\n_.toBoolean(\"FALSE\")\n=> false\n_.toBoolean(\"random\")\n=> undefined\n```\n\nIt can be customized by giving arrays of truth and falsy value matcher as parameters. Matchers can be also RegExp objects.\n\n```javascript\n_.toBoolean(\"truthy\", [\"truthy\"], [\"falsy\"])\n=> true\n_.toBoolean(\"true only at start\", [/^true/])\n=> true\n```\n\n## Roadmap ##\n\nAny suggestions or bug reports are welcome. Just email me or more preferably open an issue.\n\n#### Problems\n\nWe lose two things for `include` and `reverse` methods from `_.string`:\n\n* Calls like `_('foobar').include('bar')` aren't available;\n* Chaining isn't available too.\n\nBut if you need this functionality you can create aliases for conflict functions which will be convenient for you:\n\n```javascript\n_.mixin({\n includeString: _.str.include,\n reverseString: _.str.reverse\n})\n\n// Now wrapper calls and chaining are available.\n_('foobar').chain().reverseString().includeString('rab').value()\n```\n\n#### Standalone Usage\n\nIf you are using Underscore.string without Underscore. You also have `_.string` namespace for it and `_.str` alias\nBut of course you can just reassign `_` variable with `_.string`\n\n```javascript\n_ = _.string\n```\n\n## Changelog ##\n\n### 2.3.3 ###\n\n* Add `toBoolean`\n* Add `unquote`\n* Add quote char option to `quote`\n* Support dash-separated words in `titleize`\n\n### 2.3.2 ###\n\n* Add `naturalCmp`\n* Bug fix to `camelize`\n* Add ă, ș, ț and ś to `slugify`\n* Doc updates\n* Add support for [component](http://component.io/)\n* [Full changelog](https://github.com/epeli/underscore.string/compare/v2.3.1...v2.3.2)\n\n### 2.3.1 ###\n\n* Bug fixes to `escapeHTML`, `classify`, `substr`\n* Faster `count`\n* Documentation fixes\n* [Full changelog](https://github.com/epeli/underscore.string/compare/v2.3.0...v2.3.1)\n\n### 2.3.0 ###\n\n* Added `numberformat` method\n* Added `levenshtein` method (Levenshtein distance calculation)\n* Added `swapCase` method\n* Changed default behavior of `words` method\n* Added `toSentenceSerial` method\n* Added `surround` and `quote` methods\n\n### 2.2.1 ###\n\n* Same as 2.2.0 (2.2.0rc on npm) to fix some npm drama\n\n### 2.2.0 ###\n\n* Capitalize method behavior changed\n* Various perfomance tweaks\n\n### 2.1.1###\n\n* Fixed words method bug\n* Added classify method\n\n### 2.1.0 ###\n\n* AMD support\n* Added toSentence method\n* Added slugify method\n* Lots of speed optimizations\n\n### 2.0.0 ###\n\n* Added prune, humanize functions\n* Added _.string (_.str) namespace for Underscore.string library\n* Removed includes function\n\nFor upgrading to this version you need to mix in Underscore.string library to Underscore object:\n\n```javascript\n_.mixin(_.string.exports());\n```\n\nand all non-conflict Underscore.string functions will be available through Underscore object.\nAlso function `includes` has been removed, you should replace this function by `_.str.include`\nor create alias `_.includes = _.str.include` and all your code will work fine.\n\n### 1.1.6 ###\n\n* Fixed reverse and truncate\n* Added isBlank, stripTags, inlude(alias for includes)\n* Added uglifier compression\n\n### 1.1.5 ###\n\n* Added strRight, strRightBack, strLeft, strLeftBack\n\n### 1.1.4 ###\n\n* Added pad, lpad, rpad, lrpad methods and aliases center, ljust, rjust\n* Integration with Underscore 1.1.6\n\n### 1.1.3 ###\n\n* Added methods: underscored, camelize, dasherize\n* Support newer version of npm\n\n### 1.1.2 ###\n\n* Created functions: lines, chars, words functions\n\n### 1.0.2 ###\n\n* Created integration test suite with underscore.js 1.1.4 (now it's absolutely compatible)\n* Removed 'reverse' function, because this function override underscore.js 'reverse'\n\n## Contribute ##\n\n* Fork & pull request. Don't forget about tests.\n* If you planning add some feature please create issue before.\n\nOtherwise changes will be rejected.\n\n## Contributors list ##\n[Can be found here](https://github.com/epeli/underscore.string/graphs/contributors).\n\n\n## Licence ##\n\nThe MIT License\n\nCopyright (c) 2011 Esa-Matti Suuronen esa-matti@suuronen.org\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n",
|
70
|
-
"readmeFilename": "README.markdown",
|
71
|
-
"_id": "underscore.string@2.3.3",
|
72
|
-
"_from": "underscore.string@~2.3.1"
|
73
|
-
}
|
@@ -1,45 +0,0 @@
|
|
1
|
-
function waitFor(test, complete, timeout) {
|
2
|
-
var result, start = new Date().getTime()
|
3
|
-
setInterval(function interval() {
|
4
|
-
if ((new Date().getTime() - start < timeout) && !result) {
|
5
|
-
result = test()
|
6
|
-
} else {
|
7
|
-
if (!result) {
|
8
|
-
phantom.exit(1)
|
9
|
-
} else {
|
10
|
-
complete()
|
11
|
-
clearInterval(interval)
|
12
|
-
}
|
13
|
-
}
|
14
|
-
}, 100)
|
15
|
-
}
|
16
|
-
|
17
|
-
|
18
|
-
var fs = require('fs'), page = require('webpage').create();
|
19
|
-
var url = 'file://localhost' + fs.workingDirectory + '/' + phantom.args[0];
|
20
|
-
|
21
|
-
page.onConsoleMessage = function(msg) {
|
22
|
-
console.log(msg)
|
23
|
-
}
|
24
|
-
|
25
|
-
page.open(url, function(status) {
|
26
|
-
waitFor(function() {
|
27
|
-
return page.evaluate(function(){
|
28
|
-
var el = document.getElementById('qunit-testresult')
|
29
|
-
return el && el.innerText.match('completed')
|
30
|
-
})
|
31
|
-
}, function() {
|
32
|
-
var failures = page.evaluate(function() {
|
33
|
-
var el = document.getElementById('qunit-testresult'),
|
34
|
-
fails = document.getElementsByClassName('fail')
|
35
|
-
|
36
|
-
for (var i = 0; i < fails.length; i++)
|
37
|
-
console.log(fails[i].innerText)
|
38
|
-
|
39
|
-
console.log(el.innerText)
|
40
|
-
|
41
|
-
return parseInt(el.getElementsByClassName('failed')[0].innerHTML)
|
42
|
-
})
|
43
|
-
phantom.exit(failures > 0 ? 1 : 0)
|
44
|
-
}, 10000)
|
45
|
-
})
|
@@ -1,148 +0,0 @@
|
|
1
|
-
(function() {
|
2
|
-
|
3
|
-
JSLitmus.test('levenshtein', function() {
|
4
|
-
return [
|
5
|
-
_.levenshtein('pineapple', 'potato'),
|
6
|
-
_.levenshtein('seven', 'eight'),
|
7
|
-
_.levenshtein('the very same string', 'the very same string'),
|
8
|
-
_.levenshtein('very very very long string', 'something completely different')
|
9
|
-
];
|
10
|
-
});
|
11
|
-
|
12
|
-
|
13
|
-
JSLitmus.test('trimNoNative', function() {
|
14
|
-
return _.trim(" foobar ", " ");
|
15
|
-
});
|
16
|
-
|
17
|
-
JSLitmus.test('trim', function() {
|
18
|
-
return _.trim(" foobar ");
|
19
|
-
});
|
20
|
-
|
21
|
-
JSLitmus.test('trim object-oriented', function() {
|
22
|
-
return _(" foobar ").trim();
|
23
|
-
});
|
24
|
-
|
25
|
-
JSLitmus.test('trim jQuery', function() {
|
26
|
-
return jQuery.trim(" foobar ");
|
27
|
-
});
|
28
|
-
|
29
|
-
JSLitmus.test('ltrimp', function() {
|
30
|
-
return _.ltrim(" foobar ", " ");
|
31
|
-
});
|
32
|
-
|
33
|
-
JSLitmus.test('rtrimp', function() {
|
34
|
-
return _.rtrim(" foobar ", " ");
|
35
|
-
});
|
36
|
-
|
37
|
-
JSLitmus.test('startsWith', function() {
|
38
|
-
return _.startsWith("foobar", "foo");
|
39
|
-
});
|
40
|
-
|
41
|
-
JSLitmus.test('endsWith', function() {
|
42
|
-
return _.endsWith("foobar", "xx");
|
43
|
-
});
|
44
|
-
|
45
|
-
JSLitmus.test('chop', function(){
|
46
|
-
return _('whitespace').chop(2);
|
47
|
-
});
|
48
|
-
|
49
|
-
JSLitmus.test('count', function(){
|
50
|
-
return _('Hello worls').count('l');
|
51
|
-
});
|
52
|
-
|
53
|
-
JSLitmus.test('insert', function() {
|
54
|
-
return _('Hello ').insert(6, 'world');
|
55
|
-
});
|
56
|
-
|
57
|
-
JSLitmus.test('splice', function() {
|
58
|
-
return _('https://edtsech@bitbucket.org/edtsech/underscore.strings').splice(30, 7, 'epeli');
|
59
|
-
});
|
60
|
-
|
61
|
-
JSLitmus.test('succ', function(){
|
62
|
-
var let = 'a', alphabet = [];
|
63
|
-
|
64
|
-
for (var i=0; i < 26; i++) {
|
65
|
-
alphabet.push(let);
|
66
|
-
let = _(let).succ();
|
67
|
-
}
|
68
|
-
|
69
|
-
return alphabet;
|
70
|
-
});
|
71
|
-
|
72
|
-
JSLitmus.test('titleize', function(){
|
73
|
-
return _('the titleize string method').titleize();
|
74
|
-
});
|
75
|
-
|
76
|
-
JSLitmus.test('truncate', function(){
|
77
|
-
return _('Hello world').truncate(5);
|
78
|
-
});
|
79
|
-
|
80
|
-
JSLitmus.test('prune', function(){
|
81
|
-
return _('Hello world').prune(5);
|
82
|
-
});
|
83
|
-
|
84
|
-
JSLitmus.test('isBlank', function(){
|
85
|
-
return _('').isBlank();
|
86
|
-
});
|
87
|
-
|
88
|
-
JSLitmus.test('escapeHTML', function(){
|
89
|
-
_('<div>Blah blah blah</div>').escapeHTML();
|
90
|
-
});
|
91
|
-
|
92
|
-
JSLitmus.test('unescapeHTML', function(){
|
93
|
-
_('<div>Blah blah blah</div>').unescapeHTML();
|
94
|
-
});
|
95
|
-
|
96
|
-
JSLitmus.test('reverse', function(){
|
97
|
-
_('Hello World').reverse();
|
98
|
-
});
|
99
|
-
|
100
|
-
JSLitmus.test('pad default', function(){
|
101
|
-
_('foo').pad(12);
|
102
|
-
});
|
103
|
-
|
104
|
-
JSLitmus.test('pad hash left', function(){
|
105
|
-
_('foo').pad(12, '#');
|
106
|
-
});
|
107
|
-
|
108
|
-
JSLitmus.test('pad hash right', function(){
|
109
|
-
_('foo').pad(12, '#', 'right');
|
110
|
-
});
|
111
|
-
|
112
|
-
JSLitmus.test('pad hash both', function(){
|
113
|
-
_('foo').pad(12, '#', 'both');
|
114
|
-
});
|
115
|
-
|
116
|
-
JSLitmus.test('pad hash both longPad', function(){
|
117
|
-
_('foo').pad(12, 'f00f00f00', 'both');
|
118
|
-
});
|
119
|
-
|
120
|
-
JSLitmus.test('toNumber', function(){
|
121
|
-
_('10.232323').toNumber(2);
|
122
|
-
});
|
123
|
-
|
124
|
-
JSLitmus.test('strRight', function(){
|
125
|
-
_('aaa_bbb_ccc').strRight('_');
|
126
|
-
});
|
127
|
-
|
128
|
-
JSLitmus.test('strRightBack', function(){
|
129
|
-
_('aaa_bbb_ccc').strRightBack('_');
|
130
|
-
});
|
131
|
-
|
132
|
-
JSLitmus.test('strLeft', function(){
|
133
|
-
_('aaa_bbb_ccc').strLeft('_');
|
134
|
-
});
|
135
|
-
|
136
|
-
JSLitmus.test('strLeftBack', function(){
|
137
|
-
_('aaa_bbb_ccc').strLeftBack('_');
|
138
|
-
});
|
139
|
-
|
140
|
-
JSLitmus.test('join', function(){
|
141
|
-
_('separator').join(1, 2, 3, 4, 5, 6, 7, 8, 'foo', 'bar', 'lol', 'wut');
|
142
|
-
});
|
143
|
-
|
144
|
-
JSLitmus.test('slugify', function(){
|
145
|
-
_("Un éléphant à l'orée du bois").slugify();
|
146
|
-
});
|
147
|
-
|
148
|
-
})();
|
@@ -1,685 +0,0 @@
|
|
1
|
-
$(document).ready(function() {
|
2
|
-
|
3
|
-
// Include Underscore.string methods to Underscore namespace
|
4
|
-
_.mixin(_.str.exports());
|
5
|
-
|
6
|
-
module('String extensions');
|
7
|
-
|
8
|
-
test('Strings: naturalSort', function() {
|
9
|
-
var arr = ['foo2', 'foo1', 'foo10', 'foo30', 'foo100', 'foo10bar'],
|
10
|
-
sorted = ['foo1', 'foo2', 'foo10', 'foo10bar', 'foo30', 'foo100'];
|
11
|
-
deepEqual(arr.sort(_.naturalCmp), sorted);
|
12
|
-
});
|
13
|
-
|
14
|
-
test('Strings: trim', function() {
|
15
|
-
equal(_.trim(123), '123', 'Non string');
|
16
|
-
equal(_(' foo').trim(), 'foo');
|
17
|
-
equal(_('foo ').trim(), 'foo');
|
18
|
-
equal(_(' foo ').trim(), 'foo');
|
19
|
-
equal(_(' foo ').trim(), 'foo');
|
20
|
-
equal(_(' foo ').trim(' '), 'foo', 'Manually set whitespace');
|
21
|
-
equal(_('\t foo \t ').trim(/\s/), 'foo', 'Manually set RegExp /\\s+/');
|
22
|
-
|
23
|
-
equal(_('ffoo').trim('f'), 'oo');
|
24
|
-
equal(_('ooff').trim('f'), 'oo');
|
25
|
-
equal(_('ffooff').trim('f'), 'oo');
|
26
|
-
|
27
|
-
|
28
|
-
equal(_('_-foobar-_').trim('_-'), 'foobar');
|
29
|
-
|
30
|
-
equal(_('http://foo/').trim('/'), 'http://foo');
|
31
|
-
equal(_('c:\\').trim('\\'), 'c:');
|
32
|
-
|
33
|
-
equal(_(123).trim(), '123');
|
34
|
-
equal(_(123).trim(3), '12');
|
35
|
-
equal(_('').trim(), '', 'Trim empty string should return empty string');
|
36
|
-
equal(_(null).trim(), '', 'Trim null should return empty string');
|
37
|
-
equal(_(undefined).trim(), '', 'Trim undefined should return empty string');
|
38
|
-
});
|
39
|
-
|
40
|
-
test('String: levenshtein', function() {
|
41
|
-
equal(_.levenshtein('Godfather', 'Godfather'), 0);
|
42
|
-
equal(_.levenshtein('Godfather', 'Godfathe'), 1);
|
43
|
-
equal(_.levenshtein('Godfather', 'odfather'), 1);
|
44
|
-
equal(_.levenshtein('Godfather', 'Gdfthr'), 3);
|
45
|
-
equal(_.levenshtein('seven', 'eight'), 5);
|
46
|
-
equal(_.levenshtein('123', 123), 0);
|
47
|
-
equal(_.levenshtein(321, '321'), 0);
|
48
|
-
equal(_.levenshtein('lol', null), 3);
|
49
|
-
equal(_.levenshtein('lol'), 3);
|
50
|
-
equal(_.levenshtein(null, 'lol'), 3);
|
51
|
-
equal(_.levenshtein(undefined, 'lol'), 3);
|
52
|
-
equal(_.levenshtein(), 0);
|
53
|
-
});
|
54
|
-
|
55
|
-
test('Strings: ltrim', function() {
|
56
|
-
equal(_(' foo').ltrim(), 'foo');
|
57
|
-
equal(_(' foo').ltrim(), 'foo');
|
58
|
-
equal(_('foo ').ltrim(), 'foo ');
|
59
|
-
equal(_(' foo ').ltrim(), 'foo ');
|
60
|
-
equal(_('').ltrim(), '', 'ltrim empty string should return empty string');
|
61
|
-
equal(_(null).ltrim(), '', 'ltrim null should return empty string');
|
62
|
-
equal(_(undefined).ltrim(), '', 'ltrim undefined should return empty string');
|
63
|
-
|
64
|
-
equal(_('ffoo').ltrim('f'), 'oo');
|
65
|
-
equal(_('ooff').ltrim('f'), 'ooff');
|
66
|
-
equal(_('ffooff').ltrim('f'), 'ooff');
|
67
|
-
|
68
|
-
equal(_('_-foobar-_').ltrim('_-'), 'foobar-_');
|
69
|
-
|
70
|
-
equal(_(123).ltrim(1), '23');
|
71
|
-
});
|
72
|
-
|
73
|
-
test('Strings: rtrim', function() {
|
74
|
-
equal(_('http://foo/').rtrim('/'), 'http://foo', 'clean trailing slash');
|
75
|
-
equal(_(' foo').rtrim(), ' foo');
|
76
|
-
equal(_('foo ').rtrim(), 'foo');
|
77
|
-
equal(_('foo ').rtrim(), 'foo');
|
78
|
-
equal(_('foo bar ').rtrim(), 'foo bar');
|
79
|
-
equal(_(' foo ').rtrim(), ' foo');
|
80
|
-
|
81
|
-
equal(_('ffoo').rtrim('f'), 'ffoo');
|
82
|
-
equal(_('ooff').rtrim('f'), 'oo');
|
83
|
-
equal(_('ffooff').rtrim('f'), 'ffoo');
|
84
|
-
|
85
|
-
equal(_('_-foobar-_').rtrim('_-'), '_-foobar');
|
86
|
-
|
87
|
-
equal(_(123).rtrim(3), '12');
|
88
|
-
equal(_('').rtrim(), '', 'rtrim empty string should return empty string');
|
89
|
-
equal(_(null).rtrim(), '', 'rtrim null should return empty string');
|
90
|
-
});
|
91
|
-
|
92
|
-
test('Strings: capitalize', function() {
|
93
|
-
equal(_('fabio').capitalize(), 'Fabio', 'First letter is upper case');
|
94
|
-
equal(_.capitalize('fabio'), 'Fabio', 'First letter is upper case');
|
95
|
-
equal(_.capitalize('FOO'), 'FOO', 'Other letters unchanged');
|
96
|
-
equal(_(123).capitalize(), '123', 'Non string');
|
97
|
-
equal(_.capitalize(''), '', 'Capitalizing empty string returns empty string');
|
98
|
-
equal(_.capitalize(null), '', 'Capitalizing null returns empty string');
|
99
|
-
equal(_.capitalize(undefined), '', 'Capitalizing undefined returns empty string');
|
100
|
-
});
|
101
|
-
|
102
|
-
test('Strings: join', function() {
|
103
|
-
equal(_.join('', 'foo', 'bar'), 'foobar', 'basic join');
|
104
|
-
equal(_.join('', 1, 'foo', 2), '1foo2', 'join numbers and strings');
|
105
|
-
equal(_.join(' ','foo', 'bar'), 'foo bar', 'join with spaces');
|
106
|
-
equal(_.join('1', '2', '2'), '212', 'join number strings');
|
107
|
-
equal(_.join(1, 2, 2), '212', 'join numbers');
|
108
|
-
equal(_.join('','foo', null), 'foo', 'join null with string returns string');
|
109
|
-
equal(_.join(null,'foo', 'bar'), 'foobar', 'join strings with null returns string');
|
110
|
-
equal(_(' ').join('foo', 'bar'), 'foo bar', 'join object oriented');
|
111
|
-
});
|
112
|
-
|
113
|
-
test('Strings: reverse', function() {
|
114
|
-
equal(_.str.reverse('foo'), 'oof' );
|
115
|
-
equal(_.str.reverse('foobar'), 'raboof' );
|
116
|
-
equal(_.str.reverse('foo bar'), 'rab oof' );
|
117
|
-
equal(_.str.reverse('saippuakauppias'), 'saippuakauppias' );
|
118
|
-
equal(_.str.reverse(123), '321', 'Non string');
|
119
|
-
equal(_.str.reverse(123.45), '54.321', 'Non string');
|
120
|
-
equal(_.str.reverse(''), '', 'reversing empty string returns empty string' );
|
121
|
-
equal(_.str.reverse(null), '', 'reversing null returns empty string' );
|
122
|
-
equal(_.str.reverse(undefined), '', 'reversing undefined returns empty string' );
|
123
|
-
});
|
124
|
-
|
125
|
-
test('Strings: clean', function() {
|
126
|
-
equal(_(' foo bar ').clean(), 'foo bar');
|
127
|
-
equal(_(123).clean(), '123');
|
128
|
-
equal(_('').clean(), '', 'claning empty string returns empty string');
|
129
|
-
equal(_(null).clean(), '', 'claning null returns empty string');
|
130
|
-
equal(_(undefined).clean(), '', 'claning undefined returns empty string');
|
131
|
-
});
|
132
|
-
|
133
|
-
test('Strings: sprintf', function() {
|
134
|
-
// Should be very tested function already. Thanks to
|
135
|
-
// http://www.diveintojavascript.com/projects/sprintf-for-javascript
|
136
|
-
equal(_.sprintf('Hello %s', 'me'), 'Hello me', 'basic');
|
137
|
-
equal(_('Hello %s').sprintf('me'), 'Hello me', 'object');
|
138
|
-
equal(_('hello %s').chain().sprintf('me').capitalize().value(), 'Hello me', 'Chaining works');
|
139
|
-
equal(_.sprintf('%.1f', 1.22222), '1.2', 'round');
|
140
|
-
equal(_.sprintf('%.1f', 1.17), '1.2', 'round 2');
|
141
|
-
equal(_.sprintf('%(id)d - %(name)s', {id: 824, name: 'Hello World'}), '824 - Hello World', 'Named replacements work');
|
142
|
-
equal(_.sprintf('%(args[0].id)d - %(args[1].name)s', {args: [{id: 824}, {name: 'Hello World'}]}), '824 - Hello World', 'Named replacements with arrays work');
|
143
|
-
});
|
144
|
-
|
145
|
-
|
146
|
-
test('Strings: vsprintf', function() {
|
147
|
-
equal(_.vsprintf('Hello %s', ['me']), 'Hello me', 'basic');
|
148
|
-
equal(_('Hello %s').vsprintf(['me']), 'Hello me', 'object');
|
149
|
-
equal(_('hello %s').chain().vsprintf(['me']).capitalize().value(), 'Hello me', 'Chaining works');
|
150
|
-
equal(_.vsprintf('%.1f', [1.22222]), '1.2', 'round');
|
151
|
-
equal(_.vsprintf('%.1f', [1.17]), '1.2', 'round 2');
|
152
|
-
equal(_.vsprintf('%(id)d - %(name)s', [{id: 824, name: 'Hello World'}]), '824 - Hello World', 'Named replacement works');
|
153
|
-
equal(_.vsprintf('%(args[0].id)d - %(args[1].name)s', [{args: [{id: 824}, {name: 'Hello World'}]}]), '824 - Hello World', 'Named replacement with arrays works');
|
154
|
-
});
|
155
|
-
|
156
|
-
test('Strings: startsWith', function() {
|
157
|
-
ok(_('foobar').startsWith('foo'), 'foobar starts with foo');
|
158
|
-
ok(!_('oobar').startsWith('foo'), 'oobar does not start with foo');
|
159
|
-
ok(_(12345).startsWith(123), '12345 starts with 123');
|
160
|
-
ok(!_(2345).startsWith(123), '2345 does not start with 123');
|
161
|
-
ok(_('').startsWith(''), 'empty string starts with empty string');
|
162
|
-
ok(_(null).startsWith(''), 'null starts with empty string');
|
163
|
-
ok(!_(null).startsWith('foo'), 'null starts with foo');
|
164
|
-
});
|
165
|
-
|
166
|
-
test('Strings: endsWith', function() {
|
167
|
-
ok(_('foobar').endsWith('bar'), 'foobar ends with bar');
|
168
|
-
ok(_.endsWith('foobar', 'bar'), 'foobar ends with bar');
|
169
|
-
ok(_.endsWith('00018-0000062.Plone.sdh264.1a7264e6912a91aa4a81b64dc5517df7b8875994.mp4', 'mp4'), 'endsWith .mp4');
|
170
|
-
ok(!_('fooba').endsWith('bar'), 'fooba does not end with bar');
|
171
|
-
ok(_.endsWith(12345, 45), '12345 ends with 45');
|
172
|
-
ok(!_.endsWith(12345, 6), '12345 does not end with 6');
|
173
|
-
ok(_('').endsWith(''), 'empty string ends with empty string');
|
174
|
-
ok(_(null).endsWith(''), 'null ends with empty string');
|
175
|
-
ok(!_(null).endsWith('foo'), 'null ends with foo');
|
176
|
-
});
|
177
|
-
|
178
|
-
test('Strings: include', function() {
|
179
|
-
ok(_.str.include('foobar', 'bar'), 'foobar includes bar');
|
180
|
-
ok(!_.str.include('foobar', 'buzz'), 'foobar does not includes buzz');
|
181
|
-
ok(_.str.include(12345, 34), '12345 includes 34');
|
182
|
-
ok(!_.str.contains(12345, 6), '12345 does not includes 6');
|
183
|
-
ok(!_.str.include('', 34), 'empty string includes 34');
|
184
|
-
ok(!_.str.include(null, 34), 'null includes 34');
|
185
|
-
ok(_.str.include(null, ''), 'null includes empty string');
|
186
|
-
});
|
187
|
-
|
188
|
-
test('String: chop', function(){
|
189
|
-
ok(_('whitespace').chop(2).length === 5, 'output [wh, it, es, pa, ce]');
|
190
|
-
ok(_('whitespace').chop(3).length === 4, 'output [whi, tes, pac, e]');
|
191
|
-
ok(_('whitespace').chop()[0].length === 10, 'output [whitespace]');
|
192
|
-
ok(_(12345).chop(1).length === 5, 'output [1, 2, 3, 4, 5]');
|
193
|
-
});
|
194
|
-
|
195
|
-
test('String: clean', function(){
|
196
|
-
equal(_.clean(' foo bar '), 'foo bar');
|
197
|
-
equal(_.clean(''), '');
|
198
|
-
equal(_.clean(null), '');
|
199
|
-
equal(_.clean(1), '1');
|
200
|
-
});
|
201
|
-
|
202
|
-
test('String: count', function(){
|
203
|
-
equal(_('Hello world').count('l'), 3);
|
204
|
-
equal(_('Hello world').count('Hello'), 1);
|
205
|
-
equal(_('Hello world').count('foo'), 0);
|
206
|
-
equal(_('x.xx....x.x').count('x'), 5);
|
207
|
-
equal(_('').count('x'), 0);
|
208
|
-
equal(_(null).count('x'), 0);
|
209
|
-
equal(_(undefined).count('x'), 0);
|
210
|
-
equal(_(12345).count(1), 1);
|
211
|
-
equal(_(11345).count(1), 2);
|
212
|
-
});
|
213
|
-
|
214
|
-
test('String: insert', function(){
|
215
|
-
equal(_('Hello ').insert(6, 'Jessy'), 'Hello Jessy');
|
216
|
-
equal(_('Hello ').insert(100, 'Jessy'), 'Hello Jessy');
|
217
|
-
equal(_('').insert(100, 'Jessy'), 'Jessy');
|
218
|
-
equal(_(null).insert(100, 'Jessy'), 'Jessy');
|
219
|
-
equal(_(undefined).insert(100, 'Jessy'), 'Jessy');
|
220
|
-
equal(_(12345).insert(6, 'Jessy'), '12345Jessy');
|
221
|
-
});
|
222
|
-
|
223
|
-
test('String: splice', function(){
|
224
|
-
equal(_('https://edtsech@bitbucket.org/edtsech/underscore.strings').splice(30, 7, 'epeli'),
|
225
|
-
'https://edtsech@bitbucket.org/epeli/underscore.strings');
|
226
|
-
equal(_.splice(12345, 1, 2, 321), '132145', 'Non strings');
|
227
|
-
});
|
228
|
-
|
229
|
-
test('String: succ', function(){
|
230
|
-
equal(_('a').succ(), 'b');
|
231
|
-
equal(_('A').succ(), 'B');
|
232
|
-
equal(_('+').succ(), ',');
|
233
|
-
equal(_(1).succ(), '2');
|
234
|
-
});
|
235
|
-
|
236
|
-
test('String: titleize', function(){
|
237
|
-
equal(_('the titleize string method').titleize(), 'The Titleize String Method');
|
238
|
-
equal(_('the titleize string method').titleize(), 'The Titleize String Method');
|
239
|
-
equal(_('').titleize(), '', 'Titleize empty string returns empty string');
|
240
|
-
equal(_(null).titleize(), '', 'Titleize null returns empty string');
|
241
|
-
equal(_(undefined).titleize(), '', 'Titleize undefined returns empty string');
|
242
|
-
equal(_('let\'s have some fun').titleize(), 'Let\'s Have Some Fun');
|
243
|
-
equal(_('a-dash-separated-string').titleize(), 'A-Dash-Separated-String');
|
244
|
-
equal(_('A-DASH-SEPARATED-STRING').titleize(), 'A-Dash-Separated-String');
|
245
|
-
equal(_(123).titleize(), '123');
|
246
|
-
});
|
247
|
-
|
248
|
-
test('String: camelize', function(){
|
249
|
-
equal(_('the_camelize_string_method').camelize(), 'theCamelizeStringMethod');
|
250
|
-
equal(_('-the-camelize-string-method').camelize(), 'TheCamelizeStringMethod');
|
251
|
-
equal(_('the camelize string method').camelize(), 'theCamelizeStringMethod');
|
252
|
-
equal(_(' the camelize string method').camelize(), 'theCamelizeStringMethod');
|
253
|
-
equal(_('the camelize string method').camelize(), 'theCamelizeStringMethod');
|
254
|
-
equal(_('').camelize(), '', 'Camelize empty string returns empty string');
|
255
|
-
equal(_(null).camelize(), '', 'Camelize null returns empty string');
|
256
|
-
equal(_(undefined).camelize(), '', 'Camelize undefined returns empty string');
|
257
|
-
equal(_(123).camelize(), '123');
|
258
|
-
});
|
259
|
-
|
260
|
-
test('String: underscored', function(){
|
261
|
-
equal(_('the-underscored-string-method').underscored(), 'the_underscored_string_method');
|
262
|
-
equal(_('theUnderscoredStringMethod').underscored(), 'the_underscored_string_method');
|
263
|
-
equal(_('TheUnderscoredStringMethod').underscored(), 'the_underscored_string_method');
|
264
|
-
equal(_(' the underscored string method').underscored(), 'the_underscored_string_method');
|
265
|
-
equal(_('').underscored(), '');
|
266
|
-
equal(_(null).underscored(), '');
|
267
|
-
equal(_(undefined).underscored(), '');
|
268
|
-
equal(_(123).underscored(), '123');
|
269
|
-
});
|
270
|
-
|
271
|
-
test('String: dasherize', function(){
|
272
|
-
equal(_('the_dasherize_string_method').dasherize(), 'the-dasherize-string-method');
|
273
|
-
equal(_('TheDasherizeStringMethod').dasherize(), '-the-dasherize-string-method');
|
274
|
-
equal(_('thisIsATest').dasherize(), 'this-is-a-test');
|
275
|
-
equal(_('this Is A Test').dasherize(), 'this-is-a-test');
|
276
|
-
equal(_('thisIsATest123').dasherize(), 'this-is-a-test123');
|
277
|
-
equal(_('123thisIsATest').dasherize(), '123this-is-a-test');
|
278
|
-
equal(_('the dasherize string method').dasherize(), 'the-dasherize-string-method');
|
279
|
-
equal(_('the dasherize string method ').dasherize(), 'the-dasherize-string-method');
|
280
|
-
equal(_('téléphone').dasherize(), 'téléphone');
|
281
|
-
equal(_('foo$bar').dasherize(), 'foo$bar');
|
282
|
-
equal(_('').dasherize(), '');
|
283
|
-
equal(_(null).dasherize(), '');
|
284
|
-
equal(_(undefined).dasherize(), '');
|
285
|
-
equal(_(123).dasherize(), '123');
|
286
|
-
});
|
287
|
-
|
288
|
-
test('String: camelize', function(){
|
289
|
-
equal(_.camelize('-moz-transform'), 'MozTransform');
|
290
|
-
equal(_.camelize('webkit-transform'), 'webkitTransform');
|
291
|
-
equal(_.camelize('under_scored'), 'underScored');
|
292
|
-
equal(_.camelize(' with spaces'), 'withSpaces');
|
293
|
-
equal(_('').camelize(), '');
|
294
|
-
equal(_(null).camelize(), '');
|
295
|
-
equal(_(undefined).camelize(), '');
|
296
|
-
equal(_("_som eWeird---name-").camelize(), 'SomEWeirdName');
|
297
|
-
});
|
298
|
-
|
299
|
-
test('String: join', function(){
|
300
|
-
equal(_.join(1, 2, 3, 4), '21314');
|
301
|
-
equal(_.join('|', 'foo', 'bar', 'baz'), 'foo|bar|baz');
|
302
|
-
equal(_.join('',2,3,null), '23');
|
303
|
-
equal(_.join(null,2,3), '23');
|
304
|
-
});
|
305
|
-
|
306
|
-
test('String: classify', function(){
|
307
|
-
equal(_.classify(1), '1');
|
308
|
-
equal(_('some_class_name').classify(), 'SomeClassName');
|
309
|
-
equal(_('my wonderfull class_name').classify(), 'MyWonderfullClassName');
|
310
|
-
equal(_('my wonderfull.class.name').classify(), 'MyWonderfullClassName');
|
311
|
-
});
|
312
|
-
|
313
|
-
test('String: humanize', function(){
|
314
|
-
equal(_('the_humanize_string_method').humanize(), 'The humanize string method');
|
315
|
-
equal(_('ThehumanizeStringMethod').humanize(), 'Thehumanize string method');
|
316
|
-
equal(_('the humanize string method').humanize(), 'The humanize string method');
|
317
|
-
equal(_('the humanize_id string method_id').humanize(), 'The humanize id string method');
|
318
|
-
equal(_('the humanize string method ').humanize(), 'The humanize string method');
|
319
|
-
equal(_(' capitalize dash-CamelCase_underscore trim ').humanize(), 'Capitalize dash camel case underscore trim');
|
320
|
-
equal(_(123).humanize(), '123');
|
321
|
-
equal(_('').humanize(), '');
|
322
|
-
equal(_(null).humanize(), '');
|
323
|
-
equal(_(undefined).humanize(), '');
|
324
|
-
});
|
325
|
-
|
326
|
-
test('String: truncate', function(){
|
327
|
-
equal(_('Hello world').truncate(6, 'read more'), 'Hello read more');
|
328
|
-
equal(_('Hello world').truncate(5), 'Hello...');
|
329
|
-
equal(_('Hello').truncate(10), 'Hello');
|
330
|
-
equal(_('').truncate(10), '');
|
331
|
-
equal(_(null).truncate(10), '');
|
332
|
-
equal(_(undefined).truncate(10), '');
|
333
|
-
equal(_(1234567890).truncate(5), '12345...');
|
334
|
-
});
|
335
|
-
|
336
|
-
test('String: prune', function(){
|
337
|
-
equal(_('Hello, cruel world').prune(6, ' read more'), 'Hello read more');
|
338
|
-
equal(_('Hello, world').prune(5, 'read a lot more'), 'Hello, world');
|
339
|
-
equal(_('Hello, world').prune(5), 'Hello...');
|
340
|
-
equal(_('Hello, world').prune(8), 'Hello...');
|
341
|
-
equal(_('Hello, cruel world').prune(15), 'Hello, cruel...');
|
342
|
-
equal(_('Hello world').prune(22), 'Hello world');
|
343
|
-
equal(_('Привет, жестокий мир').prune(6, ' read more'), 'Привет read more');
|
344
|
-
equal(_('Привет, мир').prune(6, 'read a lot more'), 'Привет, мир');
|
345
|
-
equal(_('Привет, мир').prune(6), 'Привет...');
|
346
|
-
equal(_('Привет, мир').prune(8), 'Привет...');
|
347
|
-
equal(_('Привет, жестокий мир').prune(16), 'Привет, жестокий...');
|
348
|
-
equal(_('Привет, мир').prune(22), 'Привет, мир');
|
349
|
-
equal(_('alksjd!!!!!!....').prune(100, ''), 'alksjd!!!!!!....');
|
350
|
-
equal(_(123).prune(10), '123');
|
351
|
-
equal(_(123).prune(1, 321), '321');
|
352
|
-
equal(_('').prune(5), '');
|
353
|
-
equal(_(null).prune(5), '');
|
354
|
-
equal(_(undefined).prune(5), '');
|
355
|
-
});
|
356
|
-
|
357
|
-
test('String: isBlank', function(){
|
358
|
-
ok(_('').isBlank());
|
359
|
-
ok(_(' ').isBlank());
|
360
|
-
ok(_('\n').isBlank());
|
361
|
-
ok(!_('a').isBlank());
|
362
|
-
ok(!_('0').isBlank());
|
363
|
-
ok(!_(0).isBlank());
|
364
|
-
ok(_('').isBlank());
|
365
|
-
ok(_(null).isBlank());
|
366
|
-
ok(_(undefined).isBlank());
|
367
|
-
});
|
368
|
-
|
369
|
-
test('String: escapeRegExp', function(){
|
370
|
-
equal(_.escapeRegExp(/hello(?=\sworld)/.source), 'hello\\(\\?\\=\\\\sworld\\)', 'with lookahead');
|
371
|
-
equal(_.escapeRegExp(/hello(?!\shell)/.source), 'hello\\(\\?\\!\\\\shell\\)', 'with negative lookahead');
|
372
|
-
});
|
373
|
-
|
374
|
-
test('String: escapeHTML', function(){
|
375
|
-
equal(_('<div>Blah & "blah" & \'blah\'</div>').escapeHTML(),
|
376
|
-
'<div>Blah & "blah" & 'blah'</div>');
|
377
|
-
equal(_('<').escapeHTML(), '&lt;');
|
378
|
-
equal(_(5).escapeHTML(), '5');
|
379
|
-
equal(_('').escapeHTML(), '');
|
380
|
-
equal(_(null).escapeHTML(), '');
|
381
|
-
equal(_(undefined).escapeHTML(), '');
|
382
|
-
});
|
383
|
-
|
384
|
-
test('String: unescapeHTML', function(){
|
385
|
-
equal(_('<div>Blah & "blah" & 'blah'</div>').unescapeHTML(),
|
386
|
-
'<div>Blah & "blah" & \'blah\'</div>');
|
387
|
-
equal(_('&lt;').unescapeHTML(), '<');
|
388
|
-
equal(_(''').unescapeHTML(), '\'');
|
389
|
-
equal(_(''').unescapeHTML(), '\'');
|
390
|
-
equal(_(''').unescapeHTML(), '\'');
|
391
|
-
equal(_('J').unescapeHTML(), 'J');
|
392
|
-
equal(_('J').unescapeHTML(), 'J');
|
393
|
-
equal(_('J').unescapeHTML(), 'J');
|
394
|
-
equal(_('&_#39;').unescapeHTML(), '&_#39;');
|
395
|
-
equal(_(''_;').unescapeHTML(), ''_;');
|
396
|
-
equal(_('&#38;').unescapeHTML(), '&');
|
397
|
-
equal(_('&amp;').unescapeHTML(), '&');
|
398
|
-
equal(_('').unescapeHTML(), '');
|
399
|
-
equal(_(null).unescapeHTML(), '');
|
400
|
-
equal(_(undefined).unescapeHTML(), '');
|
401
|
-
equal(_(5).unescapeHTML(), '5');
|
402
|
-
// equal(_(undefined).unescapeHTML(), '');
|
403
|
-
});
|
404
|
-
|
405
|
-
test('String: words', function() {
|
406
|
-
deepEqual(_('I love you!').words(), ['I', 'love', 'you!']);
|
407
|
-
deepEqual(_(' I love you! ').words(), ['I', 'love', 'you!']);
|
408
|
-
deepEqual(_('I_love_you!').words('_'), ['I', 'love', 'you!']);
|
409
|
-
deepEqual(_('I-love-you!').words(/-/), ['I', 'love', 'you!']);
|
410
|
-
deepEqual(_(123).words(), ['123'], '123 number has one word "123".');
|
411
|
-
deepEqual(_(0).words(), ['0'], 'Zero number has one word "0".');
|
412
|
-
deepEqual(_('').words(), [], 'Empty strings has no words.');
|
413
|
-
deepEqual(_(' ').words(), [], 'Blank strings has no words.');
|
414
|
-
deepEqual(_(null).words(), [], 'null has no words.');
|
415
|
-
deepEqual(_(undefined).words(), [], 'undefined has no words.');
|
416
|
-
});
|
417
|
-
|
418
|
-
test('String: chars', function() {
|
419
|
-
equal(_('Hello').chars().length, 5);
|
420
|
-
equal(_(123).chars().length, 3);
|
421
|
-
equal(_('').chars().length, 0);
|
422
|
-
equal(_(null).chars().length, 0);
|
423
|
-
equal(_(undefined).chars().length, 0);
|
424
|
-
});
|
425
|
-
|
426
|
-
test('String: swapCase', function(){
|
427
|
-
equal(_('AaBbCcDdEe').swapCase(), 'aAbBcCdDeE');
|
428
|
-
equal(_('Hello World').swapCase(), 'hELLO wORLD');
|
429
|
-
equal(_('').swapCase(), '');
|
430
|
-
equal(_(null).swapCase(), '');
|
431
|
-
equal(_(undefined).swapCase(), '');
|
432
|
-
});
|
433
|
-
|
434
|
-
test('String: lines', function() {
|
435
|
-
equal(_('Hello\nWorld').lines().length, 2);
|
436
|
-
equal(_('Hello World').lines().length, 1);
|
437
|
-
equal(_(123).lines().length, 1);
|
438
|
-
equal(_('').lines().length, 1);
|
439
|
-
equal(_(null).lines().length, 0);
|
440
|
-
equal(_(undefined).lines().length, 0);
|
441
|
-
});
|
442
|
-
|
443
|
-
test('String: pad', function() {
|
444
|
-
equal(_('1').pad(8), ' 1');
|
445
|
-
equal(_(1).pad(8), ' 1');
|
446
|
-
equal(_('1').pad(8, '0'), '00000001');
|
447
|
-
equal(_('1').pad(8, '0', 'left'), '00000001');
|
448
|
-
equal(_('1').pad(8, '0', 'right'), '10000000');
|
449
|
-
equal(_('1').pad(8, '0', 'both'), '00001000');
|
450
|
-
equal(_('foo').pad(8, '0', 'both'), '000foo00');
|
451
|
-
equal(_('foo').pad(7, '0', 'both'), '00foo00');
|
452
|
-
equal(_('foo').pad(7, '!@$%dofjrofj', 'both'), '!!foo!!');
|
453
|
-
equal(_('').pad(2), ' ');
|
454
|
-
equal(_(null).pad(2), ' ');
|
455
|
-
equal(_(undefined).pad(2), ' ');
|
456
|
-
});
|
457
|
-
|
458
|
-
test('String: lpad', function() {
|
459
|
-
equal(_('1').lpad(8), ' 1');
|
460
|
-
equal(_(1).lpad(8), ' 1');
|
461
|
-
equal(_('1').lpad(8, '0'), '00000001');
|
462
|
-
equal(_('1').lpad(8, '0', 'left'), '00000001');
|
463
|
-
equal(_('').lpad(2), ' ');
|
464
|
-
equal(_(null).lpad(2), ' ');
|
465
|
-
equal(_(undefined).lpad(2), ' ');
|
466
|
-
});
|
467
|
-
|
468
|
-
test('String: rpad', function() {
|
469
|
-
equal(_('1').rpad(8), '1 ');
|
470
|
-
equal(_(1).lpad(8), ' 1');
|
471
|
-
equal(_('1').rpad(8, '0'), '10000000');
|
472
|
-
equal(_('foo').rpad(8, '0'), 'foo00000');
|
473
|
-
equal(_('foo').rpad(7, '0'), 'foo0000');
|
474
|
-
equal(_('').rpad(2), ' ');
|
475
|
-
equal(_(null).rpad(2), ' ');
|
476
|
-
equal(_(undefined).rpad(2), ' ');
|
477
|
-
});
|
478
|
-
|
479
|
-
test('String: lrpad', function() {
|
480
|
-
equal(_('1').lrpad(8), ' 1 ');
|
481
|
-
equal(_(1).lrpad(8), ' 1 ');
|
482
|
-
equal(_('1').lrpad(8, '0'), '00001000');
|
483
|
-
equal(_('foo').lrpad(8, '0'), '000foo00');
|
484
|
-
equal(_('foo').lrpad(7, '0'), '00foo00');
|
485
|
-
equal(_('foo').lrpad(7, '!@$%dofjrofj'), '!!foo!!');
|
486
|
-
equal(_('').lrpad(2), ' ');
|
487
|
-
equal(_(null).lrpad(2), ' ');
|
488
|
-
equal(_(undefined).lrpad(2), ' ');
|
489
|
-
});
|
490
|
-
|
491
|
-
test('String: toNumber', function() {
|
492
|
-
deepEqual(_('not a number').toNumber(), NaN);
|
493
|
-
equal(_(0).toNumber(), 0);
|
494
|
-
equal(_('0').toNumber(), 0);
|
495
|
-
equal(_('0.0').toNumber(), 0);
|
496
|
-
equal(_('0.1').toNumber(), 0);
|
497
|
-
equal(_('0.1').toNumber(1), 0.1);
|
498
|
-
equal(_(' 0.1 ').toNumber(1), 0.1);
|
499
|
-
equal(_('0000').toNumber(), 0);
|
500
|
-
equal(_('2.345').toNumber(), 2);
|
501
|
-
equal(_('2.345').toNumber(NaN), 2);
|
502
|
-
equal(_('2.345').toNumber(2), 2.35);
|
503
|
-
equal(_('2.344').toNumber(2), 2.34);
|
504
|
-
equal(_('2').toNumber(2), 2.00);
|
505
|
-
equal(_(2).toNumber(2), 2.00);
|
506
|
-
equal(_(-2).toNumber(), -2);
|
507
|
-
equal(_('-2').toNumber(), -2);
|
508
|
-
equal(_('').toNumber(), 0);
|
509
|
-
equal(_(null).toNumber(), 0);
|
510
|
-
equal(_(undefined).toNumber(), 0);
|
511
|
-
});
|
512
|
-
|
513
|
-
test('String: numberFormat', function() {
|
514
|
-
equal(_.numberFormat(9000), '9,000');
|
515
|
-
equal(_.numberFormat(9000, 0), '9,000');
|
516
|
-
equal(_.numberFormat(9000, 0, '', ''), '9000');
|
517
|
-
equal(_.numberFormat(90000, 2), '90,000.00');
|
518
|
-
equal(_.numberFormat(1000.754), '1,001');
|
519
|
-
equal(_.numberFormat(1000.754, 2), '1,000.75');
|
520
|
-
equal(_.numberFormat(1000.754, 0, ',', '.'), '1.001');
|
521
|
-
equal(_.numberFormat(1000.754, 2, ',', '.'), '1.000,75');
|
522
|
-
equal(_.numberFormat(1000000.754, 2, ',', '.'), '1.000.000,75');
|
523
|
-
equal(_.numberFormat(1000000000), '1,000,000,000');
|
524
|
-
equal(_.numberFormat(100000000), '100,000,000');
|
525
|
-
equal(_.numberFormat('not number'), '');
|
526
|
-
equal(_.numberFormat(), '');
|
527
|
-
equal(_.numberFormat(null, '.', ','), '');
|
528
|
-
equal(_.numberFormat(undefined, '.', ','), '');
|
529
|
-
equal(_.numberFormat(new Number(5000)), '5,000');
|
530
|
-
});
|
531
|
-
|
532
|
-
test('String: strRight', function() {
|
533
|
-
equal(_('This_is_a_test_string').strRight('_'), 'is_a_test_string');
|
534
|
-
equal(_('This_is_a_test_string').strRight('string'), '');
|
535
|
-
equal(_('This_is_a_test_string').strRight(), 'This_is_a_test_string');
|
536
|
-
equal(_('This_is_a_test_string').strRight(''), 'This_is_a_test_string');
|
537
|
-
equal(_('This_is_a_test_string').strRight('-'), 'This_is_a_test_string');
|
538
|
-
equal(_('This_is_a_test_string').strRight(''), 'This_is_a_test_string');
|
539
|
-
equal(_('').strRight('foo'), '');
|
540
|
-
equal(_(null).strRight('foo'), '');
|
541
|
-
equal(_(undefined).strRight('foo'), '');
|
542
|
-
equal(_(12345).strRight(2), '345');
|
543
|
-
});
|
544
|
-
|
545
|
-
test('String: strRightBack', function() {
|
546
|
-
equal(_('This_is_a_test_string').strRightBack('_'), 'string');
|
547
|
-
equal(_('This_is_a_test_string').strRightBack('string'), '');
|
548
|
-
equal(_('This_is_a_test_string').strRightBack(), 'This_is_a_test_string');
|
549
|
-
equal(_('This_is_a_test_string').strRightBack(''), 'This_is_a_test_string');
|
550
|
-
equal(_('This_is_a_test_string').strRightBack('-'), 'This_is_a_test_string');
|
551
|
-
equal(_('').strRightBack('foo'), '');
|
552
|
-
equal(_(null).strRightBack('foo'), '');
|
553
|
-
equal(_(undefined).strRightBack('foo'), '');
|
554
|
-
equal(_(12345).strRightBack(2), '345');
|
555
|
-
});
|
556
|
-
|
557
|
-
test('String: strLeft', function() {
|
558
|
-
equal(_('This_is_a_test_string').strLeft('_'), 'This');
|
559
|
-
equal(_('This_is_a_test_string').strLeft('This'), '');
|
560
|
-
equal(_('This_is_a_test_string').strLeft(), 'This_is_a_test_string');
|
561
|
-
equal(_('This_is_a_test_string').strLeft(''), 'This_is_a_test_string');
|
562
|
-
equal(_('This_is_a_test_string').strLeft('-'), 'This_is_a_test_string');
|
563
|
-
equal(_('').strLeft('foo'), '');
|
564
|
-
equal(_(null).strLeft('foo'), '');
|
565
|
-
equal(_(undefined).strLeft('foo'), '');
|
566
|
-
equal(_(123454321).strLeft(3), '12');
|
567
|
-
});
|
568
|
-
|
569
|
-
test('String: strLeftBack', function() {
|
570
|
-
equal(_('This_is_a_test_string').strLeftBack('_'), 'This_is_a_test');
|
571
|
-
equal(_('This_is_a_test_string').strLeftBack('This'), '');
|
572
|
-
equal(_('This_is_a_test_string').strLeftBack(), 'This_is_a_test_string');
|
573
|
-
equal(_('This_is_a_test_string').strLeftBack(''), 'This_is_a_test_string');
|
574
|
-
equal(_('This_is_a_test_string').strLeftBack('-'), 'This_is_a_test_string');
|
575
|
-
equal(_('').strLeftBack('foo'), '');
|
576
|
-
equal(_(null).strLeftBack('foo'), '');
|
577
|
-
equal(_(undefined).strLeftBack('foo'), '');
|
578
|
-
equal(_(123454321).strLeftBack(3), '123454');
|
579
|
-
});
|
580
|
-
|
581
|
-
test('Strings: stripTags', function() {
|
582
|
-
equal(_('a <a href="#">link</a>').stripTags(), 'a link');
|
583
|
-
equal(_('a <a href="#">link</a><script>alert("hello world!")</scr'+'ipt>').stripTags(), 'a linkalert("hello world!")');
|
584
|
-
equal(_('<html><body>hello world</body></html>').stripTags(), 'hello world');
|
585
|
-
equal(_(123).stripTags(), '123');
|
586
|
-
equal(_('').stripTags(), '');
|
587
|
-
equal(_(null).stripTags(), '');
|
588
|
-
equal(_(undefined).stripTags(), '');
|
589
|
-
});
|
590
|
-
|
591
|
-
test('Strings: toSentence', function() {
|
592
|
-
equal(_.toSentence(['jQuery']), 'jQuery', 'array with a single element');
|
593
|
-
equal(_.toSentence(['jQuery', 'MooTools']), 'jQuery and MooTools', 'array with two elements');
|
594
|
-
equal(_.toSentence(['jQuery', 'MooTools', 'Prototype']), 'jQuery, MooTools and Prototype', 'array with three elements');
|
595
|
-
equal(_.toSentence(['jQuery', 'MooTools', 'Prototype', 'YUI']), 'jQuery, MooTools, Prototype and YUI', 'array with multiple elements');
|
596
|
-
equal(_.toSentence(['jQuery', 'MooTools', 'Prototype'], ',', ' or '), 'jQuery,MooTools or Prototype', 'handles custom separators');
|
597
|
-
});
|
598
|
-
|
599
|
-
test('Strings: toSentenceSerial', function (){
|
600
|
-
equal(_.toSentenceSerial(['jQuery']), 'jQuery');
|
601
|
-
equal(_.toSentenceSerial(['jQuery', 'MooTools']), 'jQuery and MooTools');
|
602
|
-
equal(_.toSentenceSerial(['jQuery', 'MooTools', 'Prototype']), 'jQuery, MooTools, and Prototype');
|
603
|
-
});
|
604
|
-
|
605
|
-
test('Strings: slugify', function() {
|
606
|
-
equal(_('Jack & Jill like numbers 1,2,3 and 4 and silly characters ?%.$!/').slugify(), 'jack-jill-like-numbers-123-and-4-and-silly-characters');
|
607
|
-
equal(_('Un éléphant à l\'orée du bois').slugify(), 'un-elephant-a-loree-du-bois');
|
608
|
-
equal(_('I know latin characters: á í ó ú ç ã õ ñ ü ă ș ț').slugify(), 'i-know-latin-characters-a-i-o-u-c-a-o-n-u-a-s-t');
|
609
|
-
equal(_('I am a word too, even though I am but a single letter: i!').slugify(), 'i-am-a-word-too-even-though-i-am-but-a-single-letter-i');
|
610
|
-
equal(_('').slugify(), '');
|
611
|
-
equal(_(null).slugify(), '');
|
612
|
-
equal(_(undefined).slugify(), '');
|
613
|
-
});
|
614
|
-
|
615
|
-
test('Strings: quote', function(){
|
616
|
-
equal(_.quote('foo'), '"foo"');
|
617
|
-
equal(_.quote('"foo"'), '""foo""');
|
618
|
-
equal(_.quote(1), '"1"');
|
619
|
-
equal(_.quote("foo", "'"), "'foo'");
|
620
|
-
|
621
|
-
// alias
|
622
|
-
equal(_.q('foo'), '"foo"');
|
623
|
-
equal(_.q(''), '""');
|
624
|
-
equal(_.q(null), '""');
|
625
|
-
equal(_.q(undefined), '""');
|
626
|
-
});
|
627
|
-
|
628
|
-
test('Strings: unquote', function(){
|
629
|
-
equal(_.unquote('"foo"'), 'foo');
|
630
|
-
equal(_.unquote('""foo""'), '"foo"');
|
631
|
-
equal(_.unquote('"1"'), '1');
|
632
|
-
equal(_.unquote("'foo'", "'"), 'foo');
|
633
|
-
});
|
634
|
-
|
635
|
-
test('Strings: surround', function(){
|
636
|
-
equal(_.surround('foo', 'ab'), 'abfooab');
|
637
|
-
equal(_.surround(1, 'ab'), 'ab1ab');
|
638
|
-
equal(_.surround(1, 2), '212');
|
639
|
-
equal(_.surround('foo', 1), '1foo1');
|
640
|
-
equal(_.surround('', 1), '11');
|
641
|
-
equal(_.surround(null, 1), '11');
|
642
|
-
equal(_.surround('foo', ''), 'foo');
|
643
|
-
equal(_.surround('foo', null), 'foo');
|
644
|
-
});
|
645
|
-
|
646
|
-
|
647
|
-
test('Strings: repeat', function() {
|
648
|
-
equal(_.repeat('foo'), '');
|
649
|
-
equal(_.repeat('foo', 3), 'foofoofoo');
|
650
|
-
equal(_.repeat('foo', '3'), 'foofoofoo');
|
651
|
-
equal(_.repeat(123, 2), '123123');
|
652
|
-
equal(_.repeat(1234, 2, '*'), '1234*1234');
|
653
|
-
equal(_.repeat(1234, 2, 5), '123451234');
|
654
|
-
equal(_.repeat('', 2), '');
|
655
|
-
equal(_.repeat(null, 2), '');
|
656
|
-
equal(_.repeat(undefined, 2), '');
|
657
|
-
});
|
658
|
-
|
659
|
-
test('String: toBoolean', function() {
|
660
|
-
strictEqual(_("false").toBoolean(), false);
|
661
|
-
strictEqual(_.toBoolean("false"), false);
|
662
|
-
strictEqual(_.toBoolean("False"), false);
|
663
|
-
strictEqual(_.toBoolean("Falsy",null,["false", "falsy"]), false);
|
664
|
-
strictEqual(_.toBoolean("true"), true);
|
665
|
-
strictEqual(_.toBoolean("the truth", "the truth", "this is falsy"), true);
|
666
|
-
strictEqual(_.toBoolean("this is falsy", "the truth", "this is falsy"), false);
|
667
|
-
strictEqual(_("true").toBoolean(), true);
|
668
|
-
strictEqual(_.toBoolean("trUe"), true);
|
669
|
-
strictEqual(_.toBoolean("trUe", /tru?/i), true);
|
670
|
-
strictEqual(_.toBoolean("something else"), undefined);
|
671
|
-
strictEqual(_.toBoolean(function(){}), true);
|
672
|
-
strictEqual(_.toBoolean(/regexp/), true);
|
673
|
-
strictEqual(_.toBoolean(""), undefined);
|
674
|
-
strictEqual(_.toBoolean(0), false);
|
675
|
-
strictEqual(_.toBoolean(1), true);
|
676
|
-
strictEqual(_.toBoolean("1"), true);
|
677
|
-
strictEqual(_.toBoolean("0"), false);
|
678
|
-
strictEqual(_.toBoolean(2), undefined);
|
679
|
-
strictEqual(_.toBoolean("foo true bar"), undefined);
|
680
|
-
strictEqual(_.toBoolean("foo true bar", /true/), true);
|
681
|
-
strictEqual(_.toBoolean("foo FALSE bar", null, /FALSE/), false);
|
682
|
-
strictEqual(_.toBoolean(" true "), true);
|
683
|
-
});
|
684
|
-
|
685
|
-
});
|