Permalink
Browse files

Update gemspec, update portability test

  • Loading branch information...
1 parent af4df87 commit 2fd26a64a43082a99e163f401e2742472db7f023 @rtlong rtlong committed Feb 20, 2012
Showing with 27 additions and 24 deletions.
  1. +2 −1 .gitignore
  2. +21 −20 Rakefile
  3. +4 −3 guard-resque.gemspec
View
@@ -2,4 +2,5 @@
.bundle
Gemfile.lock
pkg/*
-.rvmrc
+.rvmrc
+.rbx
View
@@ -5,28 +5,29 @@ require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
-namespace(:spec) do
+namespace :spec do
desc "Run all specs on multiple ruby versions (requires rvm)"
- task(:portability) do
- rubies = if ENV['RUBIES']
- ENV['RUBIES'].split(' ')
- else
- %w[1.8.7 1.9.2 ree jruby]
- end
- rubies.each do |version|
- rvm_ruby = if ENV['GEMSET']
- "#{version}@#{ENV['GEMSET']}"
- else
- version
- end
- system <<-BASH
- bash -c '
- source ~/.rvm/scripts/rvm;
- rvm #{rvm_ruby};
- echo "--------- version #{rvm_ruby} ----------\n";
- bundle install;
- rake spec'
+ task :portability do
+
+ command = <<-BASH
+ source ~/.rvm/scripts/rvm;
+ rvm #{ENV['RUBIES'] || 'all'} do bundle exec rake spec
+ BASH
+ system "bash -c '#{command}'"
+
+ end
+
+ namespace :portability do
+ desc 'Installs bundler/rake and runs bundle install for all rubies'
+ task :prepare do
+ # FIXME: This isn't working for me when it gets to JRuby, specs are running fine - RL
+ command = <<-BASH
+ source ~/.rvm/scripts/rvm;
+ rvm #{ENV['RUBIES'] || 'all'} do gem install bundler rake;
+ rvm #{ENV['RUBIES'] || 'all'} do bundle install
BASH
+
+ system "bash -c '#{command}'"
end
end
end
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
s.name = "guard-resque"
s.version = Guard::ResqueVersion::VERSION
s.platform = Gem::Platform::RUBY
- s.authors = ["Jacques Crocker", "David Parry"]
- s.email = ["railsjedi@gmail.com"]
+ s.authors = ["Jacques Crocker", "Ryan Long", "David Parry"]
+ s.email = ["railsjedi@gmail.com", 'ryan@rtlong.com']
s.homepage = 'http://github.com/railsjedi/guard-resque'
s.summary = %q{guard gem for resque}
s.description = %q{Guard::Resque automatically starts/stops/restarts resque worker}
@@ -18,7 +18,8 @@ Gem::Specification.new do |s|
s.add_dependency 'guard', '>= 0.8'
s.add_dependency 'resque'
- s.add_development_dependency 'bundler', '~> 1.0.10'
+ s.add_development_dependency 'bundler'
+ s.add_development_dependency 'rake'
s.add_development_dependency 'rspec', '~> 2.5.0'
s.add_development_dependency 'guard-rspec', '>= 0.2.0'
s.add_development_dependency 'guard-bundler', '>= 0.1.1'

0 comments on commit 2fd26a6

Please sign in to comment.