Permalink
Browse files

Drop Ruby 1.8 support and depends on Guard 2.0

  • Loading branch information...
1 parent 5dab15b commit 02f03f338fced87a4996b7d3752adee298a40c97 @rymai rymai committed Sep 25, 2013
View
@@ -1,12 +1,9 @@
language: ruby
bundler_args: --without development
rvm:
- - 1.8.7
- 1.9.3
- 2.0.0
- - jruby-18mode
- jruby-19mode
- - rbx-18mode
- rbx-19mode
notifications:
recipients:
View
@@ -1,221 +1 @@
-## Unreleased Changes
-
-[Full Changelog](https://github.com/guard/guard-minitest/compare/v1.0.0...master)
-
-### Improvement
-
-* #44 Require the `lib` directory by default (also prevent an issue with simplecov). ([@rymai][])
-
-## 1.0.0 - May 8, 2013
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.8.0...v1.0.0)
-
-### New feature
-
-- [#40][], [#41][] Add support for running tests via `spring`. ([@pgaertig][])
-
-### Improvements
-
-* Get rid of `autoload`. ([@rymai][])
-
-## 0.8.0 - March 24, 2013
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.7.0...v0.8.0)
-
-### New feature
-
-* [#38][] Add support for running tests via `zeus`. ([@djmaze][])
-
-## 0.7.0 - November 6, 2012
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.6.0...v0.7.0)
-
-### New feature
-
-* [#35][] Support `include:` option to extend the load path of the test runner. ([@amiel][])
-
-## 0.6.0 - November 3, 2012
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.5.0...v0.6.0)
-
-### New feature
-
-* [#34][] Support for `*_tests.rb`. ([@pastorius][])
-
-## 0.5.0 - June 2, 2012
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.4.3...v0.5.0)
-
-### Bug fix
-
-* [#24][] Add note for Rails projects using profile/benchmark tests in README. ([@coderjoe][])
-
-### Changes
-
-* Updat for Guard 1.1. ([@rymai][])
-
-### New feature
-
-* [#20][] Add the `:rubygems` options for projects that don't use Bundler. ([@rymai][])
-
-## 0.4.3 - December 19, 2011
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.4.2...v0.4.3)
-
-### Bug fix
-
-* [#21][] `Guard::Test::Notifier.notify` did not use :failed image if test results included errors but NO failures. ([@carlost][])
-
-## 0.4.2 - November 19, 2011
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.4.1...v0.4.2)
-
-### Bug fix
-
-* [#19][] Fix "superclass mismatch for class Test (TypeError)" thanks to [@gertas][]. ([@rymai][])
-
-## 0.4.1 - November 3, 2011
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.4.0...v0.4.1)
-
-### Bugs fixes
-
-* [#18][] Fix a conflict with test_benchmark that was preventing guard-test from running. ([@rymai][])
-* [#11][] Fix a "No such file to load -- guard/notifier" when running guard without bundler. ([@rymai][])
-
-## 0.4.0 - September 29, 2011
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.3.1...v0.4.0)
-
-### Regression
-
-* Remove support of [turn](https://github.com/guard/guard-spork) gem since "Turn is no longer compatible with TestUnit 2.0+. TestUnit and MiniTest are deverging and after some consideration it was decided that Turn's goal is to support Ruby's native test framework, whatever it may be." quoted from Turn's [release.txt](https://github.com/TwP/turn/blob/master/Release.txt). ([@rymai][])
-
-### New feature
-
-* New `:drb` option enabling the use of [`spork-testunit`](https://github.com/timcharper/spork-testunit) gem (be sure to use [guard-spork](https://github.com/guard/guard-spork) as well). ([@rymai][])
-
-## 0.3.1 - September 11, 2011
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.3.0...v0.3.1)
-
-### New feature
-
-* [#13][] New `test_paths` option to look for test files under other paths than `test`. ([@Ask11][])
-
-### Improvement
-
-* [#15][] Simplify some checks. ([@dasch][])
-
-## 0.3.0 - June 14, 2011
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.3.0.rc5...v0.3.0)
-
-### Improvement
-
-* Internal cleaning. ([@rymai][])
-
-## 0.3.0.rc5 - June 9, 2011
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.3.0.rc4...v0.3.0.rc5)
-
-### Bugs fixes
-
-* Fix bug that was preventing tests from running. ([@rymai][])
-* Fix the `fastfail` runner that was displaying a green dot even for a failing test. ([@rymai][])
-* Remove the `:notification` option. Use the new Guard method instead. ([@rymai][])
-
-### New feature
-
-* Turn seems to work fine now... ([@rymai][])
-
-### Improvement
-
-* Consider `test_*.rb` as test files as well. ([@uk-ar][])
-
-## 0.3.0.rc4 - June 3, 2011
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.3.0.rc3...v0.3.0.rc4)
-
-### Bugs fix
-
-* Add a require that was making the guard be fired by Guard! :'( ([@rymai][])
-
-## 0.3.0.rc3 - June 3, 2011
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.3.0.rc2...v0.3.0.rc3)
-
-### Bugs fix
-
-* Actually make the tests run. ([@rymai][])
-
-### Regression
-
-* Turn doesn't want to run, so remove sentences that say that it is supported for now. Note: The code is still here, only the command line doesn't seem to output anything... ([@rymai][])
-
-## 0.3.0.rc2 - June 2, 2011
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.1.6...v0.3.0.rc2)
-
-### New features
-
-* New `:cli` option (nil by default) to pass arbitrary CLI arguments to the Ruby/Turn command that runs the tests. ([@rymai][])
-* New `:notification` option (true by default) to disable notification (Growl/Inotify). ([@rymai][])
-* New `:all_on_start` option (true by default) to not run all the tests at startup. ([@rymai][])
-* New `:all_after_pass` option (true by default) to run all tests after changed tests pass. ([@rymai][])
-* New `:keep_failed` option (true by default) to keep failed tests until them pass. ([@rymai][])
-
-### Improvements
-
-* Add compatibility with 1.8.6, 1.8.7, 1.9.2, REE, Rubinius and JRuby. ([@rymai][])
-* Internal changes inspired by [guard-minitest](https://github.com/guard/guard-minitest). ([@rymai][])
-
-## 0.1.6 - January 24, 2011
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.1.5...v0.1.6)
-
-### Bugs fix
-
-* [#2][] Fixed a bug introduced in 0.1.5 where test/ was not added to the $LOAD_PATH. ([@rymai][])
-
-## 0.1.5 - January 21, 2011
-
-[Full Changelog](https://github.com/guard/guard-test/compare/v0.1.4...v0.1.5)
-
-* Update gem dependencies. ([@rymai][])
-
-## 0.1.4 - December 15, 2010
-
-### Bugs fix
-
-* [#1][] Include errors count to determine the "flag" to display in notification. ([@gregorymostizky][])
-
-<!--- The following link definition list is generated by PimpMyChangelog --->
-[#1]: https://github.com/guard/guard/issues/1
-[#2]: https://github.com/guard/guard/issues/2
-[#11]: https://github.com/guard/guard/issues/11
-[#13]: https://github.com/guard/guard/issues/13
-[#15]: https://github.com/guard/guard/issues/15
-[#18]: https://github.com/guard/guard/issues/18
-[#19]: https://github.com/guard/guard/issues/19
-[#20]: https://github.com/guard/guard/issues/20
-[#21]: https://github.com/guard/guard/issues/21
-[#24]: https://github.com/guard/guard/issues/24
-[#34]: https://github.com/guard/guard/issues/34
-[#35]: https://github.com/guard/guard/issues/35
-[#38]: https://github.com/guard/guard/issues/38
-[#40]: https://github.com/guard/guard/issues/40
-[#41]: https://github.com/guard/guard/issues/41
-[@Ask11]: https://github.com/Ask11
-[@amiel]: https://github.com/amiel
-[@carlost]: https://github.com/carlost
-[@coderjoe]: https://github.com/coderjoe
-[@dasch]: https://github.com/dasch
-[@djmaze]: https://github.com/djmaze
-[@gertas]: https://github.com/gertas
-[@gregorymostizky]: https://github.com/gregorymostizky
-[@jgrau]: https://github.com/jgrau
-[@pastorius]: https://github.com/pastorius
-[@pgaertig]: https://github.com/pgaertig
-[@rymai]: https://github.com/rymai
-[@uk-ar]: https://github.com/uk-ar
+# Moved to [GitHub releases](https://github.com/guard/guard-test/releases) page.
View
@@ -7,13 +7,12 @@ gem 'rake'
group :development do
gem 'ruby_gntp'
gem 'guard-rspec'
- gem 'pimpmychangelog'
end
# The test group will be
# installed on Travis CI
#
group :test do
gem 'rspec'
- gem 'coveralls', :require => false
+ gem 'coveralls', require: false
end
View
@@ -1,5 +1,5 @@
group :specs do
- guard :rspec, :cli => '--format doc' do
+ guard :rspec, cli: '--format doc' do
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^spec/.+_spec\.rb$})
watch('spec/spec_helper.rb') { "spec" }
View
@@ -1,10 +1,10 @@
# Guard::Test
[![Gem Version](https://badge.fury.io/rb/guard-test.png)](http://badge.fury.io/rb/guard-test) [![Build Status](https://travis-ci.org/guard/guard-test.png?branch=master)](https://travis-ci.org/guard/guard-test) [![Dependency Status](https://gemnasium.com/guard/guard-test.png)](https://gemnasium.com/guard/guard-test) [![Code Climate](https://codeclimate.com/github/guard/guard-test.png)](https://codeclimate.com/github/guard/guard-test) [![Coverage Status](https://coveralls.io/repos/guard/guard-test/badge.png?branch=master)](https://coveralls.io/r/guard/guard-test)
-Test::Unit guard allows to automatically & intelligently launch tests when files are modified or created.
+Test::Unit Guard plugin allows to automatically & intelligently launch tests when files are modified or created.
* Compatible with Test::Unit 2.
-* Tested against Ruby 1.8.7, 1.9.3, 2.0.0, JRuby (1.8 mode & 1.9 mode) & Rubinius (1.8 mode & 1.9 mode).
+* Tested against Ruby 1.9.3, 2.0.0, Rubinius & JRuby (1.9 mode only).
## Install
@@ -62,31 +62,31 @@ Please read the [Guard documentation](https://github.com/guard/guard#readme) for
## Options
-**Deprecation notice:** The `:runner` option is deprecated. If you had set it to "fastfail", it is now the default in test-unit 2, but if you want the opposite, you can pass the `:cli => '--no-show-detail-immediately'` option instead.
+**Deprecation notice:** The `:runner` option is deprecated. If you had set it to "fastfail", it is now the default in test-unit 2, but if you want the opposite, you can pass the `cli: '--no-show-detail-immediately'` option instead.
### Available options
``` ruby
-:bundler => false # Whether or not to use `bundle exec` to run tests, default: true (if a you have a Gemfile in the current directory)
-:rubygems => true # Whether or not to require rubygems (if bundler isn't used) when running the tests, default: false
-:rvm => ['1.9.3', 'jruby'] # Directly run your specs against multiple Rubies, default: nil
-:spring => true # Run your tests with [`spring`](https://github.com/jonleighton/spring), default: false
-:zeus => true # Run your tests with [`zeus`](https://github.com/burke/zeus), default: false
-:drb => true # Run your tests with [`spork-testunit`](https://github.com/timcharper/spork-testunit), default: false
-:include => ['foo', 'bar'] # Pass arbitrary include paths to the command that runs the tests, default: ['test']
-:cli => 'color' # Pass arbitrary CLI arguments to the command that runs the tests, default: nil
-:all_on_start => false # Run all tests on Guard startup, default: true.
-:all_after_pass => false # Run all tests after the current run tests pass, default: true
-:keep_failed => false # Re-run failing tests until they pass, default: true
-:test_paths => ['spec'] # Array of paths that where are located the test files, default: ['test']
+bundler: false # Whether or not to use `bundle exec` to run tests, default: true (if a you have a Gemfile in the current directory)
+rubygems: true # Whether or not to require rubygems (if bundler isn't used) when running the tests, default: false
+rvm: ['1.9.3', 'jruby'] # Directly run your specs against multiple Rubies, default: nil
+spring: true # Run your tests with [`spring`](https://github.com/jonleighton/spring), default: false
+zeus: true # Run your tests with [`zeus`](https://github.com/burke/zeus), default: false
+drb: true # Run your tests with [`spork-testunit`](https://github.com/timcharper/spork-testunit), default: false
+include: ['foo', 'bar'] # Pass arbitrary include paths to the command that runs the tests, default: ['test']
+cli: 'color' # Pass arbitrary CLI arguments to the command that runs the tests, default: nil
+all_on_start: false # Run all tests on Guard startup, default: true.
+all_after_pass: false # Run all tests after the current run tests pass, default: true
+keep_failed: false # Re-run failing tests until they pass, default: true
+test_paths: ['spec'] # Array of paths that where are located the test files, default: ['test']
```
#### `spring` option
**Important:** The `spring testunit` command of official version 0.0.8 of spring is running only file specified as first argument, other are ignored. Fortunately this issue has been fixed recently in spring master and all test files given in arguments are invoked, see [#102](https://github.com/jonleighton/spring/pull/102). However that has not been packaged yet, therefore while waiting for spring 0.0.9 release we recommend to use (in your Gemfile):
```ruby
-gem 'spring', :github => 'jonleighton/spring'
+gem 'spring', github: 'jonleighton/spring'
```
#### `zeus` option
@@ -110,7 +110,6 @@ Pull requests are very welcome! Please try to follow these simple rules if appli
* Make sure your patches are well tested. All specs must pass on [Travis CI](https://travis-ci.org/guard/guard-test).
* Update the [Yard](http://yardoc.org/) documentation.
* Update the [README](https://github.com/guard/guard-test/blob/master/README.md).
-* Update the [CHANGELOG](https://github.com/guard/guard-test/blob/master/CHANGELOG.md) for noteworthy changes (don't forget to run `bundle exec pimpmychangelog` and watch the magic happen)!
* Please **do not change** the version number.
For questions please join us in our [Google group](http://groups.google.com/group/guard-dev) or on
@@ -122,4 +121,4 @@ For questions please join us in our [Google group](http://groups.google.com/grou
## Contributors
-https://github.com/guard/guard-test/contributors
+[https://github.com/guard/guard-test/graphs/contributors](https://github.com/guard/guard-test/graphs/contributors)
View
@@ -4,4 +4,4 @@ Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
-task :default => :spec
+task default: :spec
View
@@ -10,12 +10,12 @@ Gem::Specification.new do |s|
s.author = 'Rémy Coutable'
s.email = 'remy@rymai.me'
s.homepage = 'https://rubygems.org/gems/guard-test'
- s.summary = 'Guard gem for Test::Unit 2'
+ s.summary = 'Guard plugin for Test::Unit 2'
s.description = 'Guard::Test automatically run your tests on file modification.'
- s.required_ruby_version = '>= 1.8.7'
+ s.required_ruby_version = '>= 1.9.2'
- s.add_runtime_dependency 'guard', '~> 1.8'
+ s.add_runtime_dependency 'guard', '>= 2.0.0.pre.3'
s.add_runtime_dependency 'test-unit', '~> 2.2'
s.add_development_dependency 'bundler'
Oops, something went wrong. Retry.

0 comments on commit 02f03f3

Please sign in to comment.