Sha256: 422365391ed9767f3ad537df4349b86396de852b3d6117e0c3445a82f69822a8

Contents?: true

Size: 881 Bytes

Versions: 4

Compression:

Stored size: 881 Bytes

Contents

# encoding: utf-8

# !/usr/bin/env rake

require 'bundler/gem_tasks'

begin
  require 'wwtd/tasks'
rescue LoadError
  puts 'failed to load wwtd'
end

begin
  require 'rspec/core/rake_task'
  RSpec::Core::RakeTask.new(:spec)
rescue LoadError
  task :spec do
    warn 'rspec is disabled'
  end
end
task :test => :spec

begin
  require 'rubocop/rake_task'
  RuboCop::RakeTask.new do |task|
    task.options = ['-D'] # Display the name of the failing cops
  end
rescue LoadError
  task :rubocop do
    warn 'RuboCop is disabled'
  end
end

namespace :doc do
  require 'rdoc/task'
  require File.expand_path('../lib/oauth2/version', __FILE__)
  RDoc::Task.new do |rdoc|
    rdoc.rdoc_dir = 'rdoc'
    rdoc.title = "oauth2 #{OAuth2::Version}"
    rdoc.main = 'README.md'
    rdoc.rdoc_files.include('README.md', 'LICENSE.md', 'lib/**/*.rb')
  end
end

task :default => [:test, :rubocop]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
oauth2-1.4.4 Rakefile
oauth2-1.4.3 Rakefile
oauth2-1.4.2 Rakefile
oauth2-1.4.1 Rakefile