Sha256: e3e99dd42ebe94e515cb0092c6906ddb5b0b4c34335a972abcaf283ea6e3753e

Contents?: true

Size: 1.38 KB

Versions: 2

Compression:

Stored size: 1.38 KB

Contents

# frozen_string_literal: true

require 'rubygems'
require 'bundler'

begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  warn e.message
  warn 'Run `bundle install` to install missing gems'
  exit e.status_code
end

require 'rake'
require 'juwelier'

Juwelier::Tasks.new do |gem|
  gem.name = 'deepl-rb'
  gem.homepage = 'https://github.com/DeepLcom/deepl-rb'
  gem.license = 'MIT'
  gem.summary = 'Official Ruby library for the DeepL language translation API.'
  gem.description =
    'Official Ruby library for the DeepL language translation API (v2). ' \
    'For more information, check this: https://www.deepl.com/docs/api-reference.html'

  gem.email = 'open-source@deepl.com'
  gem.authors = ['DeepL SE']
  gem.metadata = {
    'bug_tracker_uri' => 'https://github.com/DeepLcom/deepl-rb/issues',
    'changelog_uri' => 'https://github.com/DeepLcom/deepl-rb/blob/main/CHANGELOG.md',
    'documentation_uri' => 'https://github.com/DeepLcom/deepl-rb/blob/main/README.md',
    'homepage_uri' => 'https://github.com/DeepLcom/deepl-rb'
  }
  gem.files.exclude '.github'
  gem.files.exclude '.circleci'
end

Juwelier::RubygemsDotOrgTasks.new

# Tests
require 'rspec/core/rake_task'
require 'rubocop/rake_task'

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

desc 'Run all tests.'
task :test do
  Rake::Task['spec'].invoke
  Rake::Task['rubocop'].invoke
end

task default: :test

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
deepl-rb-3.1.0 Rakefile
deepl-rb-3.0.2 Rakefile