-
Notifications
You must be signed in to change notification settings - Fork 0
/
rspec_metric_fu.gemspec
46 lines (37 loc) · 1.42 KB
/
rspec_metric_fu.gemspec
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
46
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rspec_metric_fu/version'
Gem::Specification.new do |spec|
spec.name = "rspec_metric_fu"
spec.version = RspecMetricFu::VERSION
spec.authors = ["Nick Thomas"]
spec.email = ["nick.thomas@mobileeventguide.de"]
spec.summary = %q{metric_fu includes for our spec_helper}
spec.homepage = "https://github.com/mobileeventguide/rspec_metric_fu"
spec.license = "MIT"
spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.post_install_message = %q{
*** Notice ***
Rspec metric_fu install notice:
You should write a .metrics file with the following content:
MetricFu::Configuration.run do |config|
config.configure_metric(:rcov) do |rcov|
rcov.coverage_file = MetricFu.run_path.join("coverage/rcov/rcov.txt")
rcov.enable
rcov.activate
end
end
and add these two lines too your spec_helper:
require 'rspec_metric_fu'
RspecMetricFu::Coverage.start
*** Fin ***
}
spec.add_development_dependency "bundler", "~> 1.5"
spec.add_development_dependency "rake"
spec.add_dependency 'metric_fu', '~> 4.9'
spec.add_dependency 'simplecov', '0.9.0'
end