Sha256: 998dba41cea99e83967a9cde5c3ad096b6cb87fad76643aab096ec73a66fcefd

Contents?: true

Size: 907 Bytes

Versions: 3

Compression:

Stored size: 907 Bytes

Contents

# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'github_changelog_generator/task'
require 'yard'

GitHubChangelogGenerator::RakeTask.new :changelog do |config|
  config.future_release = "v#{Awskeyring::VERSION}"
end

RuboCop::RakeTask.new do |rubocop|
  rubocop.options = ['-D']
end

RSpec::Core::RakeTask.new(:spec)

desc 'Check filemode bits'
task :filemode do
  files = `git ls-files -z`.split("\x0")
  failure = false
  files.each do |file|
    mode = File.stat(file).mode
    print '.'
    if (mode & 0x7) != (mode >> 3 & 0x7)
      puts file
      failure = true
    end
  end
  abort 'Error: Incorrect file mode found' if failure
  print "\n"
end

YARD::Rake::YardocTask.new do |t|
  t.options = ['--fail-on-warning', '--no-progress']
  t.stats_options = ['--list-undoc']
end

task default: %i[filemode rubocop spec yard]

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
awskeyring-1.0.2 Rakefile
awskeyring-1.0.1 Rakefile
awskeyring-1.0.0 Rakefile