Skip to content

Commit

Permalink
Merge pull request voxpupuli#211 from iainbeeston/more_rake_tasks
Browse files Browse the repository at this point in the history
Added bundler gem management rake tasks
  • Loading branch information
pd committed Dec 3, 2014
2 parents 0c866e4 + 2f94ff0 commit 6477623
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
require 'rubygems'
require 'bundler'
require 'rake'
require 'rake/testtask'

Rake::TestTask.new do |t|
Bundler::GemHelper.install_tasks

desc "Updates the json-schema common test suite to the latest version"
task :update_common_tests do
unless File.read(".git/config").include?('submodule "test/test-suite"')
sh "git submodule init"
end
sh "git submodule update"
sh "git submodule update --quiet"
end

Rake::TestTask.new do |t|
t.libs << "."
t.test_files = FileList['test/test*.rb']
end

task :test => :update_common_tests

task :default => :test
1 change: 1 addition & 0 deletions json-schema.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "rake"
s.add_development_dependency "minitest", '~> 5.0'
s.add_development_dependency "webmock"
s.add_development_dependency "bundler"

s.add_runtime_dependency "addressable", '~> 2.3'
end

0 comments on commit 6477623

Please sign in to comment.