Rakefile in active_remote-3.1.3 vs Rakefile in active_remote-3.2.0.pre
- old
+ new
@@ -1,8 +1,9 @@
#!/usr/bin/env rake
require "bundler/gem_tasks"
-require 'rspec/core/rake_task'
+require "protobuf/tasks"
+require "rspec/core/rake_task"
desc "Run specs"
RSpec::Core::RakeTask.new(:spec)
desc "Run specs (default)"
@@ -13,9 +14,8 @@
FileUtils.rm(Dir.glob("spec/support/protobuf/**/*.proto"))
puts "Cleaned"
end
desc "Compile spec/support protobuf definitions"
-task :compile, [] => :clean do
- cmd = "protoc --ruby_out=spec/support/protobuf --proto_path=spec/support/definitions spec/support/definitions/*.proto"
- sh(cmd)
+task :compile do
+ ::Rake::Task["protobuf:compile"].invoke("", "spec/support/definitions", "spec/support/protobuf")
end