lib/hoe/travis.rb in hoe-travis-1.3 vs lib/hoe/travis.rb in hoe-travis-1.3.1
- old
+ new
@@ -109,11 +109,11 @@
module Hoe::Travis
##
# This version of Hoe::Travis
- VERSION = '1.3'
+ VERSION = '1.3.1'
YAML_EXCEPTIONS = if defined?(Psych) then # :nodoc:
if Psych.const_defined? :Exception then
[Psych::SyntaxError] # Ruby 1.9.2
else
@@ -160,11 +160,11 @@
]
desc "Run by travis-ci before running the default checks"
task :before => %w[
install_plugins
- check_extra_deps
+ travis:install_deps
]
desc "Lint your .travis.yml"
task :check do
abort unless travis_yml_check '.travis.yml'
@@ -208,9 +208,21 @@
io.rewind
ok = travis_yml_edit io.path
travis_yml_write io.path if ok
+ end
+ end
+
+ task :install_deps do
+ (extra_deps + extra_dev_deps).each do |dep|
+ begin
+ gem(*dep)
+ rescue Gem::LoadError
+ name, req, = dep
+
+ install_gem name, req, false
+ end
end
end
end
end