Sha256: 36e73a060ae425f0c1865b6db1bb7f19a8f6f0915ff92563e6474ded06fa1c84

Contents?: true

Size: 1010 Bytes

Versions: 2

Compression:

Stored size: 1010 Bytes

Contents

# encoding: utf-8

require 'rubygems'
require 'rake'

begin
  require 'rubygems/tasks'

  Gem::Tasks.new
rescue LoadError => e
  warn e.message
  warn "Run `gem install rubygems-tasks` to install Gem::Tasks."
end

begin
  require 'rspec/core/rake_task'

  RSpec::Core::RakeTask.new
rescue LoadError => e
  task :spec do
    abort "Please run `gem install rspec` to install RSpec."
  end
end

task :test    => :spec
task :default => :spec

begin
  gem 'yard', '~> 0.8'
  require 'yard'

  YARD::Rake::YardocTask.new
rescue LoadError => e
  task :yard do
    abort "Please run `gem install yard` to install YARD."
  end
end
task :doc => :yard

task :spec => ["wire-compiler.jar"] do |t|
  # Declare this to ensure wire-compiler is downloaded
end

file "wire-compiler.jar" do |t|
  sh 'wget --no-check-certificate --output-document="wire-compiler.jar" "http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.squareup.wire&a=wire-compiler&v=LATEST&c=jar-with-dependencies"'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
protobuf_descriptor-1.0.0 Rakefile
protobuf_descriptor-0.1.0 Rakefile