cvss-suite 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.rubocop.yml +2 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.md +20 -0
- data/README.md +88 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/cvss_suite.gemspec +39 -0
- data/lib/cvss_suite.rb +37 -0
- data/lib/cvss_suite/cvss.rb +88 -0
- data/lib/cvss_suite/cvss2/cvss2.rb +42 -0
- data/lib/cvss_suite/cvss2/cvss2_base.rb +81 -0
- data/lib/cvss_suite/cvss2/cvss2_environmental.rb +64 -0
- data/lib/cvss_suite/cvss2/cvss2_temporal.rb +47 -0
- data/lib/cvss_suite/cvss3/cvss3.rb +42 -0
- data/lib/cvss_suite/cvss3/cvss3_base.rb +85 -0
- data/lib/cvss_suite/cvss3/cvss3_environmental.rb +134 -0
- data/lib/cvss_suite/cvss3/cvss3_temporal.rb +47 -0
- data/lib/cvss_suite/cvss_metric.rb +44 -0
- data/lib/cvss_suite/cvss_property.rb +76 -0
- data/lib/cvss_suite/helpers/cvss3_helper.rb +20 -0
- data/lib/cvss_suite/helpers/extensions.rb +12 -0
- data/lib/cvss_suite/version.rb +3 -0
- data/vendor/cache/badgerbadgerbadger-0.14.0.gem +0 -0
- data/vendor/cache/diff-lcs-1.2.5.gem +0 -0
- data/vendor/cache/docile-1.1.5.gem +0 -0
- data/vendor/cache/git-1.3.0.gem +0 -0
- data/vendor/cache/json-1.8.3.gem +0 -0
- data/vendor/cache/rake-10.4.2.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 +23 -0
- data/vendor/cache/ruby/2.2.0/bin/htmldiff +25 -0
- data/vendor/cache/ruby/2.2.0/bin/ldiff +25 -0
- data/vendor/cache/ruby/2.2.0/bin/rspec +23 -0
- data/vendor/cache/ruby/2.2.0/bin/thor +23 -0
- 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 +9 -0
- 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 +19 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/.rspec +2 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/.travis.yml +15 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/DESC.md +27 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/Gemfile +7 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/Guardfile +30 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/LICENSE.md +22 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/README.md +53 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/Rakefile +10 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/badger.gemspec +34 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/bin/badger +4 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/config/config.yaml +8 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/config/licenses.yaml +25 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/config/services.yaml +40 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/alternative-styles.feature +24 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/badger.feature +50 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/heroku-only-remote.feature +12 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/licenses.feature +61 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/multiple-remotes.feature +18 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/png.feature +17 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/pulls-and-issues.feature +19 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/remote-with-different-name.feature +17 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/rubygems.feature +46 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/services.feature +53 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/size.feature +18 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/ssh-remote.feature +39 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/step_definitions/badger_steps.rb +11 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/env.rb +11 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/fixtures/licenses/apache.txt +202 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/fixtures/licenses/doge.md +1 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/fixtures/licenses/gpl-2.0.txt +339 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/fixtures/licenses/gpl-3.0.txt +674 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/fixtures/licenses/mit.md +22 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/hooks/hooks.rb +15 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/hooks/licenses.rb +19 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/hooks/rubygems.rb +66 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/features/support/hooks/services.rb +17 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger.rb +15 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/badge.rb +20 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/badger.rb +61 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/bonus.rb +17 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/cli.rb +56 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/config.rb +49 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/helpers.rb +95 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/license.rb +22 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/rubygem.rb +16 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/service.rb +46 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/lib/badger/version.rb +3 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/badge_types_spec.rb +27 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/badger_spec.rb +62 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/licenses_spec.rb +42 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/services_spec.rb +33 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/size_spec.rb +20 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/spec_helper.rb +22 -0
- data/vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/user_and_repo_spec.rb +33 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/.autotest +3 -0
- 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 +2 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/.rspec +2 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/.travis.yml +22 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/Contributing.rdoc +64 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/Gemfile +20 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/History.rdoc +152 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/License.rdoc +39 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/Manifest.txt +38 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/README.rdoc +85 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/Rakefile +41 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/autotest/discover.rb +1 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/bin/htmldiff +32 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/bin/ldiff +6 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/docs/COPYING.txt +339 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/docs/artistic.txt +127 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff-lcs.rb +3 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs.rb +805 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/array.rb +7 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/block.rb +37 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/callbacks.rb +322 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/change.rb +177 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/htmldiff.rb +149 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/hunk.rb +276 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/internals.rb +301 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/ldiff.rb +195 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/lib/diff/lcs/string.rb +5 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/change_spec.rb +65 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/diff_spec.rb +47 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/hunk_spec.rb +72 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/issues_spec.rb +24 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/lcs_spec.rb +54 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/patch_spec.rb +414 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/sdiff_spec.rb +214 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/spec_helper.rb +290 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/traverse_balanced_spec.rb +310 -0
- data/vendor/cache/ruby/2.2.0/gems/diff-lcs-1.2.5/spec/traverse_sequences_spec.rb +139 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/.gitignore +9 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/.rspec +2 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/.ruby-gemset +1 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/.ruby-version +1 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/.travis.yml +21 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/.yardopts +7 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/Gemfile +4 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/HISTORY.md +61 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/LICENSE +21 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/README.md +241 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/Rakefile +28 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/docile.gemspec +43 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/lib/docile.rb +84 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb +20 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/lib/docile/execution.rb +35 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/lib/docile/fallback_context_proxy.rb +63 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/lib/docile/version.rb +4 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/on_what.rb +14 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/spec/docile_spec.rb +339 -0
- data/vendor/cache/ruby/2.2.0/gems/docile-1.1.5/spec/spec_helper.rb +30 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/CHANGELOG +84 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/LICENSE +21 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/README.md +297 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/VERSION +2 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git.rb +166 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/author.rb +14 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/base.rb +540 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/base/factory.rb +75 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/branch.rb +122 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/branches.rb +71 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/config.rb +22 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/diff.rb +158 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/index.rb +5 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/lib.rb +1011 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/log.rb +128 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/object.rb +312 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/path.rb +31 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/remote.rb +36 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/repository.rb +6 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/stash.rb +27 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/stashes.rb +44 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/status.rb +117 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/version.rb +7 -0
- data/vendor/cache/ruby/2.2.0/gems/git-1.3.0/lib/git/working_directory.rb +4 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/.gitignore +16 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/.travis.yml +26 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/CHANGES +295 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/COPYING +58 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/COPYING-json-jruby +57 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/GPL +340 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/Gemfile +10 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/README-json-jruby.markdown +33 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/README.rdoc +358 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/Rakefile +412 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/TODO +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/VERSION +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/data/example.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/data/index.html +38 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/data/prototype.js +4184 -0
- 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 +190 -0
- 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 +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/generator/extconf.rb +4 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/generator/generator.c +1458 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/generator/generator.h +166 -0
- 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 +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/parser/extconf.rb +3 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/parser/parser.c +2216 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/parser/parser.h +92 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/ext/json/ext/parser/parser.rl +939 -0
- 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 +3 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/install.rb +23 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/ByteListTranscoder.java +167 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/Generator.java +444 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/GeneratorMethods.java +232 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/GeneratorService.java +43 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/GeneratorState.java +543 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/OptionsReader.java +114 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/Parser.java +2645 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/Parser.rl +969 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/ParserService.java +35 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/RuntimeInfo.java +121 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/StringDecoder.java +167 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/StringEncoder.java +106 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/java/src/json/ext/Utils.java +89 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/json-java.gemspec +23 -0
- 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 +40 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json.rb +62 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/bigdecimal.rb +28 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/complex.rb +28 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/core.rb +11 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/date.rb +34 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/date_time.rb +50 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/exception.rb +31 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/ostruct.rb +31 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/range.rb +29 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/rational.rb +27 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/regexp.rb +30 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/struct.rb +30 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/symbol.rb +25 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/add/time.rb +38 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/common.rb +484 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/ext.rb +21 -0
- 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 +70 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/pure.rb +21 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/pure/generator.rb +522 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/pure/parser.rb +359 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/lib/json/version.rb +8 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail1.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail10.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail11.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail12.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail13.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail14.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail18.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail19.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail2.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail20.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail21.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail22.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail23.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail24.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail25.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail27.json +2 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail28.json +2 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail3.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail4.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail5.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail6.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail7.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail8.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/fail9.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/pass1.json +56 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/pass15.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/pass16.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/pass17.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/pass2.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/pass26.json +1 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/fixtures/pass3.json +6 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/setup_variant.rb +11 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json.rb +553 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json_addition.rb +196 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json_encoding.rb +65 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json_fixtures.rb +35 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json_generate.rb +337 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json_generic_object.rb +75 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json_string_matching.rb +39 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tests/test_json_unicode.rb +72 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tools/fuzz.rb +139 -0
- data/vendor/cache/ruby/2.2.0/gems/json-1.8.3/tools/server.rb +62 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-3.4.0/LICENSE.md +27 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-3.4.0/README.md +39 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-3.4.0/lib/rspec.rb +3 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-3.4.0/lib/rspec/version.rb +5 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/.document +5 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/.yardopts +8 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/Changelog.md +1925 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/LICENSE.md +26 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/README.md +384 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/exe/rspec +4 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/autorun.rb +3 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core.rb +181 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/backtrace_formatter.rb +64 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/bisect/coordinator.rb +66 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/bisect/example_minimizer.rb +169 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/bisect/runner.rb +139 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/bisect/server.rb +61 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/configuration.rb +1869 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/configuration_options.rb +191 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/drb.rb +111 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/dsl.rb +96 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/example.rb +620 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/example_group.rb +816 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/example_status_persister.rb +235 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/filter_manager.rb +231 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/flat_map.rb +20 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters.rb +255 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/base_formatter.rb +70 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/base_text_formatter.rb +77 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/bisect_formatter.rb +68 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/bisect_progress_formatter.rb +144 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/console_codes.rb +65 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/deprecation_formatter.rb +223 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/documentation_formatter.rb +70 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/exception_presenter.rb +480 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/helpers.rb +109 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/html_formatter.rb +151 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/html_printer.rb +414 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/html_snippet_extractor.rb +116 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/json_formatter.rb +96 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/profile_formatter.rb +68 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/progress_formatter.rb +28 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/protocol.rb +181 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/formatters/snippet_extractor.rb +143 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/hooks.rb +638 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/memoized_helpers.rb +532 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/metadata.rb +491 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/metadata_filter.rb +240 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/mocking_adapters/null.rb +14 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/mocking_adapters/rr.rb +31 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/notifications.rb +499 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/option_parser.rb +319 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/ordering.rb +158 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/pending.rb +165 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/profiler.rb +32 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/project_initializer.rb +48 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/project_initializer/.rspec +2 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/project_initializer/spec/spec_helper.rb +96 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/rake_task.rb +167 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/reporter.rb +236 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/ruby_project.rb +53 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/runner.rb +179 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/sandbox.rb +37 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/set.rb +49 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/shared_context.rb +55 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/shared_example_group.rb +212 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/shell_escape.rb +49 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/source.rb +76 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/source/location.rb +13 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/source/node.rb +93 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/source/syntax_highlighter.rb +71 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/source/token.rb +43 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/version.rb +9 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/warnings.rb +40 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/world.rb +197 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/.document +5 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/.yardopts +6 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/Changelog.md +979 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/LICENSE.md +25 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/README.md +303 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations.rb +81 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/configuration.rb +164 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/expectation_target.rb +113 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/fail_with.rb +31 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/failure_aggregator.rb +194 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/handler.rb +170 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/minitest_integration.rb +31 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/syntax.rb +132 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/expectations/version.rb +8 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers.rb +1037 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/aliased_matcher.rb +116 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in.rb +52 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/all.rb +85 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/base_matcher.rb +181 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/be.rb +285 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/be_between.rb +77 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/be_instance_of.rb +22 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/be_kind_of.rb +16 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/be_within.rb +72 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/change.rb +354 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/compound.rb +272 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/contain_exactly.rb +286 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/cover.rb +24 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/eq.rb +40 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/eql.rb +34 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/equal.rb +81 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/exist.rb +86 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/has.rb +103 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/have_attributes.rb +114 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/include.rb +130 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/match.rb +106 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/operators.rb +128 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/output.rb +200 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/raise_error.rb +228 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/respond_to.rb +90 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/satisfy.rb +37 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/start_or_end_with.rb +94 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/throw_symbol.rb +132 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/built_in/yield.rb +419 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/composable.rb +185 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/dsl.rb +453 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/english_phrasing.rb +42 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +73 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/fail_matchers.rb +42 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/generated_descriptions.rb +42 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/matcher_delegator.rb +35 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-expectations-3.4.0/lib/rspec/matchers/matcher_protocol.rb +99 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/.gitignore +19 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/.rspec +3 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/.travis.yml +24 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/Changelog.md +49 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/Gemfile +26 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/LICENSE.txt +27 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/README.md +72 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/Rakefile +16 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/cucumber.yml +2 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/features/its.feature +125 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb +21 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/features/support/env.rb +23 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/lib/rspec/its.rb +149 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/lib/rspec/its/version.rb +5 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/rspec-its.gemspec +28 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/script/test_all +20 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/spec/rspec/its_spec.rb +237 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-its-1.2.0/spec/spec_helper.rb +15 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/.document +5 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/.yardopts +6 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/Changelog.md +984 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/LICENSE.md +25 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/README.md +445 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks.rb +126 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance.rb +11 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/chain.rb +110 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/error_generator.rb +31 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/expect_chain_chain.rb +35 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/expectation_chain.rb +48 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/proxy.rb +116 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/recorder.rb +264 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/stub_chain.rb +46 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/any_instance/stub_chain_chain.rb +27 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/argument_list_matcher.rb +100 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/argument_matchers.rb +320 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/configuration.rb +205 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/error_generator.rb +367 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/example_methods.rb +422 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/instance_method_stasher.rb +134 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/marshal_extension.rb +41 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/matchers/have_received.rb +128 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/matchers/receive.rb +130 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/matchers/receive_message_chain.rb +80 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/matchers/receive_messages.rb +75 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/message_chain.rb +87 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/message_expectation.rb +717 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/method_double.rb +287 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/method_reference.rb +192 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/mutate_const.rb +335 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/object_reference.rb +149 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/order_group.rb +81 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/proxy.rb +484 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/space.rb +238 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/syntax.rb +325 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/targets.rb +97 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/test_double.rb +170 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/verifying_double.rb +129 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/verifying_message_expectation.rb +54 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/verifying_proxy.rb +213 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-mocks-3.4.0/lib/rspec/mocks/version.rb +9 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/Changelog.md +141 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/LICENSE.md +23 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/README.md +40 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support.rb +139 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/caller_filter.rb +83 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/comparable_version.rb +46 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/differ.rb +215 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/directory_maker.rb +63 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/encoded_string.rb +155 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/fuzzy_matcher.rb +48 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/hunk_generator.rb +47 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/matcher_definition.rb +42 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/method_signature_verifier.rb +290 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/mutex.rb +73 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/object_formatter.rb +108 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/recursive_const_methods.rb +76 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/reentrant_mutex.rb +53 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/ruby_features.rb +147 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec.rb +81 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/deprecation_helpers.rb +64 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/formatting_support.rb +9 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/in_sub_process.rb +52 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/library_wide_checks.rb +152 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/shell_out.rb +71 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/stderr_splitter.rb +63 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/string_matcher.rb +46 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/with_isolated_directory.rb +9 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/spec/with_isolated_stderr.rb +13 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/version.rb +7 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/version_checker.rb +53 -0
- data/vendor/cache/ruby/2.2.0/gems/rspec-support-3.4.0/lib/rspec/support/warnings.rb +39 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/.gitignore +31 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/.rspec +3 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/.rubocop.yml +73 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/.travis.yml +27 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/.yardopts +1 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/CHANGELOG.md +391 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/CONTRIBUTING.md +48 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/Gemfile +34 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/MIT-LICENSE +20 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/README.md +646 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/Rakefile +36 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/cucumber.yml +13 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/doc/alternate-formatters.md +36 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/doc/commercial-services.md +20 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/doc/editor-integration.md +13 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_autoload.feature +46 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_command_name.feature +45 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_coverage_dir.feature +33 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_deactivate_merging.feature +42 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_formatters.feature +77 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_merge_timeout.feature +39 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_nocov_token.feature +79 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_profiles.feature +44 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_project_name.feature +27 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_styles.feature +121 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/config_tracked_files.feature +29 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/cucumber_basic.feature +29 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/maximum_coverage_drop.feature +36 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/merging_test_unit_and_rspec.feature +44 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/minimum_coverage.feature +59 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/refuse_coverage_drop.feature +35 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/rspec_basic.feature +32 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/rspec_fails_on_initialization.feature +14 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/rspec_groups_and_filters_basic.feature +29 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/rspec_groups_and_filters_complex.feature +37 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/rspec_groups_using_filter_class.feature +41 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/rspec_without_simplecov.feature +20 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/skipping_code_blocks_manually.feature +70 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/step_definitions/html_steps.rb +44 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/step_definitions/simplecov_steps.rb +68 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/step_definitions/transformers.rb +13 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/step_definitions/web_steps.rb +64 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/support/env.rb +50 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_basic.feature +34 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_groups_and_filters_basic.feature +29 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_groups_and_filters_complex.feature +35 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_groups_using_filter_class.feature +40 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/test_unit_without_simplecov.feature +20 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/features/unicode_compatiblity.feature +67 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov.rb +183 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/command_guesser.rb +59 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/configuration.rb +296 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/defaults.rb +122 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/exit_codes.rb +8 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/file_list.rb +59 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/filter.rb +54 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/formatter.rb +8 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/formatter/multi_formatter.rb +32 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/formatter/simple_formatter.rb +23 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/jruby_fix.rb +42 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/last_run.rb +22 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/merge_helpers.rb +35 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/no_defaults.rb +2 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/profiles.rb +31 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/railtie.rb +7 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/railties/tasks.rake +11 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/result.rb +82 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/result_merger.rb +88 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/source_file.rb +190 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/lib/simplecov/version.rb +25 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/simplecov.gemspec +27 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/1_8_fallbacks_spec.rb +29 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/command_guesser_spec.rb +46 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/deleted_source_spec.rb +12 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/Gemfile +6 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/Rakefile +8 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/cucumber.yml +13 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/features/step_definitions/my_steps.rb +22 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/features/support/env.rb +12 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/features/test_stuff.feature +6 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/lib/faked_project.rb +11 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/lib/faked_project/framework_specific.rb +18 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/lib/faked_project/meta_magic.rb +24 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/lib/faked_project/some_class.rb +28 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/lib/faked_project/untested_class.rb +11 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/spec/faked_spec.rb +11 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/spec/forking_spec.rb +7 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/spec/meta_magic_spec.rb +15 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/spec/some_class_spec.rb +13 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/spec/spec_helper.rb +11 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/test/faked_test.rb +11 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/test/meta_magic_test.rb +13 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/test/some_class_test.rb +15 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/faked_project/test/test_helper.rb +12 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/file_list_spec.rb +48 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/filters_spec.rb +96 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/app/controllers/sample_controller.rb +10 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/app/models/user.rb +10 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/deleted_source_sample.rb +15 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/frameworks/rspec_bad.rb +9 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/frameworks/rspec_good.rb +9 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/frameworks/testunit_bad.rb +9 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/frameworks/testunit_good.rb +9 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/iso-8859.rb +3 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/resultset1.rb +4 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/resultset2.rb +4 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/sample.rb +16 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/fixtures/utf-8.rb +3 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/helper.rb +24 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/merge_helpers_spec.rb +108 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/multi_formatter_spec.rb +20 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/result_spec.rb +207 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/return_codes_spec.rb +37 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/source_file_line_spec.rb +153 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/spec/source_file_spec.rb +75 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/.document +5 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/.gitignore +27 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/.rubocop.yml +50 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/.travis.yml +27 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/Gemfile +22 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/Guardfile +12 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/LICENSE +20 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/README.md +30 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/Rakefile +41 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/javascripts/application.js +127 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/javascripts/libraries/jquery-1.6.2.min.js +18 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/javascripts/plugins/highlight.pack.js +1 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/javascripts/plugins/jquery.colorbox.js +1090 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/javascripts/plugins/jquery.dataTables.min.js +152 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/javascripts/plugins/jquery.timeago.js +141 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/javascripts/plugins/jquery.url.js +174 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/stylesheets/application.css +3 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/stylesheets/plugins/highlight.css +129 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/stylesheets/plugins/jquery-ui-1.8.4.custom.css +295 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/stylesheets/plugins/jquery.colorbox.css +52 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/stylesheets/reset.css +103 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/assets/stylesheets/screen.css.sass +220 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/lib/simplecov-html.rb +110 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/lib/simplecov-html/version.rb +27 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/application.css +799 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/public/application.js +1707 -0
- 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 +22 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/test/helper.rb +4 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/test/test_simple_cov-html.rb +8 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/views/file_list.erb +45 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/views/layout.erb +41 -0
- data/vendor/cache/ruby/2.2.0/gems/simplecov-html-0.10.0/views/source_file.erb +23 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/.document +5 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/CHANGELOG.md +139 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/LICENSE.md +20 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/README.md +41 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/Thorfile +29 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/bin/thor +6 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor.rb +484 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions.rb +319 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb +103 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions/create_link.rb +59 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions/directory.rb +118 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb +135 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb +316 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb +107 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/base.rb +656 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/command.rb +133 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/core_ext/hash_with_indifferent_access.rb +77 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/core_ext/io_binary_read.rb +10 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/core_ext/ordered_hash.rb +98 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/error.rb +32 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/group.rb +281 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb +178 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/line_editor.rb +17 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/line_editor/basic.rb +35 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/line_editor/readline.rb +88 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/parser.rb +4 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/parser/argument.rb +73 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/parser/arguments.rb +175 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/parser/option.rb +125 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/parser/options.rb +218 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/rake_compat.rb +71 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/runner.rb +322 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/shell.rb +81 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/shell/basic.rb +421 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/shell/color.rb +149 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/shell/html.rb +126 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/util.rb +267 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/lib/thor/version.rb +3 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/actions/create_file_spec.rb +168 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/actions/create_link_spec.rb +96 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/actions/directory_spec.rb +169 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/actions/empty_directory_spec.rb +129 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/actions/file_manipulation_spec.rb +392 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/actions/inject_into_file_spec.rb +135 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/actions_spec.rb +331 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/base_spec.rb +298 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/command_spec.rb +79 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/core_ext/hash_with_indifferent_access_spec.rb +48 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/core_ext/ordered_hash_spec.rb +115 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/exit_condition_spec.rb +19 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/application.rb +2 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/app{1}/README +3 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/bundle/execute.rb +6 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/bundle/main.thor +1 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/command.thor +10 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/doc/%file_name%.rb.tt +1 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/doc/COMMENTER +11 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/doc/README +3 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/doc/block_helper.rb +3 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/doc/config.rb +1 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/doc/config.yaml.tt +1 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/doc/excluding/%file_name%.rb.tt +1 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/enum.thor +10 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/group.thor +128 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/invoke.thor +131 -0
- 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 +3 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/script.thor +220 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/fixtures/subcommand.thor +17 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/group_spec.rb +222 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/helper.rb +80 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/invocation_spec.rb +120 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/line_editor/basic_spec.rb +28 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/line_editor/readline_spec.rb +69 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/line_editor_spec.rb +43 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/parser/argument_spec.rb +53 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/parser/arguments_spec.rb +66 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/parser/option_spec.rb +210 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/parser/options_spec.rb +414 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/quality_spec.rb +75 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/rake_compat_spec.rb +72 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/register_spec.rb +227 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/runner_spec.rb +246 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/application.rb +2 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/app{1}/README +3 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/bundle/execute.rb +6 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/bundle/main.thor +1 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/command.thor +10 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/doc/%file_name%.rb.tt +1 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/doc/COMMENTER +11 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/doc/README +3 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/doc/block_helper.rb +3 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/doc/config.rb +1 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/doc/config.yaml.tt +1 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/doc/excluding/%file_name%.rb.tt +1 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/enum.thor +10 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/group.thor +128 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/invoke.thor +131 -0
- 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 +3 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/script.thor +220 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/sandbox/subcommand.thor +17 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/shell/basic_spec.rb +337 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/shell/color_spec.rb +119 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/shell/html_spec.rb +31 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/shell_spec.rb +47 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/subcommand_spec.rb +48 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/thor_spec.rb +505 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/spec/util_spec.rb +196 -0
- data/vendor/cache/ruby/2.2.0/gems/thor-0.19.1/thor.gemspec +24 -0
- data/vendor/cache/ruby/2.2.0/specifications/badgerbadgerbadger-0.14.0.gemspec +70 -0
- data/vendor/cache/ruby/2.2.0/specifications/diff-lcs-1.2.5.gemspec +68 -0
- data/vendor/cache/ruby/2.2.0/specifications/docile-1.1.5.gemspec +48 -0
- data/vendor/cache/ruby/2.2.0/specifications/git-1.3.0.gemspec +42 -0
- 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 +42 -0
- data/vendor/cache/ruby/2.2.0/specifications/rspec-core-3.4.0.gemspec +68 -0
- data/vendor/cache/ruby/2.2.0/specifications/rspec-expectations-3.4.0.gemspec +50 -0
- data/vendor/cache/ruby/2.2.0/specifications/rspec-its-1.2.0.gemspec +47 -0
- data/vendor/cache/ruby/2.2.0/specifications/rspec-mocks-3.4.0.gemspec +50 -0
- data/vendor/cache/ruby/2.2.0/specifications/rspec-support-3.4.0.gemspec +41 -0
- data/vendor/cache/ruby/2.2.0/specifications/simplecov-0.11.2.gemspec +42 -0
- data/vendor/cache/ruby/2.2.0/specifications/simplecov-html-0.10.0.gemspec +33 -0
- data/vendor/cache/ruby/2.2.0/specifications/thor-0.19.1.gemspec +34 -0
- data/vendor/cache/simplecov-0.11.2.gem +0 -0
- data/vendor/cache/simplecov-html-0.10.0.gem +0 -0
- data/vendor/cache/thor-0.19.1.gem +0 -0
- metadata +983 -0
@@ -0,0 +1,127 @@
|
|
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
|
@@ -0,0 +1,805 @@
|
|
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
|