-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from guard/v2.0
v2.0
- Loading branch information
Showing
13 changed files
with
39 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,10 @@ | ||
language: ruby | ||
bundler_args: --without development | ||
rvm: | ||
- 1.8.7 | ||
- 1.9.2 | ||
- 1.9.3 | ||
- ruby-head | ||
- ree | ||
- jruby-18mode | ||
- 2.0.0 | ||
- jruby-19mode | ||
- jruby-head | ||
- rbx-18mode | ||
- rbx-19mode | ||
matrix: | ||
allow_failures: | ||
- rvm: ruby-head | ||
notifications: | ||
recipients: | ||
- [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
guard 'bundler' do | ||
guard :bundler do | ||
watch('Gemfile') | ||
watch(%r{^.+\.gemspec$}) | ||
end | ||
|
||
guard 'rspec', :version => 2 do | ||
guard :rspec do | ||
watch(%r{^spec/.+_spec\.rb$}) | ||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } | ||
watch('spec/spec_helper.rb') { 'spec' } | ||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } | ||
watch('spec/spec_helper.rb') { 'spec' } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,5 @@ | ||
require 'bundler' | ||
Bundler::GemHelper.install_tasks | ||
require 'bundler/gem_tasks' | ||
|
||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:spec) | ||
task :default => :spec | ||
|
||
require 'rbconfig' | ||
namespace(:spec) do | ||
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/i | ||
desc "Run all specs on multiple ruby versions (requires pik)" | ||
task(:portability) do | ||
%w[187 192 161].each do |version| | ||
system "cmd /c echo -----------#{version}------------ & " + | ||
"pik use #{version} & " + | ||
"bundle install & " + | ||
"bundle exec rspec spec" | ||
end | ||
end | ||
else | ||
desc "Run all specs on multiple ruby versions (requires rvm)" | ||
task(:portability) do | ||
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}; | ||
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; | ||
bundle install; | ||
bundle exec rspec spec -f doc 2>&1;' | ||
BASH | ||
end | ||
end | ||
end | ||
end | ||
task default: :spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,17 +9,16 @@ Gem::Specification.new do |s| | |
s.license = 'MIT' | ||
s.authors = ['Yann Lugrin'] | ||
s.email = ['[email protected]'] | ||
s.homepage = 'http://rubygems.org/gems/guard-bundler' | ||
s.homepage = 'https://rubygems.org/gems/guard-bundler' | ||
s.summary = 'Guard gem for Bundler' | ||
s.description = 'Guard::Bundler automatically install/update your gem bundle when needed' | ||
|
||
s.required_rubygems_version = '>= 1.3.6' | ||
s.rubyforge_project = 'guard-bundler' | ||
s.required_ruby_version = '>= 1.9.2' | ||
|
||
s.add_dependency 'guard', '~> 1.1' | ||
s.add_dependency 'guard', '~> 2.2' | ||
s.add_dependency 'bundler', '~> 1.0' | ||
|
||
s.add_development_dependency 'rspec', '>= 2.14.1' | ||
s.add_development_dependency 'rspec' | ||
|
||
s.files = Dir.glob('{lib}/**/*') + %w[LICENSE README.md] | ||
s.require_path = 'lib' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# encoding: utf-8 | ||
module Guard | ||
module BundlerVersion | ||
VERSION = '1.0.0' | ||
VERSION = '2.0.0' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters