-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcurb.gemspec.erb
42 lines (38 loc) · 1.37 KB
/
curb.gemspec.erb
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
Gem::Specification.new do |s|
s.name = "curb"
s.authors = ["Ross Bamford", "Todd A. Fisher"]
s.version = '<%= CURRENT_VERSION %>'
s.date = '<%= Time.now.strftime("%Y-%m-%d") %>'
s.description = %q{Curb (probably CUrl-RuBy or something) provides Ruby-language bindings for the libcurl(3), a fully-featured client-side URL transfer library. cURL and libcurl live at http://curl.haxx.se/}
s.email = '[email protected]'
s.extra_rdoc_files = ['LICENSE', 'README.markdown']
<%
files = %w(LICENSE README.markdown Rakefile doc.rb ext/extconf.rb) +
Dir["lib/**/**.rb"] +
Dir["ext/**/**.c"] +
Dir["ext/**/**.h"].
reject{|h| h == 'ext/curb_config.h' }
if ENV['BINARY_PACKAGE']
files += Dir['ext/**/*.{o,so,bundle}']
end
%>
s.files = <%= files.inspect %>
#### Load-time details
s.require_paths = ['lib','ext']
s.rubyforge_project = 'curb'
s.summary = %q{Ruby libcurl bindings}
s.test_files = <%= Dir['tests/**/**.rb'].inspect %>
<% unless ENV['BINARY_PACKAGE'] %>
s.extensions << 'ext/extconf.rb'
<% end %>
#### Documentation and testing.
s.has_rdoc = true
s.homepage = 'https://github.com/taf2/curb'
s.rdoc_options = ['--main', 'README.markdown']
<% if ENV['BINARY_PACKAGE'] %>
s.platform = Gem::Platform::CURRENT
<% else %>
s.platform = Gem::Platform::RUBY
<% end %>
s.licenses = ['MIT']
end