This repository has been archived by the owner on Jan 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
62 lines (49 loc) · 1.49 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# -*- ruby -*-
require 'rubygems'
require 'hoe'
require 'pathname'
Hoe.plugin :doofus
Hoe.plugin :gemspec2
Hoe.plugin :git
Hoe.plugin :minitest
Hoe.plugin :rubygems
Hoe.plugin :travis
config = Pathname('~/.gem/geminabox').expand_path
if config.exist?
geminabox = YAML.load(config.read)[:host]
end
if geminabox
Hoe.plugin :geminabox
else
raise "'geminabox' is not configured. Put a ':host' key in '~/.gem/geminabox'."
end
Hoe.spec 'canonical-attributes' do
developer('Austin Ziegler', '[email protected]')
self.geminabox_server = geminabox
self.history_file = 'History.rdoc'
self.readme_file = 'README.rdoc'
self.extra_rdoc_files = FileList['*.rdoc'].to_a
license 'MIT'
self.extra_deps << ['activesupport', '>= 3.2', '< 5.2']
self.extra_dev_deps << ['active_attr', '~> 0.8']
self.extra_dev_deps << ['hoe-doofus', '~> 1.0']
self.extra_dev_deps << ['hoe-gemspec2', '~> 1.1']
self.extra_dev_deps << ['hoe-git', '~> 1.5']
self.extra_dev_deps << ['hoe-rubygems', '~> 1.0']
self.extra_dev_deps << ['hoe-travis', '~> 1.2']
self.extra_dev_deps << ['minitest', '~> 5.4']
self.extra_dev_deps << ['minitest-moar', '~> 0.0']
self.extra_dev_deps << ['rake', '~> 10.0']
self.extra_dev_deps << ['simplecov', '~> 0.7']
end
namespace :test do
task :coverage do
spec.test_prelude = [
'require "simplecov"',
'SimpleCov.start("test_frameworks") { command_name "Minitest" }',
'gem "minitest"'
].join('; ')
Rake::Task['test'].execute
end
end
# vim: syntax=ruby