sublimetheme 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +230 -0
- data/Rakefile +8 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/sublimetheme.rb +6832 -0
- data/lib/sublimetheme/version.rb +3 -0
- data/path/bin/htmldiff +25 -0
- data/path/bin/htmldiff.bat +6 -0
- data/path/bin/ldiff +25 -0
- data/path/bin/ldiff.bat +6 -0
- data/path/bin/rspec +23 -0
- data/path/bin/rspec.bat +6 -0
- data/path/cache/diff-lcs-1.2.5.gem +0 -0
- data/path/cache/rspec-3.3.0.gem +0 -0
- data/path/cache/rspec-core-3.3.2.gem +0 -0
- data/path/cache/rspec-expectations-3.3.1.gem +0 -0
- data/path/cache/rspec-mocks-3.3.2.gem +0 -0
- data/path/cache/rspec-support-3.3.0.gem +0 -0
- data/path/gems/diff-lcs-1.2.5/.autotest +3 -0
- data/path/gems/diff-lcs-1.2.5/.gemtest +0 -0
- data/path/gems/diff-lcs-1.2.5/.hoerc +2 -0
- data/path/gems/diff-lcs-1.2.5/.rspec +2 -0
- data/path/gems/diff-lcs-1.2.5/.travis.yml +22 -0
- data/path/gems/diff-lcs-1.2.5/Contributing.rdoc +64 -0
- data/path/gems/diff-lcs-1.2.5/Gemfile +20 -0
- data/path/gems/diff-lcs-1.2.5/History.rdoc +152 -0
- data/path/gems/diff-lcs-1.2.5/License.rdoc +39 -0
- data/path/gems/diff-lcs-1.2.5/Manifest.txt +38 -0
- data/path/gems/diff-lcs-1.2.5/README.rdoc +85 -0
- data/path/gems/diff-lcs-1.2.5/Rakefile +41 -0
- data/path/gems/diff-lcs-1.2.5/autotest/discover.rb +1 -0
- data/path/gems/diff-lcs-1.2.5/bin/htmldiff +32 -0
- data/path/gems/diff-lcs-1.2.5/bin/ldiff +6 -0
- data/path/gems/diff-lcs-1.2.5/docs/COPYING.txt +339 -0
- data/path/gems/diff-lcs-1.2.5/docs/artistic.txt +127 -0
- data/path/gems/diff-lcs-1.2.5/lib/diff-lcs.rb +3 -0
- data/path/gems/diff-lcs-1.2.5/lib/diff/lcs.rb +805 -0
- data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/array.rb +7 -0
- data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/block.rb +37 -0
- data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/callbacks.rb +322 -0
- data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/change.rb +177 -0
- data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/htmldiff.rb +149 -0
- data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/hunk.rb +276 -0
- data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/internals.rb +301 -0
- data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/ldiff.rb +195 -0
- data/path/gems/diff-lcs-1.2.5/lib/diff/lcs/string.rb +5 -0
- data/path/gems/diff-lcs-1.2.5/spec/change_spec.rb +65 -0
- data/path/gems/diff-lcs-1.2.5/spec/diff_spec.rb +47 -0
- data/path/gems/diff-lcs-1.2.5/spec/hunk_spec.rb +72 -0
- data/path/gems/diff-lcs-1.2.5/spec/issues_spec.rb +24 -0
- data/path/gems/diff-lcs-1.2.5/spec/lcs_spec.rb +54 -0
- data/path/gems/diff-lcs-1.2.5/spec/patch_spec.rb +414 -0
- data/path/gems/diff-lcs-1.2.5/spec/sdiff_spec.rb +214 -0
- data/path/gems/diff-lcs-1.2.5/spec/spec_helper.rb +290 -0
- data/path/gems/diff-lcs-1.2.5/spec/traverse_balanced_spec.rb +310 -0
- data/path/gems/diff-lcs-1.2.5/spec/traverse_sequences_spec.rb +139 -0
- data/path/gems/rspec-3.3.0/License.txt +24 -0
- data/path/gems/rspec-3.3.0/README.md +34 -0
- data/path/gems/rspec-3.3.0/lib/rspec.rb +3 -0
- data/path/gems/rspec-3.3.0/lib/rspec/version.rb +5 -0
- data/path/gems/rspec-core-3.3.2/.document +5 -0
- data/path/gems/rspec-core-3.3.2/.yardopts +8 -0
- data/path/gems/rspec-core-3.3.2/Changelog.md +1856 -0
- data/path/gems/rspec-core-3.3.2/License.txt +25 -0
- data/path/gems/rspec-core-3.3.2/README.md +369 -0
- data/path/gems/rspec-core-3.3.2/exe/rspec +4 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/autorun.rb +3 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core.rb +181 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/backtrace_formatter.rb +64 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/bisect/coordinator.rb +66 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/bisect/example_minimizer.rb +130 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/bisect/runner.rb +139 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/bisect/server.rb +61 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/bisect/subset_enumerator.rb +39 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb +1807 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/configuration_options.rb +191 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/drb.rb +111 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/dsl.rb +96 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/example.rb +573 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/example_group.rb +796 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/example_status_persister.rb +235 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/filter_manager.rb +231 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/flat_map.rb +20 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters.rb +254 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/base_formatter.rb +70 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/base_text_formatter.rb +77 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/bisect_formatter.rb +68 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/bisect_progress_formatter.rb +115 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/console_codes.rb +65 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/deprecation_formatter.rb +223 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/documentation_formatter.rb +70 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/exception_presenter.rb +393 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/helpers.rb +109 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/html_formatter.rb +151 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/html_printer.rb +415 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/json_formatter.rb +96 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/profile_formatter.rb +68 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/progress_formatter.rb +28 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/protocol.rb +172 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/formatters/snippet_extractor.rb +116 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/hooks.rb +638 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/memoized_helpers.rb +532 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/metadata.rb +490 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/metadata_filter.rb +235 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/mocking_adapters/null.rb +14 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/mocking_adapters/rr.rb +31 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/mutex.rb +63 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/notifications.rb +498 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/option_parser.rb +301 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/ordering.rb +158 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/pending.rb +165 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/profiler.rb +32 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/project_initializer.rb +48 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/project_initializer/.rspec +2 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/project_initializer/spec/spec_helper.rb +96 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/rake_task.rb +158 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/reentrant_mutex.rb +52 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/reporter.rb +220 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/ruby_project.rb +53 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb +179 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/sandbox.rb +37 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/set.rb +49 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/shared_context.rb +55 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/shared_example_group.rb +210 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/shell_escape.rb +49 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/version.rb +9 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/warnings.rb +40 -0
- data/path/gems/rspec-core-3.3.2/lib/rspec/core/world.rb +178 -0
- data/path/gems/rspec-expectations-3.3.1/.document +5 -0
- data/path/gems/rspec-expectations-3.3.1/.yardopts +6 -0
- data/path/gems/rspec-expectations-3.3.1/Changelog.md +953 -0
- data/path/gems/rspec-expectations-3.3.1/License.txt +24 -0
- data/path/gems/rspec-expectations-3.3.1/README.md +289 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations.rb +81 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/configuration.rb +164 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/expectation_target.rb +113 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/fail_with.rb +31 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/failure_aggregator.rb +194 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/handler.rb +170 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/minitest_integration.rb +31 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/syntax.rb +132 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/expectations/version.rb +8 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers.rb +1009 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/aliased_matcher.rb +116 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in.rb +52 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/all.rb +85 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/base_matcher.rb +181 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/be.rb +285 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/be_between.rb +77 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/be_instance_of.rb +22 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/be_kind_of.rb +16 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/be_within.rb +72 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/change.rb +337 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/compound.rb +293 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/contain_exactly.rb +253 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/cover.rb +24 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/eq.rb +40 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/eql.rb +34 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/equal.rb +81 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/exist.rb +86 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/has.rb +103 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/have_attributes.rb +114 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/include.rb +130 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/match.rb +37 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/operators.rb +128 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/output.rb +200 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/raise_error.rb +216 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/respond_to.rb +90 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/satisfy.rb +37 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/start_or_end_with.rb +94 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/throw_symbol.rb +132 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/built_in/yield.rb +418 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/composable.rb +184 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/dsl.rb +453 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/english_phrasing.rb +42 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +73 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/fail_matchers.rb +42 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/generated_descriptions.rb +42 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/matcher_delegator.rb +35 -0
- data/path/gems/rspec-expectations-3.3.1/lib/rspec/matchers/matcher_protocol.rb +99 -0
- data/path/gems/rspec-mocks-3.3.2/.document +5 -0
- data/path/gems/rspec-mocks-3.3.2/.yardopts +6 -0
- data/path/gems/rspec-mocks-3.3.2/Changelog.md +965 -0
- data/path/gems/rspec-mocks-3.3.2/License.txt +24 -0
- data/path/gems/rspec-mocks-3.3.2/README.md +430 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks.rb +126 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance.rb +11 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/chain.rb +110 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/error_generator.rb +31 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/expect_chain_chain.rb +35 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/expectation_chain.rb +48 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/proxy.rb +116 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/recorder.rb +264 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/stub_chain.rb +46 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/any_instance/stub_chain_chain.rb +27 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/argument_list_matcher.rb +100 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/argument_matchers.rb +320 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/configuration.rb +188 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/error_generator.rb +362 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/example_methods.rb +421 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/instance_method_stasher.rb +135 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/marshal_extension.rb +41 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/have_received.rb +116 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/receive.rb +130 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/receive_message_chain.rb +80 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/matchers/receive_messages.rb +75 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/message_chain.rb +87 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/message_expectation.rb +717 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/method_double.rb +287 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/method_reference.rb +192 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/mutate_const.rb +335 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/mutex.rb +73 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/object_reference.rb +149 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/order_group.rb +81 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/proxy.rb +439 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/reentrant_mutex.rb +53 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/space.rb +238 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/standalone.rb +3 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/syntax.rb +325 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/targets.rb +97 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/test_double.rb +170 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/verifying_double.rb +129 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/verifying_message_expecation.rb +54 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/verifying_proxy.rb +213 -0
- data/path/gems/rspec-mocks-3.3.2/lib/rspec/mocks/version.rb +9 -0
- data/path/gems/rspec-support-3.3.0/Changelog.md +125 -0
- data/path/gems/rspec-support-3.3.0/LICENSE.txt +22 -0
- data/path/gems/rspec-support-3.3.0/README.md +26 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support.rb +111 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/caller_filter.rb +83 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/differ.rb +215 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/directory_maker.rb +63 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/encoded_string.rb +155 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/fuzzy_matcher.rb +48 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/hunk_generator.rb +47 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/matcher_definition.rb +42 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/method_signature_verifier.rb +273 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/object_formatter.rb +93 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/recursive_const_methods.rb +76 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/ruby_features.rb +118 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec.rb +81 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/deprecation_helpers.rb +64 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/formatting_support.rb +9 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/in_sub_process.rb +52 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/library_wide_checks.rb +145 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/shell_out.rb +71 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/stderr_splitter.rb +63 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/string_matcher.rb +46 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/with_isolated_directory.rb +9 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/spec/with_isolated_stderr.rb +13 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/version.rb +7 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/version_checker.rb +53 -0
- data/path/gems/rspec-support-3.3.0/lib/rspec/support/warnings.rb +39 -0
- data/path/specifications/diff-lcs-1.2.5.gemspec +68 -0
- data/path/specifications/rspec-3.3.0.gemspec +42 -0
- data/path/specifications/rspec-core-3.3.2.gemspec +68 -0
- data/path/specifications/rspec-expectations-3.3.1.gemspec +50 -0
- data/path/specifications/rspec-mocks-3.3.2.gemspec +53 -0
- data/path/specifications/rspec-support-3.3.0.gemspec +38 -0
- data/sublimetheme.gemspec +32 -0
- metadata +363 -0
@@ -0,0 +1,96 @@
|
|
1
|
+
RSpec::Support.require_rspec_core "formatters/base_formatter"
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
module RSpec
|
5
|
+
module Core
|
6
|
+
module Formatters
|
7
|
+
# @private
|
8
|
+
class JsonFormatter < BaseFormatter
|
9
|
+
Formatters.register self, :message, :dump_summary, :dump_profile, :stop, :close
|
10
|
+
|
11
|
+
attr_reader :output_hash
|
12
|
+
|
13
|
+
def initialize(output)
|
14
|
+
super
|
15
|
+
@output_hash = {
|
16
|
+
:version => RSpec::Core::Version::STRING
|
17
|
+
}
|
18
|
+
end
|
19
|
+
|
20
|
+
def message(notification)
|
21
|
+
(@output_hash[:messages] ||= []) << notification.message
|
22
|
+
end
|
23
|
+
|
24
|
+
def dump_summary(summary)
|
25
|
+
@output_hash[:summary] = {
|
26
|
+
:duration => summary.duration,
|
27
|
+
:example_count => summary.example_count,
|
28
|
+
:failure_count => summary.failure_count,
|
29
|
+
:pending_count => summary.pending_count
|
30
|
+
}
|
31
|
+
@output_hash[:summary_line] = summary.totals_line
|
32
|
+
end
|
33
|
+
|
34
|
+
def stop(notification)
|
35
|
+
@output_hash[:examples] = notification.examples.map do |example|
|
36
|
+
format_example(example).tap do |hash|
|
37
|
+
e = example.exception
|
38
|
+
if e
|
39
|
+
hash[:exception] = {
|
40
|
+
:class => e.class.name,
|
41
|
+
:message => e.message,
|
42
|
+
:backtrace => e.backtrace,
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def close(_notification)
|
50
|
+
output.write @output_hash.to_json
|
51
|
+
output.close if IO === output && output != $stdout
|
52
|
+
end
|
53
|
+
|
54
|
+
def dump_profile(profile)
|
55
|
+
@output_hash[:profile] = {}
|
56
|
+
dump_profile_slowest_examples(profile)
|
57
|
+
dump_profile_slowest_example_groups(profile)
|
58
|
+
end
|
59
|
+
|
60
|
+
# @api private
|
61
|
+
def dump_profile_slowest_examples(profile)
|
62
|
+
@output_hash[:profile] = {}
|
63
|
+
@output_hash[:profile][:examples] = profile.slowest_examples.map do |example|
|
64
|
+
format_example(example).tap do |hash|
|
65
|
+
hash[:run_time] = example.execution_result.run_time
|
66
|
+
end
|
67
|
+
end
|
68
|
+
@output_hash[:profile][:slowest] = profile.slow_duration
|
69
|
+
@output_hash[:profile][:total] = profile.duration
|
70
|
+
end
|
71
|
+
|
72
|
+
# @api private
|
73
|
+
def dump_profile_slowest_example_groups(profile)
|
74
|
+
@output_hash[:profile] ||= {}
|
75
|
+
@output_hash[:profile][:groups] = profile.slowest_groups.map do |loc, hash|
|
76
|
+
hash.update(:location => loc)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
private
|
81
|
+
|
82
|
+
def format_example(example)
|
83
|
+
{
|
84
|
+
:description => example.description,
|
85
|
+
:full_description => example.full_description,
|
86
|
+
:status => example.execution_result.status.to_s,
|
87
|
+
:file_path => example.metadata[:file_path],
|
88
|
+
:line_number => example.metadata[:line_number],
|
89
|
+
:run_time => example.execution_result.run_time,
|
90
|
+
:pending_message => example.execution_result.pending_message,
|
91
|
+
}
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
RSpec::Support.require_rspec_core "formatters/console_codes"
|
2
|
+
|
3
|
+
module RSpec
|
4
|
+
module Core
|
5
|
+
module Formatters
|
6
|
+
# @api private
|
7
|
+
# Formatter for providing profile output.
|
8
|
+
class ProfileFormatter
|
9
|
+
Formatters.register self, :dump_profile
|
10
|
+
|
11
|
+
def initialize(output)
|
12
|
+
@output = output
|
13
|
+
end
|
14
|
+
|
15
|
+
# @private
|
16
|
+
attr_reader :output
|
17
|
+
|
18
|
+
# @api public
|
19
|
+
#
|
20
|
+
# This method is invoked after the dumping the summary if profiling is
|
21
|
+
# enabled.
|
22
|
+
#
|
23
|
+
# @param profile [ProfileNotification] containing duration,
|
24
|
+
# slowest_examples and slowest_example_groups
|
25
|
+
def dump_profile(profile)
|
26
|
+
dump_profile_slowest_examples(profile)
|
27
|
+
dump_profile_slowest_example_groups(profile)
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def dump_profile_slowest_examples(profile)
|
33
|
+
@output.puts "\nTop #{profile.slowest_examples.size} slowest " \
|
34
|
+
"examples (#{Helpers.format_seconds(profile.slow_duration)} " \
|
35
|
+
"seconds, #{profile.percentage}% of total time):\n"
|
36
|
+
|
37
|
+
profile.slowest_examples.each do |example|
|
38
|
+
@output.puts " #{example.full_description}"
|
39
|
+
@output.puts " #{bold(Helpers.format_seconds(example.execution_result.run_time))} " \
|
40
|
+
"#{bold("seconds")} #{format_caller(example.location)}"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def dump_profile_slowest_example_groups(profile)
|
45
|
+
return if profile.slowest_groups.empty?
|
46
|
+
|
47
|
+
@output.puts "\nTop #{profile.slowest_groups.size} slowest example groups:"
|
48
|
+
profile.slowest_groups.each do |loc, hash|
|
49
|
+
average = "#{bold(Helpers.format_seconds(hash[:average]))} #{bold("seconds")} average"
|
50
|
+
total = "#{Helpers.format_seconds(hash[:total_time])} seconds"
|
51
|
+
count = Helpers.pluralize(hash[:count], "example")
|
52
|
+
@output.puts " #{hash[:description]}"
|
53
|
+
@output.puts " #{average} (#{total} / #{count}) #{loc}"
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def format_caller(caller_info)
|
58
|
+
RSpec.configuration.backtrace_formatter.backtrace_line(
|
59
|
+
caller_info.to_s.split(':in `block').first)
|
60
|
+
end
|
61
|
+
|
62
|
+
def bold(text)
|
63
|
+
ConsoleCodes.wrap(text, :bold)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
RSpec::Support.require_rspec_core "formatters/base_text_formatter"
|
2
|
+
|
3
|
+
module RSpec
|
4
|
+
module Core
|
5
|
+
module Formatters
|
6
|
+
# @private
|
7
|
+
class ProgressFormatter < BaseTextFormatter
|
8
|
+
Formatters.register self, :example_passed, :example_pending, :example_failed, :start_dump
|
9
|
+
|
10
|
+
def example_passed(_notification)
|
11
|
+
output.print ConsoleCodes.wrap('.', :success)
|
12
|
+
end
|
13
|
+
|
14
|
+
def example_pending(_notification)
|
15
|
+
output.print ConsoleCodes.wrap('*', :pending)
|
16
|
+
end
|
17
|
+
|
18
|
+
def example_failed(_notification)
|
19
|
+
output.print ConsoleCodes.wrap('F', :failure)
|
20
|
+
end
|
21
|
+
|
22
|
+
def start_dump(_notification)
|
23
|
+
output.puts
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,172 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Core
|
3
|
+
module Formatters
|
4
|
+
# This class isn't loaded at runtime but serves to document all of the
|
5
|
+
# notifications implemented as part of the standard interface. The
|
6
|
+
# reporter will issue these during a normal test suite run, but a
|
7
|
+
# formatter will only receive those notifications it has registered
|
8
|
+
# itself to receive. To register a formatter call:
|
9
|
+
#
|
10
|
+
# `::RSpec::Core::Formatters.register class, :list, :of, :notifications`
|
11
|
+
#
|
12
|
+
# e.g.
|
13
|
+
#
|
14
|
+
# `::RSpec::Core::Formatters.register self, :start, :example_started`
|
15
|
+
#
|
16
|
+
# @see RSpec::Core::Formatters::BaseFormatter
|
17
|
+
# @see RSpec::Core::Formatters::BaseTextFormatter
|
18
|
+
# @see RSpec::Core::Reporter
|
19
|
+
class Protocol
|
20
|
+
# @method initialize
|
21
|
+
# @api public
|
22
|
+
#
|
23
|
+
# @param output [IO] the formatter output
|
24
|
+
|
25
|
+
# @method start
|
26
|
+
# @api public
|
27
|
+
# @group Suite Notifications
|
28
|
+
#
|
29
|
+
# This method is invoked before any examples are run, right after
|
30
|
+
# they have all been collected. This can be useful for special
|
31
|
+
# formatters that need to provide progress on feedback (graphical ones).
|
32
|
+
#
|
33
|
+
# This will only be invoked once, and the next one to be invoked
|
34
|
+
# is {#example_group_started}.
|
35
|
+
#
|
36
|
+
# @param notification [StartNotification]
|
37
|
+
|
38
|
+
# @method example_group_started
|
39
|
+
# @api public
|
40
|
+
# @group Group Notifications
|
41
|
+
#
|
42
|
+
# This method is invoked at the beginning of the execution of each
|
43
|
+
# example group.
|
44
|
+
#
|
45
|
+
# The next method to be invoked after this is {#example_passed},
|
46
|
+
# {#example_pending}, or {#example_group_finished}.
|
47
|
+
#
|
48
|
+
# @param notification [GroupNotification] containing example_group
|
49
|
+
# subclass of `RSpec::Core::ExampleGroup`
|
50
|
+
|
51
|
+
# @method example_group_finished
|
52
|
+
# @api public
|
53
|
+
# @group Group Notifications
|
54
|
+
#
|
55
|
+
# Invoked at the end of the execution of each example group.
|
56
|
+
#
|
57
|
+
# @param notification [GroupNotification] containing example_group
|
58
|
+
# subclass of `RSpec::Core::ExampleGroup`
|
59
|
+
|
60
|
+
# @method example_started
|
61
|
+
# @api public
|
62
|
+
# @group Example Notifications
|
63
|
+
#
|
64
|
+
# Invoked at the beginning of the execution of each example.
|
65
|
+
#
|
66
|
+
# @param notification [ExampleNotification] containing example subclass
|
67
|
+
# of `RSpec::Core::Example`
|
68
|
+
|
69
|
+
# @method example_passed
|
70
|
+
# @api public
|
71
|
+
# @group Example Notifications
|
72
|
+
#
|
73
|
+
# Invoked when an example passes.
|
74
|
+
#
|
75
|
+
# @param notification [ExampleNotification] containing example subclass
|
76
|
+
# of `RSpec::Core::Example`
|
77
|
+
|
78
|
+
# @method example_pending
|
79
|
+
# @api public
|
80
|
+
# @group Example Notifications
|
81
|
+
#
|
82
|
+
# Invoked when an example is pending.
|
83
|
+
#
|
84
|
+
# @param notification [ExampleNotification] containing example subclass
|
85
|
+
# of `RSpec::Core::Example`
|
86
|
+
|
87
|
+
# @method example_failed
|
88
|
+
# @api public
|
89
|
+
# @group Example Notifications
|
90
|
+
#
|
91
|
+
# Invoked when an example fails.
|
92
|
+
#
|
93
|
+
# @param notification [ExampleNotification] containing example subclass
|
94
|
+
# of `RSpec::Core::Example`
|
95
|
+
|
96
|
+
# @method message
|
97
|
+
# @api public
|
98
|
+
# @group Suite Notifications
|
99
|
+
#
|
100
|
+
# Used by the reporter to send messages to the output stream.
|
101
|
+
#
|
102
|
+
# @param notification [MessageNotification] containing message
|
103
|
+
|
104
|
+
# @method stop
|
105
|
+
# @api public
|
106
|
+
# @group Suite Notifications
|
107
|
+
#
|
108
|
+
# Invoked after all examples have executed, before dumping post-run
|
109
|
+
# reports.
|
110
|
+
#
|
111
|
+
# @param notification [NullNotification]
|
112
|
+
|
113
|
+
# @method start_dump
|
114
|
+
# @api public
|
115
|
+
# @group Suite Notifications
|
116
|
+
#
|
117
|
+
# This method is invoked after all of the examples have executed. The
|
118
|
+
# next method to be invoked after this one is {#dump_failures}
|
119
|
+
# (BaseTextFormatter then calls {#dump_failures} once for each failed
|
120
|
+
# example).
|
121
|
+
#
|
122
|
+
# @param notification [NullNotification]
|
123
|
+
|
124
|
+
# @method dump_failures
|
125
|
+
# @api public
|
126
|
+
# @group Suite Notifications
|
127
|
+
#
|
128
|
+
# Dumps detailed information about each example failure.
|
129
|
+
#
|
130
|
+
# @param notification [NullNotification]
|
131
|
+
|
132
|
+
# @method dump_summary
|
133
|
+
# @api public
|
134
|
+
# @group Suite Notifications
|
135
|
+
#
|
136
|
+
# This method is invoked after the dumping of examples and failures.
|
137
|
+
# Each parameter is assigned to a corresponding attribute.
|
138
|
+
#
|
139
|
+
# @param summary [SummaryNotification] containing duration,
|
140
|
+
# example_count, failure_count and pending_count
|
141
|
+
|
142
|
+
# @method dump_profile
|
143
|
+
# @api public
|
144
|
+
# @group Suite Notifications
|
145
|
+
#
|
146
|
+
# This method is invoked after the dumping the summary if profiling is
|
147
|
+
# enabled.
|
148
|
+
#
|
149
|
+
# @param profile [ProfileNotification] containing duration,
|
150
|
+
# slowest_examples and slowest_example_groups
|
151
|
+
|
152
|
+
# @method dump_pending
|
153
|
+
# @api public
|
154
|
+
# @group Suite Notifications
|
155
|
+
#
|
156
|
+
# Outputs a report of pending examples. This gets invoked
|
157
|
+
# after the summary if option is set to do so.
|
158
|
+
#
|
159
|
+
# @param notification [NullNotification]
|
160
|
+
|
161
|
+
# @method close
|
162
|
+
# @api public
|
163
|
+
# @group Suite Notifications
|
164
|
+
#
|
165
|
+
# Invoked at the very end, `close` allows the formatter to clean
|
166
|
+
# up resources, e.g. open streams, etc.
|
167
|
+
#
|
168
|
+
# @param notification [NullNotification]
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
172
|
+
end
|
@@ -0,0 +1,116 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Core
|
3
|
+
module Formatters
|
4
|
+
# @api private
|
5
|
+
#
|
6
|
+
# Extracts code snippets by looking at the backtrace of the passed error
|
7
|
+
# and applies synax highlighting and line numbers using html.
|
8
|
+
class SnippetExtractor
|
9
|
+
# @private
|
10
|
+
module NullConverter
|
11
|
+
def self.convert(code)
|
12
|
+
%Q(#{code}\n<span class="comment"># Install the coderay gem to get syntax highlighting</span>)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
# @private
|
17
|
+
module CoderayConverter
|
18
|
+
def self.convert(code)
|
19
|
+
CodeRay.scan(code, :ruby).html(:line_numbers => false)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# rubocop:disable Style/ClassVars
|
24
|
+
@@converter = NullConverter
|
25
|
+
begin
|
26
|
+
require 'coderay'
|
27
|
+
@@converter = CoderayConverter
|
28
|
+
# rubocop:disable Lint/HandleExceptions
|
29
|
+
rescue LoadError
|
30
|
+
# it'll fall back to the NullConverter assigned above
|
31
|
+
# rubocop:enable Lint/HandleExceptions
|
32
|
+
end
|
33
|
+
|
34
|
+
# rubocop:enable Style/ClassVars
|
35
|
+
|
36
|
+
# @api private
|
37
|
+
#
|
38
|
+
# Extract lines of code corresponding to a backtrace.
|
39
|
+
#
|
40
|
+
# @param backtrace [String] the backtrace from a test failure
|
41
|
+
# @return [String] highlighted code snippet indicating where the test
|
42
|
+
# failure occured
|
43
|
+
#
|
44
|
+
# @see #post_process
|
45
|
+
def snippet(backtrace)
|
46
|
+
raw_code, line = snippet_for(backtrace[0])
|
47
|
+
highlighted = @@converter.convert(raw_code)
|
48
|
+
post_process(highlighted, line)
|
49
|
+
end
|
50
|
+
# rubocop:enable Style/ClassVars
|
51
|
+
|
52
|
+
# @api private
|
53
|
+
#
|
54
|
+
# Create a snippet from a line of code.
|
55
|
+
#
|
56
|
+
# @param error_line [String] file name with line number (i.e.
|
57
|
+
# 'foo_spec.rb:12')
|
58
|
+
# @return [String] lines around the target line within the file
|
59
|
+
#
|
60
|
+
# @see #lines_around
|
61
|
+
def snippet_for(error_line)
|
62
|
+
if error_line =~ /(.*):(\d+)/
|
63
|
+
file = Regexp.last_match[1]
|
64
|
+
line = Regexp.last_match[2].to_i
|
65
|
+
[lines_around(file, line), line]
|
66
|
+
else
|
67
|
+
["# Couldn't get snippet for #{error_line}", 1]
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# @api private
|
72
|
+
#
|
73
|
+
# Extract lines of code centered around a particular line within a
|
74
|
+
# source file.
|
75
|
+
#
|
76
|
+
# @param file [String] filename
|
77
|
+
# @param line [Fixnum] line number
|
78
|
+
# @return [String] lines around the target line within the file (2 above
|
79
|
+
# and 1 below).
|
80
|
+
def lines_around(file, line)
|
81
|
+
if File.file?(file)
|
82
|
+
lines = File.read(file).split("\n")
|
83
|
+
min = [0, line - 3].max
|
84
|
+
max = [line + 1, lines.length - 1].min
|
85
|
+
selected_lines = []
|
86
|
+
selected_lines.join("\n")
|
87
|
+
lines[min..max].join("\n")
|
88
|
+
else
|
89
|
+
"# Couldn't get snippet for #{file}"
|
90
|
+
end
|
91
|
+
rescue SecurityError
|
92
|
+
"# Couldn't get snippet for #{file}"
|
93
|
+
end
|
94
|
+
|
95
|
+
# @api private
|
96
|
+
#
|
97
|
+
# Adds line numbers to all lines and highlights the line where the
|
98
|
+
# failure occurred using html `span` tags.
|
99
|
+
#
|
100
|
+
# @param highlighted [String] syntax-highlighted snippet surrounding the
|
101
|
+
# offending line of code
|
102
|
+
# @param offending_line [Fixnum] line where failure occured
|
103
|
+
# @return [String] completed snippet
|
104
|
+
def post_process(highlighted, offending_line)
|
105
|
+
new_lines = []
|
106
|
+
highlighted.split("\n").each_with_index do |line, i|
|
107
|
+
new_line = "<span class=\"linenum\">#{offending_line + i - 2}</span>#{line}"
|
108
|
+
new_line = "<span class=\"offending\">#{new_line}</span>" if i == 2
|
109
|
+
new_lines << new_line
|
110
|
+
end
|
111
|
+
new_lines.join("\n")
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|