Sha256: 80f8616814e8899cea1ef3f988c7662dd0980146bd3008c349a00a0cb7edc22c

Contents?: true

Size: 969 Bytes

Versions: 6

Compression:

Stored size: 969 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_manager.gemspec'
  end
end

task rubospec: %w[rubocop spec]

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

task default: :full_build

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lokalise_manager-6.0.0 Rakefile
lokalise_manager-5.1.2 Rakefile
lokalise_manager-5.1.0 Rakefile
lokalise_manager-5.0.0 Rakefile
lokalise_manager-4.0.0 Rakefile
lokalise_manager-3.3.0 Rakefile