forked from drbrain/net-http-persistent
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request drbrain#125 from deivid-rodriguez/github_actions
Switch CI to Github Actions
- Loading branch information
Showing
9 changed files
with
102 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
|
||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: [2.4, 2.5, 2.6, 2.7, '3.0', 3.1, jruby-9.2] | ||
os: [ubuntu-20.04, windows-2019] | ||
include: | ||
- { ruby: 3.1, os: ubuntu-20.04, matrix: pipeline } | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
CI_MATRIX: ${{ matrix.matrix }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
rubygems: 3.3.6 | ||
bundler-cache: true | ||
|
||
- name: Test things | ||
run: bundle exec rake test manifest:check |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
# -*- ruby -*- | ||
|
||
# DO NOT EDIT THIS FILE. Instead, edit Rakefile, and run `rake bundler:gemfile`. | ||
|
||
source "https://rubygems.org/" | ||
|
||
gem "connection_pool", "~>2.2" | ||
gemspec | ||
|
||
gem "minitest", "~>5.11", :group => [:development, :test] | ||
gem "hoe-bundler", "~>1.5", :group => [:development, :test] | ||
gem "hoe-travis", "~>1.4", ">=1.4.1", :group => [:development, :test] | ||
gem "rake", "~>13.0" | ||
gem "minitest", "~>5.15", :group => [:development, :test] | ||
gem "rdoc", ">=4.0", "<7", :group => [:development, :test] | ||
gem "hoe", "~>3.17", :group => [:development, :test] | ||
gem "rake-manifest", "~>0.2" | ||
|
||
gem 'net-http-pipeline', '~> 1.0' if ENV['CI_MATRIX'] == 'pipeline' | ||
|
||
# vim: syntax=ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
.autotest | ||
.gemtest | ||
.travis.yml | ||
Gemfile | ||
History.txt | ||
Manifest.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,25 @@ | ||
# -*- ruby -*- | ||
|
||
require 'hoe' | ||
|
||
Hoe.plugin :bundler | ||
Hoe.plugin :git | ||
Hoe.plugin :minitest | ||
Hoe.plugin :travis | ||
|
||
Hoe.spec 'net-http-persistent' do | ||
developer 'Eric Hodel', 'drbrain@segment7.net' | ||
|
||
self.readme_file = 'README.rdoc' | ||
self.extra_rdoc_files += Dir['*.rdoc'] | ||
|
||
self.require_ruby_version '>= 2.3' | ||
|
||
license 'MIT' | ||
|
||
rdoc_locations << | ||
'docs-push.seattlerb.org:/data/www/docs.seattlerb.org/net-http-persistent/' | ||
|
||
dependency 'connection_pool', '~> 2.2' | ||
dependency 'minitest', '~> 5.2', :development | ||
dependency 'hoe-bundler', '~> 1.5', :development | ||
dependency 'hoe-travis', ['~> 1.4', '>= 1.4.1'], :development | ||
dependency 'net-http-pipeline', '~> 1.0' if | ||
ENV['TRAVIS_MATRIX'] == 'pipeline' | ||
require "bundler/gem_tasks" | ||
|
||
require "rake/testtask" | ||
|
||
Rake::TestTask.new | ||
|
||
require "rake/manifest" | ||
|
||
Rake::Manifest::Task.new do |t| | ||
t.patterns = [ | ||
".autotest", | ||
".gemtest", | ||
".travis.yml", | ||
"Gemfile", | ||
"History.txt", | ||
"Manifest.txt", | ||
"README.rdoc", | ||
"Rakefile", | ||
"{test,lib}/**/*" | ||
] | ||
end | ||
|
||
# vim: syntax=Ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "net-http-persistent".freeze | ||
s.version = File.read("lib/net/http/persistent.rb")[/VERSION += +([\"\'])([\d][\w\.]+)\1/, 2] | ||
|
||
s.metadata = { "homepage_uri" => "https://github.com/drbrain/net-http-persistent" } | ||
s.require_paths = ["lib".freeze] | ||
s.authors = ["Eric Hodel".freeze] | ||
s.description = "Manages persistent connections using Net::HTTP including a thread pool for\nconnecting to multiple hosts.\n\nUsing persistent HTTP connections can dramatically increase the speed of HTTP.\nCreating a new HTTP connection for every request involves an extra TCP\nround-trip and causes TCP congestion avoidance negotiation to start over.\n\nNet::HTTP supports persistent connections with some API methods but does not\nmake setting up a single persistent connection or managing multiple\nconnections easy. Net::HTTP::Persistent wraps Net::HTTP and allows you to\nfocus on how to make HTTP requests.".freeze | ||
s.email = ["drbrain@segment7.net".freeze] | ||
s.extra_rdoc_files = ["History.txt".freeze, "Manifest.txt".freeze, "README.rdoc".freeze] | ||
s.files = File.read("Manifest.txt").split | ||
s.homepage = "https://github.com/drbrain/net-http-persistent".freeze | ||
s.licenses = ["MIT".freeze] | ||
s.rdoc_options = ["--main".freeze, "README.rdoc".freeze] | ||
s.required_ruby_version = ">= 2.4".freeze | ||
s.summary = "Manages persistent connections using Net::HTTP including a thread pool for connecting to multiple hosts".freeze | ||
|
||
s.add_runtime_dependency(%q<connection_pool>.freeze, ["~> 2.2"]) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters