Skip to content

Commit def8720

Browse files
committed
covert to gemspec
1 parent 66d2644 commit def8720

File tree

8 files changed

+18
-60
lines changed

8 files changed

+18
-60
lines changed

.autotest

Lines changed: 0 additions & 9 deletions
This file was deleted.

.gemtest

Whitespace-only changes.

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
---
2-
after_script: bundle exec rake travis:after --trace
3-
before_script: bundle exec rake travis:before --trace
42
language: ruby
53
notifications:
64
email:
@@ -12,4 +10,3 @@ rvm:
1210
- 2.4
1311
- 2.5
1412
- 2.6
15-
script: bundle exec rake travis

Gemfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
source "https://rubygems.org"
22

3+
gemspec
4+
35
gem "rake"
4-
gem "hoe"
5-
gem "hoe-travis"
66
gem "minitest"
7-
gem "connection_pool"
87
gem "net-http-pipeline"

Manifest.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.rdoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
= net-http-persistent
22

3-
* http://docs.seattlerb.org/net-http-persistent
43
* https://github.com/drbrain/net-http-persistent
54

65
== DESCRIPTION:
76

8-
Manages persistent connections using Net::HTTP plus a speed fix for Ruby 1.8.
7+
Manages persistent connections using Net::HTTP.
98
It's thread-safe too!
109

1110
Using persistent HTTP connections can dramatically increase the speed of HTTP.
@@ -21,7 +20,6 @@ and retry according to RFC 2616.
2120
* Supports SSL
2221
* Thread-safe
2322
* Pure ruby
24-
* Timeout-less speed boost for Ruby 1.8 (by Aaron Patterson)
2523

2624
== SYNOPSIS
2725

@@ -54,7 +52,7 @@ including SSL connection verification, header handling and tunable options.
5452

5553
== INSTALL:
5654

57-
gem install net-http-persistent
55+
gem install net-http-persistent
5856

5957
== LICENSE:
6058

Rakefile

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,5 @@
1-
# -*- ruby -*-
2-
31
require 'bundler/setup'
4-
require 'hoe'
5-
6-
Hoe.plugin :git
7-
Hoe.plugin :minitest
8-
Hoe.plugin :travis
9-
10-
Hoe.spec 'net-http-persistent' do
11-
developer 'Eric Hodel', 'drbrain@segment7.net'
12-
13-
self.readme_file = 'README.rdoc'
14-
self.extra_rdoc_files += Dir['*.rdoc']
15-
16-
self.require_ruby_version '~> 2.1'
17-
18-
license 'MIT'
19-
20-
rdoc_locations <<
21-
'docs.seattlerb.org:/data/www/docs.seattlerb.org/net-http-persistent/'
22-
23-
dependency 'connection_pool', '~> 2.2'
24-
dependency 'minitest', '~> 5.2', :development
25-
end
2+
require 'bundler/gem_tasks'
3+
require 'rake/testtask'
264

27-
# vim: syntax=Ruby
5+
Rake::TestTask.new :default

net-http-persistent.gemspec

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Gem::Specification.new 'net-http-persistent', '3.0.1' do |s|
2+
s.summary = "Manages persistent connections using Net::HTTP"
3+
s.description = "Manages persistent connections using Net::HTTP. It's thread-safe too! Using persistent HTTP connections can dramatically increase the speed of HTTP. Creating a new HTTP connection for every request involves an extra TCP round-trip and causes TCP congestion avoidance negotiation to start over. Net::HTTP supports persistent connections with some API methods but does not handle reconnection gracefully. Net::HTTP::Persistent supports reconnection and retry according to RFC 2616."
4+
s.authors = ["Eric Hodel"]
5+
s.email = "drbrain@segment7.net"
6+
s.homepage = "https://github.com/drbrain/net-http-persistent"
7+
s.files = `git ls-files lib History.txt Readme.rdoc`.split("\n")
8+
s.license = "MIT"
9+
s.required_ruby_version = '~> 2.1'
10+
s.add_runtime_dependency 'connection_pool', '~> 2.2'
11+
end

0 commit comments

Comments
 (0)