htty 1.1.6 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.markdown +46 -0
- data/README.markdown +12 -12
- data/VERSION +1 -1
- data/lib/htty/cli.rb +10 -0
- data/lib/htty/cli/command.rb +50 -41
- data/lib/htty/cli/commands/http_put.rb +3 -0
- data/lib/htty/cli/commands/query_unset.rb +4 -2
- data/lib/htty/cli/http_method_command.rb +5 -3
- data/spec/integration/htty/cli/commands/query_add_spec.rb +51 -0
- data/spec/integration/htty/cli/commands/query_remove_spec.rb +37 -0
- data/spec/integration/htty/cli/commands/query_set_spec.rb +72 -0
- data/spec/integration/htty/cli/commands/query_unset_spec.rb +37 -0
- data/spec/unit/htty/cli/commands/address_spec.rb +103 -0
- data/spec/unit/htty/cli/commands/body_clear_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/body_request_spec.rb +72 -0
- data/spec/unit/htty/cli/commands/body_response_spec.rb +70 -0
- data/spec/unit/htty/cli/commands/body_set_spec.rb +71 -0
- data/spec/unit/htty/cli/commands/body_unset_spec.rb +69 -0
- data/spec/unit/htty/cli/commands/cd_spec.rb +57 -0
- data/spec/unit/htty/cli/commands/cookie_add_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/cookie_remove_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/cookies_add_spec.rb +78 -0
- data/spec/unit/htty/cli/commands/cookies_clear_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/cookies_remove_all_spec.rb +73 -0
- data/spec/unit/htty/cli/commands/cookies_remove_spec.rb +69 -0
- data/spec/unit/htty/cli/commands/cookies_spec.rb +76 -0
- data/spec/unit/htty/cli/commands/cookies_use_spec.rb +75 -0
- data/spec/unit/htty/cli/commands/delete_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/exit_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/follow_spec.rb +70 -0
- data/spec/unit/htty/cli/commands/form_add_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/form_clear_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/form_remove_all_spec.rb +66 -0
- data/spec/unit/htty/cli/commands/form_remove_spec.rb +57 -0
- data/spec/unit/htty/cli/commands/form_spec.rb +57 -0
- data/spec/unit/htty/cli/commands/fragment_clear_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/fragment_set_spec.rb +73 -0
- data/spec/unit/htty/cli/commands/fragment_unset_spec.rb +72 -0
- data/spec/unit/htty/cli/commands/get_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/header_set_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/header_unset_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/headers_clear_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/headers_request_spec.rb +81 -0
- data/spec/unit/htty/cli/commands/headers_response_spec.rb +77 -0
- data/spec/unit/htty/cli/commands/headers_set_spec.rb +74 -0
- data/spec/unit/htty/cli/commands/headers_unset_all_spec.rb +71 -0
- data/spec/unit/htty/cli/commands/headers_unset_spec.rb +63 -0
- data/spec/unit/htty/cli/commands/help_spec.rb +67 -0
- data/spec/unit/htty/cli/commands/history_spec.rb +65 -0
- data/spec/unit/htty/cli/commands/history_verbose_spec.rb +72 -0
- data/spec/unit/htty/cli/commands/host_set_spec.rb +71 -0
- data/spec/unit/htty/cli/commands/http_delete_spec.rb +73 -0
- data/spec/unit/htty/cli/commands/http_get_spec.rb +75 -0
- data/spec/unit/htty/cli/commands/http_head_spec.rb +69 -0
- data/spec/unit/htty/cli/commands/http_options_spec.rb +69 -0
- data/spec/unit/htty/cli/commands/http_post_spec.rb +71 -0
- data/spec/unit/htty/cli/commands/http_put_spec.rb +69 -0
- data/spec/unit/htty/cli/commands/http_trace_spec.rb +69 -0
- data/spec/unit/htty/cli/commands/path_set_spec.rb +72 -0
- data/spec/unit/htty/cli/commands/port_set_spec.rb +73 -0
- data/spec/unit/htty/cli/commands/post_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/put_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/query_add_spec.rb +67 -36
- data/spec/unit/htty/cli/commands/query_clear_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/query_remove_spec.rb +69 -24
- data/spec/unit/htty/cli/commands/query_set_spec.rb +59 -49
- data/spec/unit/htty/cli/commands/query_unset_all_spec.rb +73 -0
- data/spec/unit/htty/cli/commands/query_unset_spec.rb +75 -0
- data/spec/unit/htty/cli/commands/quit_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/reuse_spec.rb +72 -0
- data/spec/unit/htty/cli/commands/scheme_set_spec.rb +74 -0
- data/spec/unit/htty/cli/commands/ssl_verification_off_spec.rb +67 -0
- data/spec/unit/htty/cli/commands/ssl_verification_on_spec.rb +60 -0
- data/spec/unit/htty/cli/commands/ssl_verification_spec.rb +65 -0
- data/spec/unit/htty/cli/commands/status_spec.rb +73 -0
- data/spec/unit/htty/cli/commands/undo_spec.rb +57 -0
- data/spec/unit/htty/cli/commands/userinfo_clear_spec.rb +64 -0
- data/spec/unit/htty/cli/commands/userinfo_set_spec.rb +75 -0
- data/spec/unit/htty/cli/commands/userinfo_unset_spec.rb +72 -0
- data/spec/unit/htty/cli_spec.rb +8 -2
- data/spec/unit/htty/ordered_hash_spec.rb +14 -24
- data/spec/unit/htty/preferences_spec.rb +1 -1
- data/spec/unit/htty/request_spec.rb +454 -463
- metadata +80 -20
metadata
CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 1.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nils Jonsson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-12-01 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +26,10 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 3
|
30
30
|
segments:
|
31
|
-
- 2
|
32
31
|
- 0
|
33
|
-
|
34
|
-
version: 2.0.7
|
32
|
+
version: "0"
|
35
33
|
type: :development
|
36
34
|
version_requirements: *id001
|
37
35
|
- !ruby/object:Gem::Dependency
|
@@ -42,12 +40,10 @@ dependencies:
|
|
42
40
|
requirements:
|
43
41
|
- - ">="
|
44
42
|
- !ruby/object:Gem::Version
|
45
|
-
hash:
|
43
|
+
hash: 3
|
46
44
|
segments:
|
47
45
|
- 0
|
48
|
-
|
49
|
-
- 7
|
50
|
-
version: 0.8.7
|
46
|
+
version: "0"
|
51
47
|
type: :development
|
52
48
|
version_requirements: *id002
|
53
49
|
- !ruby/object:Gem::Dependency
|
@@ -58,12 +54,10 @@ dependencies:
|
|
58
54
|
requirements:
|
59
55
|
- - ">="
|
60
56
|
- !ruby/object:Gem::Version
|
61
|
-
hash:
|
57
|
+
hash: 3
|
62
58
|
segments:
|
63
|
-
- 1
|
64
|
-
- 3
|
65
59
|
- 0
|
66
|
-
version:
|
60
|
+
version: "0"
|
67
61
|
type: :development
|
68
62
|
version_requirements: *id003
|
69
63
|
- !ruby/object:Gem::Dependency
|
@@ -74,12 +68,10 @@ dependencies:
|
|
74
68
|
requirements:
|
75
69
|
- - ">="
|
76
70
|
- !ruby/object:Gem::Version
|
77
|
-
hash:
|
71
|
+
hash: 3
|
78
72
|
segments:
|
79
73
|
- 0
|
80
|
-
|
81
|
-
- 1
|
82
|
-
version: 0.6.1
|
74
|
+
version: "0"
|
83
75
|
type: :development
|
84
76
|
version_requirements: *id004
|
85
77
|
description: htty is a console application for interacting with HTTP servers. It is something of a cross between curl and the Lynx browser.
|
@@ -180,6 +172,10 @@ files:
|
|
180
172
|
- lib/htty/response.rb
|
181
173
|
- lib/htty/session.rb
|
182
174
|
- lib/htty.rb
|
175
|
+
- spec/integration/htty/cli/commands/query_add_spec.rb
|
176
|
+
- spec/integration/htty/cli/commands/query_remove_spec.rb
|
177
|
+
- spec/integration/htty/cli/commands/query_set_spec.rb
|
178
|
+
- spec/integration/htty/cli/commands/query_unset_spec.rb
|
183
179
|
- spec/system/scenarios/exit/actual_stderr
|
184
180
|
- spec/system/scenarios/exit/actual_stdout
|
185
181
|
- spec/system/scenarios/exit/expected_stdout
|
@@ -189,9 +185,73 @@ files:
|
|
189
185
|
- spec/system/scenarios/quit/expected_stdout
|
190
186
|
- spec/system/scenarios/quit/stdin
|
191
187
|
- spec/system/scenarios_spec.rb
|
188
|
+
- spec/unit/htty/cli/commands/address_spec.rb
|
189
|
+
- spec/unit/htty/cli/commands/body_clear_spec.rb
|
190
|
+
- spec/unit/htty/cli/commands/body_request_spec.rb
|
191
|
+
- spec/unit/htty/cli/commands/body_response_spec.rb
|
192
|
+
- spec/unit/htty/cli/commands/body_set_spec.rb
|
193
|
+
- spec/unit/htty/cli/commands/body_unset_spec.rb
|
194
|
+
- spec/unit/htty/cli/commands/cd_spec.rb
|
195
|
+
- spec/unit/htty/cli/commands/cookie_add_spec.rb
|
196
|
+
- spec/unit/htty/cli/commands/cookie_remove_spec.rb
|
197
|
+
- spec/unit/htty/cli/commands/cookies_add_spec.rb
|
198
|
+
- spec/unit/htty/cli/commands/cookies_clear_spec.rb
|
199
|
+
- spec/unit/htty/cli/commands/cookies_remove_all_spec.rb
|
200
|
+
- spec/unit/htty/cli/commands/cookies_remove_spec.rb
|
201
|
+
- spec/unit/htty/cli/commands/cookies_spec.rb
|
202
|
+
- spec/unit/htty/cli/commands/cookies_use_spec.rb
|
203
|
+
- spec/unit/htty/cli/commands/delete_spec.rb
|
204
|
+
- spec/unit/htty/cli/commands/exit_spec.rb
|
205
|
+
- spec/unit/htty/cli/commands/follow_spec.rb
|
206
|
+
- spec/unit/htty/cli/commands/form_add_spec.rb
|
207
|
+
- spec/unit/htty/cli/commands/form_clear_spec.rb
|
208
|
+
- spec/unit/htty/cli/commands/form_remove_all_spec.rb
|
209
|
+
- spec/unit/htty/cli/commands/form_remove_spec.rb
|
210
|
+
- spec/unit/htty/cli/commands/form_spec.rb
|
211
|
+
- spec/unit/htty/cli/commands/fragment_clear_spec.rb
|
212
|
+
- spec/unit/htty/cli/commands/fragment_set_spec.rb
|
213
|
+
- spec/unit/htty/cli/commands/fragment_unset_spec.rb
|
214
|
+
- spec/unit/htty/cli/commands/get_spec.rb
|
215
|
+
- spec/unit/htty/cli/commands/header_set_spec.rb
|
216
|
+
- spec/unit/htty/cli/commands/header_unset_spec.rb
|
217
|
+
- spec/unit/htty/cli/commands/headers_clear_spec.rb
|
218
|
+
- spec/unit/htty/cli/commands/headers_request_spec.rb
|
219
|
+
- spec/unit/htty/cli/commands/headers_response_spec.rb
|
220
|
+
- spec/unit/htty/cli/commands/headers_set_spec.rb
|
221
|
+
- spec/unit/htty/cli/commands/headers_unset_all_spec.rb
|
222
|
+
- spec/unit/htty/cli/commands/headers_unset_spec.rb
|
223
|
+
- spec/unit/htty/cli/commands/help_spec.rb
|
224
|
+
- spec/unit/htty/cli/commands/history_spec.rb
|
225
|
+
- spec/unit/htty/cli/commands/history_verbose_spec.rb
|
226
|
+
- spec/unit/htty/cli/commands/host_set_spec.rb
|
227
|
+
- spec/unit/htty/cli/commands/http_delete_spec.rb
|
228
|
+
- spec/unit/htty/cli/commands/http_get_spec.rb
|
229
|
+
- spec/unit/htty/cli/commands/http_head_spec.rb
|
230
|
+
- spec/unit/htty/cli/commands/http_options_spec.rb
|
231
|
+
- spec/unit/htty/cli/commands/http_post_spec.rb
|
232
|
+
- spec/unit/htty/cli/commands/http_put_spec.rb
|
233
|
+
- spec/unit/htty/cli/commands/http_trace_spec.rb
|
234
|
+
- spec/unit/htty/cli/commands/path_set_spec.rb
|
235
|
+
- spec/unit/htty/cli/commands/port_set_spec.rb
|
236
|
+
- spec/unit/htty/cli/commands/post_spec.rb
|
237
|
+
- spec/unit/htty/cli/commands/put_spec.rb
|
192
238
|
- spec/unit/htty/cli/commands/query_add_spec.rb
|
239
|
+
- spec/unit/htty/cli/commands/query_clear_spec.rb
|
193
240
|
- spec/unit/htty/cli/commands/query_remove_spec.rb
|
194
241
|
- spec/unit/htty/cli/commands/query_set_spec.rb
|
242
|
+
- spec/unit/htty/cli/commands/query_unset_all_spec.rb
|
243
|
+
- spec/unit/htty/cli/commands/query_unset_spec.rb
|
244
|
+
- spec/unit/htty/cli/commands/quit_spec.rb
|
245
|
+
- spec/unit/htty/cli/commands/reuse_spec.rb
|
246
|
+
- spec/unit/htty/cli/commands/scheme_set_spec.rb
|
247
|
+
- spec/unit/htty/cli/commands/ssl_verification_off_spec.rb
|
248
|
+
- spec/unit/htty/cli/commands/ssl_verification_on_spec.rb
|
249
|
+
- spec/unit/htty/cli/commands/ssl_verification_spec.rb
|
250
|
+
- spec/unit/htty/cli/commands/status_spec.rb
|
251
|
+
- spec/unit/htty/cli/commands/undo_spec.rb
|
252
|
+
- spec/unit/htty/cli/commands/userinfo_clear_spec.rb
|
253
|
+
- spec/unit/htty/cli/commands/userinfo_set_spec.rb
|
254
|
+
- spec/unit/htty/cli/commands/userinfo_unset_spec.rb
|
195
255
|
- spec/unit/htty/cli_spec.rb
|
196
256
|
- spec/unit/htty/ordered_hash_spec.rb
|
197
257
|
- spec/unit/htty/preferences_spec.rb
|