cvss-suite 1.0.8 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGES.md +14 -0
- data/README.md +12 -3
- data/cvss_suite.gemspec +1 -9
- data/lib/cvss_suite.rb +10 -7
- data/lib/cvss_suite/cvss.rb +4 -4
- data/lib/cvss_suite/cvss2/cvss2.rb +1 -1
- data/lib/cvss_suite/cvss3/cvss3.rb +1 -1
- data/lib/cvss_suite/errors.rb +28 -0
- data/lib/cvss_suite/invalid_cvss.rb +57 -0
- data/lib/cvss_suite/version.rb +1 -1
- metadata +6 -812
- data/vendor/cache/diff-lcs-1.2.5.gem +0 -0
- data/vendor/cache/docile-1.1.5.gem +0 -0
- data/vendor/cache/json-1.8.3.gem +0 -0
- data/vendor/cache/rdoc-4.2.0.gem +0 -0
- data/vendor/cache/rspec-3.4.0.gem +0 -0
- data/vendor/cache/rspec-core-3.4.0.gem +0 -0
- data/vendor/cache/rspec-expectations-3.4.0.gem +0 -0
- data/vendor/cache/rspec-its-1.2.0.gem +0 -0
- data/vendor/cache/rspec-mocks-3.4.0.gem +0 -0
- data/vendor/cache/rspec-support-3.4.0.gem +0 -0
- data/vendor/cache/ruby/2.2.0/bin/badger +0 -23
- data/vendor/cache/ruby/2.2.0/bin/htmldiff +0 -25
- data/vendor/cache/ruby/2.2.0/bin/ldiff +0 -25
- data/vendor/cache/ruby/2.2.0/bin/rspec +0 -23
- data/vendor/cache/ruby/2.2.0/bin/thor +0 -23
- data/vendor/cache/ruby/2.2.0/cache/badgerbadgerbadger-0.14.0.gem +0 -0
- data/vendor/cache/ruby/2.2.0/cache/diff-lcs-1.2.5.gem +0 -0
- data/vendor/cache/ruby/2.2.0/cache/docile-1.1.5.gem +0 -0
- data/vendor/cache/ruby/2.2.0/cache/git-1.3.0.gem +0 -0
- data/vendor/cache/ruby/2.2.0/cache/json-1.8.3.gem +0 -0
- data/vendor/cache/ruby/2.2.0/cache/rake-10.4.2.gem +0 -0
- data/vendor/cache/ruby/2.2.0/cache/rdoc-4.2.0.gem +0 -0
- data/vendor/cache/ruby/2.2.0/cache/rspec-3.4.0.gem +0 -0
- data/vendor/cache/ruby/2.2.0/cache/rspec-core-3.4.0.gem +0 -0
- data/vendor/cache/ruby/2.2.0/cache/rspec-expectations-3.4.0.gem +0 -0
- data/vendor/cache/ruby/2.2.0/cache/rspec-its-1.2.0.gem +0 -0
- data/vendor/cache/ruby/2.2.0/cache/rspec-mocks-3.4.0.gem +0 -0
- data/vendor/cache/ruby/2.2.0/cache/rspec-support-3.4.0.gem +0 -0
- data/vendor/cache/ruby/2.2.0/cache/simplecov-0.11.2.gem +0 -0
- data/vendor/cache/ruby/2.2.0/cache/simplecov-html-0.10.0.gem +0 -0
- data/vendor/cache/ruby/2.2.0/cache/thor-0.19.1.gem +0 -0
- data/vendor/cache/ruby/2.2.0/extensions/x86-linux/2.2.0/json-1.8.3/gem.build_complete +0 -0
- data/vendor/cache/ruby/2.2.0/extensions/x86-linux/2.2.0/json-1.8.3/gem_make.out +0 -9
- data/vendor/cache/ruby/2.2.0/extensions/x86-linux/2.2.0/json-1.8.3/json/ext/generator.so +0 -0
- data/vendor/cache/ruby/2.2.0/extensions/x86-linux/2.2.0/json-1.8.3/json/ext/parser.so +0 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/.gitignore +0 -19
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/.rspec +0 -2
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/.travis.yml +0 -15
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/DESC.md +0 -27
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/Gemfile +0 -7
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/Guardfile +0 -30
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/LICENSE.md +0 -22
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/README.md +0 -53
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/Rakefile +0 -10
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/badger.gemspec +0 -34
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/bin/badger +0 -4
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/config/config.yaml +0 -8
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/config/licenses.yaml +0 -25
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/config/services.yaml +0 -40
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/alternative-styles.feature +0 -24
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/badger.feature +0 -50
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/heroku-only-remote.feature +0 -12
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/licenses.feature +0 -61
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/multiple-remotes.feature +0 -18
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/png.feature +0 -17
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/pulls-and-issues.feature +0 -19
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/remote-with-different-name.feature +0 -17
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/rubygems.feature +0 -46
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/services.feature +0 -53
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/size.feature +0 -18
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/ssh-remote.feature +0 -39
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/step_definitions/badger_steps.rb +0 -11
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/env.rb +0 -11
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/fixtures/licenses/apache.txt +0 -202
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/fixtures/licenses/doge.md +0 -1
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/fixtures/licenses/gpl-2.0.txt +0 -339
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/fixtures/licenses/gpl-3.0.txt +0 -674
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/fixtures/licenses/mit.md +0 -22
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/hooks/hooks.rb +0 -15
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/hooks/licenses.rb +0 -19
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/hooks/rubygems.rb +0 -66
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/hooks/services.rb +0 -17
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger.rb +0 -15
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/badge.rb +0 -20
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/badger.rb +0 -61
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/bonus.rb +0 -17
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/cli.rb +0 -56
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/config.rb +0 -49
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/helpers.rb +0 -95
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/license.rb +0 -22
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/rubygem.rb +0 -16
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/service.rb +0 -46
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/version.rb +0 -3
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/badge_types_spec.rb +0 -27
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/badger_spec.rb +0 -62
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/licenses_spec.rb +0 -42
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/services_spec.rb +0 -33
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/size_spec.rb +0 -20
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/spec_helper.rb +0 -22
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/user_and_repo_spec.rb +0 -33
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/.autotest +0 -3
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/.gemtest +0 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/.hoerc +0 -2
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/.rspec +0 -2
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/.travis.yml +0 -22
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/Contributing.rdoc +0 -64
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/Gemfile +0 -20
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/History.rdoc +0 -152
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/License.rdoc +0 -39
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/Manifest.txt +0 -38
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/README.rdoc +0 -85
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/Rakefile +0 -41
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/autotest/discover.rb +0 -1
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/bin/htmldiff +0 -32
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/bin/ldiff +0 -6
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/docs/COPYING.txt +0 -339
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/docs/artistic.txt +0 -127
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff-lcs.rb +0 -3
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs.rb +0 -805
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/array.rb +0 -7
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/block.rb +0 -37
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/callbacks.rb +0 -322
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/change.rb +0 -177
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/htmldiff.rb +0 -149
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/hunk.rb +0 -276
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/internals.rb +0 -301
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/ldiff.rb +0 -195
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/string.rb +0 -5
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/change_spec.rb +0 -65
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/diff_spec.rb +0 -47
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/hunk_spec.rb +0 -72
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/issues_spec.rb +0 -24
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/lcs_spec.rb +0 -54
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/patch_spec.rb +0 -414
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/sdiff_spec.rb +0 -214
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/spec_helper.rb +0 -290
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/traverse_balanced_spec.rb +0 -310
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/traverse_sequences_spec.rb +0 -139
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/.gitignore +0 -9
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/.rspec +0 -2
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/.ruby-gemset +0 -1
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/.ruby-version +0 -1
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/.travis.yml +0 -21
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/.yardopts +0 -7
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/Gemfile +0 -4
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/HISTORY.md +0 -61
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/LICENSE +0 -21
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/README.md +0 -241
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/Rakefile +0 -28
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/docile.gemspec +0 -43
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/lib/docile.rb +0 -84
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb +0 -20
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/lib/docile/execution.rb +0 -35
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/lib/docile/fallback_context_proxy.rb +0 -63
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/lib/docile/version.rb +0 -4
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/on_what.rb +0 -14
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/spec/docile_spec.rb +0 -339
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/spec/spec_helper.rb +0 -30
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/CHANGELOG +0 -84
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/LICENSE +0 -21
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/README.md +0 -297
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/VERSION +0 -2
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git.rb +0 -166
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/author.rb +0 -14
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/base.rb +0 -540
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/base/factory.rb +0 -75
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/branch.rb +0 -122
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/branches.rb +0 -71
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/config.rb +0 -22
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/diff.rb +0 -158
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/index.rb +0 -5
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/lib.rb +0 -1011
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/log.rb +0 -128
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/object.rb +0 -312
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/path.rb +0 -31
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/remote.rb +0 -36
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/repository.rb +0 -6
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/stash.rb +0 -27
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/stashes.rb +0 -44
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/status.rb +0 -117
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/version.rb +0 -7
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/working_directory.rb +0 -4
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/.gitignore +0 -16
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/.travis.yml +0 -26
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/CHANGES +0 -295
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/COPYING +0 -58
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/COPYING-json-jruby +0 -57
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/GPL +0 -340
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/Gemfile +0 -10
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/README-json-jruby.markdown +0 -33
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/README.rdoc +0 -358
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/Rakefile +0 -412
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/TODO +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/VERSION +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/data/example.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/data/index.html +0 -38
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/data/prototype.js +0 -4184
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/diagrams/.keep +0 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/fbuffer/fbuffer.h +0 -190
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/generator/.RUBYARCHDIR.-.json.-.ext.time +0 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/generator/depend +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/generator/extconf.rb +0 -4
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/generator/generator.c +0 -1458
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/generator/generator.h +0 -166
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/generator/generator.so +0 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/parser/.RUBYARCHDIR.-.json.-.ext.time +0 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/parser/depend +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/parser/extconf.rb +0 -3
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/parser/parser.c +0 -2216
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/parser/parser.h +0 -92
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/parser/parser.rl +0 -939
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/parser/parser.so +0 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/extconf.rb +0 -3
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/install.rb +0 -23
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/ByteListTranscoder.java +0 -167
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/Generator.java +0 -444
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/GeneratorMethods.java +0 -232
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/GeneratorService.java +0 -43
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/GeneratorState.java +0 -543
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/OptionsReader.java +0 -114
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/Parser.java +0 -2645
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/Parser.rl +0 -969
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/ParserService.java +0 -35
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/RuntimeInfo.java +0 -121
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/StringDecoder.java +0 -167
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/StringEncoder.java +0 -106
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/Utils.java +0 -89
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/json-java.gemspec +0 -23
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/json.gemspec +0 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/json_pure.gemspec +0 -40
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json.rb +0 -62
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/bigdecimal.rb +0 -28
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/complex.rb +0 -28
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/core.rb +0 -11
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/date.rb +0 -34
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/date_time.rb +0 -50
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/exception.rb +0 -31
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/ostruct.rb +0 -31
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/range.rb +0 -29
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/rational.rb +0 -27
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/regexp.rb +0 -30
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/struct.rb +0 -30
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/symbol.rb +0 -25
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/time.rb +0 -38
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/common.rb +0 -484
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/ext.rb +0 -21
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/ext/.keep +0 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/ext/generator.so +0 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/ext/parser.so +0 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/generic_object.rb +0 -70
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/pure.rb +0 -21
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/pure/generator.rb +0 -522
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/pure/parser.rb +0 -359
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/version.rb +0 -8
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail1.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail10.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail11.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail12.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail13.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail14.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail18.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail19.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail2.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail20.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail21.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail22.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail23.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail24.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail25.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail27.json +0 -2
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail28.json +0 -2
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail3.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail4.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail5.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail6.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail7.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail8.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail9.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/pass1.json +0 -56
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/pass15.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/pass16.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/pass17.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/pass2.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/pass26.json +0 -1
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/pass3.json +0 -6
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/setup_variant.rb +0 -11
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json.rb +0 -553
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json_addition.rb +0 -196
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json_encoding.rb +0 -65
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json_fixtures.rb +0 -35
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json_generate.rb +0 -337
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json_generic_object.rb +0 -75
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json_string_matching.rb +0 -39
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json_unicode.rb +0 -72
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tools/fuzz.rb +0 -139
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tools/server.rb +0 -62
- data/vendor/cache/ruby/2.2.0/gems/rspec-3.4.0/LICENSE.md +0 -27
- data/vendor/cache/ruby/2.2.0/gems/rspec-3.4.0/README.md +0 -39
- data/vendor/cache/ruby/2.2.0/gems/rspec-3.4.0/lib/rspec.rb +0 -3
- data/vendor/cache/ruby/2.2.0/gems/rspec-3.4.0/lib/rspec/version.rb +0 -5
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/.document +0 -5
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/.yardopts +0 -8
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/Changelog.md +0 -1925
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/LICENSE.md +0 -26
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/README.md +0 -384
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/exe/rspec +0 -4
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/autorun.rb +0 -3
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core.rb +0 -181
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/backtrace_formatter.rb +0 -64
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/bisect/coordinator.rb +0 -66
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/bisect/example_minimizer.rb +0 -169
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/bisect/runner.rb +0 -139
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/bisect/server.rb +0 -61
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/configuration.rb +0 -1869
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/configuration_options.rb +0 -191
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/drb.rb +0 -111
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/dsl.rb +0 -96
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/example.rb +0 -620
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/example_group.rb +0 -816
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/example_status_persister.rb +0 -235
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/filter_manager.rb +0 -231
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/flat_map.rb +0 -20
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters.rb +0 -255
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/base_formatter.rb +0 -70
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/base_text_formatter.rb +0 -77
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/bisect_formatter.rb +0 -68
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -144
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/console_codes.rb +0 -65
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/deprecation_formatter.rb +0 -223
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/documentation_formatter.rb +0 -70
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/exception_presenter.rb +0 -480
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -28
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/helpers.rb +0 -109
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/html_formatter.rb +0 -151
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/html_printer.rb +0 -414
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/html_snippet_extractor.rb +0 -116
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/json_formatter.rb +0 -96
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/profile_formatter.rb +0 -68
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/progress_formatter.rb +0 -28
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/protocol.rb +0 -181
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/snippet_extractor.rb +0 -143
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/hooks.rb +0 -638
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/memoized_helpers.rb +0 -532
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/metadata.rb +0 -491
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/metadata_filter.rb +0 -240
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/minitest_assertions_adapter.rb +0 -31
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/mocking_adapters/flexmock.rb +0 -31
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/mocking_adapters/mocha.rb +0 -57
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/mocking_adapters/null.rb +0 -14
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/mocking_adapters/rr.rb +0 -31
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/mocking_adapters/rspec.rb +0 -32
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/notifications.rb +0 -499
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/option_parser.rb +0 -319
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/ordering.rb +0 -158
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/pending.rb +0 -165
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/profiler.rb +0 -32
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/project_initializer.rb +0 -48
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/project_initializer/.rspec +0 -2
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/project_initializer/spec/spec_helper.rb +0 -96
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/rake_task.rb +0 -167
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/reporter.rb +0 -236
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/ruby_project.rb +0 -53
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/runner.rb +0 -179
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/sandbox.rb +0 -37
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/set.rb +0 -49
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/shared_context.rb +0 -55
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/shared_example_group.rb +0 -212
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/shell_escape.rb +0 -49
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/source.rb +0 -76
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/source/location.rb +0 -13
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/source/node.rb +0 -93
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/source/syntax_highlighter.rb +0 -71
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/source/token.rb +0 -43
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/test_unit_assertions_adapter.rb +0 -30
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/version.rb +0 -9
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/warnings.rb +0 -40
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/world.rb +0 -197
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/.document +0 -5
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/.yardopts +0 -6
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/Changelog.md +0 -979
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/LICENSE.md +0 -25
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/README.md +0 -303
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations.rb +0 -81
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/configuration.rb +0 -164
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/expectation_target.rb +0 -113
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/fail_with.rb +0 -31
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/failure_aggregator.rb +0 -194
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/handler.rb +0 -170
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/minitest_integration.rb +0 -31
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/syntax.rb +0 -132
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/version.rb +0 -8
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers.rb +0 -1037
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/aliased_matcher.rb +0 -116
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in.rb +0 -52
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/all.rb +0 -85
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/base_matcher.rb +0 -181
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/be.rb +0 -285
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/be_between.rb +0 -77
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/be_instance_of.rb +0 -22
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/be_kind_of.rb +0 -16
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/be_within.rb +0 -72
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/change.rb +0 -354
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/compound.rb +0 -272
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/contain_exactly.rb +0 -286
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/cover.rb +0 -24
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/eq.rb +0 -40
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/eql.rb +0 -34
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/equal.rb +0 -81
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/exist.rb +0 -86
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/has.rb +0 -103
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/have_attributes.rb +0 -114
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/include.rb +0 -130
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/match.rb +0 -106
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/operators.rb +0 -128
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/output.rb +0 -200
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/raise_error.rb +0 -228
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/respond_to.rb +0 -90
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/satisfy.rb +0 -37
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -94
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/throw_symbol.rb +0 -132
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/yield.rb +0 -419
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/composable.rb +0 -185
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/dsl.rb +0 -453
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/english_phrasing.rb +0 -42
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -73
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/fail_matchers.rb +0 -42
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/generated_descriptions.rb +0 -42
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/matcher_delegator.rb +0 -35
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/matcher_protocol.rb +0 -99
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/.gitignore +0 -19
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/.rspec +0 -3
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/.travis.yml +0 -24
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/Changelog.md +0 -49
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/Gemfile +0 -26
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/LICENSE.txt +0 -27
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/README.md +0 -72
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/Rakefile +0 -16
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/cucumber.yml +0 -2
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/features/its.feature +0 -125
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb +0 -21
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/features/support/env.rb +0 -23
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/lib/rspec/its.rb +0 -149
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/lib/rspec/its/version.rb +0 -5
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/rspec-its.gemspec +0 -28
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/script/test_all +0 -20
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/spec/rspec/its_spec.rb +0 -237
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/spec/spec_helper.rb +0 -15
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/.document +0 -5
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/.yardopts +0 -6
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/Changelog.md +0 -984
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/LICENSE.md +0 -25
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/README.md +0 -445
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks.rb +0 -126
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance.rb +0 -11
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/chain.rb +0 -110
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/error_generator.rb +0 -31
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -35
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -48
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/message_chains.rb +0 -83
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/proxy.rb +0 -116
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/recorder.rb +0 -264
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/stub_chain.rb +0 -46
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -27
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/argument_list_matcher.rb +0 -100
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/argument_matchers.rb +0 -320
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/configuration.rb +0 -205
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/error_generator.rb +0 -367
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/example_methods.rb +0 -422
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/instance_method_stasher.rb +0 -134
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/marshal_extension.rb +0 -41
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/matchers/expectation_customization.rb +0 -20
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/matchers/have_received.rb +0 -128
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/matchers/receive.rb +0 -130
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -80
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/matchers/receive_messages.rb +0 -75
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/message_chain.rb +0 -87
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/message_expectation.rb +0 -717
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/method_double.rb +0 -287
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/method_reference.rb +0 -192
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/mutate_const.rb +0 -335
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/object_reference.rb +0 -149
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/order_group.rb +0 -81
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/proxy.rb +0 -484
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/space.rb +0 -238
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/standalone.rb +0 -3
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/syntax.rb +0 -325
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/targets.rb +0 -97
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/test_double.rb +0 -170
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/verifying_double.rb +0 -129
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/verifying_message_expectation.rb +0 -54
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/verifying_proxy.rb +0 -213
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/version.rb +0 -9
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/Changelog.md +0 -141
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/LICENSE.md +0 -23
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/README.md +0 -40
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support.rb +0 -139
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/caller_filter.rb +0 -83
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/comparable_version.rb +0 -46
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/differ.rb +0 -215
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/directory_maker.rb +0 -63
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/encoded_string.rb +0 -155
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/fuzzy_matcher.rb +0 -48
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/hunk_generator.rb +0 -47
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/matcher_definition.rb +0 -42
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/method_signature_verifier.rb +0 -290
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/mutex.rb +0 -73
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/object_formatter.rb +0 -108
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/recursive_const_methods.rb +0 -76
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/reentrant_mutex.rb +0 -53
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/ruby_features.rb +0 -147
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec.rb +0 -81
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/deprecation_helpers.rb +0 -64
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/formatting_support.rb +0 -9
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/in_sub_process.rb +0 -52
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/library_wide_checks.rb +0 -152
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/shell_out.rb +0 -71
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/stderr_splitter.rb +0 -63
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/string_matcher.rb +0 -46
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/with_isolated_directory.rb +0 -9
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/with_isolated_stderr.rb +0 -13
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/version.rb +0 -7
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/version_checker.rb +0 -53
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/warnings.rb +0 -39
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/.gitignore +0 -31
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/.rspec +0 -3
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/.rubocop.yml +0 -73
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/.travis.yml +0 -27
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/.yardopts +0 -1
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/CHANGELOG.md +0 -391
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/CONTRIBUTING.md +0 -48
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/Gemfile +0 -34
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/MIT-LICENSE +0 -20
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/README.md +0 -646
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/Rakefile +0 -36
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/cucumber.yml +0 -13
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/doc/alternate-formatters.md +0 -36
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/doc/commercial-services.md +0 -20
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/doc/editor-integration.md +0 -13
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_autoload.feature +0 -46
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_command_name.feature +0 -45
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_coverage_dir.feature +0 -33
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_deactivate_merging.feature +0 -42
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_formatters.feature +0 -77
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_merge_timeout.feature +0 -39
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_nocov_token.feature +0 -79
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_profiles.feature +0 -44
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_project_name.feature +0 -27
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_styles.feature +0 -121
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_tracked_files.feature +0 -29
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/cucumber_basic.feature +0 -29
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/maximum_coverage_drop.feature +0 -36
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/merging_test_unit_and_rspec.feature +0 -44
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/minimum_coverage.feature +0 -59
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/refuse_coverage_drop.feature +0 -35
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/rspec_basic.feature +0 -32
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/rspec_fails_on_initialization.feature +0 -14
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/rspec_groups_and_filters_basic.feature +0 -29
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/rspec_groups_and_filters_complex.feature +0 -37
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/rspec_groups_using_filter_class.feature +0 -41
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/rspec_without_simplecov.feature +0 -20
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/skipping_code_blocks_manually.feature +0 -70
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/step_definitions/html_steps.rb +0 -44
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/step_definitions/simplecov_steps.rb +0 -68
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/step_definitions/transformers.rb +0 -13
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/step_definitions/web_steps.rb +0 -64
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/support/env.rb +0 -50
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_basic.feature +0 -34
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_groups_and_filters_basic.feature +0 -29
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_groups_and_filters_complex.feature +0 -35
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_groups_using_filter_class.feature +0 -40
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_without_simplecov.feature +0 -20
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/unicode_compatiblity.feature +0 -67
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov.rb +0 -183
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/command_guesser.rb +0 -59
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/configuration.rb +0 -296
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/defaults.rb +0 -122
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/exit_codes.rb +0 -8
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/file_list.rb +0 -59
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/filter.rb +0 -54
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/formatter.rb +0 -8
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/formatter/multi_formatter.rb +0 -32
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/formatter/simple_formatter.rb +0 -23
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/jruby_fix.rb +0 -42
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/last_run.rb +0 -22
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/merge_helpers.rb +0 -35
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/no_defaults.rb +0 -2
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/profiles.rb +0 -31
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/railtie.rb +0 -7
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/railties/tasks.rake +0 -11
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/result.rb +0 -82
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/result_merger.rb +0 -88
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/source_file.rb +0 -190
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/version.rb +0 -25
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/simplecov.gemspec +0 -27
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/1_8_fallbacks_spec.rb +0 -29
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/command_guesser_spec.rb +0 -46
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/deleted_source_spec.rb +0 -12
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/Gemfile +0 -6
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/Rakefile +0 -8
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/cucumber.yml +0 -13
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/features/step_definitions/my_steps.rb +0 -22
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/features/support/env.rb +0 -12
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/features/test_stuff.feature +0 -6
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/lib/faked_project.rb +0 -11
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/lib/faked_project/framework_specific.rb +0 -18
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/lib/faked_project/meta_magic.rb +0 -24
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/lib/faked_project/some_class.rb +0 -28
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/lib/faked_project/untested_class.rb +0 -11
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/spec/faked_spec.rb +0 -11
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/spec/forking_spec.rb +0 -7
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/spec/meta_magic_spec.rb +0 -15
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/spec/some_class_spec.rb +0 -13
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/spec/spec_helper.rb +0 -11
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/test/faked_test.rb +0 -11
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/test/meta_magic_test.rb +0 -13
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/test/some_class_test.rb +0 -15
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/test/test_helper.rb +0 -12
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/file_list_spec.rb +0 -48
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/filters_spec.rb +0 -96
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/app/controllers/sample_controller.rb +0 -10
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/app/models/user.rb +0 -10
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/deleted_source_sample.rb +0 -15
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/frameworks/rspec_bad.rb +0 -9
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/frameworks/rspec_good.rb +0 -9
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/frameworks/testunit_bad.rb +0 -9
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/frameworks/testunit_good.rb +0 -9
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/iso-8859.rb +0 -3
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/resultset1.rb +0 -4
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/resultset2.rb +0 -4
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/sample.rb +0 -16
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/utf-8.rb +0 -3
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/helper.rb +0 -24
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/merge_helpers_spec.rb +0 -108
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/multi_formatter_spec.rb +0 -20
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/result_spec.rb +0 -207
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/return_codes_spec.rb +0 -37
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/source_file_line_spec.rb +0 -153
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/source_file_spec.rb +0 -75
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/.document +0 -5
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/.gitignore +0 -27
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/.rubocop.yml +0 -50
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/.travis.yml +0 -27
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/Gemfile +0 -22
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/Guardfile +0 -12
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/LICENSE +0 -20
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/README.md +0 -30
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/Rakefile +0 -41
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/javascripts/application.js +0 -127
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/javascripts/libraries/jquery-1.6.2.min.js +0 -18
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/javascripts/plugins/highlight.pack.js +0 -1
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/javascripts/plugins/jquery.colorbox.js +0 -1090
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/javascripts/plugins/jquery.dataTables.min.js +0 -152
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/javascripts/plugins/jquery.timeago.js +0 -141
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/javascripts/plugins/jquery.url.js +0 -174
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/stylesheets/application.css +0 -3
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/stylesheets/plugins/highlight.css +0 -129
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/stylesheets/plugins/jquery-ui-1.8.4.custom.css +0 -295
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/stylesheets/plugins/jquery.colorbox.css +0 -52
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/stylesheets/reset.css +0 -103
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/stylesheets/screen.css.sass +0 -220
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/lib/simplecov-html.rb +0 -110
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/lib/simplecov-html/version.rb +0 -27
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/application.css +0 -799
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/application.js +0 -1707
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/colorbox/border.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/colorbox/controls.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/colorbox/loading.gif +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/colorbox/loading_background.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/favicon_green.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/favicon_red.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/favicon_yellow.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/loading.gif +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/magnify.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/simplecov-html.gemspec +0 -22
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/test/helper.rb +0 -4
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/test/test_simple_cov-html.rb +0 -8
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/views/file_list.erb +0 -45
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/views/layout.erb +0 -41
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/views/source_file.erb +0 -23
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/.document +0 -5
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/CHANGELOG.md +0 -139
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/LICENSE.md +0 -20
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/README.md +0 -41
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/Thorfile +0 -29
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/bin/thor +0 -6
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor.rb +0 -484
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions.rb +0 -319
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb +0 -103
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions/create_link.rb +0 -59
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions/directory.rb +0 -118
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb +0 -135
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb +0 -316
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb +0 -107
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/base.rb +0 -656
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/command.rb +0 -133
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/core_ext/hash_with_indifferent_access.rb +0 -77
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/core_ext/io_binary_read.rb +0 -10
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/core_ext/ordered_hash.rb +0 -98
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/error.rb +0 -32
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/group.rb +0 -281
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb +0 -178
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/line_editor.rb +0 -17
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/line_editor/basic.rb +0 -35
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/line_editor/readline.rb +0 -88
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/parser.rb +0 -4
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/parser/argument.rb +0 -73
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/parser/arguments.rb +0 -175
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/parser/option.rb +0 -125
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/parser/options.rb +0 -218
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/rake_compat.rb +0 -71
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/runner.rb +0 -322
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/shell.rb +0 -81
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/shell/basic.rb +0 -421
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/shell/color.rb +0 -149
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/shell/html.rb +0 -126
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/util.rb +0 -267
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/version.rb +0 -3
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/actions/create_file_spec.rb +0 -168
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/actions/create_link_spec.rb +0 -96
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/actions/directory_spec.rb +0 -169
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/actions/empty_directory_spec.rb +0 -129
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/actions/file_manipulation_spec.rb +0 -392
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/actions/inject_into_file_spec.rb +0 -135
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/actions_spec.rb +0 -331
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/base_spec.rb +0 -298
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/command_spec.rb +0 -79
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/core_ext/hash_with_indifferent_access_spec.rb +0 -48
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/core_ext/ordered_hash_spec.rb +0 -115
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/exit_condition_spec.rb +0 -19
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/application.rb +0 -2
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/app{1}/README +0 -3
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/bundle/execute.rb +0 -6
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/bundle/main.thor +0 -1
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/command.thor +0 -10
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/doc/%file_name%.rb.tt +0 -1
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/doc/COMMENTER +0 -11
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/doc/README +0 -3
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/doc/block_helper.rb +0 -3
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/doc/config.rb +0 -1
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/doc/config.yaml.tt +0 -1
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/doc/excluding/%file_name%.rb.tt +0 -1
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/enum.thor +0 -10
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/group.thor +0 -128
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/invoke.thor +0 -131
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/path with spaces b/data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/path with → spaces +0 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/preserve/script.sh +0 -3
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/script.thor +0 -220
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/subcommand.thor +0 -17
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/group_spec.rb +0 -222
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/helper.rb +0 -80
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/invocation_spec.rb +0 -120
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/line_editor/basic_spec.rb +0 -28
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/line_editor/readline_spec.rb +0 -69
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/line_editor_spec.rb +0 -43
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/parser/argument_spec.rb +0 -53
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/parser/arguments_spec.rb +0 -66
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/parser/option_spec.rb +0 -210
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/parser/options_spec.rb +0 -414
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/quality_spec.rb +0 -75
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/rake_compat_spec.rb +0 -72
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/register_spec.rb +0 -227
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/runner_spec.rb +0 -246
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/application.rb +0 -2
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/app{1}/README +0 -3
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/bundle/execute.rb +0 -6
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/bundle/main.thor +0 -1
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/command.thor +0 -10
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/doc/%file_name%.rb.tt +0 -1
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/doc/COMMENTER +0 -11
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/doc/README +0 -3
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/doc/block_helper.rb +0 -3
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/doc/config.rb +0 -1
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/doc/config.yaml.tt +0 -1
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/doc/excluding/%file_name%.rb.tt +0 -1
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/enum.thor +0 -10
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/group.thor +0 -128
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/invoke.thor +0 -131
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/path with spaces b/data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/path with → spaces +0 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/preserve/script.sh +0 -3
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/script.thor +0 -220
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/subcommand.thor +0 -17
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/shell/basic_spec.rb +0 -337
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/shell/color_spec.rb +0 -119
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/shell/html_spec.rb +0 -31
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/shell_spec.rb +0 -47
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/subcommand_spec.rb +0 -48
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/thor_spec.rb +0 -505
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/util_spec.rb +0 -196
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/thor.gemspec +0 -24
- data/vendor/cache/ruby/2.2.0/specifications/badgerbadgerbadger-0.14.0.gemspec +0 -70
- data/vendor/cache/ruby/2.2.0/specifications/diff-lcs-1.2.5.gemspec +0 -68
- data/vendor/cache/ruby/2.2.0/specifications/docile-1.1.5.gemspec +0 -48
- data/vendor/cache/ruby/2.2.0/specifications/git-1.3.0.gemspec +0 -42
- data/vendor/cache/ruby/2.2.0/specifications/json-1.8.3.gemspec +0 -0
- data/vendor/cache/ruby/2.2.0/specifications/rspec-3.4.0.gemspec +0 -42
- data/vendor/cache/ruby/2.2.0/specifications/rspec-core-3.4.0.gemspec +0 -68
- data/vendor/cache/ruby/2.2.0/specifications/rspec-expectations-3.4.0.gemspec +0 -50
- data/vendor/cache/ruby/2.2.0/specifications/rspec-its-1.2.0.gemspec +0 -47
- data/vendor/cache/ruby/2.2.0/specifications/rspec-mocks-3.4.0.gemspec +0 -50
- data/vendor/cache/ruby/2.2.0/specifications/rspec-support-3.4.0.gemspec +0 -41
- data/vendor/cache/ruby/2.2.0/specifications/simplecov-0.11.2.gemspec +0 -42
- data/vendor/cache/ruby/2.2.0/specifications/simplecov-html-0.10.0.gemspec +0 -33
- data/vendor/cache/ruby/2.2.0/specifications/thor-0.19.1.gemspec +0 -34
- data/vendor/cache/simplecov-0.11.2.gem +0 -0
- data/vendor/cache/simplecov-html-0.10.0.gem +0 -0
@@ -1,127 +0,0 @@
|
|
1
|
-
The "Artistic License"
|
2
|
-
|
3
|
-
Preamble
|
4
|
-
|
5
|
-
The intent of this document is to state the conditions under which a
|
6
|
-
Package may be copied, such that the Copyright Holder maintains some
|
7
|
-
semblance of artistic control over the development of the package,
|
8
|
-
while giving the users of the package the right to use and distribute
|
9
|
-
the Package in a more-or-less customary fashion, plus the right to make
|
10
|
-
reasonable modifications.
|
11
|
-
|
12
|
-
Definitions:
|
13
|
-
|
14
|
-
"Package" refers to the collection of files distributed by the
|
15
|
-
Copyright Holder, and derivatives of that collection of files
|
16
|
-
created through textual modification.
|
17
|
-
|
18
|
-
"Standard Version" refers to such a Package if it has not been
|
19
|
-
modified, or has been modified in accordance with the wishes
|
20
|
-
of the Copyright Holder as specified below.
|
21
|
-
|
22
|
-
"Copyright Holder" is whoever is named in the copyright or
|
23
|
-
copyrights for the package.
|
24
|
-
|
25
|
-
"You" is you, if you're thinking about copying or distributing
|
26
|
-
this Package.
|
27
|
-
|
28
|
-
"Reasonable copying fee" is whatever you can justify on the
|
29
|
-
basis of media cost, duplication charges, time of people involved,
|
30
|
-
and so on. (You will not be required to justify it to the
|
31
|
-
Copyright Holder, but only to the computing community at large
|
32
|
-
as a market that must bear the fee.)
|
33
|
-
|
34
|
-
"Freely Available" means that no fee is charged for the item
|
35
|
-
itself, though there may be fees involved in handling the item.
|
36
|
-
It also means that recipients of the item may redistribute it
|
37
|
-
under the same conditions they received it.
|
38
|
-
|
39
|
-
1. You may make and give away verbatim copies of the source form of the
|
40
|
-
Standard Version of this Package without restriction, provided that you
|
41
|
-
duplicate all of the original copyright notices and associated disclaimers.
|
42
|
-
|
43
|
-
2. You may apply bug fixes, portability fixes and other modifications
|
44
|
-
derived from the Public Domain or from the Copyright Holder. A Package
|
45
|
-
modified in such a way shall still be considered the Standard Version.
|
46
|
-
|
47
|
-
3. You may otherwise modify your copy of this Package in any way, provided
|
48
|
-
that you insert a prominent notice in each changed file stating how and
|
49
|
-
when you changed that file, and provided that you do at least ONE of the
|
50
|
-
following:
|
51
|
-
|
52
|
-
a) place your modifications in the Public Domain or otherwise make them
|
53
|
-
Freely Available, such as by posting said modifications to Usenet or
|
54
|
-
an equivalent medium, or placing the modifications on a major archive
|
55
|
-
site such as uunet.uu.net, or by allowing the Copyright Holder to include
|
56
|
-
your modifications in the Standard Version of the Package.
|
57
|
-
|
58
|
-
b) use the modified Package only within your corporation or organization.
|
59
|
-
|
60
|
-
c) rename any non-standard executables so the names do not conflict
|
61
|
-
with standard executables, which must also be provided, and provide
|
62
|
-
a separate manual page for each non-standard executable that clearly
|
63
|
-
documents how it differs from the Standard Version.
|
64
|
-
|
65
|
-
d) make other distribution arrangements with the Copyright Holder.
|
66
|
-
|
67
|
-
4. You may distribute the programs of this Package in object code or
|
68
|
-
executable form, provided that you do at least ONE of the following:
|
69
|
-
|
70
|
-
a) distribute a Standard Version of the executables and library files,
|
71
|
-
together with instructions (in the manual page or equivalent) on where
|
72
|
-
to get the Standard Version.
|
73
|
-
|
74
|
-
b) accompany the distribution with the machine-readable source of
|
75
|
-
the Package with your modifications.
|
76
|
-
|
77
|
-
c) give non-standard executables non-standard names, and clearly
|
78
|
-
document the differences in manual pages (or equivalent), together
|
79
|
-
with instructions on where to get the Standard Version.
|
80
|
-
|
81
|
-
d) make other distribution arrangements with the Copyright Holder.
|
82
|
-
|
83
|
-
5. You may charge a reasonable copying fee for any distribution of this
|
84
|
-
Package. You may charge any fee you choose for support of this
|
85
|
-
Package. You may not charge a fee for this Package itself. However,
|
86
|
-
you may distribute this Package in aggregate with other (possibly
|
87
|
-
commercial) programs as part of a larger (possibly commercial) software
|
88
|
-
distribution provided that you do not advertise this Package as a
|
89
|
-
product of your own. You may embed this Package's interpreter within
|
90
|
-
an executable of yours (by linking); this shall be construed as a mere
|
91
|
-
form of aggregation, provided that the complete Standard Version of the
|
92
|
-
interpreter is so embedded.
|
93
|
-
|
94
|
-
6. The scripts and library files supplied as input to or produced as
|
95
|
-
output from the programs of this Package do not automatically fall
|
96
|
-
under the copyright of this Package, but belong to whoever generated
|
97
|
-
them, and may be sold commercially, and may be aggregated with this
|
98
|
-
Package. If such scripts or library files are aggregated with this
|
99
|
-
Package via the so-called "undump" or "unexec" methods of producing a
|
100
|
-
binary executable image, then distribution of such an image shall
|
101
|
-
neither be construed as a distribution of this Package nor shall it
|
102
|
-
fall under the restrictions of Paragraphs 3 and 4, provided that you do
|
103
|
-
not represent such an executable image as a Standard Version of this
|
104
|
-
Package.
|
105
|
-
|
106
|
-
7. C subroutines (or comparably compiled subroutines in other
|
107
|
-
languages) supplied by you and linked into this Package in order to
|
108
|
-
emulate subroutines and variables of the language defined by this
|
109
|
-
Package shall not be considered part of this Package, but are the
|
110
|
-
equivalent of input as in Paragraph 6, provided these subroutines do
|
111
|
-
not change the language in any way that would cause it to fail the
|
112
|
-
regression tests for the language.
|
113
|
-
|
114
|
-
8. Aggregation of this Package with a commercial distribution is always
|
115
|
-
permitted provided that the use of this Package is embedded; that is,
|
116
|
-
when no overt attempt is made to make this Package's interfaces visible
|
117
|
-
to the end user of the commercial distribution. Such use shall not be
|
118
|
-
construed as a distribution of this Package.
|
119
|
-
|
120
|
-
9. The name of the Copyright Holder may not be used to endorse or promote
|
121
|
-
products derived from this software without specific prior written permission.
|
122
|
-
|
123
|
-
10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
|
124
|
-
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
125
|
-
WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
126
|
-
|
127
|
-
The End
|
@@ -1,805 +0,0 @@
|
|
1
|
-
# -*- ruby encoding: utf-8 -*-
|
2
|
-
|
3
|
-
module Diff; end unless defined? Diff
|
4
|
-
# = Diff::LCS 1.2.5
|
5
|
-
#
|
6
|
-
# Computes "intelligent" differences between two sequenced Enumerables. This
|
7
|
-
# is an implementation of the McIlroy-Hunt "diff" algorithm for Enumerable
|
8
|
-
# objects that include Diffable.
|
9
|
-
#
|
10
|
-
# Based on Mario I. Wolczko's Smalltalk version (1.2, 1993) and Ned Konz's
|
11
|
-
# Perl version (Algorithm::Diff 1.15).
|
12
|
-
#
|
13
|
-
# == Synopsis
|
14
|
-
# require 'diff/lcs'
|
15
|
-
#
|
16
|
-
# seq1 = %w(a b c e h j l m n p)
|
17
|
-
# seq2 = %w(b c d e f j k l m r s t)
|
18
|
-
#
|
19
|
-
# lcs = Diff::LCS.lcs(seq1, seq2)
|
20
|
-
# diffs = Diff::LCS.diff(seq1, seq2)
|
21
|
-
# sdiff = Diff::LCS.sdiff(seq1, seq2)
|
22
|
-
# seq = Diff::LCS.traverse_sequences(seq1, seq2, callback_obj)
|
23
|
-
# bal = Diff::LCS.traverse_balanced(seq1, seq2, callback_obj)
|
24
|
-
# seq2 == Diff::LCS.patch(seq1, diffs)
|
25
|
-
# seq2 == Diff::LCS.patch!(seq1, diffs)
|
26
|
-
# seq1 == Diff::LCS.unpatch(seq2, diffs)
|
27
|
-
# seq1 == Diff::LCS.unpatch!(seq2, diffs)
|
28
|
-
# seq2 == Diff::LCS.patch(seq1, sdiff)
|
29
|
-
# seq2 == Diff::LCS.patch!(seq1, sdiff)
|
30
|
-
# seq1 == Diff::LCS.unpatch(seq2, sdiff)
|
31
|
-
# seq1 == Diff::LCS.unpatch!(seq2, sdiff)
|
32
|
-
#
|
33
|
-
# Alternatively, objects can be extended with Diff::LCS:
|
34
|
-
#
|
35
|
-
# seq1.extend(Diff::LCS)
|
36
|
-
# lcs = seq1.lcs(seq2)
|
37
|
-
# diffs = seq1.diff(seq2)
|
38
|
-
# sdiff = seq1.sdiff(seq2)
|
39
|
-
# seq = seq1.traverse_sequences(seq2, callback_obj)
|
40
|
-
# bal = seq1.traverse_balanced(seq2, callback_obj)
|
41
|
-
# seq2 == seq1.patch(diffs)
|
42
|
-
# seq2 == seq1.patch!(diffs)
|
43
|
-
# seq1 == seq2.unpatch(diffs)
|
44
|
-
# seq1 == seq2.unpatch!(diffs)
|
45
|
-
# seq2 == seq1.patch(sdiff)
|
46
|
-
# seq2 == seq1.patch!(sdiff)
|
47
|
-
# seq1 == seq2.unpatch(sdiff)
|
48
|
-
# seq1 == seq2.unpatch!(sdiff)
|
49
|
-
#
|
50
|
-
# Default extensions are provided for Array and String objects through the
|
51
|
-
# use of 'diff/lcs/array' and 'diff/lcs/string'.
|
52
|
-
#
|
53
|
-
# == Introduction (by Mark-Jason Dominus)
|
54
|
-
#
|
55
|
-
# <em>The following text is from the Perl documentation. The only changes
|
56
|
-
# have been to make the text appear better in Rdoc</em>.
|
57
|
-
#
|
58
|
-
# I once read an article written by the authors of +diff+; they said that
|
59
|
-
# they hard worked very hard on the algorithm until they found the right
|
60
|
-
# one.
|
61
|
-
#
|
62
|
-
# I think what they ended up using (and I hope someone will correct me,
|
63
|
-
# because I am not very confident about this) was the `longest common
|
64
|
-
# subsequence' method. In the LCS problem, you have two sequences of items:
|
65
|
-
#
|
66
|
-
# a b c d f g h j q z
|
67
|
-
# a b c d e f g i j k r x y z
|
68
|
-
#
|
69
|
-
# and you want to find the longest sequence of items that is present in both
|
70
|
-
# original sequences in the same order. That is, you want to find a new
|
71
|
-
# sequence *S* which can be obtained from the first sequence by deleting
|
72
|
-
# some items, and from the second sequence by deleting other items. You also
|
73
|
-
# want *S* to be as long as possible. In this case *S* is:
|
74
|
-
#
|
75
|
-
# a b c d f g j z
|
76
|
-
#
|
77
|
-
# From there it's only a small step to get diff-like output:
|
78
|
-
#
|
79
|
-
# e h i k q r x y
|
80
|
-
# + - + + - + + +
|
81
|
-
#
|
82
|
-
# This module solves the LCS problem. It also includes a canned function to
|
83
|
-
# generate +diff+-like output.
|
84
|
-
#
|
85
|
-
# It might seem from the example above that the LCS of two sequences is
|
86
|
-
# always pretty obvious, but that's not always the case, especially when the
|
87
|
-
# two sequences have many repeated elements. For example, consider
|
88
|
-
#
|
89
|
-
# a x b y c z p d q
|
90
|
-
# a b c a x b y c z
|
91
|
-
#
|
92
|
-
# A naive approach might start by matching up the +a+ and +b+ that appear at
|
93
|
-
# the beginning of each sequence, like this:
|
94
|
-
#
|
95
|
-
# a x b y c z p d q
|
96
|
-
# a b c a b y c z
|
97
|
-
#
|
98
|
-
# This finds the common subsequence +a b c z+. But actually, the LCS is +a x
|
99
|
-
# b y c z+:
|
100
|
-
#
|
101
|
-
# a x b y c z p d q
|
102
|
-
# a b c a x b y c z
|
103
|
-
#
|
104
|
-
# == Author
|
105
|
-
# This version is by Austin Ziegler <austin@rubyforge.org>.
|
106
|
-
#
|
107
|
-
# It is based on the Perl Algorithm::Diff (1.15) by Ned Konz , copyright
|
108
|
-
# © 2000–2002 and the Smalltalk diff version by Mario I.
|
109
|
-
# Wolczko, copyright © 1993. Documentation includes work by
|
110
|
-
# Mark-Jason Dominus.
|
111
|
-
#
|
112
|
-
# == Licence
|
113
|
-
# Copyright © 2004–2013 Austin Ziegler
|
114
|
-
# This program is free software; you can redistribute it and/or modify it
|
115
|
-
# under the same terms as Ruby, or alternatively under the Perl Artistic
|
116
|
-
# licence.
|
117
|
-
#
|
118
|
-
# == Credits
|
119
|
-
# Much of the documentation is taken directly from the Perl Algorithm::Diff
|
120
|
-
# implementation and was written originally by Mark-Jason Dominus and later
|
121
|
-
# by Ned Konz. The basic Ruby implementation was re-ported from the
|
122
|
-
# Smalltalk implementation, available at
|
123
|
-
# ftp://st.cs.uiuc.edu/pub/Smalltalk/MANCHESTER/manchester/4.0/diff.st
|
124
|
-
#
|
125
|
-
# #sdiff and #traverse_balanced were written for the Perl version by Mike
|
126
|
-
# Schilli <m@perlmeister.com>.
|
127
|
-
#
|
128
|
-
# "The algorithm is described in <em>A Fast Algorithm for Computing Longest
|
129
|
-
# Common Subsequences</em>, CACM, vol.20, no.5, pp.350-353, May
|
130
|
-
# 1977, with a few minor improvements to improve the speed."
|
131
|
-
module Diff::LCS
|
132
|
-
VERSION = '1.2.5'
|
133
|
-
end
|
134
|
-
|
135
|
-
require 'diff/lcs/callbacks'
|
136
|
-
require 'diff/lcs/internals'
|
137
|
-
|
138
|
-
module Diff::LCS
|
139
|
-
# Returns an Array containing the longest common subsequence(s) between
|
140
|
-
# +self+ and +other+. See Diff::LCS#LCS.
|
141
|
-
#
|
142
|
-
# lcs = seq1.lcs(seq2)
|
143
|
-
def lcs(other, &block) #:yields self[i] if there are matched subsequences:
|
144
|
-
Diff::LCS.lcs(self, other, &block)
|
145
|
-
end
|
146
|
-
|
147
|
-
# Returns the difference set between +self+ and +other+. See
|
148
|
-
# Diff::LCS#diff.
|
149
|
-
def diff(other, callbacks = nil, &block)
|
150
|
-
Diff::LCS.diff(self, other, callbacks, &block)
|
151
|
-
end
|
152
|
-
|
153
|
-
# Returns the balanced ("side-by-side") difference set between +self+ and
|
154
|
-
# +other+. See Diff::LCS#sdiff.
|
155
|
-
def sdiff(other, callbacks = nil, &block)
|
156
|
-
Diff::LCS.sdiff(self, other, callbacks, &block)
|
157
|
-
end
|
158
|
-
|
159
|
-
# Traverses the discovered longest common subsequences between +self+ and
|
160
|
-
# +other+. See Diff::LCS#traverse_sequences.
|
161
|
-
def traverse_sequences(other, callbacks = nil, &block)
|
162
|
-
traverse_sequences(self, other, callbacks ||
|
163
|
-
Diff::LCS.YieldingCallbacks, &block)
|
164
|
-
end
|
165
|
-
|
166
|
-
# Traverses the discovered longest common subsequences between +self+ and
|
167
|
-
# +other+ using the alternate, balanced algorithm. See
|
168
|
-
# Diff::LCS#traverse_balanced.
|
169
|
-
def traverse_balanced(other, callbacks = nil, &block)
|
170
|
-
traverse_balanced(self, other, callbacks ||
|
171
|
-
Diff::LCS.YieldingCallbacks, &block)
|
172
|
-
end
|
173
|
-
|
174
|
-
# Attempts to patch +self+ with the provided +patchset+. A new sequence
|
175
|
-
# based on +self+ and the +patchset+ will be created. See Diff::LCS#patch.
|
176
|
-
# Attempts to autodiscover the direction of the patch.
|
177
|
-
def patch(patchset)
|
178
|
-
Diff::LCS.patch(self, patchset)
|
179
|
-
end
|
180
|
-
alias_method :unpatch, :patch
|
181
|
-
|
182
|
-
# Attempts to patch +self+ with the provided +patchset+. A new sequence
|
183
|
-
# based on +self+ and the +patchset+ will be created. See Diff::LCS#patch.
|
184
|
-
# Does no patch direction autodiscovery.
|
185
|
-
def patch!(patchset)
|
186
|
-
Diff::LCS.patch!(self, patchset)
|
187
|
-
end
|
188
|
-
|
189
|
-
# Attempts to unpatch +self+ with the provided +patchset+. A new sequence
|
190
|
-
# based on +self+ and the +patchset+ will be created. See Diff::LCS#unpatch.
|
191
|
-
# Does no patch direction autodiscovery.
|
192
|
-
def unpatch!(patchset)
|
193
|
-
Diff::LCS.unpatch!(self, patchset)
|
194
|
-
end
|
195
|
-
|
196
|
-
# Attempts to patch +self+ with the provided +patchset+, using #patch!. If
|
197
|
-
# the sequence this is used on supports #replace, the value of +self+ will
|
198
|
-
# be replaced. See Diff::LCS#patch. Does no patch direction autodiscovery.
|
199
|
-
def patch_me(patchset)
|
200
|
-
if respond_to? :replace
|
201
|
-
replace(patch!(patchset))
|
202
|
-
else
|
203
|
-
patch!(patchset)
|
204
|
-
end
|
205
|
-
end
|
206
|
-
|
207
|
-
# Attempts to unpatch +self+ with the provided +patchset+, using
|
208
|
-
# #unpatch!. If the sequence this is used on supports #replace, the value
|
209
|
-
# of +self+ will be replaced. See Diff::LCS#unpatch. Does no patch direction
|
210
|
-
# autodiscovery.
|
211
|
-
def unpatch_me(patchset)
|
212
|
-
if respond_to? :replace
|
213
|
-
replace(unpatch!(patchset))
|
214
|
-
else
|
215
|
-
unpatch!(patchset)
|
216
|
-
end
|
217
|
-
end
|
218
|
-
end
|
219
|
-
|
220
|
-
class << Diff::LCS
|
221
|
-
def lcs(seq1, seq2, &block) #:yields seq1[i] for each matched:
|
222
|
-
matches = Diff::LCS::Internals.lcs(seq1, seq2)
|
223
|
-
ret = []
|
224
|
-
string = seq1.kind_of? String
|
225
|
-
matches.each_with_index do |e, i|
|
226
|
-
unless matches[i].nil?
|
227
|
-
v = string ? seq1[i, 1] : seq1[i]
|
228
|
-
v = block[v] if block
|
229
|
-
ret << v
|
230
|
-
end
|
231
|
-
end
|
232
|
-
ret
|
233
|
-
end
|
234
|
-
alias_method :LCS, :lcs
|
235
|
-
|
236
|
-
# #diff computes the smallest set of additions and deletions necessary to
|
237
|
-
# turn the first sequence into the second, and returns a description of
|
238
|
-
# these changes.
|
239
|
-
#
|
240
|
-
# See Diff::LCS::DiffCallbacks for the default behaviour. An alternate
|
241
|
-
# behaviour may be implemented with Diff::LCS::ContextDiffCallbacks. If a
|
242
|
-
# Class argument is provided for +callbacks+, #diff will attempt to
|
243
|
-
# initialise it. If the +callbacks+ object (possibly initialised) responds
|
244
|
-
# to #finish, it will be called.
|
245
|
-
def diff(seq1, seq2, callbacks = nil, &block) # :yields diff changes:
|
246
|
-
diff_traversal(:diff, seq1, seq2, callbacks || Diff::LCS::DiffCallbacks,
|
247
|
-
&block)
|
248
|
-
end
|
249
|
-
|
250
|
-
# #sdiff computes all necessary components to show two sequences and their
|
251
|
-
# minimized differences side by side, just like the Unix utility
|
252
|
-
# <em>sdiff</em> does:
|
253
|
-
#
|
254
|
-
# old < -
|
255
|
-
# same same
|
256
|
-
# before | after
|
257
|
-
# - > new
|
258
|
-
#
|
259
|
-
# See Diff::LCS::SDiffCallbacks for the default behaviour. An alternate
|
260
|
-
# behaviour may be implemented with Diff::LCS::ContextDiffCallbacks. If a
|
261
|
-
# Class argument is provided for +callbacks+, #diff will attempt to
|
262
|
-
# initialise it. If the +callbacks+ object (possibly initialised) responds
|
263
|
-
# to #finish, it will be called.
|
264
|
-
def sdiff(seq1, seq2, callbacks = nil, &block) #:yields diff changes:
|
265
|
-
diff_traversal(:sdiff, seq1, seq2, callbacks || Diff::LCS::SDiffCallbacks,
|
266
|
-
&block)
|
267
|
-
end
|
268
|
-
|
269
|
-
# #traverse_sequences is the most general facility provided by this
|
270
|
-
# module; #diff and #lcs are implemented as calls to it.
|
271
|
-
#
|
272
|
-
# The arguments to #traverse_sequences are the two sequences to traverse,
|
273
|
-
# and a callback object, like this:
|
274
|
-
#
|
275
|
-
# traverse_sequences(seq1, seq2, Diff::LCS::ContextDiffCallbacks.new)
|
276
|
-
#
|
277
|
-
# == Callback Methods
|
278
|
-
#
|
279
|
-
# Optional callback methods are <em>emphasized</em>.
|
280
|
-
#
|
281
|
-
# callbacks#match:: Called when +a+ and +b+ are pointing to
|
282
|
-
# common elements in +A+ and +B+.
|
283
|
-
# callbacks#discard_a:: Called when +a+ is pointing to an
|
284
|
-
# element not in +B+.
|
285
|
-
# callbacks#discard_b:: Called when +b+ is pointing to an
|
286
|
-
# element not in +A+.
|
287
|
-
# <em>callbacks#finished_a</em>:: Called when +a+ has reached the end of
|
288
|
-
# sequence +A+.
|
289
|
-
# <em>callbacks#finished_b</em>:: Called when +b+ has reached the end of
|
290
|
-
# sequence +B+.
|
291
|
-
#
|
292
|
-
# == Algorithm
|
293
|
-
#
|
294
|
-
# a---+
|
295
|
-
# v
|
296
|
-
# A = a b c e h j l m n p
|
297
|
-
# B = b c d e f j k l m r s t
|
298
|
-
# ^
|
299
|
-
# b---+
|
300
|
-
#
|
301
|
-
# If there are two arrows (+a+ and +b+) pointing to elements of sequences
|
302
|
-
# +A+ and +B+, the arrows will initially point to the first elements of
|
303
|
-
# their respective sequences. #traverse_sequences will advance the arrows
|
304
|
-
# through the sequences one element at a time, calling a method on the
|
305
|
-
# user-specified callback object before each advance. It will advance the
|
306
|
-
# arrows in such a way that if there are elements <tt>A[i]</tt> and
|
307
|
-
# <tt>B[j]</tt> which are both equal and part of the longest common
|
308
|
-
# subsequence, there will be some moment during the execution of
|
309
|
-
# #traverse_sequences when arrow +a+ is pointing to <tt>A[i]</tt> and
|
310
|
-
# arrow +b+ is pointing to <tt>B[j]</tt>. When this happens,
|
311
|
-
# #traverse_sequences will call <tt>callbacks#match</tt> and then it will
|
312
|
-
# advance both arrows.
|
313
|
-
#
|
314
|
-
# Otherwise, one of the arrows is pointing to an element of its sequence
|
315
|
-
# that is not part of the longest common subsequence. #traverse_sequences
|
316
|
-
# will advance that arrow and will call <tt>callbacks#discard_a</tt> or
|
317
|
-
# <tt>callbacks#discard_b</tt>, depending on which arrow it advanced. If
|
318
|
-
# both arrows point to elements that are not part of the longest common
|
319
|
-
# subsequence, then #traverse_sequences will advance one of them and call
|
320
|
-
# the appropriate callback, but it is not specified which it will call.
|
321
|
-
#
|
322
|
-
# The methods for <tt>callbacks#match</tt>, <tt>callbacks#discard_a</tt>,
|
323
|
-
# and <tt>callbacks#discard_b</tt> are invoked with an event comprising
|
324
|
-
# the action ("=", "+", or "-", respectively), the indicies +i+ and +j+,
|
325
|
-
# and the elements <tt>A[i]</tt> and <tt>B[j]</tt>. Return values are
|
326
|
-
# discarded by #traverse_sequences.
|
327
|
-
#
|
328
|
-
# === End of Sequences
|
329
|
-
#
|
330
|
-
# If arrow +a+ reaches the end of its sequence before arrow +b+ does,
|
331
|
-
# #traverse_sequence will try to call <tt>callbacks#finished_a</tt> with
|
332
|
-
# the last index and element of +A+ (<tt>A[-1]</tt>) and the current index
|
333
|
-
# and element of +B+ (<tt>B[j]</tt>). If <tt>callbacks#finished_a</tt>
|
334
|
-
# does not exist, then <tt>callbacks#discard_b</tt> will be called on each
|
335
|
-
# element of +B+ until the end of the sequence is reached (the call will
|
336
|
-
# be done with <tt>A[-1]</tt> and <tt>B[j]</tt> for each element).
|
337
|
-
#
|
338
|
-
# If +b+ reaches the end of +B+ before +a+ reaches the end of +A+,
|
339
|
-
# <tt>callbacks#finished_b</tt> will be called with the current index and
|
340
|
-
# element of +A+ (<tt>A[i]</tt>) and the last index and element of +B+
|
341
|
-
# (<tt>A[-1]</tt>). Again, if <tt>callbacks#finished_b</tt> does not exist
|
342
|
-
# on the callback object, then <tt>callbacks#discard_a</tt> will be called
|
343
|
-
# on each element of +A+ until the end of the sequence is reached
|
344
|
-
# (<tt>A[i]</tt> and <tt>B[-1]</tt>).
|
345
|
-
#
|
346
|
-
# There is a chance that one additional <tt>callbacks#discard_a</tt> or
|
347
|
-
# <tt>callbacks#discard_b</tt> will be called after the end of the
|
348
|
-
# sequence is reached, if +a+ has not yet reached the end of +A+ or +b+
|
349
|
-
# has not yet reached the end of +B+.
|
350
|
-
def traverse_sequences(seq1, seq2, callbacks = Diff::LCS::SequenceCallbacks, &block) #:yields change events:
|
351
|
-
callbacks ||= Diff::LCS::SequenceCallbacks
|
352
|
-
matches = Diff::LCS::Internals.lcs(seq1, seq2)
|
353
|
-
|
354
|
-
run_finished_a = run_finished_b = false
|
355
|
-
string = seq1.kind_of?(String)
|
356
|
-
|
357
|
-
a_size = seq1.size
|
358
|
-
b_size = seq2.size
|
359
|
-
ai = bj = 0
|
360
|
-
|
361
|
-
(0..matches.size).each do |i|
|
362
|
-
b_line = matches[i]
|
363
|
-
|
364
|
-
ax = string ? seq1[i, 1] : seq1[i]
|
365
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
366
|
-
|
367
|
-
if b_line.nil?
|
368
|
-
unless ax.nil? or (string and ax.empty?)
|
369
|
-
event = Diff::LCS::ContextChange.new('-', i, ax, bj, bx)
|
370
|
-
event = yield event if block_given?
|
371
|
-
callbacks.discard_a(event)
|
372
|
-
end
|
373
|
-
else
|
374
|
-
loop do
|
375
|
-
break unless bj < b_line
|
376
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
377
|
-
event = Diff::LCS::ContextChange.new('+', i, ax, bj, bx)
|
378
|
-
event = yield event if block_given?
|
379
|
-
callbacks.discard_b(event)
|
380
|
-
bj += 1
|
381
|
-
end
|
382
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
383
|
-
event = Diff::LCS::ContextChange.new('=', i, ax, bj, bx)
|
384
|
-
event = yield event if block_given?
|
385
|
-
callbacks.match(event)
|
386
|
-
bj += 1
|
387
|
-
end
|
388
|
-
ai = i
|
389
|
-
end
|
390
|
-
ai += 1
|
391
|
-
|
392
|
-
# The last entry (if any) processed was a match. +ai+ and +bj+ point
|
393
|
-
# just past the last matching lines in their sequences.
|
394
|
-
while (ai < a_size) or (bj < b_size)
|
395
|
-
# last A?
|
396
|
-
if ai == a_size and bj < b_size
|
397
|
-
if callbacks.respond_to?(:finished_a) and not run_finished_a
|
398
|
-
ax = string ? seq1[-1, 1] : seq1[-1]
|
399
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
400
|
-
event = Diff::LCS::ContextChange.new('>', (a_size - 1), ax, bj, bx)
|
401
|
-
event = yield event if block_given?
|
402
|
-
callbacks.finished_a(event)
|
403
|
-
run_finished_a = true
|
404
|
-
else
|
405
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
406
|
-
loop do
|
407
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
408
|
-
event = Diff::LCS::ContextChange.new('+', ai, ax, bj, bx)
|
409
|
-
event = yield event if block_given?
|
410
|
-
callbacks.discard_b(event)
|
411
|
-
bj += 1
|
412
|
-
break unless bj < b_size
|
413
|
-
end
|
414
|
-
end
|
415
|
-
end
|
416
|
-
|
417
|
-
# last B?
|
418
|
-
if bj == b_size and ai < a_size
|
419
|
-
if callbacks.respond_to?(:finished_b) and not run_finished_b
|
420
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
421
|
-
bx = string ? seq2[-1, 1] : seq2[-1]
|
422
|
-
event = Diff::LCS::ContextChange.new('<', ai, ax, (b_size - 1), bx)
|
423
|
-
event = yield event if block_given?
|
424
|
-
callbacks.finished_b(event)
|
425
|
-
run_finished_b = true
|
426
|
-
else
|
427
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
428
|
-
loop do
|
429
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
430
|
-
event = Diff::LCS::ContextChange.new('-', ai, ax, bj, bx)
|
431
|
-
event = yield event if block_given?
|
432
|
-
callbacks.discard_a(event)
|
433
|
-
ai += 1
|
434
|
-
break unless bj < b_size
|
435
|
-
end
|
436
|
-
end
|
437
|
-
end
|
438
|
-
|
439
|
-
if ai < a_size
|
440
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
441
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
442
|
-
event = Diff::LCS::ContextChange.new('-', ai, ax, bj, bx)
|
443
|
-
event = yield event if block_given?
|
444
|
-
callbacks.discard_a(event)
|
445
|
-
ai += 1
|
446
|
-
end
|
447
|
-
|
448
|
-
if bj < b_size
|
449
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
450
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
451
|
-
event = Diff::LCS::ContextChange.new('+', ai, ax, bj, bx)
|
452
|
-
event = yield event if block_given?
|
453
|
-
callbacks.discard_b(event)
|
454
|
-
bj += 1
|
455
|
-
end
|
456
|
-
end
|
457
|
-
end
|
458
|
-
|
459
|
-
# #traverse_balanced is an alternative to #traverse_sequences. It uses a
|
460
|
-
# different algorithm to iterate through the entries in the computed
|
461
|
-
# longest common subsequence. Instead of viewing the changes as insertions
|
462
|
-
# or deletions from one of the sequences, #traverse_balanced will report
|
463
|
-
# <em>changes</em> between the sequences.
|
464
|
-
#
|
465
|
-
# The arguments to #traverse_balanced are the two sequences to traverse
|
466
|
-
# and a callback object, like this:
|
467
|
-
#
|
468
|
-
# traverse_balanced(seq1, seq2, Diff::LCS::ContextDiffCallbacks.new)
|
469
|
-
#
|
470
|
-
# #sdiff is implemented with #traverse_balanced.
|
471
|
-
#
|
472
|
-
# == Callback Methods
|
473
|
-
#
|
474
|
-
# Optional callback methods are <em>emphasized</em>.
|
475
|
-
#
|
476
|
-
# callbacks#match:: Called when +a+ and +b+ are pointing to
|
477
|
-
# common elements in +A+ and +B+.
|
478
|
-
# callbacks#discard_a:: Called when +a+ is pointing to an
|
479
|
-
# element not in +B+.
|
480
|
-
# callbacks#discard_b:: Called when +b+ is pointing to an
|
481
|
-
# element not in +A+.
|
482
|
-
# <em>callbacks#change</em>:: Called when +a+ and +b+ are pointing to
|
483
|
-
# the same relative position, but
|
484
|
-
# <tt>A[a]</tt> and <tt>B[b]</tt> are not
|
485
|
-
# the same; a <em>change</em> has
|
486
|
-
# occurred.
|
487
|
-
#
|
488
|
-
# #traverse_balanced might be a bit slower than #traverse_sequences,
|
489
|
-
# noticable only while processing huge amounts of data.
|
490
|
-
#
|
491
|
-
# == Algorithm
|
492
|
-
#
|
493
|
-
# a---+
|
494
|
-
# v
|
495
|
-
# A = a b c e h j l m n p
|
496
|
-
# B = b c d e f j k l m r s t
|
497
|
-
# ^
|
498
|
-
# b---+
|
499
|
-
#
|
500
|
-
# === Matches
|
501
|
-
#
|
502
|
-
# If there are two arrows (+a+ and +b+) pointing to elements of sequences
|
503
|
-
# +A+ and +B+, the arrows will initially point to the first elements of
|
504
|
-
# their respective sequences. #traverse_sequences will advance the arrows
|
505
|
-
# through the sequences one element at a time, calling a method on the
|
506
|
-
# user-specified callback object before each advance. It will advance the
|
507
|
-
# arrows in such a way that if there are elements <tt>A[i]</tt> and
|
508
|
-
# <tt>B[j]</tt> which are both equal and part of the longest common
|
509
|
-
# subsequence, there will be some moment during the execution of
|
510
|
-
# #traverse_sequences when arrow +a+ is pointing to <tt>A[i]</tt> and
|
511
|
-
# arrow +b+ is pointing to <tt>B[j]</tt>. When this happens,
|
512
|
-
# #traverse_sequences will call <tt>callbacks#match</tt> and then it will
|
513
|
-
# advance both arrows.
|
514
|
-
#
|
515
|
-
# === Discards
|
516
|
-
#
|
517
|
-
# Otherwise, one of the arrows is pointing to an element of its sequence
|
518
|
-
# that is not part of the longest common subsequence. #traverse_sequences
|
519
|
-
# will advance that arrow and will call <tt>callbacks#discard_a</tt> or
|
520
|
-
# <tt>callbacks#discard_b</tt>, depending on which arrow it advanced.
|
521
|
-
#
|
522
|
-
# === Changes
|
523
|
-
#
|
524
|
-
# If both +a+ and +b+ point to elements that are not part of the longest
|
525
|
-
# common subsequence, then #traverse_sequences will try to call
|
526
|
-
# <tt>callbacks#change</tt> and advance both arrows. If
|
527
|
-
# <tt>callbacks#change</tt> is not implemented, then
|
528
|
-
# <tt>callbacks#discard_a</tt> and <tt>callbacks#discard_b</tt> will be
|
529
|
-
# called in turn.
|
530
|
-
#
|
531
|
-
# The methods for <tt>callbacks#match</tt>, <tt>callbacks#discard_a</tt>,
|
532
|
-
# <tt>callbacks#discard_b</tt>, and <tt>callbacks#change</tt> are invoked
|
533
|
-
# with an event comprising the action ("=", "+", "-", or "!",
|
534
|
-
# respectively), the indicies +i+ and +j+, and the elements
|
535
|
-
# <tt>A[i]</tt> and <tt>B[j]</tt>. Return values are discarded by
|
536
|
-
# #traverse_balanced.
|
537
|
-
#
|
538
|
-
# === Context
|
539
|
-
# Note that +i+ and +j+ may not be the same index position, even if +a+
|
540
|
-
# and +b+ are considered to be pointing to matching or changed elements.
|
541
|
-
def traverse_balanced(seq1, seq2, callbacks = Diff::LCS::BalancedCallbacks)
|
542
|
-
matches = Diff::LCS::Internals.lcs(seq1, seq2)
|
543
|
-
a_size = seq1.size
|
544
|
-
b_size = seq2.size
|
545
|
-
ai = bj = mb = 0
|
546
|
-
ma = -1
|
547
|
-
string = seq1.kind_of?(String)
|
548
|
-
|
549
|
-
# Process all the lines in the match vector.
|
550
|
-
loop do
|
551
|
-
# Find next match indices +ma+ and +mb+
|
552
|
-
loop do
|
553
|
-
ma += 1
|
554
|
-
break unless ma < matches.size and matches[ma].nil?
|
555
|
-
end
|
556
|
-
|
557
|
-
break if ma >= matches.size # end of matches?
|
558
|
-
mb = matches[ma]
|
559
|
-
|
560
|
-
# Change(seq2)
|
561
|
-
while (ai < ma) or (bj < mb)
|
562
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
563
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
564
|
-
|
565
|
-
case [(ai < ma), (bj < mb)]
|
566
|
-
when [true, true]
|
567
|
-
if callbacks.respond_to?(:change)
|
568
|
-
event = Diff::LCS::ContextChange.new('!', ai, ax, bj, bx)
|
569
|
-
event = yield event if block_given?
|
570
|
-
callbacks.change(event)
|
571
|
-
ai += 1
|
572
|
-
bj += 1
|
573
|
-
else
|
574
|
-
event = Diff::LCS::ContextChange.new('-', ai, ax, bj, bx)
|
575
|
-
event = yield event if block_given?
|
576
|
-
callbacks.discard_a(event)
|
577
|
-
ai += 1
|
578
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
579
|
-
event = Diff::LCS::ContextChange.new('+', ai, ax, bj, bx)
|
580
|
-
event = yield event if block_given?
|
581
|
-
callbacks.discard_b(event)
|
582
|
-
bj += 1
|
583
|
-
end
|
584
|
-
when [true, false]
|
585
|
-
event = Diff::LCS::ContextChange.new('-', ai, ax, bj, bx)
|
586
|
-
event = yield event if block_given?
|
587
|
-
callbacks.discard_a(event)
|
588
|
-
ai += 1
|
589
|
-
when [false, true]
|
590
|
-
event = Diff::LCS::ContextChange.new('+', ai, ax, bj, bx)
|
591
|
-
event = yield event if block_given?
|
592
|
-
callbacks.discard_b(event)
|
593
|
-
bj += 1
|
594
|
-
end
|
595
|
-
end
|
596
|
-
|
597
|
-
# Match
|
598
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
599
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
600
|
-
event = Diff::LCS::ContextChange.new('=', ai, ax, bj, bx)
|
601
|
-
event = yield event if block_given?
|
602
|
-
callbacks.match(event)
|
603
|
-
ai += 1
|
604
|
-
bj += 1
|
605
|
-
end
|
606
|
-
|
607
|
-
while (ai < a_size) or (bj < b_size)
|
608
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
609
|
-
bx = string ? seq2[bj, 1] : seq2[bj]
|
610
|
-
|
611
|
-
case [(ai < a_size), (bj < b_size)]
|
612
|
-
when [true, true]
|
613
|
-
if callbacks.respond_to?(:change)
|
614
|
-
event = Diff::LCS::ContextChange.new('!', ai, ax, bj, bx)
|
615
|
-
event = yield event if block_given?
|
616
|
-
callbacks.change(event)
|
617
|
-
ai += 1
|
618
|
-
bj += 1
|
619
|
-
else
|
620
|
-
event = Diff::LCS::ContextChange.new('-', ai, ax, bj, bx)
|
621
|
-
event = yield event if block_given?
|
622
|
-
callbacks.discard_a(event)
|
623
|
-
ai += 1
|
624
|
-
ax = string ? seq1[ai, 1] : seq1[ai]
|
625
|
-
event = Diff::LCS::ContextChange.new('+', ai, ax, bj, bx)
|
626
|
-
event = yield event if block_given?
|
627
|
-
callbacks.discard_b(event)
|
628
|
-
bj += 1
|
629
|
-
end
|
630
|
-
when [true, false]
|
631
|
-
event = Diff::LCS::ContextChange.new('-', ai, ax, bj, bx)
|
632
|
-
event = yield event if block_given?
|
633
|
-
callbacks.discard_a(event)
|
634
|
-
ai += 1
|
635
|
-
when [false, true]
|
636
|
-
event = Diff::LCS::ContextChange.new('+', ai, ax, bj, bx)
|
637
|
-
event = yield event if block_given?
|
638
|
-
callbacks.discard_b(event)
|
639
|
-
bj += 1
|
640
|
-
end
|
641
|
-
end
|
642
|
-
end
|
643
|
-
|
644
|
-
PATCH_MAP = { #:nodoc:
|
645
|
-
:patch => { '+' => '+', '-' => '-', '!' => '!', '=' => '=' },
|
646
|
-
:unpatch => { '+' => '-', '-' => '+', '!' => '!', '=' => '=' }
|
647
|
-
}
|
648
|
-
|
649
|
-
# Applies a +patchset+ to the sequence +src+ according to the +direction+
|
650
|
-
# (<tt>:patch</tt> or <tt>:unpatch</tt>), producing a new sequence.
|
651
|
-
#
|
652
|
-
# If the +direction+ is not specified, Diff::LCS::patch will attempt to
|
653
|
-
# discover the direction of the +patchset+.
|
654
|
-
#
|
655
|
-
# A +patchset+ can be considered to apply forward (<tt>:patch</tt>) if the
|
656
|
-
# following expression is true:
|
657
|
-
#
|
658
|
-
# patch(s1, diff(s1, s2)) -> s2
|
659
|
-
#
|
660
|
-
# A +patchset+ can be considered to apply backward (<tt>:unpatch</tt>) if
|
661
|
-
# the following expression is true:
|
662
|
-
#
|
663
|
-
# patch(s2, diff(s1, s2)) -> s1
|
664
|
-
#
|
665
|
-
# If the +patchset+ contains no changes, the +src+ value will be returned
|
666
|
-
# as either <tt>src.dup</tt> or +src+. A +patchset+ can be deemed as
|
667
|
-
# having no changes if the following predicate returns true:
|
668
|
-
#
|
669
|
-
# patchset.empty? or
|
670
|
-
# patchset.flatten.all? { |change| change.unchanged? }
|
671
|
-
#
|
672
|
-
# === Patchsets
|
673
|
-
#
|
674
|
-
# A +patchset+ is always an enumerable sequence of changes, hunks of
|
675
|
-
# changes, or a mix of the two. A hunk of changes is an enumerable
|
676
|
-
# sequence of changes:
|
677
|
-
#
|
678
|
-
# [ # patchset
|
679
|
-
# # change
|
680
|
-
# [ # hunk
|
681
|
-
# # change
|
682
|
-
# ]
|
683
|
-
# ]
|
684
|
-
#
|
685
|
-
# The +patch+ method accepts <tt>patchset</tt>s that are enumerable
|
686
|
-
# sequences containing either Diff::LCS::Change objects (or a subclass) or
|
687
|
-
# the array representations of those objects. Prior to application, array
|
688
|
-
# representations of Diff::LCS::Change objects will be reified.
|
689
|
-
def patch(src, patchset, direction = nil)
|
690
|
-
# Normalize the patchset.
|
691
|
-
has_changes, patchset = Diff::LCS::Internals.analyze_patchset(patchset)
|
692
|
-
|
693
|
-
if not has_changes
|
694
|
-
return src.dup if src.respond_to? :dup
|
695
|
-
return src
|
696
|
-
end
|
697
|
-
|
698
|
-
string = src.kind_of?(String)
|
699
|
-
# Start with a new empty type of the source's class
|
700
|
-
res = src.class.new
|
701
|
-
|
702
|
-
direction ||= Diff::LCS::Internals.intuit_diff_direction(src, patchset)
|
703
|
-
|
704
|
-
ai = bj = 0
|
705
|
-
|
706
|
-
patch_map = PATCH_MAP[direction]
|
707
|
-
|
708
|
-
patchset.flatten.each do |change|
|
709
|
-
# Both Change and ContextChange support #action
|
710
|
-
action = patch_map[change.action]
|
711
|
-
|
712
|
-
case change
|
713
|
-
when Diff::LCS::ContextChange
|
714
|
-
case direction
|
715
|
-
when :patch
|
716
|
-
el = change.new_element
|
717
|
-
op = change.old_position
|
718
|
-
np = change.new_position
|
719
|
-
when :unpatch
|
720
|
-
el = change.old_element
|
721
|
-
op = change.new_position
|
722
|
-
np = change.old_position
|
723
|
-
end
|
724
|
-
|
725
|
-
case action
|
726
|
-
when '-' # Remove details from the old string
|
727
|
-
while ai < op
|
728
|
-
res << (string ? src[ai, 1] : src[ai])
|
729
|
-
ai += 1
|
730
|
-
bj += 1
|
731
|
-
end
|
732
|
-
ai += 1
|
733
|
-
when '+'
|
734
|
-
while bj < np
|
735
|
-
res << (string ? src[ai, 1] : src[ai])
|
736
|
-
ai += 1
|
737
|
-
bj += 1
|
738
|
-
end
|
739
|
-
|
740
|
-
res << el
|
741
|
-
bj += 1
|
742
|
-
when '='
|
743
|
-
# This only appears in sdiff output with the SDiff callback.
|
744
|
-
# Therefore, we only need to worry about dealing with a single
|
745
|
-
# element.
|
746
|
-
res << el
|
747
|
-
|
748
|
-
ai += 1
|
749
|
-
bj += 1
|
750
|
-
when '!'
|
751
|
-
while ai < op
|
752
|
-
res << (string ? src[ai, 1] : src[ai])
|
753
|
-
ai += 1
|
754
|
-
bj += 1
|
755
|
-
end
|
756
|
-
|
757
|
-
bj += 1
|
758
|
-
ai += 1
|
759
|
-
|
760
|
-
res << el
|
761
|
-
end
|
762
|
-
when Diff::LCS::Change
|
763
|
-
case action
|
764
|
-
when '-'
|
765
|
-
while ai < change.position
|
766
|
-
res << (string ? src[ai, 1] : src[ai])
|
767
|
-
ai += 1
|
768
|
-
bj += 1
|
769
|
-
end
|
770
|
-
ai += 1
|
771
|
-
when '+'
|
772
|
-
while bj < change.position
|
773
|
-
res << (string ? src[ai, 1] : src[ai])
|
774
|
-
ai += 1
|
775
|
-
bj += 1
|
776
|
-
end
|
777
|
-
|
778
|
-
bj += 1
|
779
|
-
|
780
|
-
res << change.element
|
781
|
-
end
|
782
|
-
end
|
783
|
-
end
|
784
|
-
|
785
|
-
while ai < src.size
|
786
|
-
res << (string ? src[ai, 1] : src[ai])
|
787
|
-
ai += 1
|
788
|
-
bj += 1
|
789
|
-
end
|
790
|
-
|
791
|
-
res
|
792
|
-
end
|
793
|
-
|
794
|
-
# Given a set of patchset, convert the current version to the prior
|
795
|
-
# version. Does no auto-discovery.
|
796
|
-
def unpatch!(src, patchset)
|
797
|
-
patch(src, patchset, :unpatch)
|
798
|
-
end
|
799
|
-
|
800
|
-
# Given a set of patchset, convert the current version to the next
|
801
|
-
# version. Does no auto-discovery.
|
802
|
-
def patch!(src, patchset)
|
803
|
-
patch(src, patchset, :patch)
|
804
|
-
end
|
805
|
-
end
|