htty 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +10 -6
- data/History.markdown +5 -0
- data/README.markdown +28 -22
- data/htty.gemspec +1 -1
- data/lib/htty/requests_util.rb +1 -1
- data/lib/htty/version.rb +1 -1
- data/spec/spec_helper.rb +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a36f225355d439c485f52a8ade8743ea929f9248
|
4
|
+
data.tar.gz: 99bcaffba0a8f0e0b9c974f4c251c44a4937ce6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4828c477bff4fa8788db5242f630ce213b217307515e8cf44a22673ab5cca3d55de5c405ed2f70a17208561ef6688ee22e3ca5b8dc9ab4b9311dd2e7e164873d
|
7
|
+
data.tar.gz: a85ac9ce301447ab90b8416b77f5ff20d15856876866eec81cb57f4c0a5f252591c5982361c5ad33abc5f8f096f74a3dd084ddaf7f2ed8a427bcbdff2a6ba2d3
|
data/Gemfile
CHANGED
@@ -2,21 +2,25 @@ source 'http://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
gem 'jruby-openssl',
|
5
|
+
gem 'jruby-openssl', '~> 0', :platforms => :jruby
|
6
6
|
|
7
7
|
group :debug do
|
8
|
-
gem 'ruby-debug',
|
9
|
-
gem 'ruby-debug19',
|
8
|
+
gem 'ruby-debug', '~> 0', :platforms => :mri_18
|
9
|
+
gem 'ruby-debug19', '~> 0', :platforms => :mri_19, :require => 'ruby-debug'
|
10
|
+
end
|
11
|
+
|
12
|
+
group :development do
|
13
|
+
gem 'codeclimate-test-reporter', '~> 0', :platforms => :mri_20, :require => false
|
10
14
|
end
|
11
15
|
|
12
16
|
group :doc do
|
13
|
-
gem 'yard',
|
14
|
-
gem 'rdiscount',
|
17
|
+
gem 'yard', '~> 0', :platforms => [:ruby, :mswin, :mingw]
|
18
|
+
gem 'rdiscount', :platforms => [:ruby, :mswin, :mingw]
|
15
19
|
end
|
16
20
|
|
17
21
|
group :tooling do
|
18
22
|
gem 'guard-rspec', '~> 3'
|
19
23
|
if RUBY_PLATFORM =~ /darwin/i
|
20
|
-
gem 'rb-fsevent', '~> 0',
|
24
|
+
gem 'rb-fsevent', '~> 0', :require => false
|
21
25
|
end
|
22
26
|
end
|
data/History.markdown
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Version history for the _htty_ project
|
2
2
|
======================================
|
3
3
|
|
4
|
+
<a name="v1.5.1"></a>v1.5.1, Mon 9/14/2015
|
5
|
+
-------------------------------------------
|
6
|
+
|
7
|
+
* Fixed a bug that crashed on startup for some Ruby versions [[vijay-v](http://github.com/vijay-v "vijay-v at GitHub")]
|
8
|
+
|
4
9
|
<a name="v1.5.0"></a>v1.5.0, Tue 4/01/2014
|
5
10
|
-------------------------------------------
|
6
11
|
|
data/README.markdown
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
s s
|
3
2
|
.uef^" :8 :8 ..
|
4
3
|
:d88E .88 .88 @L
|
@@ -29,10 +28,12 @@
|
|
29
28
|
|
30
29
|
[htty](http://htty.github.io) is a console application for interacting with web servers. It’s a fun way to explore web APIs and to learn the ins and outs of HTTP.
|
31
30
|
|
32
|
-
[![Travis CI build status]](http://travis-ci.org/htty/htty "Travis CI build
|
33
|
-
[![Gemnasium
|
34
|
-
[![Code Climate
|
35
|
-
[![
|
31
|
+
[![Travis CI build status] ](http://travis-ci.org/htty/htty "Travis CI build")
|
32
|
+
[![Gemnasium dependencies status] ](http://gemnasium.com/htty/htty "Gemnasium dependencies analysis")
|
33
|
+
[![Code Climate code quality] ](http://codeclimate.com/github/htty/htty "Code Climate analysis")
|
34
|
+
[![Code Climate test coverage] ](http://codeclimate.com/github/htty/htty "Code Climate analysis")
|
35
|
+
[![Inch inline documentation coverage]](http://inch-ci.org/github/htty/htty "Inch inline documentation analysis")
|
36
|
+
[![RubyGems release] ](http://rubygems.org/gems/htty "RubyGems release")
|
36
37
|
|
37
38
|
See what’s changed lately by reading the [project history](http://github.com/htty/htty/blob/master/History.markdown).
|
38
39
|
|
@@ -133,23 +134,25 @@ Now we’ll look at <i>htty</i>’s HTTP Basic Authentication support and learn
|
|
133
134
|
|
134
135
|
Assume that we have the following Sinatra application listening on Sinatra’s default port, 4567.
|
135
136
|
|
136
|
-
|
137
|
+
``` ruby
|
138
|
+
require 'sinatra'
|
137
139
|
|
138
|
-
|
139
|
-
|
140
|
-
|
140
|
+
get '/all-good' do
|
141
|
+
[200, [['Set-Cookie', 'foo=bar; baz']], 'Hello World!']
|
142
|
+
end
|
141
143
|
|
142
|
-
|
143
|
-
|
144
|
-
|
144
|
+
put '/huh' do
|
145
|
+
[404, 'What?']
|
146
|
+
end
|
145
147
|
|
146
|
-
|
147
|
-
|
148
|
-
|
148
|
+
delete '/hurl' do
|
149
|
+
[500, 'Barf!']
|
150
|
+
end
|
149
151
|
|
150
|
-
|
151
|
-
|
152
|
-
|
152
|
+
post '/submit-novel' do
|
153
|
+
redirect '/all-good'
|
154
|
+
end
|
155
|
+
```
|
153
156
|
|
154
157
|
This application expects _GET_ and _POST_ requests and responds in various contrived ways.
|
155
158
|
|
@@ -211,13 +214,16 @@ Thanks to [contributors](http://github.com/htty/htty/contributors "htty contribu
|
|
211
214
|
* Sam Nguyen ([dtjm](http://github.com/dtjm "dtjm at GitHub"))
|
212
215
|
* Robert Pitts ([rbxbx](http://github.com/rbxbx "rbxbx at GitHub"))
|
213
216
|
* Matt Sanders ([nextmat](http://github.com/nextmat "nextmat at GitHub"))
|
217
|
+
* [vijay-v](http://github.com/vijay-v "vijay-v at GitHub")
|
214
218
|
|
215
219
|
License
|
216
220
|
=======
|
217
221
|
|
218
222
|
Released under the [MIT License](http://github.com/htty/htty/blob/master/License.markdown).
|
219
223
|
|
220
|
-
[Travis CI build status]:
|
221
|
-
[Gemnasium
|
222
|
-
[Code Climate
|
223
|
-
[
|
224
|
+
[Travis CI build status]: https://secure.travis-ci.org/htty/htty.png?branch=master
|
225
|
+
[Gemnasium dependencies status]: https://gemnasium.com/htty/htty.png
|
226
|
+
[Code Climate code quality]: https://codeclimate.com/github/htty/htty.png
|
227
|
+
[Code Climate test coverage]: https://codeclimate.com/github/htty/htty/coverage.png
|
228
|
+
[Inch inline documentation coverage]: http://inch-ci.org/github/htty/htty.png
|
229
|
+
[RubyGems release]: https://badge.fury.io/rb/htty.png
|
data/htty.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_dependency 'mime-types', '~> 1'
|
23
23
|
|
24
24
|
s.add_development_dependency 'rake'
|
25
|
-
s.add_development_dependency 'rspec',
|
25
|
+
s.add_development_dependency 'rspec', '~> 2'
|
26
26
|
|
27
27
|
s.rubyforge_project = 'htty'
|
28
28
|
s.has_rdoc = true
|
data/lib/htty/requests_util.rb
CHANGED
@@ -118,6 +118,6 @@ private
|
|
118
118
|
# starting from 2.0.0 net/http requires headers to be hashes
|
119
119
|
require 'rubygems' # Not necessary under Ruby v2
|
120
120
|
HEADERS_MUST_BE_AN_HASH =
|
121
|
-
Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.0.0')
|
121
|
+
Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.0.0')
|
122
122
|
|
123
123
|
end
|
data/lib/htty/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
begin
|
2
|
+
require 'codeclimate-test-reporter'
|
3
|
+
rescue LoadError
|
4
|
+
else
|
5
|
+
CodeClimate::TestReporter.start
|
6
|
+
end
|
7
|
+
|
1
8
|
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
9
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
10
|
# Require this file using `require "spec_helper"` to ensure that it is only
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: htty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nils Jonsson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|
@@ -284,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
284
284
|
version: '0'
|
285
285
|
requirements: []
|
286
286
|
rubyforge_project: htty
|
287
|
-
rubygems_version: 2.
|
287
|
+
rubygems_version: 2.4.8
|
288
288
|
signing_key:
|
289
289
|
specification_version: 4
|
290
290
|
summary: The HTTP TTY
|