Skip to content

Commit

Permalink
Feng shui of some organising of gemspecs
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-hill authored and taf2 committed Apr 18, 2019
1 parent 9df5a13 commit a241c93
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
language: ruby
rvm:
- ruby-head
- 2.6
- 2.5
- 2.4
- 2.3
- 2.2
- ruby-head
- rbx-3
matrix:
allow_failures:
Expand Down
12 changes: 5 additions & 7 deletions curb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,21 @@ Gem::Specification.new do |s|
s.email = '[email protected]'
s.extra_rdoc_files = ['LICENSE', 'README.markdown']

s.files = ["LICENSE", "README.markdown", "Rakefile", "doc.rb", "ext/extconf.rb", "lib/curl/easy.rb", "lib/curl/multi.rb", "lib/curb.rb", "lib/curl.rb", "ext/curb_easy.c", "ext/curb.c", "ext/curb_multi.c", "ext/curb_upload.c", "ext/curb_postfield.c", "ext/curb_errors.c", "ext/curb_postfield.h", "ext/curb_errors.h", "ext/curb_easy.h", "ext/curb_macros.h", "ext/curb.h", "ext/curb_upload.h", "ext/curb_multi.h"]
s.files = %w(LICENSE README.markdown Rakefile doc.rb ext/extconf.rb lib/curl/easy.rb lib/curl/multi.rb lib/curb.rb lib/curl.rb ext/curb_easy.c ext/curb.c ext/curb_multi.c ext/curb_upload.c ext/curb_postfield.c ext/curb_errors.c ext/curb_postfield.h ext/curb_errors.h ext/curb_easy.h ext/curb_macros.h ext/curb.h ext/curb_upload.h ext/curb_multi.h)
#### Load-time details
s.require_paths = ['lib','ext']
s.rubyforge_project = 'curb'
s.summary = %q{Ruby libcurl bindings}
s.test_files = ["tests/tc_curl_multi.rb", "tests/alltests.rb", "tests/tc_curl_easy_setopt.rb", "tests/tc_curl.rb", "tests/bug_postfields_crash.rb", "tests/bug_crash_on_progress.rb", "tests/helper.rb", "tests/bug_issue277.rb", "tests/bug_postfields_crash2.rb", "tests/bug_require_last_or_segfault.rb", "tests/timeout.rb", "tests/bug_crash_on_debug.rb", "tests/unittests.rb", "tests/bug_issue102.rb", "tests/bug_curb_easy_blocks_ruby_threads.rb", "tests/bug_multi_segfault.rb", "tests/bug_instance_post_differs_from_class_post.rb", "tests/require_last_or_segfault_script.rb", "tests/timeout_server.rb", "tests/tc_curl_download.rb", "tests/tc_curl_easy.rb", "tests/mem_check.rb", "tests/tc_curl_postfield.rb", "tests/tc_curl_maxfilesize.rb", "tests/bugtests.rb", "tests/tc_curl_easy_resolve.rb", "tests/signals.rb", "tests/bug_curb_easy_post_with_string_no_content_length_header.rb"]

s.extensions << 'ext/extconf.rb'


s.test_files = %w(tests/tc_curl_multi.rb tests/alltests.rb tests/tc_curl_easy_setopt.rb tests/tc_curl.rb tests/bug_postfields_crash.rb tests/bug_crash_on_progress.rb tests/helper.rb tests/bug_postfields_crash2.rb tests/bug_require_last_or_segfault.rb tests/timeout.rb tests/bug_crash_on_debug.rb tests/unittests.rb tests/bug_issue102.rb tests/bug_curb_easy_blocks_ruby_threads.rb tests/bug_multi_segfault.rb tests/bug_instance_post_differs_from_class_post.rb tests/require_last_or_segfault_script.rb tests/timeout_server.rb tests/tc_curl_download.rb tests/tc_curl_easy.rb tests/mem_check.rb tests/tc_curl_postfield.rb tests/bugtests.rb tests/tc_curl_easy_resolve.rb tests/signals.rb tests/bug_curb_easy_post_with_string_no_content_length_header.rb)
s.extensions << 'ext/extconf.rb'

#### Documentation and testing.
s.has_rdoc = true
s.homepage = 'https://github.com/taf2/curb'
s.rdoc_options = ['--main', 'README.markdown']


s.platform = Gem::Platform::RUBY
s.platform = Gem::Platform::RUBY

s.licenses = ['MIT']
end
8 changes: 6 additions & 2 deletions lib/curb.gemspec.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ Gem::Specification.new do |s|
s.email = '[email protected]'
s.extra_rdoc_files = ['LICENSE', 'README.markdown']
<%
files = ['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' }
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'
Expand Down

0 comments on commit a241c93

Please sign in to comment.