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,118 @@
|
|
1
|
+
require "thor/actions/empty_directory"
|
2
|
+
|
3
|
+
class Thor
|
4
|
+
module Actions
|
5
|
+
# Copies recursively the files from source directory to root directory.
|
6
|
+
# If any of the files finishes with .tt, it's considered to be a template
|
7
|
+
# and is placed in the destination without the extension .tt. If any
|
8
|
+
# empty directory is found, it's copied and all .empty_directory files are
|
9
|
+
# ignored. If any file name is wrapped within % signs, the text within
|
10
|
+
# the % signs will be executed as a method and replaced with the returned
|
11
|
+
# value. Let's suppose a doc directory with the following files:
|
12
|
+
#
|
13
|
+
# doc/
|
14
|
+
# components/.empty_directory
|
15
|
+
# README
|
16
|
+
# rdoc.rb.tt
|
17
|
+
# %app_name%.rb
|
18
|
+
#
|
19
|
+
# When invoked as:
|
20
|
+
#
|
21
|
+
# directory "doc"
|
22
|
+
#
|
23
|
+
# It will create a doc directory in the destination with the following
|
24
|
+
# files (assuming that the `app_name` method returns the value "blog"):
|
25
|
+
#
|
26
|
+
# doc/
|
27
|
+
# components/
|
28
|
+
# README
|
29
|
+
# rdoc.rb
|
30
|
+
# blog.rb
|
31
|
+
#
|
32
|
+
# <b>Encoded path note:</b> Since Thor internals use Object#respond_to? to check if it can
|
33
|
+
# expand %something%, this `something` should be a public method in the class calling
|
34
|
+
# #directory. If a method is private, Thor stack raises PrivateMethodEncodedError.
|
35
|
+
#
|
36
|
+
# ==== Parameters
|
37
|
+
# source<String>:: the relative path to the source root.
|
38
|
+
# destination<String>:: the relative path to the destination root.
|
39
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
40
|
+
# If :recursive => false, does not look for paths recursively.
|
41
|
+
# If :mode => :preserve, preserve the file mode from the source.
|
42
|
+
# If :exclude_pattern => /regexp/, prevents copying files that match that regexp.
|
43
|
+
#
|
44
|
+
# ==== Examples
|
45
|
+
#
|
46
|
+
# directory "doc"
|
47
|
+
# directory "doc", "docs", :recursive => false
|
48
|
+
#
|
49
|
+
def directory(source, *args, &block)
|
50
|
+
config = args.last.is_a?(Hash) ? args.pop : {}
|
51
|
+
destination = args.first || source
|
52
|
+
action Directory.new(self, source, destination || source, config, &block)
|
53
|
+
end
|
54
|
+
|
55
|
+
class Directory < EmptyDirectory #:nodoc:
|
56
|
+
attr_reader :source
|
57
|
+
|
58
|
+
def initialize(base, source, destination = nil, config = {}, &block)
|
59
|
+
@source = File.expand_path(base.find_in_source_paths(source.to_s))
|
60
|
+
@block = block
|
61
|
+
super(base, destination, {:recursive => true}.merge(config))
|
62
|
+
end
|
63
|
+
|
64
|
+
def invoke!
|
65
|
+
base.empty_directory given_destination, config
|
66
|
+
execute!
|
67
|
+
end
|
68
|
+
|
69
|
+
def revoke!
|
70
|
+
execute!
|
71
|
+
end
|
72
|
+
|
73
|
+
protected
|
74
|
+
|
75
|
+
def execute! # rubocop:disable MethodLength
|
76
|
+
lookup = Util.escape_globs(source)
|
77
|
+
lookup = config[:recursive] ? File.join(lookup, "**") : lookup
|
78
|
+
lookup = file_level_lookup(lookup)
|
79
|
+
|
80
|
+
files(lookup).sort.each do |file_source|
|
81
|
+
next if File.directory?(file_source)
|
82
|
+
next if config[:exclude_pattern] && file_source.match(config[:exclude_pattern])
|
83
|
+
file_destination = File.join(given_destination, file_source.gsub(source, "."))
|
84
|
+
file_destination.gsub!("/./", "/")
|
85
|
+
|
86
|
+
case file_source
|
87
|
+
when /\.empty_directory$/
|
88
|
+
dirname = File.dirname(file_destination).gsub(/\/\.$/, "")
|
89
|
+
next if dirname == given_destination
|
90
|
+
base.empty_directory(dirname, config)
|
91
|
+
when /#{TEMPLATE_EXTNAME}$/
|
92
|
+
base.template(file_source, file_destination[0..-4], config, &@block)
|
93
|
+
else
|
94
|
+
base.copy_file(file_source, file_destination, config, &@block)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
if RUBY_VERSION < "2.0"
|
100
|
+
def file_level_lookup(previous_lookup)
|
101
|
+
File.join(previous_lookup, "{*,.[a-z]*}")
|
102
|
+
end
|
103
|
+
|
104
|
+
def files(lookup)
|
105
|
+
Dir[lookup]
|
106
|
+
end
|
107
|
+
else
|
108
|
+
def file_level_lookup(previous_lookup)
|
109
|
+
File.join(previous_lookup, "*")
|
110
|
+
end
|
111
|
+
|
112
|
+
def files(lookup)
|
113
|
+
Dir.glob(lookup, File::FNM_DOTMATCH)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
@@ -0,0 +1,135 @@
|
|
1
|
+
class Thor
|
2
|
+
module Actions
|
3
|
+
# Creates an empty directory.
|
4
|
+
#
|
5
|
+
# ==== Parameters
|
6
|
+
# destination<String>:: the relative path to the destination root.
|
7
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
8
|
+
#
|
9
|
+
# ==== Examples
|
10
|
+
#
|
11
|
+
# empty_directory "doc"
|
12
|
+
#
|
13
|
+
def empty_directory(destination, config = {})
|
14
|
+
action EmptyDirectory.new(self, destination, config)
|
15
|
+
end
|
16
|
+
|
17
|
+
# Class which holds create directory logic. This is the base class for
|
18
|
+
# other actions like create_file and directory.
|
19
|
+
#
|
20
|
+
# This implementation is based in Templater actions, created by Jonas Nicklas
|
21
|
+
# and Michael S. Klishin under MIT LICENSE.
|
22
|
+
#
|
23
|
+
class EmptyDirectory #:nodoc:
|
24
|
+
attr_reader :base, :destination, :given_destination, :relative_destination, :config
|
25
|
+
|
26
|
+
# Initializes given the source and destination.
|
27
|
+
#
|
28
|
+
# ==== Parameters
|
29
|
+
# base<Thor::Base>:: A Thor::Base instance
|
30
|
+
# source<String>:: Relative path to the source of this file
|
31
|
+
# destination<String>:: Relative path to the destination of this file
|
32
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
33
|
+
#
|
34
|
+
def initialize(base, destination, config = {})
|
35
|
+
@base, @config = base, {:verbose => true}.merge(config)
|
36
|
+
self.destination = destination
|
37
|
+
end
|
38
|
+
|
39
|
+
# Checks if the destination file already exists.
|
40
|
+
#
|
41
|
+
# ==== Returns
|
42
|
+
# Boolean:: true if the file exists, false otherwise.
|
43
|
+
#
|
44
|
+
def exists?
|
45
|
+
::File.exist?(destination)
|
46
|
+
end
|
47
|
+
|
48
|
+
def invoke!
|
49
|
+
invoke_with_conflict_check do
|
50
|
+
::FileUtils.mkdir_p(destination)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def revoke!
|
55
|
+
say_status :remove, :red
|
56
|
+
::FileUtils.rm_rf(destination) if !pretend? && exists?
|
57
|
+
given_destination
|
58
|
+
end
|
59
|
+
|
60
|
+
protected
|
61
|
+
|
62
|
+
# Shortcut for pretend.
|
63
|
+
#
|
64
|
+
def pretend?
|
65
|
+
base.options[:pretend]
|
66
|
+
end
|
67
|
+
|
68
|
+
# Sets the absolute destination value from a relative destination value.
|
69
|
+
# It also stores the given and relative destination. Let's suppose our
|
70
|
+
# script is being executed on "dest", it sets the destination root to
|
71
|
+
# "dest". The destination, given_destination and relative_destination
|
72
|
+
# are related in the following way:
|
73
|
+
#
|
74
|
+
# inside "bar" do
|
75
|
+
# empty_directory "baz"
|
76
|
+
# end
|
77
|
+
#
|
78
|
+
# destination #=> dest/bar/baz
|
79
|
+
# relative_destination #=> bar/baz
|
80
|
+
# given_destination #=> baz
|
81
|
+
#
|
82
|
+
def destination=(destination)
|
83
|
+
if destination
|
84
|
+
@given_destination = convert_encoded_instructions(destination.to_s)
|
85
|
+
@destination = ::File.expand_path(@given_destination, base.destination_root)
|
86
|
+
@relative_destination = base.relative_to_original_destination_root(@destination)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# Filenames in the encoded form are converted. If you have a file:
|
91
|
+
#
|
92
|
+
# %file_name%.rb
|
93
|
+
#
|
94
|
+
# It calls #file_name from the base and replaces %-string with the
|
95
|
+
# return value (should be String) of #file_name:
|
96
|
+
#
|
97
|
+
# user.rb
|
98
|
+
#
|
99
|
+
# The method referenced can be either public or private.
|
100
|
+
#
|
101
|
+
def convert_encoded_instructions(filename)
|
102
|
+
filename.gsub(/%(.*?)%/) do |initial_string|
|
103
|
+
method = $1.strip
|
104
|
+
base.respond_to?(method, true) ? base.send(method) : initial_string
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# Receives a hash of options and just execute the block if some
|
109
|
+
# conditions are met.
|
110
|
+
#
|
111
|
+
def invoke_with_conflict_check(&block)
|
112
|
+
if exists?
|
113
|
+
on_conflict_behavior(&block)
|
114
|
+
else
|
115
|
+
say_status :create, :green
|
116
|
+
block.call unless pretend?
|
117
|
+
end
|
118
|
+
|
119
|
+
destination
|
120
|
+
end
|
121
|
+
|
122
|
+
# What to do when the destination file already exists.
|
123
|
+
#
|
124
|
+
def on_conflict_behavior(&block)
|
125
|
+
say_status :exist, :blue
|
126
|
+
end
|
127
|
+
|
128
|
+
# Shortcut to say_status shell method.
|
129
|
+
#
|
130
|
+
def say_status(status, color)
|
131
|
+
base.shell.say_status status, relative_destination, color if config[:verbose]
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
@@ -0,0 +1,316 @@
|
|
1
|
+
require "erb"
|
2
|
+
require "open-uri"
|
3
|
+
|
4
|
+
class Thor
|
5
|
+
module Actions
|
6
|
+
# Copies the file from the relative source to the relative destination. If
|
7
|
+
# the destination is not given it's assumed to be equal to the source.
|
8
|
+
#
|
9
|
+
# ==== Parameters
|
10
|
+
# source<String>:: the relative path to the source root.
|
11
|
+
# destination<String>:: the relative path to the destination root.
|
12
|
+
# config<Hash>:: give :verbose => false to not log the status, and
|
13
|
+
# :mode => :preserve, to preserve the file mode from the source.
|
14
|
+
|
15
|
+
#
|
16
|
+
# ==== Examples
|
17
|
+
#
|
18
|
+
# copy_file "README", "doc/README"
|
19
|
+
#
|
20
|
+
# copy_file "doc/README"
|
21
|
+
#
|
22
|
+
def copy_file(source, *args, &block)
|
23
|
+
config = args.last.is_a?(Hash) ? args.pop : {}
|
24
|
+
destination = args.first || source
|
25
|
+
source = File.expand_path(find_in_source_paths(source.to_s))
|
26
|
+
|
27
|
+
create_file destination, nil, config do
|
28
|
+
content = File.binread(source)
|
29
|
+
content = block.call(content) if block
|
30
|
+
content
|
31
|
+
end
|
32
|
+
if config[:mode] == :preserve
|
33
|
+
mode = File.stat(source).mode
|
34
|
+
chmod(destination, mode, config)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
# Links the file from the relative source to the relative destination. If
|
39
|
+
# the destination is not given it's assumed to be equal to the source.
|
40
|
+
#
|
41
|
+
# ==== Parameters
|
42
|
+
# source<String>:: the relative path to the source root.
|
43
|
+
# destination<String>:: the relative path to the destination root.
|
44
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
45
|
+
#
|
46
|
+
# ==== Examples
|
47
|
+
#
|
48
|
+
# link_file "README", "doc/README"
|
49
|
+
#
|
50
|
+
# link_file "doc/README"
|
51
|
+
#
|
52
|
+
def link_file(source, *args, &block)
|
53
|
+
config = args.last.is_a?(Hash) ? args.pop : {}
|
54
|
+
destination = args.first || source
|
55
|
+
source = File.expand_path(find_in_source_paths(source.to_s))
|
56
|
+
|
57
|
+
create_link destination, source, config
|
58
|
+
end
|
59
|
+
|
60
|
+
# Gets the content at the given address and places it at the given relative
|
61
|
+
# destination. If a block is given instead of destination, the content of
|
62
|
+
# the url is yielded and used as location.
|
63
|
+
#
|
64
|
+
# ==== Parameters
|
65
|
+
# source<String>:: the address of the given content.
|
66
|
+
# destination<String>:: the relative path to the destination root.
|
67
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
68
|
+
#
|
69
|
+
# ==== Examples
|
70
|
+
#
|
71
|
+
# get "http://gist.github.com/103208", "doc/README"
|
72
|
+
#
|
73
|
+
# get "http://gist.github.com/103208" do |content|
|
74
|
+
# content.split("\n").first
|
75
|
+
# end
|
76
|
+
#
|
77
|
+
def get(source, *args, &block)
|
78
|
+
config = args.last.is_a?(Hash) ? args.pop : {}
|
79
|
+
destination = args.first
|
80
|
+
|
81
|
+
source = File.expand_path(find_in_source_paths(source.to_s)) unless source =~ %r{^https?\://}
|
82
|
+
render = open(source) { |input| input.binmode.read }
|
83
|
+
|
84
|
+
destination ||= if block_given?
|
85
|
+
block.arity == 1 ? block.call(render) : block.call
|
86
|
+
else
|
87
|
+
File.basename(source)
|
88
|
+
end
|
89
|
+
|
90
|
+
create_file destination, render, config
|
91
|
+
end
|
92
|
+
|
93
|
+
# Gets an ERB template at the relative source, executes it and makes a copy
|
94
|
+
# at the relative destination. If the destination is not given it's assumed
|
95
|
+
# to be equal to the source removing .tt from the filename.
|
96
|
+
#
|
97
|
+
# ==== Parameters
|
98
|
+
# source<String>:: the relative path to the source root.
|
99
|
+
# destination<String>:: the relative path to the destination root.
|
100
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
101
|
+
#
|
102
|
+
# ==== Examples
|
103
|
+
#
|
104
|
+
# template "README", "doc/README"
|
105
|
+
#
|
106
|
+
# template "doc/README"
|
107
|
+
#
|
108
|
+
def template(source, *args, &block)
|
109
|
+
config = args.last.is_a?(Hash) ? args.pop : {}
|
110
|
+
destination = args.first || source.sub(/#{TEMPLATE_EXTNAME}$/, "")
|
111
|
+
|
112
|
+
source = File.expand_path(find_in_source_paths(source.to_s))
|
113
|
+
context = instance_eval("binding")
|
114
|
+
|
115
|
+
create_file destination, nil, config do
|
116
|
+
content = ERB.new(::File.binread(source), nil, "-", "@output_buffer").result(context)
|
117
|
+
content = block.call(content) if block
|
118
|
+
content
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# Changes the mode of the given file or directory.
|
123
|
+
#
|
124
|
+
# ==== Parameters
|
125
|
+
# mode<Integer>:: the file mode
|
126
|
+
# path<String>:: the name of the file to change mode
|
127
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
128
|
+
#
|
129
|
+
# ==== Example
|
130
|
+
#
|
131
|
+
# chmod "script/server", 0755
|
132
|
+
#
|
133
|
+
def chmod(path, mode, config = {})
|
134
|
+
return unless behavior == :invoke
|
135
|
+
path = File.expand_path(path, destination_root)
|
136
|
+
say_status :chmod, relative_to_original_destination_root(path), config.fetch(:verbose, true)
|
137
|
+
FileUtils.chmod_R(mode, path) unless options[:pretend]
|
138
|
+
end
|
139
|
+
|
140
|
+
# Prepend text to a file. Since it depends on insert_into_file, it's reversible.
|
141
|
+
#
|
142
|
+
# ==== Parameters
|
143
|
+
# path<String>:: path of the file to be changed
|
144
|
+
# data<String>:: the data to prepend to the file, can be also given as a block.
|
145
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
146
|
+
#
|
147
|
+
# ==== Example
|
148
|
+
#
|
149
|
+
# prepend_to_file 'config/environments/test.rb', 'config.gem "rspec"'
|
150
|
+
#
|
151
|
+
# prepend_to_file 'config/environments/test.rb' do
|
152
|
+
# 'config.gem "rspec"'
|
153
|
+
# end
|
154
|
+
#
|
155
|
+
def prepend_to_file(path, *args, &block)
|
156
|
+
config = args.last.is_a?(Hash) ? args.pop : {}
|
157
|
+
config.merge!(:after => /\A/)
|
158
|
+
insert_into_file(path, *(args << config), &block)
|
159
|
+
end
|
160
|
+
alias_method :prepend_file, :prepend_to_file
|
161
|
+
|
162
|
+
# Append text to a file. Since it depends on insert_into_file, it's reversible.
|
163
|
+
#
|
164
|
+
# ==== Parameters
|
165
|
+
# path<String>:: path of the file to be changed
|
166
|
+
# data<String>:: the data to append to the file, can be also given as a block.
|
167
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
168
|
+
#
|
169
|
+
# ==== Example
|
170
|
+
#
|
171
|
+
# append_to_file 'config/environments/test.rb', 'config.gem "rspec"'
|
172
|
+
#
|
173
|
+
# append_to_file 'config/environments/test.rb' do
|
174
|
+
# 'config.gem "rspec"'
|
175
|
+
# end
|
176
|
+
#
|
177
|
+
def append_to_file(path, *args, &block)
|
178
|
+
config = args.last.is_a?(Hash) ? args.pop : {}
|
179
|
+
config.merge!(:before => /\z/)
|
180
|
+
insert_into_file(path, *(args << config), &block)
|
181
|
+
end
|
182
|
+
alias_method :append_file, :append_to_file
|
183
|
+
|
184
|
+
# Injects text right after the class definition. Since it depends on
|
185
|
+
# insert_into_file, it's reversible.
|
186
|
+
#
|
187
|
+
# ==== Parameters
|
188
|
+
# path<String>:: path of the file to be changed
|
189
|
+
# klass<String|Class>:: the class to be manipulated
|
190
|
+
# data<String>:: the data to append to the class, can be also given as a block.
|
191
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
192
|
+
#
|
193
|
+
# ==== Examples
|
194
|
+
#
|
195
|
+
# inject_into_class "app/controllers/application_controller.rb", ApplicationController, " filter_parameter :password\n"
|
196
|
+
#
|
197
|
+
# inject_into_class "app/controllers/application_controller.rb", ApplicationController do
|
198
|
+
# " filter_parameter :password\n"
|
199
|
+
# end
|
200
|
+
#
|
201
|
+
def inject_into_class(path, klass, *args, &block)
|
202
|
+
config = args.last.is_a?(Hash) ? args.pop : {}
|
203
|
+
config.merge!(:after => /class #{klass}\n|class #{klass} .*\n/)
|
204
|
+
insert_into_file(path, *(args << config), &block)
|
205
|
+
end
|
206
|
+
|
207
|
+
# Run a regular expression replacement on a file.
|
208
|
+
#
|
209
|
+
# ==== Parameters
|
210
|
+
# path<String>:: path of the file to be changed
|
211
|
+
# flag<Regexp|String>:: the regexp or string to be replaced
|
212
|
+
# replacement<String>:: the replacement, can be also given as a block
|
213
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
214
|
+
#
|
215
|
+
# ==== Example
|
216
|
+
#
|
217
|
+
# gsub_file 'app/controllers/application_controller.rb', /#\s*(filter_parameter_logging :password)/, '\1'
|
218
|
+
#
|
219
|
+
# gsub_file 'README', /rake/, :green do |match|
|
220
|
+
# match << " no more. Use thor!"
|
221
|
+
# end
|
222
|
+
#
|
223
|
+
def gsub_file(path, flag, *args, &block)
|
224
|
+
return unless behavior == :invoke
|
225
|
+
config = args.last.is_a?(Hash) ? args.pop : {}
|
226
|
+
|
227
|
+
path = File.expand_path(path, destination_root)
|
228
|
+
say_status :gsub, relative_to_original_destination_root(path), config.fetch(:verbose, true)
|
229
|
+
|
230
|
+
unless options[:pretend]
|
231
|
+
content = File.binread(path)
|
232
|
+
content.gsub!(flag, *args, &block)
|
233
|
+
File.open(path, "wb") { |file| file.write(content) }
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
# Uncomment all lines matching a given regex. It will leave the space
|
238
|
+
# which existed before the comment hash in tact but will remove any spacing
|
239
|
+
# between the comment hash and the beginning of the line.
|
240
|
+
#
|
241
|
+
# ==== Parameters
|
242
|
+
# path<String>:: path of the file to be changed
|
243
|
+
# flag<Regexp|String>:: the regexp or string used to decide which lines to uncomment
|
244
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
245
|
+
#
|
246
|
+
# ==== Example
|
247
|
+
#
|
248
|
+
# uncomment_lines 'config/initializers/session_store.rb', /active_record/
|
249
|
+
#
|
250
|
+
def uncomment_lines(path, flag, *args)
|
251
|
+
flag = flag.respond_to?(:source) ? flag.source : flag
|
252
|
+
|
253
|
+
gsub_file(path, /^(\s*)#[[:blank:]]*(.*#{flag})/, '\1\2', *args)
|
254
|
+
end
|
255
|
+
|
256
|
+
# Comment all lines matching a given regex. It will leave the space
|
257
|
+
# which existed before the beginning of the line in tact and will insert
|
258
|
+
# a single space after the comment hash.
|
259
|
+
#
|
260
|
+
# ==== Parameters
|
261
|
+
# path<String>:: path of the file to be changed
|
262
|
+
# flag<Regexp|String>:: the regexp or string used to decide which lines to comment
|
263
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
264
|
+
#
|
265
|
+
# ==== Example
|
266
|
+
#
|
267
|
+
# comment_lines 'config/initializers/session_store.rb', /cookie_store/
|
268
|
+
#
|
269
|
+
def comment_lines(path, flag, *args)
|
270
|
+
flag = flag.respond_to?(:source) ? flag.source : flag
|
271
|
+
|
272
|
+
gsub_file(path, /^(\s*)([^#|\n]*#{flag})/, '\1# \2', *args)
|
273
|
+
end
|
274
|
+
|
275
|
+
# Removes a file at the given location.
|
276
|
+
#
|
277
|
+
# ==== Parameters
|
278
|
+
# path<String>:: path of the file to be changed
|
279
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
280
|
+
#
|
281
|
+
# ==== Example
|
282
|
+
#
|
283
|
+
# remove_file 'README'
|
284
|
+
# remove_file 'app/controllers/application_controller.rb'
|
285
|
+
#
|
286
|
+
def remove_file(path, config = {})
|
287
|
+
return unless behavior == :invoke
|
288
|
+
path = File.expand_path(path, destination_root)
|
289
|
+
|
290
|
+
say_status :remove, relative_to_original_destination_root(path), config.fetch(:verbose, true)
|
291
|
+
::FileUtils.rm_rf(path) if !options[:pretend] && File.exist?(path)
|
292
|
+
end
|
293
|
+
alias_method :remove_dir, :remove_file
|
294
|
+
|
295
|
+
attr_accessor :output_buffer
|
296
|
+
private :output_buffer, :output_buffer=
|
297
|
+
|
298
|
+
private
|
299
|
+
|
300
|
+
def concat(string)
|
301
|
+
@output_buffer.concat(string)
|
302
|
+
end
|
303
|
+
|
304
|
+
def capture(*args, &block)
|
305
|
+
with_output_buffer { block.call(*args) }
|
306
|
+
end
|
307
|
+
|
308
|
+
def with_output_buffer(buf = "") #:nodoc:
|
309
|
+
self.output_buffer, old_buffer = buf, output_buffer
|
310
|
+
yield
|
311
|
+
output_buffer
|
312
|
+
ensure
|
313
|
+
self.output_buffer = old_buffer
|
314
|
+
end
|
315
|
+
end
|
316
|
+
end
|