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,107 @@
|
|
1
|
+
require "thor/actions/empty_directory"
|
2
|
+
|
3
|
+
class Thor
|
4
|
+
module Actions
|
5
|
+
# Injects the given content into a file. Different from gsub_file, this
|
6
|
+
# method is reversible.
|
7
|
+
#
|
8
|
+
# ==== Parameters
|
9
|
+
# destination<String>:: Relative path to the destination root
|
10
|
+
# data<String>:: Data to add to the file. Can be given as a block.
|
11
|
+
# config<Hash>:: give :verbose => false to not log the status and the flag
|
12
|
+
# for injection (:after or :before) or :force => true for
|
13
|
+
# insert two or more times the same content.
|
14
|
+
#
|
15
|
+
# ==== Examples
|
16
|
+
#
|
17
|
+
# insert_into_file "config/environment.rb", "config.gem :thor", :after => "Rails::Initializer.run do |config|\n"
|
18
|
+
#
|
19
|
+
# insert_into_file "config/environment.rb", :after => "Rails::Initializer.run do |config|\n" do
|
20
|
+
# gems = ask "Which gems would you like to add?"
|
21
|
+
# gems.split(" ").map{ |gem| " config.gem :#{gem}" }.join("\n")
|
22
|
+
# end
|
23
|
+
#
|
24
|
+
def insert_into_file(destination, *args, &block)
|
25
|
+
if block_given?
|
26
|
+
data, config = block, args.shift
|
27
|
+
else
|
28
|
+
data, config = args.shift, args.shift
|
29
|
+
end
|
30
|
+
action InjectIntoFile.new(self, destination, data, config)
|
31
|
+
end
|
32
|
+
alias_method :inject_into_file, :insert_into_file
|
33
|
+
|
34
|
+
class InjectIntoFile < EmptyDirectory #:nodoc:
|
35
|
+
attr_reader :replacement, :flag, :behavior
|
36
|
+
|
37
|
+
def initialize(base, destination, data, config)
|
38
|
+
super(base, destination, {:verbose => true}.merge(config))
|
39
|
+
|
40
|
+
@behavior, @flag = if @config.key?(:after)
|
41
|
+
[:after, @config.delete(:after)]
|
42
|
+
else
|
43
|
+
[:before, @config.delete(:before)]
|
44
|
+
end
|
45
|
+
|
46
|
+
@replacement = data.is_a?(Proc) ? data.call : data
|
47
|
+
@flag = Regexp.escape(@flag) unless @flag.is_a?(Regexp)
|
48
|
+
end
|
49
|
+
|
50
|
+
def invoke!
|
51
|
+
say_status :invoke
|
52
|
+
|
53
|
+
content = if @behavior == :after
|
54
|
+
'\0' + replacement
|
55
|
+
else
|
56
|
+
replacement + '\0'
|
57
|
+
end
|
58
|
+
|
59
|
+
replace!(/#{flag}/, content, config[:force])
|
60
|
+
end
|
61
|
+
|
62
|
+
def revoke!
|
63
|
+
say_status :revoke
|
64
|
+
|
65
|
+
regexp = if @behavior == :after
|
66
|
+
content = '\1\2'
|
67
|
+
/(#{flag})(.*)(#{Regexp.escape(replacement)})/m
|
68
|
+
else
|
69
|
+
content = '\2\3'
|
70
|
+
/(#{Regexp.escape(replacement)})(.*)(#{flag})/m
|
71
|
+
end
|
72
|
+
|
73
|
+
replace!(regexp, content, true)
|
74
|
+
end
|
75
|
+
|
76
|
+
protected
|
77
|
+
|
78
|
+
def say_status(behavior)
|
79
|
+
status = if behavior == :invoke
|
80
|
+
if flag == /\A/
|
81
|
+
:prepend
|
82
|
+
elsif flag == /\z/
|
83
|
+
:append
|
84
|
+
else
|
85
|
+
:insert
|
86
|
+
end
|
87
|
+
else
|
88
|
+
:subtract
|
89
|
+
end
|
90
|
+
|
91
|
+
super(status, config[:verbose])
|
92
|
+
end
|
93
|
+
|
94
|
+
# Adds the content to the file.
|
95
|
+
#
|
96
|
+
def replace!(regexp, string, force)
|
97
|
+
unless base.options[:pretend]
|
98
|
+
content = File.binread(destination)
|
99
|
+
if force || !content.include?(replacement)
|
100
|
+
content.gsub!(regexp, string)
|
101
|
+
File.open(destination, "wb") { |file| file.write(content) }
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,656 @@
|
|
1
|
+
require "thor/command"
|
2
|
+
require "thor/core_ext/hash_with_indifferent_access"
|
3
|
+
require "thor/core_ext/ordered_hash"
|
4
|
+
require "thor/error"
|
5
|
+
require "thor/invocation"
|
6
|
+
require "thor/parser"
|
7
|
+
require "thor/shell"
|
8
|
+
require "thor/line_editor"
|
9
|
+
require "thor/util"
|
10
|
+
|
11
|
+
class Thor
|
12
|
+
autoload :Actions, "thor/actions"
|
13
|
+
autoload :RakeCompat, "thor/rake_compat"
|
14
|
+
autoload :Group, "thor/group"
|
15
|
+
|
16
|
+
# Shortcuts for help.
|
17
|
+
HELP_MAPPINGS = %w[-h -? --help -D]
|
18
|
+
|
19
|
+
# Thor methods that should not be overwritten by the user.
|
20
|
+
THOR_RESERVED_WORDS = %w[invoke shell options behavior root destination_root relative_root
|
21
|
+
action add_file create_file in_root inside run run_ruby_script]
|
22
|
+
|
23
|
+
TEMPLATE_EXTNAME = ".tt"
|
24
|
+
|
25
|
+
module Base
|
26
|
+
attr_accessor :options, :parent_options, :args
|
27
|
+
|
28
|
+
# It receives arguments in an Array and two hashes, one for options and
|
29
|
+
# other for configuration.
|
30
|
+
#
|
31
|
+
# Notice that it does not check if all required arguments were supplied.
|
32
|
+
# It should be done by the parser.
|
33
|
+
#
|
34
|
+
# ==== Parameters
|
35
|
+
# args<Array[Object]>:: An array of objects. The objects are applied to their
|
36
|
+
# respective accessors declared with <tt>argument</tt>.
|
37
|
+
#
|
38
|
+
# options<Hash>:: An options hash that will be available as self.options.
|
39
|
+
# The hash given is converted to a hash with indifferent
|
40
|
+
# access, magic predicates (options.skip?) and then frozen.
|
41
|
+
#
|
42
|
+
# config<Hash>:: Configuration for this Thor class.
|
43
|
+
#
|
44
|
+
def initialize(args = [], local_options = {}, config = {}) # rubocop:disable MethodLength
|
45
|
+
parse_options = self.class.class_options
|
46
|
+
|
47
|
+
# The start method splits inbound arguments at the first argument
|
48
|
+
# that looks like an option (starts with - or --). It then calls
|
49
|
+
# new, passing in the two halves of the arguments Array as the
|
50
|
+
# first two parameters.
|
51
|
+
|
52
|
+
command_options = config.delete(:command_options) # hook for start
|
53
|
+
parse_options = parse_options.merge(command_options) if command_options
|
54
|
+
if local_options.is_a?(Array)
|
55
|
+
array_options, hash_options = local_options, {}
|
56
|
+
else
|
57
|
+
# Handle the case where the class was explicitly instantiated
|
58
|
+
# with pre-parsed options.
|
59
|
+
array_options, hash_options = [], local_options
|
60
|
+
end
|
61
|
+
|
62
|
+
# Let Thor::Options parse the options first, so it can remove
|
63
|
+
# declared options from the array. This will leave us with
|
64
|
+
# a list of arguments that weren't declared.
|
65
|
+
stop_on_unknown = self.class.stop_on_unknown_option? config[:current_command]
|
66
|
+
opts = Thor::Options.new(parse_options, hash_options, stop_on_unknown)
|
67
|
+
self.options = opts.parse(array_options)
|
68
|
+
self.options = config[:class_options].merge(options) if config[:class_options]
|
69
|
+
|
70
|
+
# If unknown options are disallowed, make sure that none of the
|
71
|
+
# remaining arguments looks like an option.
|
72
|
+
opts.check_unknown! if self.class.check_unknown_options?(config)
|
73
|
+
|
74
|
+
# Add the remaining arguments from the options parser to the
|
75
|
+
# arguments passed in to initialize. Then remove any positional
|
76
|
+
# arguments declared using #argument (this is primarily used
|
77
|
+
# by Thor::Group). Tis will leave us with the remaining
|
78
|
+
# positional arguments.
|
79
|
+
to_parse = args
|
80
|
+
to_parse += opts.remaining unless self.class.strict_args_position?(config)
|
81
|
+
|
82
|
+
thor_args = Thor::Arguments.new(self.class.arguments)
|
83
|
+
thor_args.parse(to_parse).each { |k, v| __send__("#{k}=", v) }
|
84
|
+
@args = thor_args.remaining
|
85
|
+
end
|
86
|
+
|
87
|
+
class << self
|
88
|
+
def included(base) #:nodoc:
|
89
|
+
base.extend ClassMethods
|
90
|
+
base.send :include, Invocation
|
91
|
+
base.send :include, Shell
|
92
|
+
end
|
93
|
+
|
94
|
+
# Returns the classes that inherits from Thor or Thor::Group.
|
95
|
+
#
|
96
|
+
# ==== Returns
|
97
|
+
# Array[Class]
|
98
|
+
#
|
99
|
+
def subclasses
|
100
|
+
@subclasses ||= []
|
101
|
+
end
|
102
|
+
|
103
|
+
# Returns the files where the subclasses are kept.
|
104
|
+
#
|
105
|
+
# ==== Returns
|
106
|
+
# Hash[path<String> => Class]
|
107
|
+
#
|
108
|
+
def subclass_files
|
109
|
+
@subclass_files ||= Hash.new { |h, k| h[k] = [] }
|
110
|
+
end
|
111
|
+
|
112
|
+
# Whenever a class inherits from Thor or Thor::Group, we should track the
|
113
|
+
# class and the file on Thor::Base. This is the method responsable for it.
|
114
|
+
#
|
115
|
+
def register_klass_file(klass) #:nodoc:
|
116
|
+
file = caller[1].match(/(.*):\d+/)[1]
|
117
|
+
Thor::Base.subclasses << klass unless Thor::Base.subclasses.include?(klass)
|
118
|
+
|
119
|
+
file_subclasses = Thor::Base.subclass_files[File.expand_path(file)]
|
120
|
+
file_subclasses << klass unless file_subclasses.include?(klass)
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
module ClassMethods
|
125
|
+
def attr_reader(*) #:nodoc:
|
126
|
+
no_commands { super }
|
127
|
+
end
|
128
|
+
|
129
|
+
def attr_writer(*) #:nodoc:
|
130
|
+
no_commands { super }
|
131
|
+
end
|
132
|
+
|
133
|
+
def attr_accessor(*) #:nodoc:
|
134
|
+
no_commands { super }
|
135
|
+
end
|
136
|
+
|
137
|
+
# If you want to raise an error for unknown options, call check_unknown_options!
|
138
|
+
# This is disabled by default to allow dynamic invocations.
|
139
|
+
def check_unknown_options!
|
140
|
+
@check_unknown_options = true
|
141
|
+
end
|
142
|
+
|
143
|
+
def check_unknown_options #:nodoc:
|
144
|
+
@check_unknown_options ||= from_superclass(:check_unknown_options, false)
|
145
|
+
end
|
146
|
+
|
147
|
+
def check_unknown_options?(config) #:nodoc:
|
148
|
+
!!check_unknown_options
|
149
|
+
end
|
150
|
+
|
151
|
+
# If true, option parsing is suspended as soon as an unknown option or a
|
152
|
+
# regular argument is encountered. All remaining arguments are passed to
|
153
|
+
# the command as regular arguments.
|
154
|
+
def stop_on_unknown_option?(command_name) #:nodoc:
|
155
|
+
false
|
156
|
+
end
|
157
|
+
|
158
|
+
# If you want only strict string args (useful when cascading thor classes),
|
159
|
+
# call strict_args_position! This is disabled by default to allow dynamic
|
160
|
+
# invocations.
|
161
|
+
def strict_args_position!
|
162
|
+
@strict_args_position = true
|
163
|
+
end
|
164
|
+
|
165
|
+
def strict_args_position #:nodoc:
|
166
|
+
@strict_args_position ||= from_superclass(:strict_args_position, false)
|
167
|
+
end
|
168
|
+
|
169
|
+
def strict_args_position?(config) #:nodoc:
|
170
|
+
!!strict_args_position
|
171
|
+
end
|
172
|
+
|
173
|
+
# Adds an argument to the class and creates an attr_accessor for it.
|
174
|
+
#
|
175
|
+
# Arguments are different from options in several aspects. The first one
|
176
|
+
# is how they are parsed from the command line, arguments are retrieved
|
177
|
+
# from position:
|
178
|
+
#
|
179
|
+
# thor command NAME
|
180
|
+
#
|
181
|
+
# Instead of:
|
182
|
+
#
|
183
|
+
# thor command --name=NAME
|
184
|
+
#
|
185
|
+
# Besides, arguments are used inside your code as an accessor (self.argument),
|
186
|
+
# while options are all kept in a hash (self.options).
|
187
|
+
#
|
188
|
+
# Finally, arguments cannot have type :default or :boolean but can be
|
189
|
+
# optional (supplying :optional => :true or :required => false), although
|
190
|
+
# you cannot have a required argument after a non-required argument. If you
|
191
|
+
# try it, an error is raised.
|
192
|
+
#
|
193
|
+
# ==== Parameters
|
194
|
+
# name<Symbol>:: The name of the argument.
|
195
|
+
# options<Hash>:: Described below.
|
196
|
+
#
|
197
|
+
# ==== Options
|
198
|
+
# :desc - Description for the argument.
|
199
|
+
# :required - If the argument is required or not.
|
200
|
+
# :optional - If the argument is optional or not.
|
201
|
+
# :type - The type of the argument, can be :string, :hash, :array, :numeric.
|
202
|
+
# :default - Default value for this argument. It cannot be required and have default values.
|
203
|
+
# :banner - String to show on usage notes.
|
204
|
+
#
|
205
|
+
# ==== Errors
|
206
|
+
# ArgumentError:: Raised if you supply a required argument after a non required one.
|
207
|
+
#
|
208
|
+
def argument(name, options = {}) # rubocop:disable MethodLength
|
209
|
+
is_thor_reserved_word?(name, :argument)
|
210
|
+
no_commands { attr_accessor name }
|
211
|
+
|
212
|
+
required = if options.key?(:optional)
|
213
|
+
!options[:optional]
|
214
|
+
elsif options.key?(:required)
|
215
|
+
options[:required]
|
216
|
+
else
|
217
|
+
options[:default].nil?
|
218
|
+
end
|
219
|
+
|
220
|
+
remove_argument name
|
221
|
+
|
222
|
+
arguments.each do |argument|
|
223
|
+
next if argument.required?
|
224
|
+
fail ArgumentError, "You cannot have #{name.to_s.inspect} as required argument after " <<
|
225
|
+
"the non-required argument #{argument.human_name.inspect}."
|
226
|
+
end if required
|
227
|
+
|
228
|
+
options[:required] = required
|
229
|
+
|
230
|
+
arguments << Thor::Argument.new(name, options)
|
231
|
+
end
|
232
|
+
|
233
|
+
# Returns this class arguments, looking up in the ancestors chain.
|
234
|
+
#
|
235
|
+
# ==== Returns
|
236
|
+
# Array[Thor::Argument]
|
237
|
+
#
|
238
|
+
def arguments
|
239
|
+
@arguments ||= from_superclass(:arguments, [])
|
240
|
+
end
|
241
|
+
|
242
|
+
# Adds a bunch of options to the set of class options.
|
243
|
+
#
|
244
|
+
# class_options :foo => false, :bar => :required, :baz => :string
|
245
|
+
#
|
246
|
+
# If you prefer more detailed declaration, check class_option.
|
247
|
+
#
|
248
|
+
# ==== Parameters
|
249
|
+
# Hash[Symbol => Object]
|
250
|
+
#
|
251
|
+
def class_options(options = nil)
|
252
|
+
@class_options ||= from_superclass(:class_options, {})
|
253
|
+
build_options(options, @class_options) if options
|
254
|
+
@class_options
|
255
|
+
end
|
256
|
+
|
257
|
+
# Adds an option to the set of class options
|
258
|
+
#
|
259
|
+
# ==== Parameters
|
260
|
+
# name<Symbol>:: The name of the argument.
|
261
|
+
# options<Hash>:: Described below.
|
262
|
+
#
|
263
|
+
# ==== Options
|
264
|
+
# :desc:: -- Description for the argument.
|
265
|
+
# :required:: -- If the argument is required or not.
|
266
|
+
# :default:: -- Default value for this argument.
|
267
|
+
# :group:: -- The group for this options. Use by class options to output options in different levels.
|
268
|
+
# :aliases:: -- Aliases for this option. <b>Note:</b> Thor follows a convention of one-dash-one-letter options. Thus aliases like "-something" wouldn't be parsed; use either "\--something" or "-s" instead.
|
269
|
+
# :type:: -- The type of the argument, can be :string, :hash, :array, :numeric or :boolean.
|
270
|
+
# :banner:: -- String to show on usage notes.
|
271
|
+
# :hide:: -- If you want to hide this option from the help.
|
272
|
+
#
|
273
|
+
def class_option(name, options = {})
|
274
|
+
build_option(name, options, class_options)
|
275
|
+
end
|
276
|
+
|
277
|
+
# Removes a previous defined argument. If :undefine is given, undefine
|
278
|
+
# accessors as well.
|
279
|
+
#
|
280
|
+
# ==== Parameters
|
281
|
+
# names<Array>:: Arguments to be removed
|
282
|
+
#
|
283
|
+
# ==== Examples
|
284
|
+
#
|
285
|
+
# remove_argument :foo
|
286
|
+
# remove_argument :foo, :bar, :baz, :undefine => true
|
287
|
+
#
|
288
|
+
def remove_argument(*names)
|
289
|
+
options = names.last.is_a?(Hash) ? names.pop : {}
|
290
|
+
|
291
|
+
names.each do |name|
|
292
|
+
arguments.delete_if { |a| a.name == name.to_s }
|
293
|
+
undef_method name, "#{name}=" if options[:undefine]
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
297
|
+
# Removes a previous defined class option.
|
298
|
+
#
|
299
|
+
# ==== Parameters
|
300
|
+
# names<Array>:: Class options to be removed
|
301
|
+
#
|
302
|
+
# ==== Examples
|
303
|
+
#
|
304
|
+
# remove_class_option :foo
|
305
|
+
# remove_class_option :foo, :bar, :baz
|
306
|
+
#
|
307
|
+
def remove_class_option(*names)
|
308
|
+
names.each do |name|
|
309
|
+
class_options.delete(name)
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
# Defines the group. This is used when thor list is invoked so you can specify
|
314
|
+
# that only commands from a pre-defined group will be shown. Defaults to standard.
|
315
|
+
#
|
316
|
+
# ==== Parameters
|
317
|
+
# name<String|Symbol>
|
318
|
+
#
|
319
|
+
def group(name = nil)
|
320
|
+
if name
|
321
|
+
@group = name.to_s
|
322
|
+
else
|
323
|
+
@group ||= from_superclass(:group, "standard")
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
327
|
+
# Returns the commands for this Thor class.
|
328
|
+
#
|
329
|
+
# ==== Returns
|
330
|
+
# OrderedHash:: An ordered hash with commands names as keys and Thor::Command
|
331
|
+
# objects as values.
|
332
|
+
#
|
333
|
+
def commands
|
334
|
+
@commands ||= Thor::CoreExt::OrderedHash.new
|
335
|
+
end
|
336
|
+
alias_method :tasks, :commands
|
337
|
+
|
338
|
+
# Returns the commands for this Thor class and all subclasses.
|
339
|
+
#
|
340
|
+
# ==== Returns
|
341
|
+
# OrderedHash:: An ordered hash with commands names as keys and Thor::Command
|
342
|
+
# objects as values.
|
343
|
+
#
|
344
|
+
def all_commands
|
345
|
+
@all_commands ||= from_superclass(:all_commands, Thor::CoreExt::OrderedHash.new)
|
346
|
+
@all_commands.merge(commands)
|
347
|
+
end
|
348
|
+
alias_method :all_tasks, :all_commands
|
349
|
+
|
350
|
+
# Removes a given command from this Thor class. This is usually done if you
|
351
|
+
# are inheriting from another class and don't want it to be available
|
352
|
+
# anymore.
|
353
|
+
#
|
354
|
+
# By default it only remove the mapping to the command. But you can supply
|
355
|
+
# :undefine => true to undefine the method from the class as well.
|
356
|
+
#
|
357
|
+
# ==== Parameters
|
358
|
+
# name<Symbol|String>:: The name of the command to be removed
|
359
|
+
# options<Hash>:: You can give :undefine => true if you want commands the method
|
360
|
+
# to be undefined from the class as well.
|
361
|
+
#
|
362
|
+
def remove_command(*names)
|
363
|
+
options = names.last.is_a?(Hash) ? names.pop : {}
|
364
|
+
|
365
|
+
names.each do |name|
|
366
|
+
commands.delete(name.to_s)
|
367
|
+
all_commands.delete(name.to_s)
|
368
|
+
undef_method name if options[:undefine]
|
369
|
+
end
|
370
|
+
end
|
371
|
+
alias_method :remove_task, :remove_command
|
372
|
+
|
373
|
+
# All methods defined inside the given block are not added as commands.
|
374
|
+
#
|
375
|
+
# So you can do:
|
376
|
+
#
|
377
|
+
# class MyScript < Thor
|
378
|
+
# no_commands do
|
379
|
+
# def this_is_not_a_command
|
380
|
+
# end
|
381
|
+
# end
|
382
|
+
# end
|
383
|
+
#
|
384
|
+
# You can also add the method and remove it from the command list:
|
385
|
+
#
|
386
|
+
# class MyScript < Thor
|
387
|
+
# def this_is_not_a_command
|
388
|
+
# end
|
389
|
+
# remove_command :this_is_not_a_command
|
390
|
+
# end
|
391
|
+
#
|
392
|
+
def no_commands
|
393
|
+
@no_commands = true
|
394
|
+
yield
|
395
|
+
ensure
|
396
|
+
@no_commands = false
|
397
|
+
end
|
398
|
+
alias_method :no_tasks, :no_commands
|
399
|
+
|
400
|
+
# Sets the namespace for the Thor or Thor::Group class. By default the
|
401
|
+
# namespace is retrieved from the class name. If your Thor class is named
|
402
|
+
# Scripts::MyScript, the help method, for example, will be called as:
|
403
|
+
#
|
404
|
+
# thor scripts:my_script -h
|
405
|
+
#
|
406
|
+
# If you change the namespace:
|
407
|
+
#
|
408
|
+
# namespace :my_scripts
|
409
|
+
#
|
410
|
+
# You change how your commands are invoked:
|
411
|
+
#
|
412
|
+
# thor my_scripts -h
|
413
|
+
#
|
414
|
+
# Finally, if you change your namespace to default:
|
415
|
+
#
|
416
|
+
# namespace :default
|
417
|
+
#
|
418
|
+
# Your commands can be invoked with a shortcut. Instead of:
|
419
|
+
#
|
420
|
+
# thor :my_command
|
421
|
+
#
|
422
|
+
def namespace(name = nil)
|
423
|
+
if name
|
424
|
+
@namespace = name.to_s
|
425
|
+
else
|
426
|
+
@namespace ||= Thor::Util.namespace_from_thor_class(self)
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
430
|
+
# Parses the command and options from the given args, instantiate the class
|
431
|
+
# and invoke the command. This method is used when the arguments must be parsed
|
432
|
+
# from an array. If you are inside Ruby and want to use a Thor class, you
|
433
|
+
# can simply initialize it:
|
434
|
+
#
|
435
|
+
# script = MyScript.new(args, options, config)
|
436
|
+
# script.invoke(:command, first_arg, second_arg, third_arg)
|
437
|
+
#
|
438
|
+
def start(given_args = ARGV, config = {})
|
439
|
+
config[:shell] ||= Thor::Base.shell.new
|
440
|
+
dispatch(nil, given_args.dup, nil, config)
|
441
|
+
rescue Thor::Error => e
|
442
|
+
config[:debug] || ENV["THOR_DEBUG"] == "1" ? (raise e) : config[:shell].error(e.message)
|
443
|
+
exit(1) if exit_on_failure?
|
444
|
+
rescue Errno::EPIPE
|
445
|
+
# This happens if a thor command is piped to something like `head`,
|
446
|
+
# which closes the pipe when it's done reading. This will also
|
447
|
+
# mean that if the pipe is closed, further unnecessary
|
448
|
+
# computation will not occur.
|
449
|
+
exit(0)
|
450
|
+
end
|
451
|
+
|
452
|
+
# Allows to use private methods from parent in child classes as commands.
|
453
|
+
#
|
454
|
+
# ==== Parameters
|
455
|
+
# names<Array>:: Method names to be used as commands
|
456
|
+
#
|
457
|
+
# ==== Examples
|
458
|
+
#
|
459
|
+
# public_command :foo
|
460
|
+
# public_command :foo, :bar, :baz
|
461
|
+
#
|
462
|
+
def public_command(*names)
|
463
|
+
names.each do |name|
|
464
|
+
class_eval "def #{name}(*); super end"
|
465
|
+
end
|
466
|
+
end
|
467
|
+
alias_method :public_task, :public_command
|
468
|
+
|
469
|
+
def handle_no_command_error(command, has_namespace = $thor_runner) #:nodoc:
|
470
|
+
if has_namespace
|
471
|
+
fail UndefinedCommandError, "Could not find command #{command.inspect} in #{namespace.inspect} namespace."
|
472
|
+
else
|
473
|
+
fail UndefinedCommandError, "Could not find command #{command.inspect}."
|
474
|
+
end
|
475
|
+
end
|
476
|
+
alias_method :handle_no_task_error, :handle_no_command_error
|
477
|
+
|
478
|
+
def handle_argument_error(command, error, args, arity) #:nodoc:
|
479
|
+
msg = "ERROR: \"#{basename} #{command.name}\" was called with "
|
480
|
+
msg << "no arguments" if args.empty?
|
481
|
+
msg << "arguments " << args.inspect unless args.empty?
|
482
|
+
msg << "\nUsage: #{banner(command).inspect}"
|
483
|
+
fail InvocationError, msg
|
484
|
+
end
|
485
|
+
|
486
|
+
protected
|
487
|
+
|
488
|
+
# Prints the class options per group. If an option does not belong to
|
489
|
+
# any group, it's printed as Class option.
|
490
|
+
#
|
491
|
+
def class_options_help(shell, groups = {}) #:nodoc:
|
492
|
+
# Group options by group
|
493
|
+
class_options.each do |_, value|
|
494
|
+
groups[value.group] ||= []
|
495
|
+
groups[value.group] << value
|
496
|
+
end
|
497
|
+
|
498
|
+
# Deal with default group
|
499
|
+
global_options = groups.delete(nil) || []
|
500
|
+
print_options(shell, global_options)
|
501
|
+
|
502
|
+
# Print all others
|
503
|
+
groups.each do |group_name, options|
|
504
|
+
print_options(shell, options, group_name)
|
505
|
+
end
|
506
|
+
end
|
507
|
+
|
508
|
+
# Receives a set of options and print them.
|
509
|
+
def print_options(shell, options, group_name = nil)
|
510
|
+
return if options.empty?
|
511
|
+
|
512
|
+
list = []
|
513
|
+
padding = options.map { |o| o.aliases.size }.max.to_i * 4
|
514
|
+
|
515
|
+
options.each do |option|
|
516
|
+
unless option.hide
|
517
|
+
item = [option.usage(padding)]
|
518
|
+
item.push(option.description ? "# #{option.description}" : "")
|
519
|
+
|
520
|
+
list << item
|
521
|
+
list << ["", "# Default: #{option.default}"] if option.show_default?
|
522
|
+
list << ["", "# Possible values: #{option.enum.join(', ')}"] if option.enum
|
523
|
+
end
|
524
|
+
end
|
525
|
+
|
526
|
+
shell.say(group_name ? "#{group_name} options:" : "Options:")
|
527
|
+
shell.print_table(list, :indent => 2)
|
528
|
+
shell.say ""
|
529
|
+
end
|
530
|
+
|
531
|
+
# Raises an error if the word given is a Thor reserved word.
|
532
|
+
def is_thor_reserved_word?(word, type) #:nodoc:
|
533
|
+
return false unless THOR_RESERVED_WORDS.include?(word.to_s)
|
534
|
+
fail "#{word.inspect} is a Thor reserved word and cannot be defined as #{type}"
|
535
|
+
end
|
536
|
+
|
537
|
+
# Build an option and adds it to the given scope.
|
538
|
+
#
|
539
|
+
# ==== Parameters
|
540
|
+
# name<Symbol>:: The name of the argument.
|
541
|
+
# options<Hash>:: Described in both class_option and method_option.
|
542
|
+
# scope<Hash>:: Options hash that is being built up
|
543
|
+
def build_option(name, options, scope) #:nodoc:
|
544
|
+
scope[name] = Thor::Option.new(name, options)
|
545
|
+
end
|
546
|
+
|
547
|
+
# Receives a hash of options, parse them and add to the scope. This is a
|
548
|
+
# fast way to set a bunch of options:
|
549
|
+
#
|
550
|
+
# build_options :foo => true, :bar => :required, :baz => :string
|
551
|
+
#
|
552
|
+
# ==== Parameters
|
553
|
+
# Hash[Symbol => Object]
|
554
|
+
def build_options(options, scope) #:nodoc:
|
555
|
+
options.each do |key, value|
|
556
|
+
scope[key] = Thor::Option.parse(key, value)
|
557
|
+
end
|
558
|
+
end
|
559
|
+
|
560
|
+
# Finds a command with the given name. If the command belongs to the current
|
561
|
+
# class, just return it, otherwise dup it and add the fresh copy to the
|
562
|
+
# current command hash.
|
563
|
+
def find_and_refresh_command(name) #:nodoc:
|
564
|
+
if commands[name.to_s]
|
565
|
+
commands[name.to_s]
|
566
|
+
elsif command = all_commands[name.to_s] # rubocop:disable AssignmentInCondition
|
567
|
+
commands[name.to_s] = command.clone
|
568
|
+
else
|
569
|
+
fail ArgumentError, "You supplied :for => #{name.inspect}, but the command #{name.inspect} could not be found."
|
570
|
+
end
|
571
|
+
end
|
572
|
+
alias_method :find_and_refresh_task, :find_and_refresh_command
|
573
|
+
|
574
|
+
# Everytime someone inherits from a Thor class, register the klass
|
575
|
+
# and file into baseclass.
|
576
|
+
def inherited(klass)
|
577
|
+
Thor::Base.register_klass_file(klass)
|
578
|
+
klass.instance_variable_set(:@no_commands, false)
|
579
|
+
end
|
580
|
+
|
581
|
+
# Fire this callback whenever a method is added. Added methods are
|
582
|
+
# tracked as commands by invoking the create_command method.
|
583
|
+
def method_added(meth)
|
584
|
+
meth = meth.to_s
|
585
|
+
|
586
|
+
if meth == "initialize"
|
587
|
+
initialize_added
|
588
|
+
return
|
589
|
+
end
|
590
|
+
|
591
|
+
# Return if it's not a public instance method
|
592
|
+
return unless public_method_defined?(meth.to_sym)
|
593
|
+
|
594
|
+
@no_commands ||= false
|
595
|
+
return if @no_commands || !create_command(meth)
|
596
|
+
|
597
|
+
is_thor_reserved_word?(meth, :command)
|
598
|
+
Thor::Base.register_klass_file(self)
|
599
|
+
end
|
600
|
+
|
601
|
+
# Retrieves a value from superclass. If it reaches the baseclass,
|
602
|
+
# returns default.
|
603
|
+
def from_superclass(method, default = nil)
|
604
|
+
if self == baseclass || !superclass.respond_to?(method, true)
|
605
|
+
default
|
606
|
+
else
|
607
|
+
value = superclass.send(method)
|
608
|
+
|
609
|
+
# Ruby implements `dup` on Object, but raises a `TypeError`
|
610
|
+
# if the method is called on immediates. As a result, we
|
611
|
+
# don't have a good way to check whether dup will succeed
|
612
|
+
# without calling it and rescuing the TypeError.
|
613
|
+
begin
|
614
|
+
value.dup
|
615
|
+
rescue TypeError
|
616
|
+
value
|
617
|
+
end
|
618
|
+
|
619
|
+
end
|
620
|
+
end
|
621
|
+
|
622
|
+
# A flag that makes the process exit with status 1 if any error happens.
|
623
|
+
def exit_on_failure?
|
624
|
+
false
|
625
|
+
end
|
626
|
+
|
627
|
+
#
|
628
|
+
# The basename of the program invoking the thor class.
|
629
|
+
#
|
630
|
+
def basename
|
631
|
+
File.basename($PROGRAM_NAME).split(" ").first
|
632
|
+
end
|
633
|
+
|
634
|
+
# SIGNATURE: Sets the baseclass. This is where the superclass lookup
|
635
|
+
# finishes.
|
636
|
+
def baseclass #:nodoc:
|
637
|
+
end
|
638
|
+
|
639
|
+
# SIGNATURE: Creates a new command if valid_command? is true. This method is
|
640
|
+
# called when a new method is added to the class.
|
641
|
+
def create_command(meth) #:nodoc:
|
642
|
+
end
|
643
|
+
alias_method :create_task, :create_command
|
644
|
+
|
645
|
+
# SIGNATURE: Defines behavior when the initialize method is added to the
|
646
|
+
# class.
|
647
|
+
def initialize_added #:nodoc:
|
648
|
+
end
|
649
|
+
|
650
|
+
# SIGNATURE: The hook invoked by start.
|
651
|
+
def dispatch(command, given_args, given_opts, config) #:nodoc:
|
652
|
+
fail NotImplementedError
|
653
|
+
end
|
654
|
+
end
|
655
|
+
end
|
656
|
+
end
|