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 fa5057880ddd5950fc91cc77d085d1092e0060bf 1 parent 88975d8
@netzpirat netzpirat authored
Showing with 23 additions and 10 deletions.
  1. +1 −0  .travis.yml
  2. +3 −5 Gemfile
  3. +1 −1  README.md
  4. +18 −4 Rakefile
View
1  .travis.yml
@@ -1,6 +1,7 @@
rvm:
- 1.8.7
- 1.9.2
+ - 1.9.3
- ree
- rbx
- jruby
View
8 Gemfile
@@ -11,11 +11,11 @@ platform :ruby_18 do
gem 'json'
end
-if Config::CONFIG['target_os'] =~ /darwin/i
+if RbConfig::CONFIG['target_os'] =~ /darwin/i
gem 'rb-fsevent', '>= 0.4.0'
gem 'growl', '~> 1.0.3'
end
-if Config::CONFIG['target_os'] =~ /linux/i
+if RbConfig::CONFIG['target_os'] =~ /linux/i
gem 'rb-inotify', '>= 0.8.4'
gem 'libnotify', '~> 0.3.0'
end
@@ -23,8 +23,6 @@ end
# The JS runtime is needed because ExecJS searches one when the module is loaded.
# This breaks travis builds even when the compiler is stubbed.
-if defined?(JRUBY_VERSION)
+platform :jruby do
gem 'therubyrhino'
-else
- gem 'therubyracer'
end
View
2  README.md
@@ -2,7 +2,7 @@
Guard::CoffeeScript compiles or validates your CoffeeScripts automatically 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
22 Rakefile
@@ -8,13 +8,27 @@ task :default => :spec
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
Please sign in to comment.
Something went wrong with that request. Please try again.