Sha256: 421f4fd36bcccd5c63bb3af2ebba054b90d9255e0af815c9ab878dd9efc5a3f3

Contents?: true

Size: 884 Bytes

Versions: 1

Compression:

Stored size: 884 Bytes

Contents

# rubocop:disable Style/SymbolArray
# rubocop:disable Style/HashSyntax
# rubocop:disable Rake/Desc

require 'bundler/gem_tasks'

task :validate_gemspec do
  Bundler.load_gemspec('gloc.gemspec').validate
end

task :version => :validate_gemspec do
  puts GLOC.version
end

require 'rubocop/rake_task'

RuboCop::RakeTask.new(:rubocop)

require 'rake/testtask'

Rake::TestTask.new(:test) do |t|
  t.libs << 'test'
  t.libs << 'lib'
  t.test_files = FileList['test/**/*_test.rb']
end

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

task :documentation

task :ready => :documentation do
  sh('bundle --quiet') # regenerate Gemfile.lock e.g. if version has changed
  sh('git diff-index --quiet HEAD --') # https://stackoverflow.com/a/2659808
end

Rake::Task['build'].enhance([:default, :ready])

# rubocop:enable Rake/Desc
# rubocop:enable Style/HashSyntax
# rubocop:enable Style/SymbolArray

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gloc-0.8.0 Rakefile