spring-commands-rspec-1.0.4/0000755000175100017510000000000013626236007014762 5ustar pravipravispring-commands-rspec-1.0.4/.gitignore0000644000175100017510000000023213626236007016747 0ustar pravipravi*.gem *.rbc .bundle .config .yardoc Gemfile.lock InstalledFiles _yardoc coverage doc/ lib/bundler/man pkg rdoc spec/reports test/tmp test/version_tmp tmp spring-commands-rspec-1.0.4/Rakefile0000644000175100017510000000003413626236007016424 0ustar pravipravirequire "bundler/gem_tasks" spring-commands-rspec-1.0.4/lib/0000755000175100017510000000000013626236007015530 5ustar pravipravispring-commands-rspec-1.0.4/lib/spring-commands-rspec.rb0000644000175100017510000000011313626236007022263 0ustar pravipraviif defined?(Spring.register_command) require "spring/commands/rspec" end spring-commands-rspec-1.0.4/lib/spring/0000755000175100017510000000000013626236007017032 5ustar pravipravispring-commands-rspec-1.0.4/lib/spring/commands/0000755000175100017510000000000013626236007020633 5ustar pravipravispring-commands-rspec-1.0.4/lib/spring/commands/rspec.rb0000644000175100017510000000076013626236007022277 0ustar pravipravimodule Spring module Commands class RSpec def env(*) "test" end def exec_name "rspec" end def gem_name "rspec-core" end def call ::RSpec.configuration.start_time = Time.now if defined?(::RSpec.configuration.start_time) load Gem.bin_path(gem_name, exec_name) end end Spring.register_command "rspec", RSpec.new Spring::Commands::Rake.environment_matchers[/^spec($|:)/] = "test" end end spring-commands-rspec-1.0.4/README.md0000644000175100017510000000054613626236007016246 0ustar pravipravi# spring-commands-rspec This gem implements the `rspec` command for [Spring](https://github.com/jonleighton/spring). ## Usage Add to your Gemfile: ``` ruby gem "spring-commands-rspec", group: :development ``` If you're using spring binstubs, run `bundle exec spring binstub rspec` to generate `bin/rspec`. Then run `spring stop` to pick up the changes. spring-commands-rspec-1.0.4/spring-commands-rspec.gemspec0000644000175100017510000000157613626236007022553 0ustar pravipravi# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) Gem::Specification.new do |spec| spec.name = "spring-commands-rspec" spec.version = "1.0.4" spec.authors = ["Jon Leighton"] spec.email = ["j@jonathanleighton.com"] spec.description = %q{rspec command for spring} spec.summary = %q{rspec command for spring} spec.homepage = "https://github.com/jonleighton/spring-commands-rspec" spec.license = "MIT" spec.files = `git ls-files`.split($/) spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] spec.add_dependency "spring", ">= 0.9.1" spec.add_development_dependency "bundler", "~> 1.3" spec.add_development_dependency "rake" end spring-commands-rspec-1.0.4/LICENSE.txt0000644000175100017510000000205513626236007016607 0ustar pravipraviCopyright (c) 2013 Jon Leighton MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.