Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add Ruby 1.9.3 as tested and supported.

  • Loading branch information...
commit 411156e051077dea3d6c1be57935f7a993a4623a 1 parent 5298304
@netzpirat authored
Showing with 22 additions and 5 deletions.
  1. +1 −0  .travis.yml
  2. +1 −1  README.md
  3. +19 −4 Rakefile
  4. +1 −0  lib/guard/cucumber.rb
View
1  .travis.yml
@@ -1,6 +1,7 @@
rvm:
- 1.8.7
- 1.9.2
+ - 1.9.3
- ree
- rbx
- jruby
View
2  README.md
@@ -2,7 +2,7 @@
Guard::Cucumber allows you to automatically run Cucumber features when files are modified.
-Tested on MRI Ruby 1.8.7, 1.9.2, REE and the latest versions of JRuby & Rubinius.
+Tested on MRI Ruby 1.8.7, 1.9.2, 1.9.3, REE and the latest versions of JRuby & Rubinius.
If you have any questions please join us on our [Google group](http://groups.google.com/group/guard-dev) or on `#guard` (irc.freenode.net).
View
23 Rakefile
@@ -5,16 +5,31 @@ require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
+require 'rbconfig'
namespace(:spec) do
desc "Run all specs on multiple ruby versions (requires rvm)"
task(:portability) do
- %w[1.8.7 1.9.2 ree rbx jruby].each do |version|
+ travis_config_file = File.expand_path("../.travis.yml", __FILE__)
+ begin
+ travis_options ||= YAML::load_file(travis_config_file)
+ rescue => ex
+ puts "Travis config file '#{travis_config_file}' could not be found: #{ex.message}"
+ return
+ end
+
+ travis_options['rvm'].each do |version|
system <<-BASH
bash -c 'source ~/.rvm/scripts/rvm;
rvm #{version};
- echo "--------- version #{version} ----------\n";
- bundle install;
- rake spec'
+ ruby_version_string_size=`ruby -v | wc -m`
+ echo;
+ for ((c=1; c<$ruby_version_string_size; c++)); do echo -n "="; done
+ echo;
+ echo "`ruby -v`";
+ for ((c=1; c<$ruby_version_string_size; c++)); do echo -n "="; done
+ echo;
+ RBXOPT="-Xrbc.db" bundle install;
+ RBXOPT="-Xrbc.db" bundle exec rspec spec -f doc 2>&1;'
BASH
end
end
View
1  lib/guard/cucumber.rb
@@ -1,6 +1,7 @@
require 'guard'
require 'guard/guard'
require 'cucumber'
+require 'guard/cucumber/version'
module Guard
Please sign in to comment.
Something went wrong with that request. Please try again.