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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3b290d26fc218bc076d46a221d175b42e90eb80
4
- data.tar.gz: 3f69157993072a96e5d052a89b847bd874ac9570
3
+ metadata.gz: a36f225355d439c485f52a8ade8743ea929f9248
4
+ data.tar.gz: 99bcaffba0a8f0e0b9c974f4c251c44a4937ce6a
5
5
  SHA512:
6
- metadata.gz: 6970d457cec829c0f55020e681d5bf898a6a74d48c7004ed0397b75ff5ddb7823a90a1c924504eebc7177ea9a9863fd75ac131d3f743ca971f135ec21cb475ff
7
- data.tar.gz: 18e1e0ef5c813c95ce3be0afb08a8f8c3f7241d744964c2a0ae7dae99f919dacb02181ee5305bf945dd7e14d3e0b426f36b4e8af91fd4292b9eef434bfef1a66
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', '~> 0', :platforms => :jruby
5
+ gem 'jruby-openssl', '~> 0', :platforms => :jruby
6
6
 
7
7
  group :debug do
8
- gem 'ruby-debug', '~> 0', :platforms => :mri_18
9
- gem 'ruby-debug19', '~> 0', :platforms => :mri_19, :require => 'ruby-debug'
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', '~> 0', :platforms => [:ruby, :mswin, :mingw]
14
- gem 'rdiscount', :platforms => [:ruby, :mswin, :mingw]
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', :require => false
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 status")
33
- [![Gemnasium build status]](http://gemnasium.com/htty/htty "Gemnasium build status")
34
- [![Code Climate report] ](http://codeclimate.com/github/htty/htty "Code Climate report")
35
- [![RubyGems release] ](http://rubygems.org/gems/htty "RubyGems release")
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
- require 'sinatra'
137
+ ``` ruby
138
+ require 'sinatra'
137
139
 
138
- get '/all-good' do
139
- [200, [['Set-Cookie', 'foo=bar; baz']], 'Hello World!']
140
- end
140
+ get '/all-good' do
141
+ [200, [['Set-Cookie', 'foo=bar; baz']], 'Hello World!']
142
+ end
141
143
 
142
- put '/huh' do
143
- [404, 'What?']
144
- end
144
+ put '/huh' do
145
+ [404, 'What?']
146
+ end
145
147
 
146
- delete '/hurl' do
147
- [500, 'Barf!']
148
- end
148
+ delete '/hurl' do
149
+ [500, 'Barf!']
150
+ end
149
151
 
150
- post '/submit-novel' do
151
- redirect '/all-good'
152
- end
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]: https://secure.travis-ci.org/htty/htty.png?branch=master
221
- [Gemnasium build status]: https://gemnasium.com/htty/htty.png
222
- [Code Climate report]: https://codeclimate.com/github/htty/htty.png
223
- [RubyGems release]: https://badge.fury.io/rb/htty.png
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', '~> 2'
25
+ s.add_development_dependency 'rspec', '~> 2'
26
26
 
27
27
  s.rubyforge_project = 'htty'
28
28
  s.has_rdoc = true
@@ -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
@@ -1,6 +1,6 @@
1
1
  module HTTY
2
2
 
3
3
  # The version of this release of _htty_.
4
- VERSION = '1.5.0' unless const_defined?(:VERSION)
4
+ VERSION = '1.5.1' unless const_defined?(:VERSION)
5
5
 
6
6
  end
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.0
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: 2014-04-01 00:00:00.000000000 Z
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.2.2
287
+ rubygems_version: 2.4.8
288
288
  signing_key:
289
289
  specification_version: 4
290
290
  summary: The HTTP TTY