htty 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@
29
29
 
30
30
  [htty](http://htty.github.com) is a console application for interacting with HTTP servers. It’s something of a cross between _curl_ and the Lynx browser.
31
31
 
32
- See what’s changed lately by reading the [project history](http://htty.github.com/file.History.html).
32
+ See what’s changed lately by reading the [project history](http://htty.github.com/file.History.html). [![Flattr this](http://api.flattr.com/button/button-compact-static-100x17.png)](http://flattr.com/thing/68277/htty-the-HTTP-TTY "Flattr this")
33
33
 
34
34
  Installation
35
35
  ============
@@ -222,7 +222,7 @@ Stay in touch with the _htty_ project by following [@get_htty](http://twitter.co
222
222
 
223
223
  You can also get help in the [#htty channel on Freenode](http://webchat.freenode.net/?channels=htty).
224
224
 
225
- Credits
225
+ Credits [![Flattr this](http://api.flattr.com/button/button-compact-static-100x17.png)](http://flattr.com/thing/68277/htty-the-HTTP-TTY "Flattr this")
226
226
  =======
227
227
 
228
228
  The author, [Nils Jonsson](mailto:htty@nilsjonsson.com), owes a debt of inspiration to the [_http-console_](http://github.com/cloudhead/http-console) project.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.2
1
+ 1.1.3
@@ -48,7 +48,7 @@ class HTTY::CLI::Commands::BodyResponse < HTTY::CLI::Command
48
48
  unless (response = session.last_response)
49
49
  raise HTTY::NoResponseError
50
50
  end
51
- unless (body = response.body).strip.empty?
51
+ unless (body = response.body).to_s.empty?
52
52
  puts body
53
53
  end
54
54
  self
@@ -1,3 +1,4 @@
1
+ require 'readline'
1
2
  require File.expand_path("#{File.dirname __FILE__}/../command")
2
3
  require File.expand_path("#{File.dirname __FILE__}/../display")
3
4
  require File.expand_path("#{File.dirname __FILE__}/body_request")
@@ -45,7 +46,7 @@ class HTTY::CLI::Commands::BodySet < HTTY::CLI::Command
45
46
  lines = []
46
47
  empty_line_count = 0
47
48
  while empty_line_count < 2 do
48
- if (input = $stdin.gets).nil?
49
+ if (input = Readline.readline).nil?
49
50
  break
50
51
  end
51
52
  lines << input.chomp
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 2
9
- version: 1.1.2
8
+ - 3
9
+ version: 1.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Nils Jonsson
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-29 00:00:00 -05:00
17
+ date: 2010-10-12 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency