-
Notifications
You must be signed in to change notification settings - Fork 120
get tests running / convert to bundler #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
/doc | ||
/pkg | ||
.idea | ||
Gemfile.lock |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
--- | ||
after_script: | ||
- rake travis:after -t | ||
before_script: | ||
- gem install hoe-travis --no-rdoc --no-ri | ||
- rake travis:before -t | ||
language: ruby | ||
notifications: | ||
email: | ||
- drbrain@segment7.net | ||
rvm: | ||
- 2.1.10 | ||
- 2.2.5 | ||
- 2.3.1 | ||
script: rake travis | ||
- 2.1 | ||
- 2.2 | ||
- 2.3 | ||
- 2.4 | ||
- 2.5 | ||
- 2.6 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
source "https://rubygems.org" | ||
|
||
gemspec | ||
|
||
gem "rake" | ||
gem "bump" | ||
gem "minitest" | ||
gem "net-http-pipeline" |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,6 @@ | ||
# -*- ruby -*- | ||
require 'bundler/setup' | ||
require 'bundler/gem_tasks' | ||
require 'rake/testtask' | ||
require 'bump/tasks' | ||
|
||
require 'rubygems' | ||
require 'hoe' | ||
|
||
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.1' | ||
|
||
license 'MIT' | ||
|
||
rdoc_locations << | ||
'docs.seattlerb.org:/data/www/docs.seattlerb.org/net-http-persistent/' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The docs are no longer published and I don't think bundler's publishing tasks have this capability for a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we use a more standard docs host ... or just remove hosting docs in favor of directing people to just read the docs/readme on github ? (removes lots of complications ... and this is a tiny gem anyway, so no need for fancy docs) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ... or leave that for "whenever someone care enough to fix it" ... because I'd love to actually fix the code and not be blocked by this docs issue :( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I spent a lot of time writing comprehensive documentation that's accessible from standard tools. Pretending like they don't exist and that they'll maintain themselves means they'll decay. Reading documentation out of source files isn't discoverable or easy for people who aren't experienced rubyists or aren't familiar with the library. Having a first-class experience as an introduction to a library is essential. I've fixed the docs issue by fixing hoe-travis (1.4.1 release) and creating seattlerb/hoe#89. The tests now run and pass on master on travis. |
||
|
||
dependency 'connection_pool', '~> 2.2' | ||
dependency 'minitest', '~> 5.2', :development | ||
end | ||
|
||
# vim: syntax=Ruby | ||
Rake::TestTask.new :default |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Gem::Specification.new 'net-http-persistent', '3.0.1' do |s| | ||
grosser marked this conversation as resolved.
Show resolved
Hide resolved
|
||
s.summary = "Manages persistent connections using Net::HTTP" | ||
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." | ||
s.authors = ["Eric Hodel"] | ||
s.email = "drbrain@segment7.net" | ||
s.homepage = "https://github.com/drbrain/net-http-persistent" | ||
s.files = `git ls-files lib History.txt Readme.rdoc`.split("\n") | ||
s.license = "MIT" | ||
s.required_ruby_version = '~> 2.1' | ||
s.add_runtime_dependency 'connection_pool', '~> 2.2' | ||
end |
Uh oh!
There was an error while loading. Please reload this page.