Sha256: b16bece2e17ead2661a7610e11de2c12ddd91fb48b682a1a83822a76a3ed441d

Contents?: true

Size: 960 Bytes

Versions: 1

Compression:

Stored size: 960 Bytes

Contents

# frozen_string_literal: true

require 'rake'
require 'rake/clean'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'

begin
  require 'bundler/setup'
  Bundler::GemHelper.install_tasks
rescue LoadError
  puts 'although not required, bundler is recommened for running the tests'
end

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

RuboCop::RakeTask.new do |task|
  task.requires << 'rubocop-performance'
  task.requires << 'rubocop-rspec'
end

namespace :fun_translations do
  CLOBBER.include(FileList['./*.gem'])

  desc 'Updates RubyGems, installs dependencies'
  task :install do
    puts 'Running bundle install'
    sh 'gem update --system'
    sh 'bundle'
  end

  desc 'Builds the gem'
  task :build do
    puts 'Building'
    sh 'gem build fun_translations.gemspec'
  end
end

task rubospec: %w[rubocop spec]

task full_build: %w[clobber fun_translations:install fun_translations:build]

task default: :full_build

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fun_translations-0.0.1 Rakefile