-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
41 lines (34 loc) · 852 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
# -*- ruby -*-
require 'rubygems'
tries = 0
begin
require 'hoe'
require 'minitest'
require 'rake/extensiontask'
rescue LoadError
tries += 1
Gem.install 'hoe'
Gem.install 'rake-compiler'
Gem.install 'hoe-gemspec'
Gem.install 'hoe-git'
Gem.install 'minitest'
raise unless tries < 10
retry
end
Hoe.plugin :minitest
Hoe.plugin :gemspec # `gem install hoe-gemspec`
Hoe.plugin :git # `gem install hoe-git`
HOE = Hoe.spec 'myhidapi' do
developer('Aaron Patterson', 'tenderlove@ruby-lang.org')
license "MIT"
self.readme_file = 'README.md'
self.history_file = 'CHANGELOG.md'
self.extra_rdoc_files = FileList['*.md']
self.spec_extras = {
:extensions => ["ext/myhidapi/extconf.rb"],
:required_ruby_version => '>= 2.3.0'
}
end
Rake::ExtensionTask.new("myhidapi", HOE.spec) do |ext|
end
# vim: syntax=ruby