Sha256: 5435a7ccffdc787d2585d02dfedc5c2543983657b303e562a028077d1eead0ac

Contents?: true

Size: 997 Bytes

Versions: 18

Compression:

Stored size: 997 Bytes

Contents

#!/usr/bin/env rake

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rake/testtask'
require 'rubocop/rake_task'

desc 'Run Rubocop to check for style violations'
RuboCop::RakeTask.new

desc 'Run benchmark tests'
Rake::TestTask.new(:bench) do |test|
  test.libs << 'lib' << 'test'
  test.test_files = FileList['test/plugin/bench*.rb']
  test.verbose = true
end

desc 'Run unit tests'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.test_files = FileList['test/plugin/test*.rb']
  test.verbose = true
end

# Building the gem will use the local file mode, so ensure it's world-readable.
desc 'Check plugin file permissions'
task :check_perms do
  plugin = 'lib/fluent/plugin/out_detect_exceptions.rb'
  mode = File.stat(plugin).mode & 0o777
  raise "Unexpected mode #{mode.to_s(8)} for #{plugin}" unless
    mode & 0o444 == 0o444
end

desc 'Run unit tests and RuboCop to check for style violations'
task all: [:test, :rubocop, :check_perms]

task default: :all

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
fluent-plugin-detect-exceptions-0.0.10 Rakefile
fluent-plugin-detect-exceptions-0.0.9 Rakefile
fluent-plugin-detect-exceptions-0.0.8 Rakefile
fluent-plugin-detect-ft-memb-exceptions-0.0.3 Rakefile
fluent-plugin-detect-exceptions-0.0.7 Rakefile
fluent-plugin-detect-exceptions-0.0.6 Rakefile
fluent-plugin-detect-memb-exceptions-0.0.2 Rakefile
fluent-plugin-detect-memb-exceptions-0.0.1 Rakefile
fluent-plugin-detect-exceptions-with-error-0.0.2a Rakefile
fluent-plugin-detect-exceptions-with-error-0.0.2 Rakefile
fluent-plugin-detect-exceptions-with-error-0.0.1c Rakefile
fluent-plugin-detect-exceptions-with-error-0.0.1b Rakefile
fluent-plugin-detect-exceptions-with-error-0.0.1a Rakefile
fluent-plugin-detect-exceptions-with-error-0.0.1 Rakefile
fluent-plugin-detect-exceptions-0.0.5 Rakefile
fluent-plugin-detect-exceptions-0.0.4 Rakefile
fluent-plugin-detect-exceptions-0.0.3 Rakefile
fluent-plugin-detect-exceptions-0.0.1 Rakefile