Sha256: 7d63eb26685582715c83ad94aea6d60e6e7088ed88b77aecd8045fd78daef0d6

Contents?: true

Size: 1.44 KB

Versions: 19

Compression:

Stored size: 1.44 KB

Contents

begin
  require 'bundler/setup'
rescue LoadError
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end

require 'rdoc/task'

RDoc::Task.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'SimpleTokenAuthentication'
  rdoc.options << '--line-numbers'
  rdoc.rdoc_files.include('README.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
end


Bundler::GemHelper.install_tasks


begin
  require 'inch/rake'

  Inch::Rake::Suggest.new(:inch) do |suggest|
    suggest.args << "--private"
    suggest.args << "--pedantic"
  end
rescue LoadError
  desc 'Inch rake task not available'
  task :inch do
  abort 'Inch rake task is not available. Be sure to install inch as a gem or plugin'
  end
end

begin
  require 'rspec/core/rake_task'

  desc 'Provide private interfaces documentation'
  RSpec::Core::RakeTask.new(:spec)

  namespace :spec do
    desc 'Provide public interfaces documentation'
    RSpec::Core::RakeTask.new(:public) do |t|
      t.rspec_opts = "--tag public"
    end
  end

  namespace :spec do
    desc 'Provide private interfaces documentation for development purpose'
    RSpec::Core::RakeTask.new(:development) do |t|
      t.rspec_opts = "--tag protected --tag private"
    end
  end
rescue LoadError
  desc 'RSpec rake task not available'
  task :spec do
  abort 'RSpec rake task is not available. Be sure to install rspec-core as a gem or plugin'
  end
end

task default: ['spec:public', 'spec:development', :inch]

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
simple_token_authentication-1.18.1 Rakefile
simple_token_authentication-1.18.0 Rakefile
simple_token_authentication-1.17.0 Rakefile
simple_token_authentication-1.16.0 Rakefile
simple_token_authentication-1.15.1 Rakefile
simple_token_authentication-1.15.0 Rakefile
simple_token_authentication-1.14.0 Rakefile
simple_token_authentication-1.13.0 Rakefile
simple_token_authentication-1.12.0 Rakefile
simple_token_authentication-1.11.0 Rakefile
simple_token_authentication-1.10.1 Rakefile
simple_token_authentication-1.10.0 Rakefile
simple_token_authentication-1.9.1 Rakefile
simple_token_authentication-1.9.0 Rakefile
simple_token_authentication-1.8.0 Rakefile
stn-simple_token_authentication-1.7.1 Rakefile
simple_token_authentication-1.7.0 Rakefile
simple_token_authentication-1.6.0 Rakefile
simple_token_authentication-1.5.2 Rakefile