Sha256: b8d0704daccfd99ea5f82075eccbc38c78014c8428867743a12c8f0ed66cbde4
Contents?: true
Size: 886 Bytes
Versions: 3
Compression:
Stored size: 886 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 unit tests' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.test_files = FileList['test/plugin/*.rb'] test.verbose = true end # Building the gem will use the local file mode, so ensure it's world-readable. # https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud/issues/53 desc 'Check plugin file permissions' task :check_perms do plugin = 'lib/fluent/plugin/out_google_cloud.rb' mode = File.stat(plugin).mode & 0777 fail "Unexpected mode #{mode.to_s(8)} for #{plugin}" unless mode & 0444 == 0444 end desc 'Run unit tests and RuboCop to check for style violations' task all: [:test, :rubocop, :check_perms] task default: :all
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-google-cloud-0.5.2 | Rakefile |
fluent-plugin-google-cloud-0.5.1 | Rakefile |
fluent-plugin-google-cloud-0.5.0 | Rakefile |