forked from wikiti/deepl-rb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
45 lines (35 loc) · 996 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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 = 'http://github.com/wikiti/deepl-rb'
gem.license = 'MIT'
gem.summary = 'A simple ruby wrapper for the DeepL API'
gem.description =
'A simple ruby wrapper for the DeepL translation API (v1). ' \
'For more information, check this: https://www.deepl.com/docs/api-reference.html'
gem.email = 'info@danielherzog.es'
gem.authors = ['Daniel Herzog']
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