Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to Guard 2.0 + some refactoring
- Loading branch information
Showing
12 changed files
with
160 additions
and
173 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,22 +1,14 @@ | |||
language: ruby | language: ruby | ||
bundler_args: --without development | bundler_args: --without development | ||
rvm: | rvm: | ||
- 1.8.7 | |||
- 1.9.3 | - 1.9.3 | ||
- 2.0.0 | - 2.0.0 | ||
- ruby-head | |||
- ree | |||
- jruby-18mode | |||
- jruby-19mode | - jruby-19mode | ||
- jruby-head | |||
- rbx-18mode | |||
- rbx-19mode | - rbx-19mode | ||
matrix: | matrix: | ||
allow_failures: | allow_failures: | ||
- rvm: rbx-18mode | - jruby-19mode | ||
- rvm: rbx-19mode | - rvm: rbx-19mode | ||
- rvm: ruby-head | |||
- rvm: jruby-head | |||
notifications: | notifications: | ||
recipients: | recipients: | ||
- thibaud@thibaud.me | - thibaud@thibaud.me |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,5 +1,5 @@ | |||
guard 'rspec', :cli => '-f doc' do | guard :rspec do | ||
watch(%r{spec/.+_spec.rb}) | watch(%r{spec/.+_spec.rb}) | ||
watch(%r{lib/(.+)\.rb}) { |m| "spec/#{m[1]}_spec.rb" } | watch(%r{lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" } | ||
watch('spec/spec_helper.rb') { "spec" } | watch('spec/spec_helper.rb') { "spec" } | ||
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,21 +1,5 @@ | |||
require 'bundler' | require "bundler/gem_tasks" | ||
Bundler::GemHelper.install_tasks | |||
|
|
||
require 'rspec/core/rake_task' | require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:spec) | RSpec::Core::RakeTask.new(:spec) | ||
task :default => :spec | task :default => :spec | ||
|
|||
namespace(:spec) do | |||
desc "Run all specs on multiple ruby versions (requires rvm)" | |||
task(:portability) do | |||
%w[1.8.6 1.8.7 1.9.2 ree rbx jruby].each do |version| | |||
system <<-BASH | |||
bash -c 'source ~/.rvm/scripts/rvm; | |||
rvm #{version}; | |||
echo "--------- version #{version} ----------\n"; | |||
bundle install 1> /dev/null; | |||
rake spec' | |||
BASH | |||
end | |||
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,27 +1,27 @@ | |||
# -*- encoding: utf-8 -*- | # coding: utf-8 | ||
$:.push File.expand_path("../lib", __FILE__) | lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | |||
require 'guard/livereload/version' | require 'guard/livereload/version' | ||
|
|
||
Gem::Specification.new do |s| | Gem::Specification.new do |s| | ||
s.name = "guard-livereload" | s.name = "guard-livereload" | ||
s.version = Guard::LiveReloadVersion::VERSION | s.version = Guard::LiveReloadVersion::VERSION | ||
s.platform = Gem::Platform::RUBY | s.author = 'Thibaud Guillaume-Gentil' | ||
s.authors = ['Thibaud Guillaume-Gentil'] | s.email = 'thibaud@thibaud.me' | ||
s.email = ['thibaud@thibaud.me'] | s.summary = 'Guard plugin for livereload' | ||
s.homepage = 'http://rubygems.org/gems/guard-livereload' | s.description = "Guard::LiveReload automatically reloads your browser when 'view' files are modified." | ||
s.summary = 'Guard gem for livereload' | s.homepage = 'https://rubygems.org/gems/guard-livereload' | ||
s.description = "Guard::LiveReload automatically reloads your browser when 'view' files are modified." | s.license = "MIT" | ||
|
|
||
s.required_rubygems_version = '>= 1.3.6' | s.files = `git ls-files`.split($/) | ||
s.rubyforge_project = "guard-livereload" | s.test_files = s.files.grep(%r{^spec/}) | ||
s.require_path = 'lib' | |||
|
|
||
s.add_dependency 'guard', '>= 1.8.0' | s.add_dependency 'guard', '~> 2.0' | ||
s.add_dependency 'em-websocket', '>= 0.5.0' | s.add_dependency 'em-websocket', '~> 0.5' | ||
s.add_dependency 'multi_json', '~> 1.7' | s.add_dependency 'multi_json', '~> 1.8' | ||
|
|
||
s.add_development_dependency 'bundler' | s.add_development_dependency 'bundler', '>= 1.3.5' | ||
s.add_development_dependency 'rake' | |||
s.add_development_dependency 'rspec' | s.add_development_dependency 'rspec' | ||
|
|||
s.files = Dir.glob('{lib}/**/*') + %w[LICENSE README.md js/livereload.js] | |||
s.require_path = 'lib' | |||
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
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
Oops, something went wrong.