-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
31 lines (27 loc) · 1.11 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
# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'countless/rake_tasks'
RSpec::Core::RakeTask.new(:spec)
task default: :spec
# Configure all code statistics directories
Countless.configure do |config|
config.stats_base_directories = [
{ name: 'Top-levels', dir: 'lib',
pattern: %r{/lib(/pricehubble)?/[^/]+\.rb$} },
{ name: 'Top-levels specs', test: true, dir: 'spec',
pattern: %r{/spec(/pricehubble)?/[^/]+_spec\.rb$} },
{ name: 'Clients', pattern: 'lib/pricehubble/client/**/*.rb' },
{ name: 'Clients specs', test: true,
pattern: 'spec/client/**/*_spec.rb' },
{ name: 'Entities', pattern: 'lib/pricehubble/entity/**/*.rb' },
{ name: 'Entities specs', test: true,
pattern: 'spec/entity/**/*_spec.rb' },
{ name: 'Utilities', pattern: 'lib/pricehubble/utils/**/*.rb' },
{ name: 'Utilities specs', test: true,
pattern: 'spec/utils/**/*_spec.rb' },
{ name: 'Instrumentation',
pattern: 'lib/pricehubble/instrumentation/**/*.rb' },
{ name: 'Core Extensions', pattern: 'lib/pricehubble/core_ext/**/*.rb' }
]
end