htty 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE.rdoc +9 -0
- data/README.rdoc +199 -0
- data/VERSION +1 -0
- data/app/htty.rb +14 -0
- data/app/htty/cli.rb +77 -0
- data/app/htty/cli/command.rb +185 -0
- data/app/htty/cli/commands.rb +43 -0
- data/app/htty/cli/commands/address.rb +84 -0
- data/app/htty/cli/commands/body_clear.rb +20 -0
- data/app/htty/cli/commands/body_request.rb +51 -0
- data/app/htty/cli/commands/body_response.rb +59 -0
- data/app/htty/cli/commands/body_set.rb +58 -0
- data/app/htty/cli/commands/body_unset.rb +45 -0
- data/app/htty/cli/commands/cd.rb +20 -0
- data/app/htty/cli/commands/cookie_add.rb +20 -0
- data/app/htty/cli/commands/cookie_remove.rb +20 -0
- data/app/htty/cli/commands/cookies.rb +68 -0
- data/app/htty/cli/commands/cookies_add.rb +62 -0
- data/app/htty/cli/commands/cookies_clear.rb +20 -0
- data/app/htty/cli/commands/cookies_remove.rb +60 -0
- data/app/htty/cli/commands/cookies_remove_all.rb +50 -0
- data/app/htty/cli/commands/cookies_use.rb +57 -0
- data/app/htty/cli/commands/delete.rb +20 -0
- data/app/htty/cli/commands/exit.rb +20 -0
- data/app/htty/cli/commands/follow.rb +56 -0
- data/app/htty/cli/commands/form.rb +20 -0
- data/app/htty/cli/commands/form_add.rb +20 -0
- data/app/htty/cli/commands/form_clear.rb +26 -0
- data/app/htty/cli/commands/form_remove.rb +20 -0
- data/app/htty/cli/commands/form_remove_all.rb +20 -0
- data/app/htty/cli/commands/fragment_clear.rb +20 -0
- data/app/htty/cli/commands/fragment_set.rb +59 -0
- data/app/htty/cli/commands/fragment_unset.rb +48 -0
- data/app/htty/cli/commands/get.rb +20 -0
- data/app/htty/cli/commands/header_set.rb +20 -0
- data/app/htty/cli/commands/header_unset.rb +20 -0
- data/app/htty/cli/commands/headers_clear.rb +20 -0
- data/app/htty/cli/commands/headers_request.rb +70 -0
- data/app/htty/cli/commands/headers_response.rb +65 -0
- data/app/htty/cli/commands/headers_set.rb +57 -0
- data/app/htty/cli/commands/headers_unset.rb +54 -0
- data/app/htty/cli/commands/headers_unset_all.rb +48 -0
- data/app/htty/cli/commands/help.rb +100 -0
- data/app/htty/cli/commands/history.rb +60 -0
- data/app/htty/cli/commands/history_verbose.rb +81 -0
- data/app/htty/cli/commands/host_set.rb +59 -0
- data/app/htty/cli/commands/http_delete.rb +40 -0
- data/app/htty/cli/commands/http_get.rb +42 -0
- data/app/htty/cli/commands/http_head.rb +36 -0
- data/app/htty/cli/commands/http_options.rb +36 -0
- data/app/htty/cli/commands/http_post.rb +34 -0
- data/app/htty/cli/commands/http_put.rb +29 -0
- data/app/htty/cli/commands/http_trace.rb +36 -0
- data/app/htty/cli/commands/path_set.rb +54 -0
- data/app/htty/cli/commands/port_set.rb +55 -0
- data/app/htty/cli/commands/post.rb +20 -0
- data/app/htty/cli/commands/put.rb +20 -0
- data/app/htty/cli/commands/query_clear.rb +20 -0
- data/app/htty/cli/commands/query_set.rb +59 -0
- data/app/htty/cli/commands/query_unset.rb +56 -0
- data/app/htty/cli/commands/query_unset_all.rb +50 -0
- data/app/htty/cli/commands/quit.rb +24 -0
- data/app/htty/cli/commands/reuse.rb +74 -0
- data/app/htty/cli/commands/scheme_set.rb +69 -0
- data/app/htty/cli/commands/status.rb +52 -0
- data/app/htty/cli/commands/undo.rb +13 -0
- data/app/htty/cli/commands/userinfo_clear.rb +20 -0
- data/app/htty/cli/commands/userinfo_set.rb +56 -0
- data/app/htty/cli/commands/userinfo_unset.rb +47 -0
- data/app/htty/cli/cookie_clearing_command.rb +26 -0
- data/app/htty/cli/display.rb +182 -0
- data/app/htty/cli/http_method_command.rb +75 -0
- data/app/htty/cli/url_escaping.rb +27 -0
- data/app/htty/cookies_util.rb +36 -0
- data/app/htty/no_location_header_error.rb +12 -0
- data/app/htty/no_response_error.rb +12 -0
- data/app/htty/no_set_cookie_header_error.rb +13 -0
- data/app/htty/ordered_hash.rb +69 -0
- data/app/htty/payload.rb +48 -0
- data/app/htty/request.rb +471 -0
- data/app/htty/requests_util.rb +92 -0
- data/app/htty/response.rb +34 -0
- data/app/htty/session.rb +29 -0
- data/bin/htty +5 -0
- data/spec/unit/htty/cli_spec.rb +27 -0
- data/spec/unit/htty/ordered_hash_spec.rb +54 -0
- data/spec/unit/htty/request_spec.rb +1236 -0
- data/spec/unit/htty/response_spec.rb +0 -0
- data/spec/unit/htty/session_spec.rb +13 -0
- metadata +158 -0
File without changes
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'spec'
|
2
|
+
require File.expand_path("#{File.dirname __FILE__}/../../../app/htty/request")
|
3
|
+
require File.expand_path("#{File.dirname __FILE__}/../../../app/htty/session")
|
4
|
+
|
5
|
+
describe HTTY::Session do
|
6
|
+
before :each do
|
7
|
+
@session = HTTY::Session.new('foo')
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'should have one request with the expected URI' do
|
11
|
+
@session.requests.should == [HTTY::Request.new('foo')]
|
12
|
+
end
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,158 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: htty
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
version: 1.0.0
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Nils Jonsson
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-09-06 00:00:00 -05:00
|
18
|
+
default_executable:
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description: htty is a console application for interacting with HTTP servers. It is something of a cross between curl and the Lynx browser.
|
22
|
+
email: htty@nilsjonsson.com
|
23
|
+
executables:
|
24
|
+
- htty
|
25
|
+
extensions: []
|
26
|
+
|
27
|
+
extra_rdoc_files:
|
28
|
+
- README.rdoc
|
29
|
+
- MIT-LICENSE.rdoc
|
30
|
+
files:
|
31
|
+
- README.rdoc
|
32
|
+
- MIT-LICENSE.rdoc
|
33
|
+
- VERSION
|
34
|
+
- app/htty/cli/command.rb
|
35
|
+
- app/htty/cli/commands/address.rb
|
36
|
+
- app/htty/cli/commands/body_clear.rb
|
37
|
+
- app/htty/cli/commands/body_request.rb
|
38
|
+
- app/htty/cli/commands/body_response.rb
|
39
|
+
- app/htty/cli/commands/body_set.rb
|
40
|
+
- app/htty/cli/commands/body_unset.rb
|
41
|
+
- app/htty/cli/commands/cd.rb
|
42
|
+
- app/htty/cli/commands/cookie_add.rb
|
43
|
+
- app/htty/cli/commands/cookie_remove.rb
|
44
|
+
- app/htty/cli/commands/cookies.rb
|
45
|
+
- app/htty/cli/commands/cookies_add.rb
|
46
|
+
- app/htty/cli/commands/cookies_clear.rb
|
47
|
+
- app/htty/cli/commands/cookies_remove.rb
|
48
|
+
- app/htty/cli/commands/cookies_remove_all.rb
|
49
|
+
- app/htty/cli/commands/cookies_use.rb
|
50
|
+
- app/htty/cli/commands/delete.rb
|
51
|
+
- app/htty/cli/commands/exit.rb
|
52
|
+
- app/htty/cli/commands/follow.rb
|
53
|
+
- app/htty/cli/commands/form.rb
|
54
|
+
- app/htty/cli/commands/form_add.rb
|
55
|
+
- app/htty/cli/commands/form_clear.rb
|
56
|
+
- app/htty/cli/commands/form_remove.rb
|
57
|
+
- app/htty/cli/commands/form_remove_all.rb
|
58
|
+
- app/htty/cli/commands/fragment_clear.rb
|
59
|
+
- app/htty/cli/commands/fragment_set.rb
|
60
|
+
- app/htty/cli/commands/fragment_unset.rb
|
61
|
+
- app/htty/cli/commands/get.rb
|
62
|
+
- app/htty/cli/commands/header_set.rb
|
63
|
+
- app/htty/cli/commands/header_unset.rb
|
64
|
+
- app/htty/cli/commands/headers_clear.rb
|
65
|
+
- app/htty/cli/commands/headers_request.rb
|
66
|
+
- app/htty/cli/commands/headers_response.rb
|
67
|
+
- app/htty/cli/commands/headers_set.rb
|
68
|
+
- app/htty/cli/commands/headers_unset.rb
|
69
|
+
- app/htty/cli/commands/headers_unset_all.rb
|
70
|
+
- app/htty/cli/commands/help.rb
|
71
|
+
- app/htty/cli/commands/history.rb
|
72
|
+
- app/htty/cli/commands/history_verbose.rb
|
73
|
+
- app/htty/cli/commands/host_set.rb
|
74
|
+
- app/htty/cli/commands/http_delete.rb
|
75
|
+
- app/htty/cli/commands/http_get.rb
|
76
|
+
- app/htty/cli/commands/http_head.rb
|
77
|
+
- app/htty/cli/commands/http_options.rb
|
78
|
+
- app/htty/cli/commands/http_post.rb
|
79
|
+
- app/htty/cli/commands/http_put.rb
|
80
|
+
- app/htty/cli/commands/http_trace.rb
|
81
|
+
- app/htty/cli/commands/path_set.rb
|
82
|
+
- app/htty/cli/commands/port_set.rb
|
83
|
+
- app/htty/cli/commands/post.rb
|
84
|
+
- app/htty/cli/commands/put.rb
|
85
|
+
- app/htty/cli/commands/query_clear.rb
|
86
|
+
- app/htty/cli/commands/query_set.rb
|
87
|
+
- app/htty/cli/commands/query_unset.rb
|
88
|
+
- app/htty/cli/commands/query_unset_all.rb
|
89
|
+
- app/htty/cli/commands/quit.rb
|
90
|
+
- app/htty/cli/commands/reuse.rb
|
91
|
+
- app/htty/cli/commands/scheme_set.rb
|
92
|
+
- app/htty/cli/commands/status.rb
|
93
|
+
- app/htty/cli/commands/undo.rb
|
94
|
+
- app/htty/cli/commands/userinfo_clear.rb
|
95
|
+
- app/htty/cli/commands/userinfo_set.rb
|
96
|
+
- app/htty/cli/commands/userinfo_unset.rb
|
97
|
+
- app/htty/cli/commands.rb
|
98
|
+
- app/htty/cli/cookie_clearing_command.rb
|
99
|
+
- app/htty/cli/display.rb
|
100
|
+
- app/htty/cli/http_method_command.rb
|
101
|
+
- app/htty/cli/url_escaping.rb
|
102
|
+
- app/htty/cli.rb
|
103
|
+
- app/htty/cookies_util.rb
|
104
|
+
- app/htty/no_location_header_error.rb
|
105
|
+
- app/htty/no_response_error.rb
|
106
|
+
- app/htty/no_set_cookie_header_error.rb
|
107
|
+
- app/htty/ordered_hash.rb
|
108
|
+
- app/htty/payload.rb
|
109
|
+
- app/htty/request.rb
|
110
|
+
- app/htty/requests_util.rb
|
111
|
+
- app/htty/response.rb
|
112
|
+
- app/htty/session.rb
|
113
|
+
- app/htty.rb
|
114
|
+
- spec/unit/htty/cli_spec.rb
|
115
|
+
- spec/unit/htty/ordered_hash_spec.rb
|
116
|
+
- spec/unit/htty/request_spec.rb
|
117
|
+
- spec/unit/htty/response_spec.rb
|
118
|
+
- spec/unit/htty/session_spec.rb
|
119
|
+
- bin/htty
|
120
|
+
has_rdoc: true
|
121
|
+
homepage: http://htty.github.com
|
122
|
+
licenses: []
|
123
|
+
|
124
|
+
post_install_message:
|
125
|
+
rdoc_options:
|
126
|
+
- --title
|
127
|
+
- htty, the HTTP TTY
|
128
|
+
- --main
|
129
|
+
- README.rdoc
|
130
|
+
- --output
|
131
|
+
- doc
|
132
|
+
require_paths:
|
133
|
+
- lib
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
+
none: false
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
segments:
|
140
|
+
- 0
|
141
|
+
version: "0"
|
142
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
|
+
none: false
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
segments:
|
148
|
+
- 0
|
149
|
+
version: "0"
|
150
|
+
requirements:
|
151
|
+
- Ruby v1.9.2 or later
|
152
|
+
rubyforge_project:
|
153
|
+
rubygems_version: 1.3.7
|
154
|
+
signing_key:
|
155
|
+
specification_version: 3
|
156
|
+
summary: The HTTP TTY
|
157
|
+
test_files: []
|
158
|
+
|