forked from kslazarev/numbers_and_words
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
42 lines (33 loc) · 1.15 KB
/
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
# frozen_string_literal: true
require 'rake'
require 'rubygems'
require File.expand_path('lib/numbers_and_words/version', __dir__)
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = 'numbers_and_words'
gem.homepage = 'http://github.com/kslazarev/numbers_and_words'
gem.license = 'MIT'
gem.summary = 'Spell out numbers in several languages'
gem.description = 'This gem spells out numbers in several languages using the I18n gem.'
gem.email = 'k.s.lazarev@gmail.com'
gem.version = NumbersAndWords::VERSION
gem.authors = ['Kirill Lazarev']
gem.files = Dir.glob('lib/**/*')
gem.required_ruby_version = '>= 3.1.0'
end
Jeweler::RubygemsDotOrgTasks.new
require 'rspec/core'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
RuboCop::RakeTask.new
RSpec::Core::RakeTask.new(:spec) { |t| t.ruby_opts = '-w' }
task default: %i[rubocop spec]
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ''
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "numbers_and_words #{version}"
rdoc.rdoc_files.include 'README*'
rdoc.rdoc_files.include 'LICENSE*'
rdoc.rdoc_files.include 'lib/**/*.rb'
end