Sha256: 0868c3c746b986a318bc9ec42391e8ce5437570653ac1fda2afb1ac98eb2c745

Contents?: true

Size: 967 Bytes

Versions: 5

Compression:

Stored size: 967 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'
  task.requires << 'rubocop-rake'
end

CLOBBER.include(FileList['./*.gem'])

namespace :lokalise do
  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 lokalise_rails.gemspec'
  end
end

task rubospec: %w[rubocop spec]

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

task default: :full_build

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lokalise_rails-8.0.0 Rakefile
lokalise_rails-7.1.0 Rakefile
lokalise_rails-7.0.0 Rakefile
lokalise_rails-6.0.0 Rakefile
lokalise_rails-5.2.0 Rakefile