Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add Ruby 1.9.3 as tested and supported.

  • Loading branch information...
commit fa5057880ddd5950fc91cc77d085d1092e0060bf 1 parent 88975d8
Michael Kessler authored

Showing 4 changed files with 23 additions and 10 deletions. Show diff stats Hide diff stats

  1. +1 0  .travis.yml
  2. +3 5 Gemfile
  3. +1 1  README.md
  4. +18 4 Rakefile
1  .travis.yml
... ... @@ -1,6 +1,7 @@
1 1 rvm:
2 2 - 1.8.7
3 3 - 1.9.2
  4 + - 1.9.3
4 5 - ree
5 6 - rbx
6 7 - jruby
8 Gemfile
@@ -11,11 +11,11 @@ platform :ruby_18 do
11 11 gem 'json'
12 12 end
13 13
14   -if Config::CONFIG['target_os'] =~ /darwin/i
  14 +if RbConfig::CONFIG['target_os'] =~ /darwin/i
15 15 gem 'rb-fsevent', '>= 0.4.0'
16 16 gem 'growl', '~> 1.0.3'
17 17 end
18   -if Config::CONFIG['target_os'] =~ /linux/i
  18 +if RbConfig::CONFIG['target_os'] =~ /linux/i
19 19 gem 'rb-inotify', '>= 0.8.4'
20 20 gem 'libnotify', '~> 0.3.0'
21 21 end
@@ -23,8 +23,6 @@ end
23 23 # The JS runtime is needed because ExecJS searches one when the module is loaded.
24 24 # This breaks travis builds even when the compiler is stubbed.
25 25
26   -if defined?(JRUBY_VERSION)
  26 +platform :jruby do
27 27 gem 'therubyrhino'
28   -else
29   - gem 'therubyracer'
30 28 end
2  README.md
Source Rendered
@@ -2,7 +2,7 @@
2 2
3 3 Guard::CoffeeScript compiles or validates your CoffeeScripts automatically when files are modified.
4 4
5   -Tested on MRI Ruby 1.8.7, 1.9.2, REE and the latest versions of JRuby & Rubinius.
  5 +Tested on MRI Ruby 1.8.7, 1.9.2, 1.9.3, REE and the latest versions of JRuby & Rubinius.
6 6
7 7 If you have any questions please join us on our [Google group](http://groups.google.com/group/guard-dev) or on `#guard`
8 8 (irc.freenode.net).
22 Rakefile
@@ -8,13 +8,27 @@ task :default => :spec
8 8 namespace(:spec) do
9 9 desc "Run all specs on multiple ruby versions (requires rvm)"
10 10 task(:portability) do
11   - %w[1.8.7 1.9.2 ree rbx jruby].each do |version|
  11 + travis_config_file = File.expand_path("../.travis.yml", __FILE__)
  12 + begin
  13 + travis_options ||= YAML::load_file(travis_config_file)
  14 + rescue => ex
  15 + puts "Travis config file '#{travis_config_file}' could not be found: #{ex.message}"
  16 + return
  17 + end
  18 +
  19 + travis_options['rvm'].each do |version|
12 20 system <<-BASH
13 21 bash -c 'source ~/.rvm/scripts/rvm;
14 22 rvm #{version};
15   - echo "--------- version #{version} ----------\n";
16   - bundle install;
17   - rake spec'
  23 + ruby_version_string_size=`ruby -v | wc -m`
  24 + echo;
  25 + for ((c=1; c<$ruby_version_string_size; c++)); do echo -n "="; done
  26 + echo;
  27 + echo "`ruby -v`";
  28 + for ((c=1; c<$ruby_version_string_size; c++)); do echo -n "="; done
  29 + echo;
  30 + RBXOPT="-Xrbc.db" bundle install;
  31 + RBXOPT="-Xrbc.db" bundle exec rspec spec -f doc 2>&1;'
18 32 BASH
19 33 end
20 34 end

0 comments on commit fa50578

Please sign in to comment.
Something went wrong with that request. Please try again.